[2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-25 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +30 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,30,30,'RMScheduler',2025-04-25 00:00:04,1,0,,,0) [2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-25 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +30 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,30,30,'RMScheduler',2025-04-25 00:00:04,1,0,,,0) [2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-08 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +13 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-04-25 00:00:04,1,0,,,0) [2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-08 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +13 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-04-25 00:00:04,1,0,,,0) [2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-08 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +13 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-04-25 00:00:04,0,0,,,0) [2025-04-25 00:00:04] Production.INFO: next invoice date [2025-04-25 00:00:04] Production.INFO: 2025-05-08 [2025-04-25 00:00:04] Production.INFO: getdaysdiff [2025-04-25 00:00:04] Production.INFO: +13 [2025-04-25 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-04-25 00:00:04,0,0,,,0) [2025-04-25 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:00:06 [end_date_ymd] => 2025-04-25 00:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:00:06' and `end` < '2025-04-25 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-04-25 00:00:19] Production.INFO: count ==852 [2025-04-25 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:00:06 - End Time 2025-04-25 00:00:06 [2025-04-25 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983128', 'tblTempUsageDetail_20' ) start [2025-04-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983128', 'tblTempUsageDetail_20' ) end [2025-04-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983128', 'tblTempVendorCDR_20' ) start [2025-04-25 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983128', 'tblTempVendorCDR_20' ) end [2025-04-25 00:00:19] Production.INFO: ProcessCDR(1,14983128,1,1,2) [2025-04-25 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983128', 'tblTempUsageDetail_20' ) start [2025-04-25 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983128', 'tblTempUsageDetail_20' ) end [2025-04-25 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:00:26] Production.INFO: ==30501== Releasing lock... [2025-04-25 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:00:26] Production.INFO: 37 MB #Memory Used# [2025-04-25 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:01:05 [end_date_ymd] => 2025-04-25 00:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:01:05' and `end` < '2025-04-25 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-04-25 00:01:24] Production.INFO: count ==850 [2025-04-25 00:01:24] Production.ERROR: pbx CDR StartTime 2025-04-24 21:01:05 - End Time 2025-04-25 00:01:05 [2025-04-25 00:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983133', 'tblTempUsageDetail_20' ) start [2025-04-25 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983133', 'tblTempUsageDetail_20' ) end [2025-04-25 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983133', 'tblTempVendorCDR_20' ) start [2025-04-25 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983133', 'tblTempVendorCDR_20' ) end [2025-04-25 00:01:24] Production.INFO: ProcessCDR(1,14983133,1,1,2) [2025-04-25 00:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983133', 'tblTempUsageDetail_20' ) start [2025-04-25 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983133', 'tblTempUsageDetail_20' ) end [2025-04-25 00:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:01:28] Production.INFO: ==30589== Releasing lock... [2025-04-25 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:01:28] Production.INFO: 34.5 MB #Memory Used# [2025-04-25 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:02:05 [end_date_ymd] => 2025-04-25 00:02:05 [RateCDR] => 1 ) [2025-04-25 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:02:05' and `end` < '2025-04-25 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:02:18] Production.INFO: count ==459 [2025-04-25 00:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:02:05 - End Time 2025-04-25 00:02:05 [2025-04-25 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983138', 'tblTempUsageDetail_20' ) start [2025-04-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983138', 'tblTempUsageDetail_20' ) end [2025-04-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983138', 'tblTempVendorCDR_20' ) start [2025-04-25 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983138', 'tblTempVendorCDR_20' ) end [2025-04-25 00:02:19] Production.INFO: ProcessCDR(1,14983138,1,1,2) [2025-04-25 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983138', 'tblTempUsageDetail_20' ) start [2025-04-25 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983138', 'tblTempUsageDetail_20' ) end [2025-04-25 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:02:22] Production.INFO: ==30662== Releasing lock... [2025-04-25 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:03:04 [end_date_ymd] => 2025-04-25 00:03:04 [RateCDR] => 1 ) [2025-04-25 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:03:04' and `end` < '2025-04-25 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:03:19] Production.INFO: count ==458 [2025-04-25 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:03:04 - End Time 2025-04-25 00:03:04 [2025-04-25 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983143', 'tblTempUsageDetail_20' ) start [2025-04-25 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983143', 'tblTempUsageDetail_20' ) end [2025-04-25 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983143', 'tblTempVendorCDR_20' ) start [2025-04-25 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983143', 'tblTempVendorCDR_20' ) end [2025-04-25 00:03:19] Production.INFO: ProcessCDR(1,14983143,1,1,2) [2025-04-25 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983143', 'tblTempUsageDetail_20' ) start [2025-04-25 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983143', 'tblTempUsageDetail_20' ) end [2025-04-25 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:03:22] Production.INFO: ==30740== Releasing lock... [2025-04-25 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:03:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:04:05 [end_date_ymd] => 2025-04-25 00:04:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:04:05' and `end` < '2025-04-25 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-04-25 00:04:19] Production.INFO: count ==458 [2025-04-25 00:04:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:04:05 - End Time 2025-04-25 00:04:05 [2025-04-25 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983148', 'tblTempUsageDetail_20' ) start [2025-04-25 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983148', 'tblTempUsageDetail_20' ) end [2025-04-25 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983148', 'tblTempVendorCDR_20' ) start [2025-04-25 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983148', 'tblTempVendorCDR_20' ) end [2025-04-25 00:04:19] Production.INFO: ProcessCDR(1,14983148,1,1,2) [2025-04-25 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983148', 'tblTempUsageDetail_20' ) start [2025-04-25 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983148', 'tblTempUsageDetail_20' ) end [2025-04-25 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:04:24] Production.INFO: ==30817== Releasing lock... [2025-04-25 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:04:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:05:04 [end_date_ymd] => 2025-04-25 00:05:04 [RateCDR] => 1 ) [2025-04-25 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:05:04' and `end` < '2025-04-25 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:05:28] Production.INFO: count ==455 [2025-04-25 00:05:28] Production.ERROR: pbx CDR StartTime 2025-04-24 21:05:04 - End Time 2025-04-25 00:05:04 [2025-04-25 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983153', 'tblTempUsageDetail_20' ) start [2025-04-25 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983153', 'tblTempUsageDetail_20' ) end [2025-04-25 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983153', 'tblTempVendorCDR_20' ) start [2025-04-25 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983153', 'tblTempVendorCDR_20' ) end [2025-04-25 00:05:28] Production.INFO: ProcessCDR(1,14983153,1,1,2) [2025-04-25 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983153', 'tblTempUsageDetail_20' ) start [2025-04-25 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983153', 'tblTempUsageDetail_20' ) end [2025-04-25 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:05:33] Production.INFO: ==30889== Releasing lock... [2025-04-25 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:05:33] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:06:05 [end_date_ymd] => 2025-04-25 00:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:06:05' and `end` < '2025-04-25 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-04-25 00:06:28] Production.INFO: count ==451 [2025-04-25 00:06:29] Production.ERROR: pbx CDR StartTime 2025-04-24 21:06:05 - End Time 2025-04-25 00:06:05 [2025-04-25 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983158', 'tblTempUsageDetail_20' ) start [2025-04-25 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983158', 'tblTempUsageDetail_20' ) end [2025-04-25 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983158', 'tblTempVendorCDR_20' ) start [2025-04-25 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983158', 'tblTempVendorCDR_20' ) end [2025-04-25 00:06:29] Production.INFO: ProcessCDR(1,14983158,1,1,2) [2025-04-25 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983158', 'tblTempUsageDetail_20' ) start [2025-04-25 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983158', 'tblTempUsageDetail_20' ) end [2025-04-25 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:06:32] Production.INFO: ==30962== Releasing lock... [2025-04-25 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:06:32] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:07:04 [end_date_ymd] => 2025-04-25 00:07:04 [RateCDR] => 1 ) [2025-04-25 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:07:04' and `end` < '2025-04-25 00:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:07:28] Production.INFO: count ==448 [2025-04-25 00:07:28] Production.ERROR: pbx CDR StartTime 2025-04-24 21:07:04 - End Time 2025-04-25 00:07:04 [2025-04-25 00:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983163', 'tblTempUsageDetail_20' ) start [2025-04-25 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983163', 'tblTempUsageDetail_20' ) end [2025-04-25 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983163', 'tblTempVendorCDR_20' ) start [2025-04-25 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983163', 'tblTempVendorCDR_20' ) end [2025-04-25 00:07:28] Production.INFO: ProcessCDR(1,14983163,1,1,2) [2025-04-25 00:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983163', 'tblTempUsageDetail_20' ) start [2025-04-25 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983163', 'tblTempUsageDetail_20' ) end [2025-04-25 00:07:32] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:07:32] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:07:32] Production.INFO: ==31035== Releasing lock... [2025-04-25 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:07:32] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:08:05 [end_date_ymd] => 2025-04-25 00:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:08:05' and `end` < '2025-04-25 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-04-25 00:08:27] Production.INFO: count ==447 [2025-04-25 00:08:27] Production.ERROR: pbx CDR StartTime 2025-04-24 21:08:05 - End Time 2025-04-25 00:08:05 [2025-04-25 00:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983168', 'tblTempUsageDetail_20' ) start [2025-04-25 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983168', 'tblTempUsageDetail_20' ) end [2025-04-25 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983168', 'tblTempVendorCDR_20' ) start [2025-04-25 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983168', 'tblTempVendorCDR_20' ) end [2025-04-25 00:08:28] Production.INFO: ProcessCDR(1,14983168,1,1,2) [2025-04-25 00:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983168', 'tblTempUsageDetail_20' ) start [2025-04-25 00:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983168', 'tblTempUsageDetail_20' ) end [2025-04-25 00:08:31] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:08:31] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:08:31] Production.INFO: ==31106== Releasing lock... [2025-04-25 00:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:08:31] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:09:05 [end_date_ymd] => 2025-04-25 00:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:09:05' and `end` < '2025-04-25 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-04-25 00:09:29] Production.INFO: count ==444 [2025-04-25 00:09:29] Production.ERROR: pbx CDR StartTime 2025-04-24 21:09:05 - End Time 2025-04-25 00:09:05 [2025-04-25 00:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983173', 'tblTempUsageDetail_20' ) start [2025-04-25 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983173', 'tblTempUsageDetail_20' ) end [2025-04-25 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983173', 'tblTempVendorCDR_20' ) start [2025-04-25 00:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983173', 'tblTempVendorCDR_20' ) end [2025-04-25 00:09:29] Production.INFO: ProcessCDR(1,14983173,1,1,2) [2025-04-25 00:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983173', 'tblTempUsageDetail_20' ) start [2025-04-25 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983173', 'tblTempUsageDetail_20' ) end [2025-04-25 00:09:32] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:09:32] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:09:32] Production.INFO: ==31178== Releasing lock... [2025-04-25 00:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:09:32] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:10:05 [end_date_ymd] => 2025-04-25 00:10:05 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:10:05' and `end` < '2025-04-25 00: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-04-25 00:10:27] Production.INFO: count ==444 [2025-04-25 00:10:28] Production.ERROR: pbx CDR StartTime 2025-04-24 21:10:05 - End Time 2025-04-25 00:10:05 [2025-04-25 00:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983179', 'tblTempUsageDetail_20' ) start [2025-04-25 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983179', 'tblTempUsageDetail_20' ) end [2025-04-25 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983179', 'tblTempVendorCDR_20' ) start [2025-04-25 00:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983179', 'tblTempVendorCDR_20' ) end [2025-04-25 00:10:28] Production.INFO: ProcessCDR(1,14983179,1,1,2) [2025-04-25 00:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983179', 'tblTempUsageDetail_20' ) start [2025-04-25 00:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983179', 'tblTempUsageDetail_20' ) end [2025-04-25 00:10:31] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:10:31] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:10:31] Production.INFO: ==31257== Releasing lock... [2025-04-25 00:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:10:31] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:11:05 [end_date_ymd] => 2025-04-25 00:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:11:05' and `end` < '2025-04-25 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-04-25 00:11:18] Production.INFO: count ==452 [2025-04-25 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:11:05 - End Time 2025-04-25 00:11:05 [2025-04-25 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983184', 'tblTempUsageDetail_20' ) start [2025-04-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983184', 'tblTempUsageDetail_20' ) end [2025-04-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983184', 'tblTempVendorCDR_20' ) start [2025-04-25 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983184', 'tblTempVendorCDR_20' ) end [2025-04-25 00:11:18] Production.INFO: ProcessCDR(1,14983184,1,1,2) [2025-04-25 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983184', 'tblTempUsageDetail_20' ) start [2025-04-25 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983184', 'tblTempUsageDetail_20' ) end [2025-04-25 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:11:22] Production.INFO: ==31333== Releasing lock... [2025-04-25 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:12:05 [end_date_ymd] => 2025-04-25 00:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:12:05' and `end` < '2025-04-25 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-04-25 00:12:17] Production.INFO: count ==452 [2025-04-25 00:12:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:12:05 - End Time 2025-04-25 00:12:05 [2025-04-25 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983189', 'tblTempUsageDetail_20' ) start [2025-04-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983189', 'tblTempUsageDetail_20' ) end [2025-04-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983189', 'tblTempVendorCDR_20' ) start [2025-04-25 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983189', 'tblTempVendorCDR_20' ) end [2025-04-25 00:12:18] Production.INFO: ProcessCDR(1,14983189,1,1,2) [2025-04-25 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983189', 'tblTempUsageDetail_20' ) start [2025-04-25 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983189', 'tblTempUsageDetail_20' ) end [2025-04-25 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:12:21] Production.INFO: ==31443== Releasing lock... [2025-04-25 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:13:05 [end_date_ymd] => 2025-04-25 00:13:05 [RateCDR] => 1 ) [2025-04-25 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:13:05' and `end` < '2025-04-25 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:13:17] Production.INFO: count ==448 [2025-04-25 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:13:05 - End Time 2025-04-25 00:13:05 [2025-04-25 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983194', 'tblTempUsageDetail_20' ) start [2025-04-25 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983194', 'tblTempUsageDetail_20' ) end [2025-04-25 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983194', 'tblTempVendorCDR_20' ) start [2025-04-25 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983194', 'tblTempVendorCDR_20' ) end [2025-04-25 00:13:18] Production.INFO: ProcessCDR(1,14983194,1,1,2) [2025-04-25 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983194', 'tblTempUsageDetail_20' ) start [2025-04-25 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983194', 'tblTempUsageDetail_20' ) end [2025-04-25 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:13:21] Production.INFO: ==31517== Releasing lock... [2025-04-25 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:14:05 [end_date_ymd] => 2025-04-25 00:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:14:05' and `end` < '2025-04-25 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-04-25 00:14:18] Production.INFO: count ==442 [2025-04-25 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:14:05 - End Time 2025-04-25 00:14:05 [2025-04-25 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983199', 'tblTempUsageDetail_20' ) start [2025-04-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983199', 'tblTempUsageDetail_20' ) end [2025-04-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983199', 'tblTempVendorCDR_20' ) start [2025-04-25 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983199', 'tblTempVendorCDR_20' ) end [2025-04-25 00:14:18] Production.INFO: ProcessCDR(1,14983199,1,1,2) [2025-04-25 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983199', 'tblTempUsageDetail_20' ) start [2025-04-25 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983199', 'tblTempUsageDetail_20' ) end [2025-04-25 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:14:21] Production.INFO: ==31592== Releasing lock... [2025-04-25 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:15:05 [end_date_ymd] => 2025-04-25 00:15:05 [RateCDR] => 1 ) [2025-04-25 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:15:05' and `end` < '2025-04-25 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:15:18] Production.INFO: count ==443 [2025-04-25 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:15:05 - End Time 2025-04-25 00:15:05 [2025-04-25 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983204', 'tblTempUsageDetail_20' ) start [2025-04-25 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983204', 'tblTempUsageDetail_20' ) end [2025-04-25 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983204', 'tblTempVendorCDR_20' ) start [2025-04-25 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983204', 'tblTempVendorCDR_20' ) end [2025-04-25 00:15:18] Production.INFO: ProcessCDR(1,14983204,1,1,2) [2025-04-25 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983204', 'tblTempUsageDetail_20' ) start [2025-04-25 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983204', 'tblTempUsageDetail_20' ) end [2025-04-25 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:15:21] Production.INFO: ==31661== Releasing lock... [2025-04-25 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:16:06 [end_date_ymd] => 2025-04-25 00:16:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:16:06' and `end` < '2025-04-25 00: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-04-25 00:16:19] Production.INFO: count ==441 [2025-04-25 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:16:06 - End Time 2025-04-25 00:16:06 [2025-04-25 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983209', 'tblTempUsageDetail_20' ) start [2025-04-25 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983209', 'tblTempUsageDetail_20' ) end [2025-04-25 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983209', 'tblTempVendorCDR_20' ) start [2025-04-25 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983209', 'tblTempVendorCDR_20' ) end [2025-04-25 00:16:19] Production.INFO: ProcessCDR(1,14983209,1,1,2) [2025-04-25 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983209', 'tblTempUsageDetail_20' ) start [2025-04-25 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983209', 'tblTempUsageDetail_20' ) end [2025-04-25 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:16:22] Production.INFO: ==31732== Releasing lock... [2025-04-25 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:16:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:17:05 [end_date_ymd] => 2025-04-25 00:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:17:05' and `end` < '2025-04-25 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-04-25 00:17:18] Production.INFO: count ==433 [2025-04-25 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:17:05 - End Time 2025-04-25 00:17:05 [2025-04-25 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983214', 'tblTempUsageDetail_20' ) start [2025-04-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983214', 'tblTempUsageDetail_20' ) end [2025-04-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983214', 'tblTempVendorCDR_20' ) start [2025-04-25 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983214', 'tblTempVendorCDR_20' ) end [2025-04-25 00:17:18] Production.INFO: ProcessCDR(1,14983214,1,1,2) [2025-04-25 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983214', 'tblTempUsageDetail_20' ) start [2025-04-25 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983214', 'tblTempUsageDetail_20' ) end [2025-04-25 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:17:21] Production.INFO: ==31808== Releasing lock... [2025-04-25 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:18:06 [end_date_ymd] => 2025-04-25 00:18:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:18:06' and `end` < '2025-04-25 00: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-04-25 00:18:18] Production.INFO: count ==428 [2025-04-25 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:18:06 - End Time 2025-04-25 00:18:06 [2025-04-25 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983219', 'tblTempUsageDetail_20' ) start [2025-04-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983219', 'tblTempUsageDetail_20' ) end [2025-04-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983219', 'tblTempVendorCDR_20' ) start [2025-04-25 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983219', 'tblTempVendorCDR_20' ) end [2025-04-25 00:18:18] Production.INFO: ProcessCDR(1,14983219,1,1,2) [2025-04-25 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983219', 'tblTempUsageDetail_20' ) start [2025-04-25 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983219', 'tblTempUsageDetail_20' ) end [2025-04-25 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:18:21] Production.INFO: ==31885== Releasing lock... [2025-04-25 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:19:05 [end_date_ymd] => 2025-04-25 00:19:05 [RateCDR] => 1 ) [2025-04-25 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:19:05' and `end` < '2025-04-25 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:19:17] Production.INFO: count ==422 [2025-04-25 00:19:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:19:05 - End Time 2025-04-25 00:19:05 [2025-04-25 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983224', 'tblTempUsageDetail_20' ) start [2025-04-25 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983224', 'tblTempUsageDetail_20' ) end [2025-04-25 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983224', 'tblTempVendorCDR_20' ) start [2025-04-25 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983224', 'tblTempVendorCDR_20' ) end [2025-04-25 00:19:17] Production.INFO: ProcessCDR(1,14983224,1,1,2) [2025-04-25 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983224', 'tblTempUsageDetail_20' ) start [2025-04-25 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983224', 'tblTempUsageDetail_20' ) end [2025-04-25 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:19:22] Production.INFO: ==31954== Releasing lock... [2025-04-25 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:19:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:20:06 [end_date_ymd] => 2025-04-25 00:20:06 [RateCDR] => 1 ) [2025-04-25 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:20:06' and `end` < '2025-04-25 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:20:18] Production.INFO: count ==429 [2025-04-25 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:20:06 - End Time 2025-04-25 00:20:06 [2025-04-25 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983229', 'tblTempUsageDetail_20' ) start [2025-04-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983229', 'tblTempUsageDetail_20' ) end [2025-04-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983229', 'tblTempVendorCDR_20' ) start [2025-04-25 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983229', 'tblTempVendorCDR_20' ) end [2025-04-25 00:20:18] Production.INFO: ProcessCDR(1,14983229,1,1,2) [2025-04-25 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983229', 'tblTempUsageDetail_20' ) start [2025-04-25 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983229', 'tblTempUsageDetail_20' ) end [2025-04-25 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:20:22] Production.INFO: ==32031== Releasing lock... [2025-04-25 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:21:05 [end_date_ymd] => 2025-04-25 00:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:21:05' and `end` < '2025-04-25 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-04-25 00:21:17] Production.INFO: count ==443 [2025-04-25 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:21:05 - End Time 2025-04-25 00:21:05 [2025-04-25 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983235', 'tblTempUsageDetail_20' ) start [2025-04-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983235', 'tblTempUsageDetail_20' ) end [2025-04-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983235', 'tblTempVendorCDR_20' ) start [2025-04-25 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983235', 'tblTempVendorCDR_20' ) end [2025-04-25 00:21:18] Production.INFO: ProcessCDR(1,14983235,1,1,2) [2025-04-25 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983235', 'tblTempUsageDetail_20' ) start [2025-04-25 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983235', 'tblTempUsageDetail_20' ) end [2025-04-25 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:21:22] Production.INFO: ==32104== Releasing lock... [2025-04-25 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:22:05 [end_date_ymd] => 2025-04-25 00:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:22:05' and `end` < '2025-04-25 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-04-25 00:22:18] Production.INFO: count ==437 [2025-04-25 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:22:05 - End Time 2025-04-25 00:22:05 [2025-04-25 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983240', 'tblTempUsageDetail_20' ) start [2025-04-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983240', 'tblTempUsageDetail_20' ) end [2025-04-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983240', 'tblTempVendorCDR_20' ) start [2025-04-25 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983240', 'tblTempVendorCDR_20' ) end [2025-04-25 00:22:18] Production.INFO: ProcessCDR(1,14983240,1,1,2) [2025-04-25 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983240', 'tblTempUsageDetail_20' ) start [2025-04-25 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983240', 'tblTempUsageDetail_20' ) end [2025-04-25 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:22:21] Production.INFO: ==32180== Releasing lock... [2025-04-25 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:23:05 [end_date_ymd] => 2025-04-25 00:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:23:05' and `end` < '2025-04-25 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-04-25 00:23:18] Production.INFO: count ==441 [2025-04-25 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:23:05 - End Time 2025-04-25 00:23:05 [2025-04-25 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983245', 'tblTempUsageDetail_20' ) start [2025-04-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983245', 'tblTempUsageDetail_20' ) end [2025-04-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983245', 'tblTempVendorCDR_20' ) start [2025-04-25 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983245', 'tblTempVendorCDR_20' ) end [2025-04-25 00:23:18] Production.INFO: ProcessCDR(1,14983245,1,1,2) [2025-04-25 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983245', 'tblTempUsageDetail_20' ) start [2025-04-25 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983245', 'tblTempUsageDetail_20' ) end [2025-04-25 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:23:22] Production.INFO: ==32260== Releasing lock... [2025-04-25 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:24:05 [end_date_ymd] => 2025-04-25 00:24:05 [RateCDR] => 1 ) [2025-04-25 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:24:05' and `end` < '2025-04-25 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:24:18] Production.INFO: count ==438 [2025-04-25 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:24:05 - End Time 2025-04-25 00:24:05 [2025-04-25 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983250', 'tblTempUsageDetail_20' ) start [2025-04-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983250', 'tblTempUsageDetail_20' ) end [2025-04-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983250', 'tblTempVendorCDR_20' ) start [2025-04-25 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983250', 'tblTempVendorCDR_20' ) end [2025-04-25 00:24:18] Production.INFO: ProcessCDR(1,14983250,1,1,2) [2025-04-25 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983250', 'tblTempUsageDetail_20' ) start [2025-04-25 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983250', 'tblTempUsageDetail_20' ) end [2025-04-25 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:24:21] Production.INFO: ==32331== Releasing lock... [2025-04-25 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:25:05 [end_date_ymd] => 2025-04-25 00:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:25:05' and `end` < '2025-04-25 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-04-25 00:25:18] Production.INFO: count ==437 [2025-04-25 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:25:05 - End Time 2025-04-25 00:25:05 [2025-04-25 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983255', 'tblTempUsageDetail_20' ) start [2025-04-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983255', 'tblTempUsageDetail_20' ) end [2025-04-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983255', 'tblTempVendorCDR_20' ) start [2025-04-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983255', 'tblTempVendorCDR_20' ) end [2025-04-25 00:25:18] Production.INFO: ProcessCDR(1,14983255,1,1,2) [2025-04-25 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983255', 'tblTempUsageDetail_20' ) start [2025-04-25 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983255', 'tblTempUsageDetail_20' ) end [2025-04-25 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:25:21] Production.INFO: ==32401== Releasing lock... [2025-04-25 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:26:05 [end_date_ymd] => 2025-04-25 00:26:05 [RateCDR] => 1 ) [2025-04-25 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:26:05' and `end` < '2025-04-25 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:26:17] Production.INFO: count ==429 [2025-04-25 00:26:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:26:05 - End Time 2025-04-25 00:26:05 [2025-04-25 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983260', 'tblTempUsageDetail_20' ) start [2025-04-25 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983260', 'tblTempUsageDetail_20' ) end [2025-04-25 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983260', 'tblTempVendorCDR_20' ) start [2025-04-25 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983260', 'tblTempVendorCDR_20' ) end [2025-04-25 00:26:17] Production.INFO: ProcessCDR(1,14983260,1,1,2) [2025-04-25 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983260', 'tblTempUsageDetail_20' ) start [2025-04-25 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983260', 'tblTempUsageDetail_20' ) end [2025-04-25 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:26:21] Production.INFO: ==32474== Releasing lock... [2025-04-25 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:26:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:27:05 [end_date_ymd] => 2025-04-25 00:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:27:05' and `end` < '2025-04-25 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-04-25 00:27:17] Production.INFO: count ==425 [2025-04-25 00:27:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:27:05 - End Time 2025-04-25 00:27:05 [2025-04-25 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983265', 'tblTempUsageDetail_20' ) start [2025-04-25 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983265', 'tblTempUsageDetail_20' ) end [2025-04-25 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983265', 'tblTempVendorCDR_20' ) start [2025-04-25 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983265', 'tblTempVendorCDR_20' ) end [2025-04-25 00:27:17] Production.INFO: ProcessCDR(1,14983265,1,1,2) [2025-04-25 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983265', 'tblTempUsageDetail_20' ) start [2025-04-25 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983265', 'tblTempUsageDetail_20' ) end [2025-04-25 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:27:21] Production.INFO: ==32587== Releasing lock... [2025-04-25 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:28:06 [end_date_ymd] => 2025-04-25 00:28:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:28:06' and `end` < '2025-04-25 00: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-04-25 00:28:18] Production.INFO: count ==423 [2025-04-25 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:28:06 - End Time 2025-04-25 00:28:06 [2025-04-25 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983270', 'tblTempUsageDetail_20' ) start [2025-04-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983270', 'tblTempUsageDetail_20' ) end [2025-04-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983270', 'tblTempVendorCDR_20' ) start [2025-04-25 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983270', 'tblTempVendorCDR_20' ) end [2025-04-25 00:28:18] Production.INFO: ProcessCDR(1,14983270,1,1,2) [2025-04-25 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983270', 'tblTempUsageDetail_20' ) start [2025-04-25 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983270', 'tblTempUsageDetail_20' ) end [2025-04-25 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:28:22] Production.INFO: ==32661== Releasing lock... [2025-04-25 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:29:05 [end_date_ymd] => 2025-04-25 00:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:29:05' and `end` < '2025-04-25 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-04-25 00:29:18] Production.INFO: count ==420 [2025-04-25 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:29:05 - End Time 2025-04-25 00:29:05 [2025-04-25 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983275', 'tblTempUsageDetail_20' ) start [2025-04-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983275', 'tblTempUsageDetail_20' ) end [2025-04-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983275', 'tblTempVendorCDR_20' ) start [2025-04-25 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983275', 'tblTempVendorCDR_20' ) end [2025-04-25 00:29:18] Production.INFO: ProcessCDR(1,14983275,1,1,2) [2025-04-25 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983275', 'tblTempUsageDetail_20' ) start [2025-04-25 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983275', 'tblTempUsageDetail_20' ) end [2025-04-25 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:29:21] Production.INFO: ==32734== Releasing lock... [2025-04-25 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:30:06 [end_date_ymd] => 2025-04-25 00:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:30:06' and `end` < '2025-04-25 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-04-25 00:30:19] Production.INFO: count ==428 [2025-04-25 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:30:06 - End Time 2025-04-25 00:30:06 [2025-04-25 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983280', 'tblTempUsageDetail_20' ) start [2025-04-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983280', 'tblTempUsageDetail_20' ) end [2025-04-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983280', 'tblTempVendorCDR_20' ) start [2025-04-25 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983280', 'tblTempVendorCDR_20' ) end [2025-04-25 00:30:19] Production.INFO: ProcessCDR(1,14983280,1,1,2) [2025-04-25 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983280', 'tblTempUsageDetail_20' ) start [2025-04-25 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983280', 'tblTempUsageDetail_20' ) end [2025-04-25 00:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:30:24] Production.INFO: ==361== Releasing lock... [2025-04-25 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:31:05 [end_date_ymd] => 2025-04-25 00:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:31:05' and `end` < '2025-04-25 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-04-25 00:31:17] Production.INFO: count ==436 [2025-04-25 00:31:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:31:05 - End Time 2025-04-25 00:31:05 [2025-04-25 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983286', 'tblTempUsageDetail_20' ) start [2025-04-25 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983286', 'tblTempUsageDetail_20' ) end [2025-04-25 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983286', 'tblTempVendorCDR_20' ) start [2025-04-25 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983286', 'tblTempVendorCDR_20' ) end [2025-04-25 00:31:17] Production.INFO: ProcessCDR(1,14983286,1,1,2) [2025-04-25 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983286', 'tblTempUsageDetail_20' ) start [2025-04-25 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983286', 'tblTempUsageDetail_20' ) end [2025-04-25 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:31:21] Production.INFO: ==434== Releasing lock... [2025-04-25 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:31:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:32:05 [end_date_ymd] => 2025-04-25 00:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:32:05' and `end` < '2025-04-25 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-04-25 00:32:18] Production.INFO: count ==436 [2025-04-25 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:32:05 - End Time 2025-04-25 00:32:05 [2025-04-25 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983291', 'tblTempUsageDetail_20' ) start [2025-04-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983291', 'tblTempUsageDetail_20' ) end [2025-04-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983291', 'tblTempVendorCDR_20' ) start [2025-04-25 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983291', 'tblTempVendorCDR_20' ) end [2025-04-25 00:32:18] Production.INFO: ProcessCDR(1,14983291,1,1,2) [2025-04-25 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983291', 'tblTempUsageDetail_20' ) start [2025-04-25 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983291', 'tblTempUsageDetail_20' ) end [2025-04-25 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:32:21] Production.INFO: ==514== Releasing lock... [2025-04-25 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:32:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:33:05 [end_date_ymd] => 2025-04-25 00:33:05 [RateCDR] => 1 ) [2025-04-25 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:33:05' and `end` < '2025-04-25 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:33:18] Production.INFO: count ==435 [2025-04-25 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:33:05 - End Time 2025-04-25 00:33:05 [2025-04-25 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983296', 'tblTempUsageDetail_20' ) start [2025-04-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983296', 'tblTempUsageDetail_20' ) end [2025-04-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983296', 'tblTempVendorCDR_20' ) start [2025-04-25 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983296', 'tblTempVendorCDR_20' ) end [2025-04-25 00:33:18] Production.INFO: ProcessCDR(1,14983296,1,1,2) [2025-04-25 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983296', 'tblTempUsageDetail_20' ) start [2025-04-25 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983296', 'tblTempUsageDetail_20' ) end [2025-04-25 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:33:21] Production.INFO: ==590== Releasing lock... [2025-04-25 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:34:05 [end_date_ymd] => 2025-04-25 00:34:05 [RateCDR] => 1 ) [2025-04-25 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:34:05' and `end` < '2025-04-25 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:34:18] Production.INFO: count ==437 [2025-04-25 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:34:05 - End Time 2025-04-25 00:34:05 [2025-04-25 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983301', 'tblTempUsageDetail_20' ) start [2025-04-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983301', 'tblTempUsageDetail_20' ) end [2025-04-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983301', 'tblTempVendorCDR_20' ) start [2025-04-25 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983301', 'tblTempVendorCDR_20' ) end [2025-04-25 00:34:18] Production.INFO: ProcessCDR(1,14983301,1,1,2) [2025-04-25 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983301', 'tblTempUsageDetail_20' ) start [2025-04-25 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983301', 'tblTempUsageDetail_20' ) end [2025-04-25 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:34:21] Production.INFO: ==694== Releasing lock... [2025-04-25 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:35:05 [end_date_ymd] => 2025-04-25 00:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:35:05' and `end` < '2025-04-25 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-04-25 00:35:17] Production.INFO: count ==437 [2025-04-25 00:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:35:05 - End Time 2025-04-25 00:35:05 [2025-04-25 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983306', 'tblTempUsageDetail_20' ) start [2025-04-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983306', 'tblTempUsageDetail_20' ) end [2025-04-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983306', 'tblTempVendorCDR_20' ) start [2025-04-25 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983306', 'tblTempVendorCDR_20' ) end [2025-04-25 00:35:17] Production.INFO: ProcessCDR(1,14983306,1,1,2) [2025-04-25 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983306', 'tblTempUsageDetail_20' ) start [2025-04-25 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983306', 'tblTempUsageDetail_20' ) end [2025-04-25 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:35:21] Production.INFO: ==778== Releasing lock... [2025-04-25 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:35:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:36:05 [end_date_ymd] => 2025-04-25 00:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:36:05' and `end` < '2025-04-25 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-04-25 00:36:18] Production.INFO: count ==436 [2025-04-25 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:36:05 - End Time 2025-04-25 00:36:05 [2025-04-25 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983311', 'tblTempUsageDetail_20' ) start [2025-04-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983311', 'tblTempUsageDetail_20' ) end [2025-04-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983311', 'tblTempVendorCDR_20' ) start [2025-04-25 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983311', 'tblTempVendorCDR_20' ) end [2025-04-25 00:36:18] Production.INFO: ProcessCDR(1,14983311,1,1,2) [2025-04-25 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983311', 'tblTempUsageDetail_20' ) start [2025-04-25 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983311', 'tblTempUsageDetail_20' ) end [2025-04-25 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:36:22] Production.INFO: ==850== Releasing lock... [2025-04-25 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:37:05 [end_date_ymd] => 2025-04-25 00:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:37:05' and `end` < '2025-04-25 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-04-25 00:37:17] Production.INFO: count ==436 [2025-04-25 00:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:37:05 - End Time 2025-04-25 00:37:05 [2025-04-25 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983316', 'tblTempUsageDetail_20' ) start [2025-04-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983316', 'tblTempUsageDetail_20' ) end [2025-04-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983316', 'tblTempVendorCDR_20' ) start [2025-04-25 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983316', 'tblTempVendorCDR_20' ) end [2025-04-25 00:37:18] Production.INFO: ProcessCDR(1,14983316,1,1,2) [2025-04-25 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983316', 'tblTempUsageDetail_20' ) start [2025-04-25 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983316', 'tblTempUsageDetail_20' ) end [2025-04-25 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:37:21] Production.INFO: ==931== Releasing lock... [2025-04-25 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:37:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:38:05 [end_date_ymd] => 2025-04-25 00:38:05 [RateCDR] => 1 ) [2025-04-25 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:38:05' and `end` < '2025-04-25 00: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-04-25 00:38:18] Production.INFO: count ==434 [2025-04-25 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:38:05 - End Time 2025-04-25 00:38:05 [2025-04-25 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983321', 'tblTempUsageDetail_20' ) start [2025-04-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983321', 'tblTempUsageDetail_20' ) end [2025-04-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983321', 'tblTempVendorCDR_20' ) start [2025-04-25 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983321', 'tblTempVendorCDR_20' ) end [2025-04-25 00:38:18] Production.INFO: ProcessCDR(1,14983321,1,1,2) [2025-04-25 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983321', 'tblTempUsageDetail_20' ) start [2025-04-25 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983321', 'tblTempUsageDetail_20' ) end [2025-04-25 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:38:21] Production.INFO: ==1005== Releasing lock... [2025-04-25 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:38:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:39:04 [end_date_ymd] => 2025-04-25 00:39:04 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:39:04' and `end` < '2025-04-25 00: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-04-25 00:39:17] Production.INFO: count ==431 [2025-04-25 00:39:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:39:04 - End Time 2025-04-25 00:39:04 [2025-04-25 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983326', 'tblTempUsageDetail_20' ) start [2025-04-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983326', 'tblTempUsageDetail_20' ) end [2025-04-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983326', 'tblTempVendorCDR_20' ) start [2025-04-25 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983326', 'tblTempVendorCDR_20' ) end [2025-04-25 00:39:17] Production.INFO: ProcessCDR(1,14983326,1,1,2) [2025-04-25 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983326', 'tblTempUsageDetail_20' ) start [2025-04-25 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983326', 'tblTempUsageDetail_20' ) end [2025-04-25 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:39:20] Production.INFO: ==1075== Releasing lock... [2025-04-25 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:40:06 [end_date_ymd] => 2025-04-25 00:40:06 [RateCDR] => 1 ) [2025-04-25 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:40:06' and `end` < '2025-04-25 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:40:18] Production.INFO: count ==439 [2025-04-25 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:40:06 - End Time 2025-04-25 00:40:06 [2025-04-25 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983332', 'tblTempUsageDetail_20' ) start [2025-04-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983332', 'tblTempUsageDetail_20' ) end [2025-04-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983332', 'tblTempVendorCDR_20' ) start [2025-04-25 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983332', 'tblTempVendorCDR_20' ) end [2025-04-25 00:40:18] Production.INFO: ProcessCDR(1,14983332,1,1,2) [2025-04-25 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983332', 'tblTempUsageDetail_20' ) start [2025-04-25 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983332', 'tblTempUsageDetail_20' ) end [2025-04-25 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:40:22] Production.INFO: ==1155== Releasing lock... [2025-04-25 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:40:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:41:05 [end_date_ymd] => 2025-04-25 00:41:05 [RateCDR] => 1 ) [2025-04-25 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:41:05' and `end` < '2025-04-25 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:41:18] Production.INFO: count ==444 [2025-04-25 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:41:05 - End Time 2025-04-25 00:41:05 [2025-04-25 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983337', 'tblTempUsageDetail_20' ) start [2025-04-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983337', 'tblTempUsageDetail_20' ) end [2025-04-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983337', 'tblTempVendorCDR_20' ) start [2025-04-25 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983337', 'tblTempVendorCDR_20' ) end [2025-04-25 00:41:18] Production.INFO: ProcessCDR(1,14983337,1,1,2) [2025-04-25 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983337', 'tblTempUsageDetail_20' ) start [2025-04-25 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983337', 'tblTempUsageDetail_20' ) end [2025-04-25 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:41:22] Production.INFO: ==1235== Releasing lock... [2025-04-25 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:41:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:42:05 [end_date_ymd] => 2025-04-25 00:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:42:05' and `end` < '2025-04-25 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-04-25 00:42:17] Production.INFO: count ==444 [2025-04-25 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:42:05 - End Time 2025-04-25 00:42:05 [2025-04-25 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983342', 'tblTempUsageDetail_20' ) start [2025-04-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983342', 'tblTempUsageDetail_20' ) end [2025-04-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983342', 'tblTempVendorCDR_20' ) start [2025-04-25 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983342', 'tblTempVendorCDR_20' ) end [2025-04-25 00:42:18] Production.INFO: ProcessCDR(1,14983342,1,1,2) [2025-04-25 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983342', 'tblTempUsageDetail_20' ) start [2025-04-25 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983342', 'tblTempUsageDetail_20' ) end [2025-04-25 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:42:21] Production.INFO: ==1320== Releasing lock... [2025-04-25 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:43:05 [end_date_ymd] => 2025-04-25 00:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:43:05' and `end` < '2025-04-25 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-04-25 00:43:18] Production.INFO: count ==436 [2025-04-25 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:43:05 - End Time 2025-04-25 00:43:05 [2025-04-25 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983347', 'tblTempUsageDetail_20' ) start [2025-04-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983347', 'tblTempUsageDetail_20' ) end [2025-04-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983347', 'tblTempVendorCDR_20' ) start [2025-04-25 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983347', 'tblTempVendorCDR_20' ) end [2025-04-25 00:43:18] Production.INFO: ProcessCDR(1,14983347,1,1,2) [2025-04-25 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983347', 'tblTempUsageDetail_20' ) start [2025-04-25 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983347', 'tblTempUsageDetail_20' ) end [2025-04-25 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:43:23] Production.INFO: ==1433== Releasing lock... [2025-04-25 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:43:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:44:05 [end_date_ymd] => 2025-04-25 00:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:44:05' and `end` < '2025-04-25 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-04-25 00:44:17] Production.INFO: count ==435 [2025-04-25 00:44:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:44:05 - End Time 2025-04-25 00:44:05 [2025-04-25 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983352', 'tblTempUsageDetail_20' ) start [2025-04-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983352', 'tblTempUsageDetail_20' ) end [2025-04-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983352', 'tblTempVendorCDR_20' ) start [2025-04-25 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983352', 'tblTempVendorCDR_20' ) end [2025-04-25 00:44:17] Production.INFO: ProcessCDR(1,14983352,1,1,2) [2025-04-25 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983352', 'tblTempUsageDetail_20' ) start [2025-04-25 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983352', 'tblTempUsageDetail_20' ) end [2025-04-25 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:44:21] Production.INFO: ==1536== Releasing lock... [2025-04-25 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:45:05 [end_date_ymd] => 2025-04-25 00:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:45:05' and `end` < '2025-04-25 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-04-25 00:45:18] Production.INFO: count ==437 [2025-04-25 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:45:05 - End Time 2025-04-25 00:45:05 [2025-04-25 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983357', 'tblTempUsageDetail_20' ) start [2025-04-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983357', 'tblTempUsageDetail_20' ) end [2025-04-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983357', 'tblTempVendorCDR_20' ) start [2025-04-25 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983357', 'tblTempVendorCDR_20' ) end [2025-04-25 00:45:18] Production.INFO: ProcessCDR(1,14983357,1,1,2) [2025-04-25 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983357', 'tblTempUsageDetail_20' ) start [2025-04-25 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983357', 'tblTempUsageDetail_20' ) end [2025-04-25 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:45:21] Production.INFO: ==1620== Releasing lock... [2025-04-25 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:46:05 [end_date_ymd] => 2025-04-25 00:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:46:05' and `end` < '2025-04-25 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-04-25 00:46:18] Production.INFO: count ==432 [2025-04-25 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:46:05 - End Time 2025-04-25 00:46:05 [2025-04-25 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983362', 'tblTempUsageDetail_20' ) start [2025-04-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983362', 'tblTempUsageDetail_20' ) end [2025-04-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983362', 'tblTempVendorCDR_20' ) start [2025-04-25 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983362', 'tblTempVendorCDR_20' ) end [2025-04-25 00:46:18] Production.INFO: ProcessCDR(1,14983362,1,1,2) [2025-04-25 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983362', 'tblTempUsageDetail_20' ) start [2025-04-25 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983362', 'tblTempUsageDetail_20' ) end [2025-04-25 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:46:21] Production.INFO: ==1693== Releasing lock... [2025-04-25 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:47:05 [end_date_ymd] => 2025-04-25 00:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:47:05' and `end` < '2025-04-25 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-04-25 00:47:18] Production.INFO: count ==431 [2025-04-25 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:47:05 - End Time 2025-04-25 00:47:05 [2025-04-25 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983367', 'tblTempUsageDetail_20' ) start [2025-04-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983367', 'tblTempUsageDetail_20' ) end [2025-04-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983367', 'tblTempVendorCDR_20' ) start [2025-04-25 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983367', 'tblTempVendorCDR_20' ) end [2025-04-25 00:47:18] Production.INFO: ProcessCDR(1,14983367,1,1,2) [2025-04-25 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983367', 'tblTempUsageDetail_20' ) start [2025-04-25 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983367', 'tblTempUsageDetail_20' ) end [2025-04-25 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:47:22] Production.INFO: ==1770== Releasing lock... [2025-04-25 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:48:06 [end_date_ymd] => 2025-04-25 00:48:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:48:06' and `end` < '2025-04-25 00: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-04-25 00:48:19] Production.INFO: count ==428 [2025-04-25 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:48:06 - End Time 2025-04-25 00:48:06 [2025-04-25 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983372', 'tblTempUsageDetail_20' ) start [2025-04-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983372', 'tblTempUsageDetail_20' ) end [2025-04-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983372', 'tblTempVendorCDR_20' ) start [2025-04-25 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983372', 'tblTempVendorCDR_20' ) end [2025-04-25 00:48:19] Production.INFO: ProcessCDR(1,14983372,1,1,2) [2025-04-25 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983372', 'tblTempUsageDetail_20' ) start [2025-04-25 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983372', 'tblTempUsageDetail_20' ) end [2025-04-25 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:48:22] Production.INFO: ==1848== Releasing lock... [2025-04-25 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:49:05 [end_date_ymd] => 2025-04-25 00:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:49:05' and `end` < '2025-04-25 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-04-25 00:49:18] Production.INFO: count ==424 [2025-04-25 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:49:05 - End Time 2025-04-25 00:49:05 [2025-04-25 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983377', 'tblTempUsageDetail_20' ) start [2025-04-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983377', 'tblTempUsageDetail_20' ) end [2025-04-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983377', 'tblTempVendorCDR_20' ) start [2025-04-25 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983377', 'tblTempVendorCDR_20' ) end [2025-04-25 00:49:18] Production.INFO: ProcessCDR(1,14983377,1,1,2) [2025-04-25 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983377', 'tblTempUsageDetail_20' ) start [2025-04-25 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983377', 'tblTempUsageDetail_20' ) end [2025-04-25 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:49:21] Production.INFO: ==1920== Releasing lock... [2025-04-25 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:49:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:50:06 [end_date_ymd] => 2025-04-25 00:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:50:06' and `end` < '2025-04-25 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-04-25 00:50:19] Production.INFO: count ==433 [2025-04-25 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 21:50:06 - End Time 2025-04-25 00:50:06 [2025-04-25 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983383', 'tblTempUsageDetail_20' ) start [2025-04-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983383', 'tblTempUsageDetail_20' ) end [2025-04-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983383', 'tblTempVendorCDR_20' ) start [2025-04-25 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983383', 'tblTempVendorCDR_20' ) end [2025-04-25 00:50:19] Production.INFO: ProcessCDR(1,14983383,1,1,2) [2025-04-25 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983383', 'tblTempUsageDetail_20' ) start [2025-04-25 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983383', 'tblTempUsageDetail_20' ) end [2025-04-25 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:50:24] Production.INFO: ==1998== Releasing lock... [2025-04-25 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:51:05 [end_date_ymd] => 2025-04-25 00:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:51:05' and `end` < '2025-04-25 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-04-25 00:51:18] Production.INFO: count ==437 [2025-04-25 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:51:05 - End Time 2025-04-25 00:51:05 [2025-04-25 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983388', 'tblTempUsageDetail_20' ) start [2025-04-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983388', 'tblTempUsageDetail_20' ) end [2025-04-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983388', 'tblTempVendorCDR_20' ) start [2025-04-25 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983388', 'tblTempVendorCDR_20' ) end [2025-04-25 00:51:18] Production.INFO: ProcessCDR(1,14983388,1,1,2) [2025-04-25 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983388', 'tblTempUsageDetail_20' ) start [2025-04-25 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983388', 'tblTempUsageDetail_20' ) end [2025-04-25 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:51:21] Production.INFO: ==2087== Releasing lock... [2025-04-25 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:51:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:52:05 [end_date_ymd] => 2025-04-25 00:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:52:05' and `end` < '2025-04-25 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-04-25 00:52:18] Production.INFO: count ==434 [2025-04-25 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:52:05 - End Time 2025-04-25 00:52:05 [2025-04-25 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983393', 'tblTempUsageDetail_20' ) start [2025-04-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983393', 'tblTempUsageDetail_20' ) end [2025-04-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983393', 'tblTempVendorCDR_20' ) start [2025-04-25 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983393', 'tblTempVendorCDR_20' ) end [2025-04-25 00:52:18] Production.INFO: ProcessCDR(1,14983393,1,1,2) [2025-04-25 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983393', 'tblTempUsageDetail_20' ) start [2025-04-25 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983393', 'tblTempUsageDetail_20' ) end [2025-04-25 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:52:21] Production.INFO: ==2160== Releasing lock... [2025-04-25 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:53:05 [end_date_ymd] => 2025-04-25 00:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:53:05' and `end` < '2025-04-25 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-04-25 00:53:17] Production.INFO: count ==433 [2025-04-25 00:53:17] Production.ERROR: pbx CDR StartTime 2025-04-24 21:53:05 - End Time 2025-04-25 00:53:05 [2025-04-25 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983398', 'tblTempUsageDetail_20' ) start [2025-04-25 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983398', 'tblTempUsageDetail_20' ) end [2025-04-25 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983398', 'tblTempVendorCDR_20' ) start [2025-04-25 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983398', 'tblTempVendorCDR_20' ) end [2025-04-25 00:53:17] Production.INFO: ProcessCDR(1,14983398,1,1,2) [2025-04-25 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983398', 'tblTempUsageDetail_20' ) start [2025-04-25 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983398', 'tblTempUsageDetail_20' ) end [2025-04-25 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:53:21] Production.INFO: ==2235== Releasing lock... [2025-04-25 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:54:06 [end_date_ymd] => 2025-04-25 00:54:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:54:06' and `end` < '2025-04-25 00: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-04-25 00:54:18] Production.INFO: count ==433 [2025-04-25 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:54:06 - End Time 2025-04-25 00:54:06 [2025-04-25 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983403', 'tblTempUsageDetail_20' ) start [2025-04-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983403', 'tblTempUsageDetail_20' ) end [2025-04-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983403', 'tblTempVendorCDR_20' ) start [2025-04-25 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983403', 'tblTempVendorCDR_20' ) end [2025-04-25 00:54:18] Production.INFO: ProcessCDR(1,14983403,1,1,2) [2025-04-25 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983403', 'tblTempUsageDetail_20' ) start [2025-04-25 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983403', 'tblTempUsageDetail_20' ) end [2025-04-25 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:54:22] Production.INFO: ==2312== Releasing lock... [2025-04-25 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:55:05 [end_date_ymd] => 2025-04-25 00:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:55:05' and `end` < '2025-04-25 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-04-25 00:55:18] Production.INFO: count ==430 [2025-04-25 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:55:05 - End Time 2025-04-25 00:55:05 [2025-04-25 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983408', 'tblTempUsageDetail_20' ) start [2025-04-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983408', 'tblTempUsageDetail_20' ) end [2025-04-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983408', 'tblTempVendorCDR_20' ) start [2025-04-25 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983408', 'tblTempVendorCDR_20' ) end [2025-04-25 00:55:18] Production.INFO: ProcessCDR(1,14983408,1,1,2) [2025-04-25 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983408', 'tblTempUsageDetail_20' ) start [2025-04-25 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983408', 'tblTempUsageDetail_20' ) end [2025-04-25 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:55:21] Production.INFO: ==2392== Releasing lock... [2025-04-25 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:56:05 [end_date_ymd] => 2025-04-25 00:56:05 [RateCDR] => 1 ) [2025-04-25 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:56:05' and `end` < '2025-04-25 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:56:18] Production.INFO: count ==427 [2025-04-25 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:56:05 - End Time 2025-04-25 00:56:05 [2025-04-25 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983413', 'tblTempUsageDetail_20' ) start [2025-04-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983413', 'tblTempUsageDetail_20' ) end [2025-04-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983413', 'tblTempVendorCDR_20' ) start [2025-04-25 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983413', 'tblTempVendorCDR_20' ) end [2025-04-25 00:56:18] Production.INFO: ProcessCDR(1,14983413,1,1,2) [2025-04-25 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983413', 'tblTempUsageDetail_20' ) start [2025-04-25 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983413', 'tblTempUsageDetail_20' ) end [2025-04-25 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:56:21] Production.INFO: ==2468== Releasing lock... [2025-04-25 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:57:06 [end_date_ymd] => 2025-04-25 00:57:06 [RateCDR] => 1 ) [2025-04-25 00: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-04-24 21:57:06' and `end` < '2025-04-25 00: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-04-25 00:57:18] Production.INFO: count ==424 [2025-04-25 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:57:06 - End Time 2025-04-25 00:57:06 [2025-04-25 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983418', 'tblTempUsageDetail_20' ) start [2025-04-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983418', 'tblTempUsageDetail_20' ) end [2025-04-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983418', 'tblTempVendorCDR_20' ) start [2025-04-25 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983418', 'tblTempVendorCDR_20' ) end [2025-04-25 00:57:18] Production.INFO: ProcessCDR(1,14983418,1,1,2) [2025-04-25 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983418', 'tblTempUsageDetail_20' ) start [2025-04-25 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983418', 'tblTempUsageDetail_20' ) end [2025-04-25 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:57:23] Production.INFO: ==2540== Releasing lock... [2025-04-25 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:57:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:58:05 [end_date_ymd] => 2025-04-25 00:58:05 [RateCDR] => 1 ) [2025-04-25 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 21:58:05' and `end` < '2025-04-25 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 00:58:17] Production.INFO: count ==420 [2025-04-25 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:58:05 - End Time 2025-04-25 00:58:05 [2025-04-25 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983423', 'tblTempUsageDetail_20' ) start [2025-04-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983423', 'tblTempUsageDetail_20' ) end [2025-04-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983423', 'tblTempVendorCDR_20' ) start [2025-04-25 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983423', 'tblTempVendorCDR_20' ) end [2025-04-25 00:58:18] Production.INFO: ProcessCDR(1,14983423,1,1,2) [2025-04-25 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983423', 'tblTempUsageDetail_20' ) start [2025-04-25 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983423', 'tblTempUsageDetail_20' ) end [2025-04-25 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:58:21] Production.INFO: ==2656== Releasing lock... [2025-04-25 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 21:59:05 [end_date_ymd] => 2025-04-25 00:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 21:59:05' and `end` < '2025-04-25 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-04-25 00:59:18] Production.INFO: count ==417 [2025-04-25 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 21:59:05 - End Time 2025-04-25 00:59:05 [2025-04-25 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983428', 'tblTempUsageDetail_20' ) start [2025-04-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983428', 'tblTempUsageDetail_20' ) end [2025-04-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983428', 'tblTempVendorCDR_20' ) start [2025-04-25 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983428', 'tblTempVendorCDR_20' ) end [2025-04-25 00:59:18] Production.INFO: ProcessCDR(1,14983428,1,1,2) [2025-04-25 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983428', 'tblTempUsageDetail_20' ) start [2025-04-25 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983428', 'tblTempUsageDetail_20' ) end [2025-04-25 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 00:59:21] Production.INFO: ==2730== Releasing lock... [2025-04-25 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 00:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:00:05 [end_date_ymd] => 2025-04-25 01:00:05 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:00:05' and `end` < '2025-04-25 01: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-04-25 01:00:17] Production.INFO: count ==412 [2025-04-25 01:00:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:00:05 - End Time 2025-04-25 01:00:05 [2025-04-25 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983433', 'tblTempUsageDetail_20' ) start [2025-04-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983433', 'tblTempUsageDetail_20' ) end [2025-04-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983433', 'tblTempVendorCDR_20' ) start [2025-04-25 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983433', 'tblTempVendorCDR_20' ) end [2025-04-25 01:00:18] Production.INFO: ProcessCDR(1,14983433,1,1,2) [2025-04-25 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983433', 'tblTempUsageDetail_20' ) start [2025-04-25 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983433', 'tblTempUsageDetail_20' ) end [2025-04-25 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:00:21] Production.INFO: ==2806== Releasing lock... [2025-04-25 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:00:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:01:05 [end_date_ymd] => 2025-04-25 01:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:01:05' and `end` < '2025-04-25 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-04-25 01:01:18] Production.INFO: count ==406 [2025-04-25 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:01:05 - End Time 2025-04-25 01:01:05 [2025-04-25 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983439', 'tblTempUsageDetail_20' ) start [2025-04-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983439', 'tblTempUsageDetail_20' ) end [2025-04-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983439', 'tblTempVendorCDR_20' ) start [2025-04-25 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983439', 'tblTempVendorCDR_20' ) end [2025-04-25 01:01:18] Production.INFO: ProcessCDR(1,14983439,1,1,2) [2025-04-25 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983439', 'tblTempUsageDetail_20' ) start [2025-04-25 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983439', 'tblTempUsageDetail_20' ) end [2025-04-25 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:01:21] Production.INFO: ==2900== Releasing lock... [2025-04-25 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:02:05 [end_date_ymd] => 2025-04-25 01:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:02:05' and `end` < '2025-04-25 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-04-25 01:02:18] Production.INFO: count ==407 [2025-04-25 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:02:05 - End Time 2025-04-25 01:02:05 [2025-04-25 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983444', 'tblTempUsageDetail_20' ) start [2025-04-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983444', 'tblTempUsageDetail_20' ) end [2025-04-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983444', 'tblTempVendorCDR_20' ) start [2025-04-25 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983444', 'tblTempVendorCDR_20' ) end [2025-04-25 01:02:18] Production.INFO: ProcessCDR(1,14983444,1,1,2) [2025-04-25 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983444', 'tblTempUsageDetail_20' ) start [2025-04-25 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983444', 'tblTempUsageDetail_20' ) end [2025-04-25 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:02:21] Production.INFO: ==2978== Releasing lock... [2025-04-25 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:03:05 [end_date_ymd] => 2025-04-25 01:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:03:05' and `end` < '2025-04-25 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-04-25 01:03:18] Production.INFO: count ==404 [2025-04-25 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:03:05 - End Time 2025-04-25 01:03:05 [2025-04-25 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983449', 'tblTempUsageDetail_20' ) start [2025-04-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983449', 'tblTempUsageDetail_20' ) end [2025-04-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983449', 'tblTempVendorCDR_20' ) start [2025-04-25 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983449', 'tblTempVendorCDR_20' ) end [2025-04-25 01:03:18] Production.INFO: ProcessCDR(1,14983449,1,1,2) [2025-04-25 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983449', 'tblTempUsageDetail_20' ) start [2025-04-25 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983449', 'tblTempUsageDetail_20' ) end [2025-04-25 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:03:22] Production.INFO: ==3054== Releasing lock... [2025-04-25 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:04:06 [end_date_ymd] => 2025-04-25 01:04:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:04:06' and `end` < '2025-04-25 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-04-25 01:04:18] Production.INFO: count ==403 [2025-04-25 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:04:06 - End Time 2025-04-25 01:04:06 [2025-04-25 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983454', 'tblTempUsageDetail_20' ) start [2025-04-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983454', 'tblTempUsageDetail_20' ) end [2025-04-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983454', 'tblTempVendorCDR_20' ) start [2025-04-25 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983454', 'tblTempVendorCDR_20' ) end [2025-04-25 01:04:18] Production.INFO: ProcessCDR(1,14983454,1,1,2) [2025-04-25 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983454', 'tblTempUsageDetail_20' ) start [2025-04-25 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983454', 'tblTempUsageDetail_20' ) end [2025-04-25 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:04:22] Production.INFO: ==3134== Releasing lock... [2025-04-25 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:05:05 [end_date_ymd] => 2025-04-25 01:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:05:05' and `end` < '2025-04-25 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-04-25 01:05:18] Production.INFO: count ==397 [2025-04-25 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:05:05 - End Time 2025-04-25 01:05:05 [2025-04-25 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983459', 'tblTempUsageDetail_20' ) start [2025-04-25 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983459', 'tblTempUsageDetail_20' ) end [2025-04-25 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983459', 'tblTempVendorCDR_20' ) start [2025-04-25 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983459', 'tblTempVendorCDR_20' ) end [2025-04-25 01:05:18] Production.INFO: ProcessCDR(1,14983459,1,1,2) [2025-04-25 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983459', 'tblTempUsageDetail_20' ) start [2025-04-25 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983459', 'tblTempUsageDetail_20' ) end [2025-04-25 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:05:21] Production.INFO: ==3214== Releasing lock... [2025-04-25 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:06:05 [end_date_ymd] => 2025-04-25 01:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:06:05' and `end` < '2025-04-25 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-04-25 01:06:18] Production.INFO: count ==397 [2025-04-25 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:06:05 - End Time 2025-04-25 01:06:05 [2025-04-25 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983464', 'tblTempUsageDetail_20' ) start [2025-04-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983464', 'tblTempUsageDetail_20' ) end [2025-04-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983464', 'tblTempVendorCDR_20' ) start [2025-04-25 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983464', 'tblTempVendorCDR_20' ) end [2025-04-25 01:06:18] Production.INFO: ProcessCDR(1,14983464,1,1,2) [2025-04-25 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983464', 'tblTempUsageDetail_20' ) start [2025-04-25 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983464', 'tblTempUsageDetail_20' ) end [2025-04-25 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:06:21] Production.INFO: ==3296== Releasing lock... [2025-04-25 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:07:05 [end_date_ymd] => 2025-04-25 01:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:07:05' and `end` < '2025-04-25 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-04-25 01:07:18] Production.INFO: count ==397 [2025-04-25 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:07:05 - End Time 2025-04-25 01:07:05 [2025-04-25 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983469', 'tblTempUsageDetail_20' ) start [2025-04-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983469', 'tblTempUsageDetail_20' ) end [2025-04-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983469', 'tblTempVendorCDR_20' ) start [2025-04-25 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983469', 'tblTempVendorCDR_20' ) end [2025-04-25 01:07:18] Production.INFO: ProcessCDR(1,14983469,1,1,2) [2025-04-25 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983469', 'tblTempUsageDetail_20' ) start [2025-04-25 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983469', 'tblTempUsageDetail_20' ) end [2025-04-25 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:07:21] Production.INFO: ==3370== Releasing lock... [2025-04-25 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:08:05 [end_date_ymd] => 2025-04-25 01:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:08:05' and `end` < '2025-04-25 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-04-25 01:08:18] Production.INFO: count ==396 [2025-04-25 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:08:05 - End Time 2025-04-25 01:08:05 [2025-04-25 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983474', 'tblTempUsageDetail_20' ) start [2025-04-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983474', 'tblTempUsageDetail_20' ) end [2025-04-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983474', 'tblTempVendorCDR_20' ) start [2025-04-25 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983474', 'tblTempVendorCDR_20' ) end [2025-04-25 01:08:18] Production.INFO: ProcessCDR(1,14983474,1,1,2) [2025-04-25 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983474', 'tblTempUsageDetail_20' ) start [2025-04-25 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983474', 'tblTempUsageDetail_20' ) end [2025-04-25 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:08:22] Production.INFO: ==3449== Releasing lock... [2025-04-25 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:09:05 [end_date_ymd] => 2025-04-25 01:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:09:05' and `end` < '2025-04-25 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-04-25 01:09:17] Production.INFO: count ==395 [2025-04-25 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:09:05 - End Time 2025-04-25 01:09:05 [2025-04-25 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983479', 'tblTempUsageDetail_20' ) start [2025-04-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983479', 'tblTempUsageDetail_20' ) end [2025-04-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983479', 'tblTempVendorCDR_20' ) start [2025-04-25 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983479', 'tblTempVendorCDR_20' ) end [2025-04-25 01:09:18] Production.INFO: ProcessCDR(1,14983479,1,1,2) [2025-04-25 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983479', 'tblTempUsageDetail_20' ) start [2025-04-25 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983479', 'tblTempUsageDetail_20' ) end [2025-04-25 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:09:21] Production.INFO: ==3525== Releasing lock... [2025-04-25 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:10:05 [end_date_ymd] => 2025-04-25 01:10:05 [RateCDR] => 1 ) [2025-04-25 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:10:05' and `end` < '2025-04-25 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:10:18] Production.INFO: count ==400 [2025-04-25 01:10:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:10:05 - End Time 2025-04-25 01:10:05 [2025-04-25 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983485', 'tblTempUsageDetail_20' ) start [2025-04-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983485', 'tblTempUsageDetail_20' ) end [2025-04-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983485', 'tblTempVendorCDR_20' ) start [2025-04-25 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983485', 'tblTempVendorCDR_20' ) end [2025-04-25 01:10:18] Production.INFO: ProcessCDR(1,14983485,1,1,2) [2025-04-25 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983485', 'tblTempUsageDetail_20' ) start [2025-04-25 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983485', 'tblTempUsageDetail_20' ) end [2025-04-25 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:10:22] Production.INFO: ==3606== Releasing lock... [2025-04-25 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:11:05 [end_date_ymd] => 2025-04-25 01:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:11:05' and `end` < '2025-04-25 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-04-25 01:11:18] Production.INFO: count ==413 [2025-04-25 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:11:05 - End Time 2025-04-25 01:11:05 [2025-04-25 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983490', 'tblTempUsageDetail_20' ) start [2025-04-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983490', 'tblTempUsageDetail_20' ) end [2025-04-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983490', 'tblTempVendorCDR_20' ) start [2025-04-25 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983490', 'tblTempVendorCDR_20' ) end [2025-04-25 01:11:18] Production.INFO: ProcessCDR(1,14983490,1,1,2) [2025-04-25 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983490', 'tblTempUsageDetail_20' ) start [2025-04-25 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983490', 'tblTempUsageDetail_20' ) end [2025-04-25 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:11:21] Production.INFO: ==3685== Releasing lock... [2025-04-25 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:12:04 [end_date_ymd] => 2025-04-25 01:12:04 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:12:04' and `end` < '2025-04-25 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:12:17] Production.INFO: count ==412 [2025-04-25 01:12:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:12:04 - End Time 2025-04-25 01:12:04 [2025-04-25 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983495', 'tblTempUsageDetail_20' ) start [2025-04-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983495', 'tblTempUsageDetail_20' ) end [2025-04-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983495', 'tblTempVendorCDR_20' ) start [2025-04-25 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983495', 'tblTempVendorCDR_20' ) end [2025-04-25 01:12:17] Production.INFO: ProcessCDR(1,14983495,1,1,2) [2025-04-25 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983495', 'tblTempUsageDetail_20' ) start [2025-04-25 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983495', 'tblTempUsageDetail_20' ) end [2025-04-25 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:12:21] Production.INFO: ==3756== Releasing lock... [2025-04-25 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:12:21] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:13:06 [end_date_ymd] => 2025-04-25 01:13:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:13:06' and `end` < '2025-04-25 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-04-25 01:13:18] Production.INFO: count ==409 [2025-04-25 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:13:06 - End Time 2025-04-25 01:13:06 [2025-04-25 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983500', 'tblTempUsageDetail_20' ) start [2025-04-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983500', 'tblTempUsageDetail_20' ) end [2025-04-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983500', 'tblTempVendorCDR_20' ) start [2025-04-25 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983500', 'tblTempVendorCDR_20' ) end [2025-04-25 01:13:18] Production.INFO: ProcessCDR(1,14983500,1,1,2) [2025-04-25 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983500', 'tblTempUsageDetail_20' ) start [2025-04-25 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983500', 'tblTempUsageDetail_20' ) end [2025-04-25 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:13:22] Production.INFO: ==3872== Releasing lock... [2025-04-25 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:14:05 [end_date_ymd] => 2025-04-25 01:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:14:05' and `end` < '2025-04-25 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-04-25 01:14:17] Production.INFO: count ==407 [2025-04-25 01:14:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:14:05 - End Time 2025-04-25 01:14:05 [2025-04-25 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983505', 'tblTempUsageDetail_20' ) start [2025-04-25 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983505', 'tblTempUsageDetail_20' ) end [2025-04-25 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983505', 'tblTempVendorCDR_20' ) start [2025-04-25 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983505', 'tblTempVendorCDR_20' ) end [2025-04-25 01:14:17] Production.INFO: ProcessCDR(1,14983505,1,1,2) [2025-04-25 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983505', 'tblTempUsageDetail_20' ) start [2025-04-25 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983505', 'tblTempUsageDetail_20' ) end [2025-04-25 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:14:21] Production.INFO: ==3950== Releasing lock... [2025-04-25 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:15:05 [end_date_ymd] => 2025-04-25 01:15:05 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:15:05' and `end` < '2025-04-25 01: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-04-25 01:15:18] Production.INFO: count ==409 [2025-04-25 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:15:05 - End Time 2025-04-25 01:15:05 [2025-04-25 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983510', 'tblTempUsageDetail_20' ) start [2025-04-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983510', 'tblTempUsageDetail_20' ) end [2025-04-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983510', 'tblTempVendorCDR_20' ) start [2025-04-25 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983510', 'tblTempVendorCDR_20' ) end [2025-04-25 01:15:18] Production.INFO: ProcessCDR(1,14983510,1,1,2) [2025-04-25 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983510', 'tblTempUsageDetail_20' ) start [2025-04-25 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983510', 'tblTempUsageDetail_20' ) end [2025-04-25 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:15:23] Production.INFO: ==4026== Releasing lock... [2025-04-25 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:15:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:16:04 [end_date_ymd] => 2025-04-25 01:16:04 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:16:04' and `end` < '2025-04-25 01: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-04-25 01:16:17] Production.INFO: count ==408 [2025-04-25 01:16:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:16:04 - End Time 2025-04-25 01:16:04 [2025-04-25 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983515', 'tblTempUsageDetail_20' ) start [2025-04-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983515', 'tblTempUsageDetail_20' ) end [2025-04-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983515', 'tblTempVendorCDR_20' ) start [2025-04-25 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983515', 'tblTempVendorCDR_20' ) end [2025-04-25 01:16:17] Production.INFO: ProcessCDR(1,14983515,1,1,2) [2025-04-25 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983515', 'tblTempUsageDetail_20' ) start [2025-04-25 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983515', 'tblTempUsageDetail_20' ) end [2025-04-25 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:16:20] Production.INFO: ==4103== Releasing lock... [2025-04-25 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:16:20] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:17:05 [end_date_ymd] => 2025-04-25 01:17:05 [RateCDR] => 1 ) [2025-04-25 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:17:05' and `end` < '2025-04-25 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:17:18] Production.INFO: count ==406 [2025-04-25 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:17:05 - End Time 2025-04-25 01:17:05 [2025-04-25 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983520', 'tblTempUsageDetail_20' ) start [2025-04-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983520', 'tblTempUsageDetail_20' ) end [2025-04-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983520', 'tblTempVendorCDR_20' ) start [2025-04-25 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983520', 'tblTempVendorCDR_20' ) end [2025-04-25 01:17:18] Production.INFO: ProcessCDR(1,14983520,1,1,2) [2025-04-25 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983520', 'tblTempUsageDetail_20' ) start [2025-04-25 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983520', 'tblTempUsageDetail_20' ) end [2025-04-25 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:17:21] Production.INFO: ==4176== Releasing lock... [2025-04-25 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:18:06 [end_date_ymd] => 2025-04-25 01:18:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:18:06' and `end` < '2025-04-25 01: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-04-25 01:18:18] Production.INFO: count ==404 [2025-04-25 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:18:06 - End Time 2025-04-25 01:18:06 [2025-04-25 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983525', 'tblTempUsageDetail_20' ) start [2025-04-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983525', 'tblTempUsageDetail_20' ) end [2025-04-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983525', 'tblTempVendorCDR_20' ) start [2025-04-25 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983525', 'tblTempVendorCDR_20' ) end [2025-04-25 01:18:18] Production.INFO: ProcessCDR(1,14983525,1,1,2) [2025-04-25 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983525', 'tblTempUsageDetail_20' ) start [2025-04-25 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983525', 'tblTempUsageDetail_20' ) end [2025-04-25 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:18:22] Production.INFO: ==4268== Releasing lock... [2025-04-25 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:19:05 [end_date_ymd] => 2025-04-25 01:19:05 [RateCDR] => 1 ) [2025-04-25 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:19:05' and `end` < '2025-04-25 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:19:17] Production.INFO: count ==405 [2025-04-25 01:19:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:19:05 - End Time 2025-04-25 01:19:05 [2025-04-25 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983530', 'tblTempUsageDetail_20' ) start [2025-04-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983530', 'tblTempUsageDetail_20' ) end [2025-04-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983530', 'tblTempVendorCDR_20' ) start [2025-04-25 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983530', 'tblTempVendorCDR_20' ) end [2025-04-25 01:19:17] Production.INFO: ProcessCDR(1,14983530,1,1,2) [2025-04-25 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983530', 'tblTempUsageDetail_20' ) start [2025-04-25 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983530', 'tblTempUsageDetail_20' ) end [2025-04-25 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:19:21] Production.INFO: ==4342== Releasing lock... [2025-04-25 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:20:06 [end_date_ymd] => 2025-04-25 01:20:06 [RateCDR] => 1 ) [2025-04-25 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:20:06' and `end` < '2025-04-25 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:20:19] Production.INFO: count ==399 [2025-04-25 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 22:20:06 - End Time 2025-04-25 01:20:06 [2025-04-25 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983535', 'tblTempUsageDetail_20' ) start [2025-04-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983535', 'tblTempUsageDetail_20' ) end [2025-04-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983535', 'tblTempVendorCDR_20' ) start [2025-04-25 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983535', 'tblTempVendorCDR_20' ) end [2025-04-25 01:20:19] Production.INFO: ProcessCDR(1,14983535,1,1,2) [2025-04-25 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983535', 'tblTempUsageDetail_20' ) start [2025-04-25 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983535', 'tblTempUsageDetail_20' ) end [2025-04-25 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:20:22] Production.INFO: ==4423== Releasing lock... [2025-04-25 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:20:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:21:05 [end_date_ymd] => 2025-04-25 01:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:21:05' and `end` < '2025-04-25 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-04-25 01:21:18] Production.INFO: count ==395 [2025-04-25 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:21:05 - End Time 2025-04-25 01:21:05 [2025-04-25 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983541', 'tblTempUsageDetail_20' ) start [2025-04-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983541', 'tblTempUsageDetail_20' ) end [2025-04-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983541', 'tblTempVendorCDR_20' ) start [2025-04-25 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983541', 'tblTempVendorCDR_20' ) end [2025-04-25 01:21:18] Production.INFO: ProcessCDR(1,14983541,1,1,2) [2025-04-25 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983541', 'tblTempUsageDetail_20' ) start [2025-04-25 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983541', 'tblTempUsageDetail_20' ) end [2025-04-25 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:21:21] Production.INFO: ==4501== Releasing lock... [2025-04-25 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:22:05 [end_date_ymd] => 2025-04-25 01:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:22:05' and `end` < '2025-04-25 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-04-25 01:22:18] Production.INFO: count ==392 [2025-04-25 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:22:05 - End Time 2025-04-25 01:22:05 [2025-04-25 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983546', 'tblTempUsageDetail_20' ) start [2025-04-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983546', 'tblTempUsageDetail_20' ) end [2025-04-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983546', 'tblTempVendorCDR_20' ) start [2025-04-25 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983546', 'tblTempVendorCDR_20' ) end [2025-04-25 01:22:18] Production.INFO: ProcessCDR(1,14983546,1,1,2) [2025-04-25 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983546', 'tblTempUsageDetail_20' ) start [2025-04-25 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983546', 'tblTempUsageDetail_20' ) end [2025-04-25 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:22:22] Production.INFO: ==4593== Releasing lock... [2025-04-25 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:22:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:23:05 [end_date_ymd] => 2025-04-25 01:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:23:05' and `end` < '2025-04-25 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-04-25 01:23:17] Production.INFO: count ==390 [2025-04-25 01:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:23:05 - End Time 2025-04-25 01:23:05 [2025-04-25 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983551', 'tblTempUsageDetail_20' ) start [2025-04-25 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983551', 'tblTempUsageDetail_20' ) end [2025-04-25 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983551', 'tblTempVendorCDR_20' ) start [2025-04-25 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983551', 'tblTempVendorCDR_20' ) end [2025-04-25 01:23:17] Production.INFO: ProcessCDR(1,14983551,1,1,2) [2025-04-25 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983551', 'tblTempUsageDetail_20' ) start [2025-04-25 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983551', 'tblTempUsageDetail_20' ) end [2025-04-25 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:23:21] Production.INFO: ==4670== Releasing lock... [2025-04-25 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:24:05 [end_date_ymd] => 2025-04-25 01:24:05 [RateCDR] => 1 ) [2025-04-25 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:24:05' and `end` < '2025-04-25 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:24:18] Production.INFO: count ==387 [2025-04-25 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:24:05 - End Time 2025-04-25 01:24:05 [2025-04-25 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983556', 'tblTempUsageDetail_20' ) start [2025-04-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983556', 'tblTempUsageDetail_20' ) end [2025-04-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983556', 'tblTempVendorCDR_20' ) start [2025-04-25 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983556', 'tblTempVendorCDR_20' ) end [2025-04-25 01:24:18] Production.INFO: ProcessCDR(1,14983556,1,1,2) [2025-04-25 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983556', 'tblTempUsageDetail_20' ) start [2025-04-25 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983556', 'tblTempUsageDetail_20' ) end [2025-04-25 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:24:22] Production.INFO: ==4747== Releasing lock... [2025-04-25 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:25:05 [end_date_ymd] => 2025-04-25 01:25:05 [RateCDR] => 1 ) [2025-04-25 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:25:05' and `end` < '2025-04-25 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:25:17] Production.INFO: count ==387 [2025-04-25 01:25:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:25:05 - End Time 2025-04-25 01:25:05 [2025-04-25 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983561', 'tblTempUsageDetail_20' ) start [2025-04-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983561', 'tblTempUsageDetail_20' ) end [2025-04-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983561', 'tblTempVendorCDR_20' ) start [2025-04-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983561', 'tblTempVendorCDR_20' ) end [2025-04-25 01:25:17] Production.INFO: ProcessCDR(1,14983561,1,1,2) [2025-04-25 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983561', 'tblTempUsageDetail_20' ) start [2025-04-25 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983561', 'tblTempUsageDetail_20' ) end [2025-04-25 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:25:21] Production.INFO: ==4825== Releasing lock... [2025-04-25 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:26:05 [end_date_ymd] => 2025-04-25 01:26:05 [RateCDR] => 1 ) [2025-04-25 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:26:05' and `end` < '2025-04-25 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:26:18] Production.INFO: count ==384 [2025-04-25 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:26:05 - End Time 2025-04-25 01:26:05 [2025-04-25 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983566', 'tblTempUsageDetail_20' ) start [2025-04-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983566', 'tblTempUsageDetail_20' ) end [2025-04-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983566', 'tblTempVendorCDR_20' ) start [2025-04-25 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983566', 'tblTempVendorCDR_20' ) end [2025-04-25 01:26:18] Production.INFO: ProcessCDR(1,14983566,1,1,2) [2025-04-25 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983566', 'tblTempUsageDetail_20' ) start [2025-04-25 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983566', 'tblTempUsageDetail_20' ) end [2025-04-25 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:26:21] Production.INFO: ==4908== Releasing lock... [2025-04-25 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:27:05 [end_date_ymd] => 2025-04-25 01:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:27:05' and `end` < '2025-04-25 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-04-25 01:27:18] Production.INFO: count ==385 [2025-04-25 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:27:05 - End Time 2025-04-25 01:27:05 [2025-04-25 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983571', 'tblTempUsageDetail_20' ) start [2025-04-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983571', 'tblTempUsageDetail_20' ) end [2025-04-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983571', 'tblTempVendorCDR_20' ) start [2025-04-25 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983571', 'tblTempVendorCDR_20' ) end [2025-04-25 01:27:18] Production.INFO: ProcessCDR(1,14983571,1,1,2) [2025-04-25 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983571', 'tblTempUsageDetail_20' ) start [2025-04-25 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983571', 'tblTempUsageDetail_20' ) end [2025-04-25 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:27:21] Production.INFO: ==4994== Releasing lock... [2025-04-25 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:28:06 [end_date_ymd] => 2025-04-25 01:28:06 [RateCDR] => 1 ) [2025-04-25 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:28:06' and `end` < '2025-04-25 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:28:18] Production.INFO: count ==382 [2025-04-25 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:28:06 - End Time 2025-04-25 01:28:06 [2025-04-25 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983576', 'tblTempUsageDetail_20' ) start [2025-04-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983576', 'tblTempUsageDetail_20' ) end [2025-04-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983576', 'tblTempVendorCDR_20' ) start [2025-04-25 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983576', 'tblTempVendorCDR_20' ) end [2025-04-25 01:28:18] Production.INFO: ProcessCDR(1,14983576,1,1,2) [2025-04-25 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983576', 'tblTempUsageDetail_20' ) start [2025-04-25 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983576', 'tblTempUsageDetail_20' ) end [2025-04-25 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:28:22] Production.INFO: ==5069== Releasing lock... [2025-04-25 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:29:05 [end_date_ymd] => 2025-04-25 01:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:29:05' and `end` < '2025-04-25 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-04-25 01:29:18] Production.INFO: count ==378 [2025-04-25 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:29:05 - End Time 2025-04-25 01:29:05 [2025-04-25 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983581', 'tblTempUsageDetail_20' ) start [2025-04-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983581', 'tblTempUsageDetail_20' ) end [2025-04-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983581', 'tblTempVendorCDR_20' ) start [2025-04-25 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983581', 'tblTempVendorCDR_20' ) end [2025-04-25 01:29:18] Production.INFO: ProcessCDR(1,14983581,1,1,2) [2025-04-25 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983581', 'tblTempUsageDetail_20' ) start [2025-04-25 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983581', 'tblTempUsageDetail_20' ) end [2025-04-25 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:29:21] Production.INFO: ==5184== Releasing lock... [2025-04-25 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:30:06 [end_date_ymd] => 2025-04-25 01:30:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:30:06' and `end` < '2025-04-25 01: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-04-25 01:30:18] Production.INFO: count ==383 [2025-04-25 01:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:30:06 - End Time 2025-04-25 01:30:06 [2025-04-25 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983586', 'tblTempUsageDetail_20' ) start [2025-04-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983586', 'tblTempUsageDetail_20' ) end [2025-04-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983586', 'tblTempVendorCDR_20' ) start [2025-04-25 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983586', 'tblTempVendorCDR_20' ) end [2025-04-25 01:30:18] Production.INFO: ProcessCDR(1,14983586,1,1,2) [2025-04-25 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983586', 'tblTempUsageDetail_20' ) start [2025-04-25 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983586', 'tblTempUsageDetail_20' ) end [2025-04-25 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:30:22] Production.INFO: ==5260== Releasing lock... [2025-04-25 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:31:05 [end_date_ymd] => 2025-04-25 01:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:31:05' and `end` < '2025-04-25 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-04-25 01:31:18] Production.INFO: count ==401 [2025-04-25 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:31:05 - End Time 2025-04-25 01:31:05 [2025-04-25 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983592', 'tblTempUsageDetail_20' ) start [2025-04-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983592', 'tblTempUsageDetail_20' ) end [2025-04-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983592', 'tblTempVendorCDR_20' ) start [2025-04-25 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983592', 'tblTempVendorCDR_20' ) end [2025-04-25 01:31:18] Production.INFO: ProcessCDR(1,14983592,1,1,2) [2025-04-25 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983592', 'tblTempUsageDetail_20' ) start [2025-04-25 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983592', 'tblTempUsageDetail_20' ) end [2025-04-25 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:31:23] Production.INFO: ==5339== Releasing lock... [2025-04-25 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:31:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:32:05 [end_date_ymd] => 2025-04-25 01:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:32:05' and `end` < '2025-04-25 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-04-25 01:32:17] Production.INFO: count ==404 [2025-04-25 01:32:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:32:05 - End Time 2025-04-25 01:32:05 [2025-04-25 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983597', 'tblTempUsageDetail_20' ) start [2025-04-25 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983597', 'tblTempUsageDetail_20' ) end [2025-04-25 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983597', 'tblTempVendorCDR_20' ) start [2025-04-25 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983597', 'tblTempVendorCDR_20' ) end [2025-04-25 01:32:17] Production.INFO: ProcessCDR(1,14983597,1,1,2) [2025-04-25 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983597', 'tblTempUsageDetail_20' ) start [2025-04-25 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983597', 'tblTempUsageDetail_20' ) end [2025-04-25 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:32:20] Production.INFO: ==5422== Releasing lock... [2025-04-25 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:32:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:33:05 [end_date_ymd] => 2025-04-25 01:33:05 [RateCDR] => 1 ) [2025-04-25 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:33:05' and `end` < '2025-04-25 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:33:18] Production.INFO: count ==404 [2025-04-25 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:33:05 - End Time 2025-04-25 01:33:05 [2025-04-25 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983602', 'tblTempUsageDetail_20' ) start [2025-04-25 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983602', 'tblTempUsageDetail_20' ) end [2025-04-25 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983602', 'tblTempVendorCDR_20' ) start [2025-04-25 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983602', 'tblTempVendorCDR_20' ) end [2025-04-25 01:33:18] Production.INFO: ProcessCDR(1,14983602,1,1,2) [2025-04-25 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983602', 'tblTempUsageDetail_20' ) start [2025-04-25 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983602', 'tblTempUsageDetail_20' ) end [2025-04-25 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:33:21] Production.INFO: ==5495== Releasing lock... [2025-04-25 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:34:05 [end_date_ymd] => 2025-04-25 01:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:34:05' and `end` < '2025-04-25 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-04-25 01:34:17] Production.INFO: count ==401 [2025-04-25 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:34:05 - End Time 2025-04-25 01:34:05 [2025-04-25 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983607', 'tblTempUsageDetail_20' ) start [2025-04-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983607', 'tblTempUsageDetail_20' ) end [2025-04-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983607', 'tblTempVendorCDR_20' ) start [2025-04-25 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983607', 'tblTempVendorCDR_20' ) end [2025-04-25 01:34:18] Production.INFO: ProcessCDR(1,14983607,1,1,2) [2025-04-25 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983607', 'tblTempUsageDetail_20' ) start [2025-04-25 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983607', 'tblTempUsageDetail_20' ) end [2025-04-25 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:34:22] Production.INFO: ==5609== Releasing lock... [2025-04-25 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:35:05 [end_date_ymd] => 2025-04-25 01:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:35:05' and `end` < '2025-04-25 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-04-25 01:35:18] Production.INFO: count ==401 [2025-04-25 01:35:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:35:05 - End Time 2025-04-25 01:35:05 [2025-04-25 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983612', 'tblTempUsageDetail_20' ) start [2025-04-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983612', 'tblTempUsageDetail_20' ) end [2025-04-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983612', 'tblTempVendorCDR_20' ) start [2025-04-25 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983612', 'tblTempVendorCDR_20' ) end [2025-04-25 01:35:18] Production.INFO: ProcessCDR(1,14983612,1,1,2) [2025-04-25 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983612', 'tblTempUsageDetail_20' ) start [2025-04-25 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983612', 'tblTempUsageDetail_20' ) end [2025-04-25 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:35:21] Production.INFO: ==5706== Releasing lock... [2025-04-25 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:36:06 [end_date_ymd] => 2025-04-25 01:36:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:36:06' and `end` < '2025-04-25 01: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-04-25 01:36:19] Production.INFO: count ==395 [2025-04-25 01:36:19] Production.ERROR: pbx CDR StartTime 2025-04-24 22:36:06 - End Time 2025-04-25 01:36:06 [2025-04-25 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983617', 'tblTempUsageDetail_20' ) start [2025-04-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983617', 'tblTempUsageDetail_20' ) end [2025-04-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983617', 'tblTempVendorCDR_20' ) start [2025-04-25 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983617', 'tblTempVendorCDR_20' ) end [2025-04-25 01:36:19] Production.INFO: ProcessCDR(1,14983617,1,1,2) [2025-04-25 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983617', 'tblTempUsageDetail_20' ) start [2025-04-25 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983617', 'tblTempUsageDetail_20' ) end [2025-04-25 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:36:22] Production.INFO: ==5811== Releasing lock... [2025-04-25 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:36:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:37:05 [end_date_ymd] => 2025-04-25 01:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:37:05' and `end` < '2025-04-25 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-04-25 01:37:17] Production.INFO: count ==394 [2025-04-25 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:37:05 - End Time 2025-04-25 01:37:05 [2025-04-25 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983622', 'tblTempUsageDetail_20' ) start [2025-04-25 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983622', 'tblTempUsageDetail_20' ) end [2025-04-25 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983622', 'tblTempVendorCDR_20' ) start [2025-04-25 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983622', 'tblTempVendorCDR_20' ) end [2025-04-25 01:37:17] Production.INFO: ProcessCDR(1,14983622,1,1,2) [2025-04-25 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983622', 'tblTempUsageDetail_20' ) start [2025-04-25 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983622', 'tblTempUsageDetail_20' ) end [2025-04-25 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:37:21] Production.INFO: ==5906== Releasing lock... [2025-04-25 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:38:05 [end_date_ymd] => 2025-04-25 01:38:05 [RateCDR] => 1 ) [2025-04-25 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:38:05' and `end` < '2025-04-25 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:38:18] Production.INFO: count ==391 [2025-04-25 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:38:05 - End Time 2025-04-25 01:38:05 [2025-04-25 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983627', 'tblTempUsageDetail_20' ) start [2025-04-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983627', 'tblTempUsageDetail_20' ) end [2025-04-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983627', 'tblTempVendorCDR_20' ) start [2025-04-25 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983627', 'tblTempVendorCDR_20' ) end [2025-04-25 01:38:18] Production.INFO: ProcessCDR(1,14983627,1,1,2) [2025-04-25 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983627', 'tblTempUsageDetail_20' ) start [2025-04-25 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983627', 'tblTempUsageDetail_20' ) end [2025-04-25 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:38:21] Production.INFO: ==6013== Releasing lock... [2025-04-25 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:39:05 [end_date_ymd] => 2025-04-25 01:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:39:05' and `end` < '2025-04-25 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-04-25 01:39:18] Production.INFO: count ==393 [2025-04-25 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:39:05 - End Time 2025-04-25 01:39:05 [2025-04-25 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983632', 'tblTempUsageDetail_20' ) start [2025-04-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983632', 'tblTempUsageDetail_20' ) end [2025-04-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983632', 'tblTempVendorCDR_20' ) start [2025-04-25 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983632', 'tblTempVendorCDR_20' ) end [2025-04-25 01:39:18] Production.INFO: ProcessCDR(1,14983632,1,1,2) [2025-04-25 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983632', 'tblTempUsageDetail_20' ) start [2025-04-25 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983632', 'tblTempUsageDetail_20' ) end [2025-04-25 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:39:21] Production.INFO: ==6108== Releasing lock... [2025-04-25 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:40:07 [end_date_ymd] => 2025-04-25 01:40:07 [RateCDR] => 1 ) [2025-04-25 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:40:07' and `end` < '2025-04-25 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:40:19] Production.INFO: count ==397 [2025-04-25 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-24 22:40:07 - End Time 2025-04-25 01:40:07 [2025-04-25 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983638', 'tblTempUsageDetail_20' ) start [2025-04-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983638', 'tblTempUsageDetail_20' ) end [2025-04-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983638', 'tblTempVendorCDR_20' ) start [2025-04-25 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983638', 'tblTempVendorCDR_20' ) end [2025-04-25 01:40:19] Production.INFO: ProcessCDR(1,14983638,1,1,2) [2025-04-25 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983638', 'tblTempUsageDetail_20' ) start [2025-04-25 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983638', 'tblTempUsageDetail_20' ) end [2025-04-25 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:40:23] Production.INFO: ==6212== Releasing lock... [2025-04-25 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:41:05 [end_date_ymd] => 2025-04-25 01:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:41:05' and `end` < '2025-04-25 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-04-25 01:41:18] Production.INFO: count ==395 [2025-04-25 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:41:05 - End Time 2025-04-25 01:41:05 [2025-04-25 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983643', 'tblTempUsageDetail_20' ) start [2025-04-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983643', 'tblTempUsageDetail_20' ) end [2025-04-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983643', 'tblTempVendorCDR_20' ) start [2025-04-25 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983643', 'tblTempVendorCDR_20' ) end [2025-04-25 01:41:18] Production.INFO: ProcessCDR(1,14983643,1,1,2) [2025-04-25 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983643', 'tblTempUsageDetail_20' ) start [2025-04-25 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983643', 'tblTempUsageDetail_20' ) end [2025-04-25 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:41:21] Production.INFO: ==6309== Releasing lock... [2025-04-25 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:42:05 [end_date_ymd] => 2025-04-25 01:42:05 [RateCDR] => 1 ) [2025-04-25 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:42:05' and `end` < '2025-04-25 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:42:18] Production.INFO: count ==397 [2025-04-25 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:42:05 - End Time 2025-04-25 01:42:05 [2025-04-25 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983648', 'tblTempUsageDetail_20' ) start [2025-04-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983648', 'tblTempUsageDetail_20' ) end [2025-04-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983648', 'tblTempVendorCDR_20' ) start [2025-04-25 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983648', 'tblTempVendorCDR_20' ) end [2025-04-25 01:42:18] Production.INFO: ProcessCDR(1,14983648,1,1,2) [2025-04-25 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983648', 'tblTempUsageDetail_20' ) start [2025-04-25 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983648', 'tblTempUsageDetail_20' ) end [2025-04-25 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:42:21] Production.INFO: ==6406== Releasing lock... [2025-04-25 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:43:04 [end_date_ymd] => 2025-04-25 01:43:04 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:43:04' and `end` < '2025-04-25 01: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-04-25 01:43:17] Production.INFO: count ==396 [2025-04-25 01:43:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:43:04 - End Time 2025-04-25 01:43:04 [2025-04-25 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983653', 'tblTempUsageDetail_20' ) start [2025-04-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983653', 'tblTempUsageDetail_20' ) end [2025-04-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983653', 'tblTempVendorCDR_20' ) start [2025-04-25 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983653', 'tblTempVendorCDR_20' ) end [2025-04-25 01:43:17] Production.INFO: ProcessCDR(1,14983653,1,1,2) [2025-04-25 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983653', 'tblTempUsageDetail_20' ) start [2025-04-25 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983653', 'tblTempUsageDetail_20' ) end [2025-04-25 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:43:20] Production.INFO: ==6504== Releasing lock... [2025-04-25 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:43:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:44:05 [end_date_ymd] => 2025-04-25 01:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:44:05' and `end` < '2025-04-25 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-04-25 01:44:18] Production.INFO: count ==395 [2025-04-25 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:44:05 - End Time 2025-04-25 01:44:05 [2025-04-25 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983658', 'tblTempUsageDetail_20' ) start [2025-04-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983658', 'tblTempUsageDetail_20' ) end [2025-04-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983658', 'tblTempVendorCDR_20' ) start [2025-04-25 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983658', 'tblTempVendorCDR_20' ) end [2025-04-25 01:44:18] Production.INFO: ProcessCDR(1,14983658,1,1,2) [2025-04-25 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983658', 'tblTempUsageDetail_20' ) start [2025-04-25 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983658', 'tblTempUsageDetail_20' ) end [2025-04-25 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:44:22] Production.INFO: ==6649== Releasing lock... [2025-04-25 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:45:06 [end_date_ymd] => 2025-04-25 01:45:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:45:06' and `end` < '2025-04-25 01: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-04-25 01:45:18] Production.INFO: count ==394 [2025-04-25 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:45:06 - End Time 2025-04-25 01:45:06 [2025-04-25 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983663', 'tblTempUsageDetail_20' ) start [2025-04-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983663', 'tblTempUsageDetail_20' ) end [2025-04-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983663', 'tblTempVendorCDR_20' ) start [2025-04-25 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983663', 'tblTempVendorCDR_20' ) end [2025-04-25 01:45:18] Production.INFO: ProcessCDR(1,14983663,1,1,2) [2025-04-25 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983663', 'tblTempUsageDetail_20' ) start [2025-04-25 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983663', 'tblTempUsageDetail_20' ) end [2025-04-25 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:45:22] Production.INFO: ==6755== Releasing lock... [2025-04-25 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:45:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:46:05 [end_date_ymd] => 2025-04-25 01:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:46:05' and `end` < '2025-04-25 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-04-25 01:46:17] Production.INFO: count ==393 [2025-04-25 01:46:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:46:05 - End Time 2025-04-25 01:46:05 [2025-04-25 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983668', 'tblTempUsageDetail_20' ) start [2025-04-25 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983668', 'tblTempUsageDetail_20' ) end [2025-04-25 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983668', 'tblTempVendorCDR_20' ) start [2025-04-25 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983668', 'tblTempVendorCDR_20' ) end [2025-04-25 01:46:17] Production.INFO: ProcessCDR(1,14983668,1,1,2) [2025-04-25 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983668', 'tblTempUsageDetail_20' ) start [2025-04-25 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983668', 'tblTempUsageDetail_20' ) end [2025-04-25 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:46:21] Production.INFO: ==6849== Releasing lock... [2025-04-25 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:47:06 [end_date_ymd] => 2025-04-25 01:47:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:47:06' and `end` < '2025-04-25 01: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-04-25 01:47:18] Production.INFO: count ==392 [2025-04-25 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:47:06 - End Time 2025-04-25 01:47:06 [2025-04-25 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983673', 'tblTempUsageDetail_20' ) start [2025-04-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983673', 'tblTempUsageDetail_20' ) end [2025-04-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983673', 'tblTempVendorCDR_20' ) start [2025-04-25 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983673', 'tblTempVendorCDR_20' ) end [2025-04-25 01:47:18] Production.INFO: ProcessCDR(1,14983673,1,1,2) [2025-04-25 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983673', 'tblTempUsageDetail_20' ) start [2025-04-25 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983673', 'tblTempUsageDetail_20' ) end [2025-04-25 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:47:22] Production.INFO: ==6950== Releasing lock... [2025-04-25 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:48:05 [end_date_ymd] => 2025-04-25 01:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:48:05' and `end` < '2025-04-25 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-04-25 01:48:17] Production.INFO: count ==392 [2025-04-25 01:48:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:48:05 - End Time 2025-04-25 01:48:05 [2025-04-25 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983678', 'tblTempUsageDetail_20' ) start [2025-04-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983678', 'tblTempUsageDetail_20' ) end [2025-04-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983678', 'tblTempVendorCDR_20' ) start [2025-04-25 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983678', 'tblTempVendorCDR_20' ) end [2025-04-25 01:48:17] Production.INFO: ProcessCDR(1,14983678,1,1,2) [2025-04-25 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983678', 'tblTempUsageDetail_20' ) start [2025-04-25 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983678', 'tblTempUsageDetail_20' ) end [2025-04-25 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:48:21] Production.INFO: ==7045== Releasing lock... [2025-04-25 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:49:05 [end_date_ymd] => 2025-04-25 01:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:49:05' and `end` < '2025-04-25 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-04-25 01:49:18] Production.INFO: count ==390 [2025-04-25 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:49:05 - End Time 2025-04-25 01:49:05 [2025-04-25 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983683', 'tblTempUsageDetail_20' ) start [2025-04-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983683', 'tblTempUsageDetail_20' ) end [2025-04-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983683', 'tblTempVendorCDR_20' ) start [2025-04-25 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983683', 'tblTempVendorCDR_20' ) end [2025-04-25 01:49:18] Production.INFO: ProcessCDR(1,14983683,1,1,2) [2025-04-25 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983683', 'tblTempUsageDetail_20' ) start [2025-04-25 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983683', 'tblTempUsageDetail_20' ) end [2025-04-25 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:49:22] Production.INFO: ==7150== Releasing lock... [2025-04-25 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:50:05 [end_date_ymd] => 2025-04-25 01:50:05 [RateCDR] => 1 ) [2025-04-25 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:50:05' and `end` < '2025-04-25 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:50:18] Production.INFO: count ==397 [2025-04-25 01:50:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:50:05 - End Time 2025-04-25 01:50:05 [2025-04-25 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983688', 'tblTempUsageDetail_20' ) start [2025-04-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983688', 'tblTempUsageDetail_20' ) end [2025-04-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983688', 'tblTempVendorCDR_20' ) start [2025-04-25 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983688', 'tblTempVendorCDR_20' ) end [2025-04-25 01:50:18] Production.INFO: ProcessCDR(1,14983688,1,1,2) [2025-04-25 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983688', 'tblTempUsageDetail_20' ) start [2025-04-25 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983688', 'tblTempUsageDetail_20' ) end [2025-04-25 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:50:22] Production.INFO: ==7251== Releasing lock... [2025-04-25 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:51:05 [end_date_ymd] => 2025-04-25 01:51:05 [RateCDR] => 1 ) [2025-04-25 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:51:05' and `end` < '2025-04-25 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:51:18] Production.INFO: count ==401 [2025-04-25 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:51:05 - End Time 2025-04-25 01:51:05 [2025-04-25 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983694', 'tblTempUsageDetail_20' ) start [2025-04-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983694', 'tblTempUsageDetail_20' ) end [2025-04-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983694', 'tblTempVendorCDR_20' ) start [2025-04-25 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983694', 'tblTempVendorCDR_20' ) end [2025-04-25 01:51:18] Production.INFO: ProcessCDR(1,14983694,1,1,2) [2025-04-25 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983694', 'tblTempUsageDetail_20' ) start [2025-04-25 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983694', 'tblTempUsageDetail_20' ) end [2025-04-25 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:51:21] Production.INFO: ==7346== Releasing lock... [2025-04-25 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:52:05 [end_date_ymd] => 2025-04-25 01:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:52:05' and `end` < '2025-04-25 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-04-25 01:52:17] Production.INFO: count ==401 [2025-04-25 01:52:17] Production.ERROR: pbx CDR StartTime 2025-04-24 22:52:05 - End Time 2025-04-25 01:52:05 [2025-04-25 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983699', 'tblTempUsageDetail_20' ) start [2025-04-25 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983699', 'tblTempUsageDetail_20' ) end [2025-04-25 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983699', 'tblTempVendorCDR_20' ) start [2025-04-25 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983699', 'tblTempVendorCDR_20' ) end [2025-04-25 01:52:17] Production.INFO: ProcessCDR(1,14983699,1,1,2) [2025-04-25 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983699', 'tblTempUsageDetail_20' ) start [2025-04-25 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983699', 'tblTempUsageDetail_20' ) end [2025-04-25 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:52:20] Production.INFO: ==7446== Releasing lock... [2025-04-25 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:52:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:53:05 [end_date_ymd] => 2025-04-25 01:53:05 [RateCDR] => 1 ) [2025-04-25 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 22:53:05' and `end` < '2025-04-25 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 01:53:18] Production.INFO: count ==399 [2025-04-25 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:53:05 - End Time 2025-04-25 01:53:05 [2025-04-25 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983704', 'tblTempUsageDetail_20' ) start [2025-04-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983704', 'tblTempUsageDetail_20' ) end [2025-04-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983704', 'tblTempVendorCDR_20' ) start [2025-04-25 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983704', 'tblTempVendorCDR_20' ) end [2025-04-25 01:53:18] Production.INFO: ProcessCDR(1,14983704,1,1,2) [2025-04-25 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983704', 'tblTempUsageDetail_20' ) start [2025-04-25 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983704', 'tblTempUsageDetail_20' ) end [2025-04-25 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:53:21] Production.INFO: ==7545== Releasing lock... [2025-04-25 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:54:06 [end_date_ymd] => 2025-04-25 01:54:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:54:06' and `end` < '2025-04-25 01: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-04-25 01:54:18] Production.INFO: count ==397 [2025-04-25 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:54:06 - End Time 2025-04-25 01:54:06 [2025-04-25 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983709', 'tblTempUsageDetail_20' ) start [2025-04-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983709', 'tblTempUsageDetail_20' ) end [2025-04-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983709', 'tblTempVendorCDR_20' ) start [2025-04-25 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983709', 'tblTempVendorCDR_20' ) end [2025-04-25 01:54:18] Production.INFO: ProcessCDR(1,14983709,1,1,2) [2025-04-25 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983709', 'tblTempUsageDetail_20' ) start [2025-04-25 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983709', 'tblTempUsageDetail_20' ) end [2025-04-25 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:54:22] Production.INFO: ==7660== Releasing lock... [2025-04-25 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:55:05 [end_date_ymd] => 2025-04-25 01:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:55:05' and `end` < '2025-04-25 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-04-25 01:55:18] Production.INFO: count ==398 [2025-04-25 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:55:05 - End Time 2025-04-25 01:55:05 [2025-04-25 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983714', 'tblTempUsageDetail_20' ) start [2025-04-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983714', 'tblTempUsageDetail_20' ) end [2025-04-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983714', 'tblTempVendorCDR_20' ) start [2025-04-25 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983714', 'tblTempVendorCDR_20' ) end [2025-04-25 01:55:18] Production.INFO: ProcessCDR(1,14983714,1,1,2) [2025-04-25 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983714', 'tblTempUsageDetail_20' ) start [2025-04-25 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983714', 'tblTempUsageDetail_20' ) end [2025-04-25 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:55:21] Production.INFO: ==7740== Releasing lock... [2025-04-25 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:56:05 [end_date_ymd] => 2025-04-25 01:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:56:05' and `end` < '2025-04-25 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-04-25 01:56:18] Production.INFO: count ==397 [2025-04-25 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:56:05 - End Time 2025-04-25 01:56:05 [2025-04-25 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983719', 'tblTempUsageDetail_20' ) start [2025-04-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983719', 'tblTempUsageDetail_20' ) end [2025-04-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983719', 'tblTempVendorCDR_20' ) start [2025-04-25 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983719', 'tblTempVendorCDR_20' ) end [2025-04-25 01:56:18] Production.INFO: ProcessCDR(1,14983719,1,1,2) [2025-04-25 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983719', 'tblTempUsageDetail_20' ) start [2025-04-25 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983719', 'tblTempUsageDetail_20' ) end [2025-04-25 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:56:23] Production.INFO: ==7810== Releasing lock... [2025-04-25 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:56:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:57:05 [end_date_ymd] => 2025-04-25 01:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:57:05' and `end` < '2025-04-25 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-04-25 01:57:18] Production.INFO: count ==398 [2025-04-25 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:57:05 - End Time 2025-04-25 01:57:05 [2025-04-25 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983724', 'tblTempUsageDetail_20' ) start [2025-04-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983724', 'tblTempUsageDetail_20' ) end [2025-04-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983724', 'tblTempVendorCDR_20' ) start [2025-04-25 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983724', 'tblTempVendorCDR_20' ) end [2025-04-25 01:57:18] Production.INFO: ProcessCDR(1,14983724,1,1,2) [2025-04-25 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983724', 'tblTempUsageDetail_20' ) start [2025-04-25 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983724', 'tblTempUsageDetail_20' ) end [2025-04-25 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:57:21] Production.INFO: ==7885== Releasing lock... [2025-04-25 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:58:06 [end_date_ymd] => 2025-04-25 01:58:06 [RateCDR] => 1 ) [2025-04-25 01: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-04-24 22:58:06' and `end` < '2025-04-25 01: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-04-25 01:58:18] Production.INFO: count ==398 [2025-04-25 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:58:06 - End Time 2025-04-25 01:58:06 [2025-04-25 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983729', 'tblTempUsageDetail_20' ) start [2025-04-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983729', 'tblTempUsageDetail_20' ) end [2025-04-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983729', 'tblTempVendorCDR_20' ) start [2025-04-25 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983729', 'tblTempVendorCDR_20' ) end [2025-04-25 01:58:18] Production.INFO: ProcessCDR(1,14983729,1,1,2) [2025-04-25 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983729', 'tblTempUsageDetail_20' ) start [2025-04-25 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983729', 'tblTempUsageDetail_20' ) end [2025-04-25 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:58:22] Production.INFO: ==7959== Releasing lock... [2025-04-25 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 22:59:05 [end_date_ymd] => 2025-04-25 01:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 22:59:05' and `end` < '2025-04-25 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-04-25 01:59:17] Production.INFO: count ==398 [2025-04-25 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 22:59:05 - End Time 2025-04-25 01:59:05 [2025-04-25 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983734', 'tblTempUsageDetail_20' ) start [2025-04-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983734', 'tblTempUsageDetail_20' ) end [2025-04-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983734', 'tblTempVendorCDR_20' ) start [2025-04-25 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983734', 'tblTempVendorCDR_20' ) end [2025-04-25 01:59:18] Production.INFO: ProcessCDR(1,14983734,1,1,2) [2025-04-25 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983734', 'tblTempUsageDetail_20' ) start [2025-04-25 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983734', 'tblTempUsageDetail_20' ) end [2025-04-25 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 01:59:21] Production.INFO: ==8039== Releasing lock... [2025-04-25 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 01:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:00:06 [end_date_ymd] => 2025-04-25 02:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:00:06' and `end` < '2025-04-25 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-04-25 02:00:19] Production.INFO: count ==407 [2025-04-25 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:00:06 - End Time 2025-04-25 02:00:06 [2025-04-25 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983739', 'tblTempUsageDetail_20' ) start [2025-04-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983739', 'tblTempUsageDetail_20' ) end [2025-04-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983739', 'tblTempVendorCDR_20' ) start [2025-04-25 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983739', 'tblTempVendorCDR_20' ) end [2025-04-25 02:00:19] Production.INFO: ProcessCDR(1,14983739,1,1,2) [2025-04-25 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983739', 'tblTempUsageDetail_20' ) start [2025-04-25 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983739', 'tblTempUsageDetail_20' ) end [2025-04-25 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:00:22] Production.INFO: ==8162== Releasing lock... [2025-04-25 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:00:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:01:05 [end_date_ymd] => 2025-04-25 02:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:01:05' and `end` < '2025-04-25 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-04-25 02:01:17] Production.INFO: count ==405 [2025-04-25 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:01:05 - End Time 2025-04-25 02:01:05 [2025-04-25 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983745', 'tblTempUsageDetail_20' ) start [2025-04-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983745', 'tblTempUsageDetail_20' ) end [2025-04-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983745', 'tblTempVendorCDR_20' ) start [2025-04-25 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983745', 'tblTempVendorCDR_20' ) end [2025-04-25 02:01:18] Production.INFO: ProcessCDR(1,14983745,1,1,2) [2025-04-25 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983745', 'tblTempUsageDetail_20' ) start [2025-04-25 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983745', 'tblTempUsageDetail_20' ) end [2025-04-25 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:01:21] Production.INFO: ==8252== Releasing lock... [2025-04-25 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:02:06 [end_date_ymd] => 2025-04-25 02:02:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:02:06' and `end` < '2025-04-25 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-04-25 02:02:18] Production.INFO: count ==405 [2025-04-25 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:02:06 - End Time 2025-04-25 02:02:06 [2025-04-25 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983750', 'tblTempUsageDetail_20' ) start [2025-04-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983750', 'tblTempUsageDetail_20' ) end [2025-04-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983750', 'tblTempVendorCDR_20' ) start [2025-04-25 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983750', 'tblTempVendorCDR_20' ) end [2025-04-25 02:02:19] Production.INFO: ProcessCDR(1,14983750,1,1,2) [2025-04-25 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983750', 'tblTempUsageDetail_20' ) start [2025-04-25 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983750', 'tblTempUsageDetail_20' ) end [2025-04-25 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:02:22] Production.INFO: ==8414== Releasing lock... [2025-04-25 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:02:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:03:04 [end_date_ymd] => 2025-04-25 02:03:04 [RateCDR] => 1 ) [2025-04-25 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:03:04' and `end` < '2025-04-25 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:03:17] Production.INFO: count ==407 [2025-04-25 02:03:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:03:04 - End Time 2025-04-25 02:03:04 [2025-04-25 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983755', 'tblTempUsageDetail_20' ) start [2025-04-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983755', 'tblTempUsageDetail_20' ) end [2025-04-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983755', 'tblTempVendorCDR_20' ) start [2025-04-25 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983755', 'tblTempVendorCDR_20' ) end [2025-04-25 02:03:17] Production.INFO: ProcessCDR(1,14983755,1,1,2) [2025-04-25 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983755', 'tblTempUsageDetail_20' ) start [2025-04-25 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983755', 'tblTempUsageDetail_20' ) end [2025-04-25 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:03:20] Production.INFO: ==8488== Releasing lock... [2025-04-25 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:03:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:04:05 [end_date_ymd] => 2025-04-25 02:04:05 [RateCDR] => 1 ) [2025-04-25 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:04:05' and `end` < '2025-04-25 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:04:18] Production.INFO: count ==405 [2025-04-25 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:04:05 - End Time 2025-04-25 02:04:05 [2025-04-25 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983760', 'tblTempUsageDetail_20' ) start [2025-04-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983760', 'tblTempUsageDetail_20' ) end [2025-04-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983760', 'tblTempVendorCDR_20' ) start [2025-04-25 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983760', 'tblTempVendorCDR_20' ) end [2025-04-25 02:04:18] Production.INFO: ProcessCDR(1,14983760,1,1,2) [2025-04-25 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983760', 'tblTempUsageDetail_20' ) start [2025-04-25 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983760', 'tblTempUsageDetail_20' ) end [2025-04-25 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:04:21] Production.INFO: ==8562== Releasing lock... [2025-04-25 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:05:05 [end_date_ymd] => 2025-04-25 02:05:05 [RateCDR] => 1 ) [2025-04-25 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:05:05' and `end` < '2025-04-25 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:05:17] Production.INFO: count ==403 [2025-04-25 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:05:05 - End Time 2025-04-25 02:05:05 [2025-04-25 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983765', 'tblTempUsageDetail_20' ) start [2025-04-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983765', 'tblTempUsageDetail_20' ) end [2025-04-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983765', 'tblTempVendorCDR_20' ) start [2025-04-25 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983765', 'tblTempVendorCDR_20' ) end [2025-04-25 02:05:18] Production.INFO: ProcessCDR(1,14983765,1,1,2) [2025-04-25 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983765', 'tblTempUsageDetail_20' ) start [2025-04-25 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983765', 'tblTempUsageDetail_20' ) end [2025-04-25 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:05:21] Production.INFO: ==8636== Releasing lock... [2025-04-25 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:06:05 [end_date_ymd] => 2025-04-25 02:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:06:05' and `end` < '2025-04-25 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-04-25 02:06:18] Production.INFO: count ==405 [2025-04-25 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:06:05 - End Time 2025-04-25 02:06:05 [2025-04-25 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983770', 'tblTempUsageDetail_20' ) start [2025-04-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983770', 'tblTempUsageDetail_20' ) end [2025-04-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983770', 'tblTempVendorCDR_20' ) start [2025-04-25 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983770', 'tblTempVendorCDR_20' ) end [2025-04-25 02:06:18] Production.INFO: ProcessCDR(1,14983770,1,1,2) [2025-04-25 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983770', 'tblTempUsageDetail_20' ) start [2025-04-25 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983770', 'tblTempUsageDetail_20' ) end [2025-04-25 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:06:21] Production.INFO: ==8709== Releasing lock... [2025-04-25 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:07:05 [end_date_ymd] => 2025-04-25 02:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:07:05' and `end` < '2025-04-25 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-04-25 02:07:18] Production.INFO: count ==405 [2025-04-25 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:07:05 - End Time 2025-04-25 02:07:05 [2025-04-25 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983775', 'tblTempUsageDetail_20' ) start [2025-04-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983775', 'tblTempUsageDetail_20' ) end [2025-04-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983775', 'tblTempVendorCDR_20' ) start [2025-04-25 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983775', 'tblTempVendorCDR_20' ) end [2025-04-25 02:07:18] Production.INFO: ProcessCDR(1,14983775,1,1,2) [2025-04-25 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983775', 'tblTempUsageDetail_20' ) start [2025-04-25 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983775', 'tblTempUsageDetail_20' ) end [2025-04-25 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:07:22] Production.INFO: ==8787== Releasing lock... [2025-04-25 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:08:05 [end_date_ymd] => 2025-04-25 02:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:08:05' and `end` < '2025-04-25 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-04-25 02:08:18] Production.INFO: count ==404 [2025-04-25 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:08:05 - End Time 2025-04-25 02:08:05 [2025-04-25 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983780', 'tblTempUsageDetail_20' ) start [2025-04-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983780', 'tblTempUsageDetail_20' ) end [2025-04-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983780', 'tblTempVendorCDR_20' ) start [2025-04-25 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983780', 'tblTempVendorCDR_20' ) end [2025-04-25 02:08:18] Production.INFO: ProcessCDR(1,14983780,1,1,2) [2025-04-25 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983780', 'tblTempUsageDetail_20' ) start [2025-04-25 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983780', 'tblTempUsageDetail_20' ) end [2025-04-25 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:08:22] Production.INFO: ==8863== Releasing lock... [2025-04-25 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:09:05 [end_date_ymd] => 2025-04-25 02:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:09:05' and `end` < '2025-04-25 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-04-25 02:09:18] Production.INFO: count ==403 [2025-04-25 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:09:05 - End Time 2025-04-25 02:09:05 [2025-04-25 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983785', 'tblTempUsageDetail_20' ) start [2025-04-25 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983785', 'tblTempUsageDetail_20' ) end [2025-04-25 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983785', 'tblTempVendorCDR_20' ) start [2025-04-25 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983785', 'tblTempVendorCDR_20' ) end [2025-04-25 02:09:18] Production.INFO: ProcessCDR(1,14983785,1,1,2) [2025-04-25 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983785', 'tblTempUsageDetail_20' ) start [2025-04-25 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983785', 'tblTempUsageDetail_20' ) end [2025-04-25 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:09:21] Production.INFO: ==8938== Releasing lock... [2025-04-25 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:10:06 [end_date_ymd] => 2025-04-25 02:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:10:06' and `end` < '2025-04-25 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-04-25 02:10:19] Production.INFO: count ==410 [2025-04-25 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:10:06 - End Time 2025-04-25 02:10:06 [2025-04-25 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983791', 'tblTempUsageDetail_20' ) start [2025-04-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983791', 'tblTempUsageDetail_20' ) end [2025-04-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983791', 'tblTempVendorCDR_20' ) start [2025-04-25 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983791', 'tblTempVendorCDR_20' ) end [2025-04-25 02:10:19] Production.INFO: ProcessCDR(1,14983791,1,1,2) [2025-04-25 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983791', 'tblTempUsageDetail_20' ) start [2025-04-25 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983791', 'tblTempUsageDetail_20' ) end [2025-04-25 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:10:22] Production.INFO: ==9015== Releasing lock... [2025-04-25 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:11:06 [end_date_ymd] => 2025-04-25 02:11:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:11:06' and `end` < '2025-04-25 02: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-04-25 02:11:19] Production.INFO: count ==414 [2025-04-25 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:11:06 - End Time 2025-04-25 02:11:06 [2025-04-25 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983796', 'tblTempUsageDetail_20' ) start [2025-04-25 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983796', 'tblTempUsageDetail_20' ) end [2025-04-25 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983796', 'tblTempVendorCDR_20' ) start [2025-04-25 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983796', 'tblTempVendorCDR_20' ) end [2025-04-25 02:11:19] Production.INFO: ProcessCDR(1,14983796,1,1,2) [2025-04-25 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983796', 'tblTempUsageDetail_20' ) start [2025-04-25 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983796', 'tblTempUsageDetail_20' ) end [2025-04-25 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:11:22] Production.INFO: ==9089== Releasing lock... [2025-04-25 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:11:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:12:05 [end_date_ymd] => 2025-04-25 02:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:12:05' and `end` < '2025-04-25 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-04-25 02:12:18] Production.INFO: count ==414 [2025-04-25 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:12:05 - End Time 2025-04-25 02:12:05 [2025-04-25 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983801', 'tblTempUsageDetail_20' ) start [2025-04-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983801', 'tblTempUsageDetail_20' ) end [2025-04-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983801', 'tblTempVendorCDR_20' ) start [2025-04-25 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983801', 'tblTempVendorCDR_20' ) end [2025-04-25 02:12:18] Production.INFO: ProcessCDR(1,14983801,1,1,2) [2025-04-25 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983801', 'tblTempUsageDetail_20' ) start [2025-04-25 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983801', 'tblTempUsageDetail_20' ) end [2025-04-25 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:12:21] Production.INFO: ==9167== Releasing lock... [2025-04-25 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:13:06 [end_date_ymd] => 2025-04-25 02:13:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:13:06' and `end` < '2025-04-25 02: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-04-25 02:13:18] Production.INFO: count ==413 [2025-04-25 02:13:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:13:06 - End Time 2025-04-25 02:13:06 [2025-04-25 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983806', 'tblTempUsageDetail_20' ) start [2025-04-25 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983806', 'tblTempUsageDetail_20' ) end [2025-04-25 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983806', 'tblTempVendorCDR_20' ) start [2025-04-25 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983806', 'tblTempVendorCDR_20' ) end [2025-04-25 02:13:19] Production.INFO: ProcessCDR(1,14983806,1,1,2) [2025-04-25 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983806', 'tblTempUsageDetail_20' ) start [2025-04-25 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983806', 'tblTempUsageDetail_20' ) end [2025-04-25 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:13:22] Production.INFO: ==9251== Releasing lock... [2025-04-25 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:13:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:14:05 [end_date_ymd] => 2025-04-25 02:14:05 [RateCDR] => 1 ) [2025-04-25 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:14:05' and `end` < '2025-04-25 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:14:17] Production.INFO: count ==414 [2025-04-25 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:14:05 - End Time 2025-04-25 02:14:05 [2025-04-25 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983811', 'tblTempUsageDetail_20' ) start [2025-04-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983811', 'tblTempUsageDetail_20' ) end [2025-04-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983811', 'tblTempVendorCDR_20' ) start [2025-04-25 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983811', 'tblTempVendorCDR_20' ) end [2025-04-25 02:14:18] Production.INFO: ProcessCDR(1,14983811,1,1,2) [2025-04-25 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983811', 'tblTempUsageDetail_20' ) start [2025-04-25 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983811', 'tblTempUsageDetail_20' ) end [2025-04-25 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:14:21] Production.INFO: ==9343== Releasing lock... [2025-04-25 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:15:05 [end_date_ymd] => 2025-04-25 02:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:15:05' and `end` < '2025-04-25 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-04-25 02:15:18] Production.INFO: count ==411 [2025-04-25 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:15:05 - End Time 2025-04-25 02:15:05 [2025-04-25 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983816', 'tblTempUsageDetail_20' ) start [2025-04-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983816', 'tblTempUsageDetail_20' ) end [2025-04-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983816', 'tblTempVendorCDR_20' ) start [2025-04-25 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983816', 'tblTempVendorCDR_20' ) end [2025-04-25 02:15:18] Production.INFO: ProcessCDR(1,14983816,1,1,2) [2025-04-25 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983816', 'tblTempUsageDetail_20' ) start [2025-04-25 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983816', 'tblTempUsageDetail_20' ) end [2025-04-25 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:15:21] Production.INFO: ==9493== Releasing lock... [2025-04-25 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:16:05 [end_date_ymd] => 2025-04-25 02:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:16:05' and `end` < '2025-04-25 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-04-25 02:16:17] Production.INFO: count ==410 [2025-04-25 02:16:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:16:05 - End Time 2025-04-25 02:16:05 [2025-04-25 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983821', 'tblTempUsageDetail_20' ) start [2025-04-25 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983821', 'tblTempUsageDetail_20' ) end [2025-04-25 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983821', 'tblTempVendorCDR_20' ) start [2025-04-25 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983821', 'tblTempVendorCDR_20' ) end [2025-04-25 02:16:17] Production.INFO: ProcessCDR(1,14983821,1,1,2) [2025-04-25 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983821', 'tblTempUsageDetail_20' ) start [2025-04-25 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983821', 'tblTempUsageDetail_20' ) end [2025-04-25 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:16:21] Production.INFO: ==9581== Releasing lock... [2025-04-25 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:16:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:17:05 [end_date_ymd] => 2025-04-25 02:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:17:05' and `end` < '2025-04-25 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-04-25 02:17:18] Production.INFO: count ==407 [2025-04-25 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:17:05 - End Time 2025-04-25 02:17:05 [2025-04-25 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983826', 'tblTempUsageDetail_20' ) start [2025-04-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983826', 'tblTempUsageDetail_20' ) end [2025-04-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983826', 'tblTempVendorCDR_20' ) start [2025-04-25 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983826', 'tblTempVendorCDR_20' ) end [2025-04-25 02:17:18] Production.INFO: ProcessCDR(1,14983826,1,1,2) [2025-04-25 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983826', 'tblTempUsageDetail_20' ) start [2025-04-25 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983826', 'tblTempUsageDetail_20' ) end [2025-04-25 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:17:21] Production.INFO: ==9671== Releasing lock... [2025-04-25 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:18:05 [end_date_ymd] => 2025-04-25 02:18:05 [RateCDR] => 1 ) [2025-04-25 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:18:05' and `end` < '2025-04-25 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:18:18] Production.INFO: count ==406 [2025-04-25 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:18:05 - End Time 2025-04-25 02:18:05 [2025-04-25 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983831', 'tblTempUsageDetail_20' ) start [2025-04-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983831', 'tblTempUsageDetail_20' ) end [2025-04-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983831', 'tblTempVendorCDR_20' ) start [2025-04-25 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983831', 'tblTempVendorCDR_20' ) end [2025-04-25 02:18:18] Production.INFO: ProcessCDR(1,14983831,1,1,2) [2025-04-25 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983831', 'tblTempUsageDetail_20' ) start [2025-04-25 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983831', 'tblTempUsageDetail_20' ) end [2025-04-25 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:18:22] Production.INFO: ==9764== Releasing lock... [2025-04-25 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:19:05 [end_date_ymd] => 2025-04-25 02:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:19:05' and `end` < '2025-04-25 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-04-25 02:19:17] Production.INFO: count ==402 [2025-04-25 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:19:05 - End Time 2025-04-25 02:19:05 [2025-04-25 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983836', 'tblTempUsageDetail_20' ) start [2025-04-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983836', 'tblTempUsageDetail_20' ) end [2025-04-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983836', 'tblTempVendorCDR_20' ) start [2025-04-25 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983836', 'tblTempVendorCDR_20' ) end [2025-04-25 02:19:18] Production.INFO: ProcessCDR(1,14983836,1,1,2) [2025-04-25 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983836', 'tblTempUsageDetail_20' ) start [2025-04-25 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983836', 'tblTempUsageDetail_20' ) end [2025-04-25 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:19:21] Production.INFO: ==9852== Releasing lock... [2025-04-25 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:20:06 [end_date_ymd] => 2025-04-25 02:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:20:06' and `end` < '2025-04-25 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-04-25 02:20:19] Production.INFO: count ==399 [2025-04-25 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:20:06 - End Time 2025-04-25 02:20:06 [2025-04-25 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983842', 'tblTempUsageDetail_20' ) start [2025-04-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983842', 'tblTempUsageDetail_20' ) end [2025-04-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983842', 'tblTempVendorCDR_20' ) start [2025-04-25 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983842', 'tblTempVendorCDR_20' ) end [2025-04-25 02:20:19] Production.INFO: ProcessCDR(1,14983842,1,1,2) [2025-04-25 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983842', 'tblTempUsageDetail_20' ) start [2025-04-25 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983842', 'tblTempUsageDetail_20' ) end [2025-04-25 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:20:22] Production.INFO: ==9942== Releasing lock... [2025-04-25 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:21:05 [end_date_ymd] => 2025-04-25 02:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:21:05' and `end` < '2025-04-25 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-04-25 02:21:17] Production.INFO: count ==399 [2025-04-25 02:21:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:21:05 - End Time 2025-04-25 02:21:05 [2025-04-25 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983847', 'tblTempUsageDetail_20' ) start [2025-04-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983847', 'tblTempUsageDetail_20' ) end [2025-04-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983847', 'tblTempVendorCDR_20' ) start [2025-04-25 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983847', 'tblTempVendorCDR_20' ) end [2025-04-25 02:21:17] Production.INFO: ProcessCDR(1,14983847,1,1,2) [2025-04-25 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983847', 'tblTempUsageDetail_20' ) start [2025-04-25 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983847', 'tblTempUsageDetail_20' ) end [2025-04-25 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:21:20] Production.INFO: ==10031== Releasing lock... [2025-04-25 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:22:06 [end_date_ymd] => 2025-04-25 02:22:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:22:06' and `end` < '2025-04-25 02: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-04-25 02:22:18] Production.INFO: count ==399 [2025-04-25 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:22:06 - End Time 2025-04-25 02:22:06 [2025-04-25 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983852', 'tblTempUsageDetail_20' ) start [2025-04-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983852', 'tblTempUsageDetail_20' ) end [2025-04-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983852', 'tblTempVendorCDR_20' ) start [2025-04-25 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983852', 'tblTempVendorCDR_20' ) end [2025-04-25 02:22:18] Production.INFO: ProcessCDR(1,14983852,1,1,2) [2025-04-25 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983852', 'tblTempUsageDetail_20' ) start [2025-04-25 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983852', 'tblTempUsageDetail_20' ) end [2025-04-25 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:22:22] Production.INFO: ==10119== Releasing lock... [2025-04-25 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:23:05 [end_date_ymd] => 2025-04-25 02:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:23:05' and `end` < '2025-04-25 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-04-25 02:23:17] Production.INFO: count ==396 [2025-04-25 02:23:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:23:05 - End Time 2025-04-25 02:23:05 [2025-04-25 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983857', 'tblTempUsageDetail_20' ) start [2025-04-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983857', 'tblTempUsageDetail_20' ) end [2025-04-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983857', 'tblTempVendorCDR_20' ) start [2025-04-25 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983857', 'tblTempVendorCDR_20' ) end [2025-04-25 02:23:17] Production.INFO: ProcessCDR(1,14983857,1,1,2) [2025-04-25 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983857', 'tblTempUsageDetail_20' ) start [2025-04-25 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983857', 'tblTempUsageDetail_20' ) end [2025-04-25 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:23:21] Production.INFO: ==10207== Releasing lock... [2025-04-25 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:24:05 [end_date_ymd] => 2025-04-25 02:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:24:05' and `end` < '2025-04-25 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-04-25 02:24:18] Production.INFO: count ==395 [2025-04-25 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:24:05 - End Time 2025-04-25 02:24:05 [2025-04-25 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983862', 'tblTempUsageDetail_20' ) start [2025-04-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983862', 'tblTempUsageDetail_20' ) end [2025-04-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983862', 'tblTempVendorCDR_20' ) start [2025-04-25 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983862', 'tblTempVendorCDR_20' ) end [2025-04-25 02:24:18] Production.INFO: ProcessCDR(1,14983862,1,1,2) [2025-04-25 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983862', 'tblTempUsageDetail_20' ) start [2025-04-25 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983862', 'tblTempUsageDetail_20' ) end [2025-04-25 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:24:21] Production.INFO: ==10297== Releasing lock... [2025-04-25 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:25:05 [end_date_ymd] => 2025-04-25 02:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:25:05' and `end` < '2025-04-25 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-04-25 02:25:18] Production.INFO: count ==395 [2025-04-25 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:25:05 - End Time 2025-04-25 02:25:05 [2025-04-25 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983867', 'tblTempUsageDetail_20' ) start [2025-04-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983867', 'tblTempUsageDetail_20' ) end [2025-04-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983867', 'tblTempVendorCDR_20' ) start [2025-04-25 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983867', 'tblTempVendorCDR_20' ) end [2025-04-25 02:25:18] Production.INFO: ProcessCDR(1,14983867,1,1,2) [2025-04-25 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983867', 'tblTempUsageDetail_20' ) start [2025-04-25 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983867', 'tblTempUsageDetail_20' ) end [2025-04-25 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:25:21] Production.INFO: ==10385== Releasing lock... [2025-04-25 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:26:05 [end_date_ymd] => 2025-04-25 02:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:26:05' and `end` < '2025-04-25 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-04-25 02:26:18] Production.INFO: count ==395 [2025-04-25 02:26:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:26:05 - End Time 2025-04-25 02:26:05 [2025-04-25 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983872', 'tblTempUsageDetail_20' ) start [2025-04-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983872', 'tblTempUsageDetail_20' ) end [2025-04-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983872', 'tblTempVendorCDR_20' ) start [2025-04-25 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983872', 'tblTempVendorCDR_20' ) end [2025-04-25 02:26:18] Production.INFO: ProcessCDR(1,14983872,1,1,2) [2025-04-25 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983872', 'tblTempUsageDetail_20' ) start [2025-04-25 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983872', 'tblTempUsageDetail_20' ) end [2025-04-25 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:26:21] Production.INFO: ==10482== Releasing lock... [2025-04-25 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:27:06 [end_date_ymd] => 2025-04-25 02:27:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:27:06' and `end` < '2025-04-25 02: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-04-25 02:27:18] Production.INFO: count ==393 [2025-04-25 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:27:06 - End Time 2025-04-25 02:27:06 [2025-04-25 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983877', 'tblTempUsageDetail_20' ) start [2025-04-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983877', 'tblTempUsageDetail_20' ) end [2025-04-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983877', 'tblTempVendorCDR_20' ) start [2025-04-25 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983877', 'tblTempVendorCDR_20' ) end [2025-04-25 02:27:18] Production.INFO: ProcessCDR(1,14983877,1,1,2) [2025-04-25 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983877', 'tblTempUsageDetail_20' ) start [2025-04-25 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983877', 'tblTempUsageDetail_20' ) end [2025-04-25 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:27:22] Production.INFO: ==10569== Releasing lock... [2025-04-25 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:28:05 [end_date_ymd] => 2025-04-25 02:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:28:05' and `end` < '2025-04-25 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-04-25 02:28:17] Production.INFO: count ==394 [2025-04-25 02:28:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:28:05 - End Time 2025-04-25 02:28:05 [2025-04-25 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983882', 'tblTempUsageDetail_20' ) start [2025-04-25 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983882', 'tblTempUsageDetail_20' ) end [2025-04-25 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983882', 'tblTempVendorCDR_20' ) start [2025-04-25 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983882', 'tblTempVendorCDR_20' ) end [2025-04-25 02:28:17] Production.INFO: ProcessCDR(1,14983882,1,1,2) [2025-04-25 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983882', 'tblTempUsageDetail_20' ) start [2025-04-25 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983882', 'tblTempUsageDetail_20' ) end [2025-04-25 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:28:22] Production.INFO: ==10657== Releasing lock... [2025-04-25 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:29:05 [end_date_ymd] => 2025-04-25 02:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:29:05' and `end` < '2025-04-25 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-04-25 02:29:18] Production.INFO: count ==393 [2025-04-25 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:29:05 - End Time 2025-04-25 02:29:05 [2025-04-25 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983887', 'tblTempUsageDetail_20' ) start [2025-04-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983887', 'tblTempUsageDetail_20' ) end [2025-04-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983887', 'tblTempVendorCDR_20' ) start [2025-04-25 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983887', 'tblTempVendorCDR_20' ) end [2025-04-25 02:29:18] Production.INFO: ProcessCDR(1,14983887,1,1,2) [2025-04-25 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983887', 'tblTempUsageDetail_20' ) start [2025-04-25 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983887', 'tblTempUsageDetail_20' ) end [2025-04-25 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:29:21] Production.INFO: ==10749== Releasing lock... [2025-04-25 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:30:05 [end_date_ymd] => 2025-04-25 02:30:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:30:05' and `end` < '2025-04-25 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-04-25 02:30:18] Production.INFO: count ==395 [2025-04-25 02:30:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:30:05 - End Time 2025-04-25 02:30:05 [2025-04-25 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983893', 'tblTempUsageDetail_20' ) start [2025-04-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983893', 'tblTempUsageDetail_20' ) end [2025-04-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983893', 'tblTempVendorCDR_20' ) start [2025-04-25 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983893', 'tblTempVendorCDR_20' ) end [2025-04-25 02:30:18] Production.INFO: ProcessCDR(1,14983893,1,1,2) [2025-04-25 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983893', 'tblTempUsageDetail_20' ) start [2025-04-25 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983893', 'tblTempUsageDetail_20' ) end [2025-04-25 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:30:21] Production.INFO: ==10837== Releasing lock... [2025-04-25 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:31:05 [end_date_ymd] => 2025-04-25 02:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:31:05' and `end` < '2025-04-25 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-04-25 02:31:18] Production.INFO: count ==394 [2025-04-25 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:31:05 - End Time 2025-04-25 02:31:05 [2025-04-25 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983898', 'tblTempUsageDetail_20' ) start [2025-04-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983898', 'tblTempUsageDetail_20' ) end [2025-04-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983898', 'tblTempVendorCDR_20' ) start [2025-04-25 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983898', 'tblTempVendorCDR_20' ) end [2025-04-25 02:31:18] Production.INFO: ProcessCDR(1,14983898,1,1,2) [2025-04-25 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983898', 'tblTempUsageDetail_20' ) start [2025-04-25 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983898', 'tblTempUsageDetail_20' ) end [2025-04-25 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:31:21] Production.INFO: ==10965== Releasing lock... [2025-04-25 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:32:05 [end_date_ymd] => 2025-04-25 02:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:32:05' and `end` < '2025-04-25 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-04-25 02:32:18] Production.INFO: count ==394 [2025-04-25 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:32:05 - End Time 2025-04-25 02:32:05 [2025-04-25 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983903', 'tblTempUsageDetail_20' ) start [2025-04-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983903', 'tblTempUsageDetail_20' ) end [2025-04-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983903', 'tblTempVendorCDR_20' ) start [2025-04-25 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983903', 'tblTempVendorCDR_20' ) end [2025-04-25 02:32:18] Production.INFO: ProcessCDR(1,14983903,1,1,2) [2025-04-25 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983903', 'tblTempUsageDetail_20' ) start [2025-04-25 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983903', 'tblTempUsageDetail_20' ) end [2025-04-25 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:32:21] Production.INFO: ==11052== Releasing lock... [2025-04-25 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:33:05 [end_date_ymd] => 2025-04-25 02:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:33:05' and `end` < '2025-04-25 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-04-25 02:33:17] Production.INFO: count ==391 [2025-04-25 02:33:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:33:05 - End Time 2025-04-25 02:33:05 [2025-04-25 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983908', 'tblTempUsageDetail_20' ) start [2025-04-25 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983908', 'tblTempUsageDetail_20' ) end [2025-04-25 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983908', 'tblTempVendorCDR_20' ) start [2025-04-25 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983908', 'tblTempVendorCDR_20' ) end [2025-04-25 02:33:17] Production.INFO: ProcessCDR(1,14983908,1,1,2) [2025-04-25 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983908', 'tblTempUsageDetail_20' ) start [2025-04-25 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983908', 'tblTempUsageDetail_20' ) end [2025-04-25 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:33:21] Production.INFO: ==11137== Releasing lock... [2025-04-25 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:33:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:34:06 [end_date_ymd] => 2025-04-25 02:34:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:34:06' and `end` < '2025-04-25 02: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-04-25 02:34:18] Production.INFO: count ==392 [2025-04-25 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:34:06 - End Time 2025-04-25 02:34:06 [2025-04-25 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983913', 'tblTempUsageDetail_20' ) start [2025-04-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983913', 'tblTempUsageDetail_20' ) end [2025-04-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983913', 'tblTempVendorCDR_20' ) start [2025-04-25 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983913', 'tblTempVendorCDR_20' ) end [2025-04-25 02:34:18] Production.INFO: ProcessCDR(1,14983913,1,1,2) [2025-04-25 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983913', 'tblTempUsageDetail_20' ) start [2025-04-25 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983913', 'tblTempUsageDetail_20' ) end [2025-04-25 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:34:22] Production.INFO: ==11228== Releasing lock... [2025-04-25 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:35:04 [end_date_ymd] => 2025-04-25 02:35:04 [RateCDR] => 1 ) [2025-04-25 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:35:04' and `end` < '2025-04-25 02: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-04-25 02:35:17] Production.INFO: count ==392 [2025-04-25 02:35:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:35:04 - End Time 2025-04-25 02:35:04 [2025-04-25 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983918', 'tblTempUsageDetail_20' ) start [2025-04-25 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983918', 'tblTempUsageDetail_20' ) end [2025-04-25 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983918', 'tblTempVendorCDR_20' ) start [2025-04-25 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983918', 'tblTempVendorCDR_20' ) end [2025-04-25 02:35:17] Production.INFO: ProcessCDR(1,14983918,1,1,2) [2025-04-25 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983918', 'tblTempUsageDetail_20' ) start [2025-04-25 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983918', 'tblTempUsageDetail_20' ) end [2025-04-25 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:35:20] Production.INFO: ==11314== Releasing lock... [2025-04-25 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:35:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:36:05 [end_date_ymd] => 2025-04-25 02:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:36:05' and `end` < '2025-04-25 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-04-25 02:36:18] Production.INFO: count ==391 [2025-04-25 02:36:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:36:05 - End Time 2025-04-25 02:36:05 [2025-04-25 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983923', 'tblTempUsageDetail_20' ) start [2025-04-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983923', 'tblTempUsageDetail_20' ) end [2025-04-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983923', 'tblTempVendorCDR_20' ) start [2025-04-25 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983923', 'tblTempVendorCDR_20' ) end [2025-04-25 02:36:18] Production.INFO: ProcessCDR(1,14983923,1,1,2) [2025-04-25 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983923', 'tblTempUsageDetail_20' ) start [2025-04-25 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983923', 'tblTempUsageDetail_20' ) end [2025-04-25 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:36:21] Production.INFO: ==11399== Releasing lock... [2025-04-25 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:36:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:37:06 [end_date_ymd] => 2025-04-25 02:37:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:37:06' and `end` < '2025-04-25 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-04-25 02:37:18] Production.INFO: count ==391 [2025-04-25 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:37:06 - End Time 2025-04-25 02:37:06 [2025-04-25 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983928', 'tblTempUsageDetail_20' ) start [2025-04-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983928', 'tblTempUsageDetail_20' ) end [2025-04-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983928', 'tblTempVendorCDR_20' ) start [2025-04-25 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983928', 'tblTempVendorCDR_20' ) end [2025-04-25 02:37:18] Production.INFO: ProcessCDR(1,14983928,1,1,2) [2025-04-25 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983928', 'tblTempUsageDetail_20' ) start [2025-04-25 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983928', 'tblTempUsageDetail_20' ) end [2025-04-25 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:37:22] Production.INFO: ==11485== Releasing lock... [2025-04-25 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:37:22] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:38:05 [end_date_ymd] => 2025-04-25 02:38:05 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:38:05' and `end` < '2025-04-25 02: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-04-25 02:38:17] Production.INFO: count ==391 [2025-04-25 02:38:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:38:05 - End Time 2025-04-25 02:38:05 [2025-04-25 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983933', 'tblTempUsageDetail_20' ) start [2025-04-25 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983933', 'tblTempUsageDetail_20' ) end [2025-04-25 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983933', 'tblTempVendorCDR_20' ) start [2025-04-25 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983933', 'tblTempVendorCDR_20' ) end [2025-04-25 02:38:18] Production.INFO: ProcessCDR(1,14983933,1,1,2) [2025-04-25 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983933', 'tblTempUsageDetail_20' ) start [2025-04-25 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983933', 'tblTempUsageDetail_20' ) end [2025-04-25 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:38:21] Production.INFO: ==11569== Releasing lock... [2025-04-25 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:38:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:39:05 [end_date_ymd] => 2025-04-25 02:39:05 [RateCDR] => 1 ) [2025-04-25 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:39:05' and `end` < '2025-04-25 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:39:18] Production.INFO: count ==391 [2025-04-25 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:39:05 - End Time 2025-04-25 02:39:05 [2025-04-25 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983938', 'tblTempUsageDetail_20' ) start [2025-04-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983938', 'tblTempUsageDetail_20' ) end [2025-04-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983938', 'tblTempVendorCDR_20' ) start [2025-04-25 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983938', 'tblTempVendorCDR_20' ) end [2025-04-25 02:39:18] Production.INFO: ProcessCDR(1,14983938,1,1,2) [2025-04-25 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983938', 'tblTempUsageDetail_20' ) start [2025-04-25 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983938', 'tblTempUsageDetail_20' ) end [2025-04-25 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:39:21] Production.INFO: ==11662== Releasing lock... [2025-04-25 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:39:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:40:05 [end_date_ymd] => 2025-04-25 02:40:05 [RateCDR] => 1 ) [2025-04-25 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:40:05' and `end` < '2025-04-25 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:40:18] Production.INFO: count ==392 [2025-04-25 02:40:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:40:05 - End Time 2025-04-25 02:40:05 [2025-04-25 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983943', 'tblTempUsageDetail_20' ) start [2025-04-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983943', 'tblTempUsageDetail_20' ) end [2025-04-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983943', 'tblTempVendorCDR_20' ) start [2025-04-25 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983943', 'tblTempVendorCDR_20' ) end [2025-04-25 02:40:18] Production.INFO: ProcessCDR(1,14983943,1,1,2) [2025-04-25 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983943', 'tblTempUsageDetail_20' ) start [2025-04-25 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983943', 'tblTempUsageDetail_20' ) end [2025-04-25 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:40:21] Production.INFO: ==11757== Releasing lock... [2025-04-25 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:41:05 [end_date_ymd] => 2025-04-25 02:41:05 [RateCDR] => 1 ) [2025-04-25 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:41:05' and `end` < '2025-04-25 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:41:18] Production.INFO: count ==390 [2025-04-25 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:41:05 - End Time 2025-04-25 02:41:05 [2025-04-25 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983949', 'tblTempUsageDetail_20' ) start [2025-04-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983949', 'tblTempUsageDetail_20' ) end [2025-04-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983949', 'tblTempVendorCDR_20' ) start [2025-04-25 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983949', 'tblTempVendorCDR_20' ) end [2025-04-25 02:41:18] Production.INFO: ProcessCDR(1,14983949,1,1,2) [2025-04-25 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983949', 'tblTempUsageDetail_20' ) start [2025-04-25 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983949', 'tblTempUsageDetail_20' ) end [2025-04-25 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:41:21] Production.INFO: ==11846== Releasing lock... [2025-04-25 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:42:05 [end_date_ymd] => 2025-04-25 02:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:42:05' and `end` < '2025-04-25 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-04-25 02:42:17] Production.INFO: count ==392 [2025-04-25 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:42:05 - End Time 2025-04-25 02:42:05 [2025-04-25 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983954', 'tblTempUsageDetail_20' ) start [2025-04-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983954', 'tblTempUsageDetail_20' ) end [2025-04-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983954', 'tblTempVendorCDR_20' ) start [2025-04-25 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983954', 'tblTempVendorCDR_20' ) end [2025-04-25 02:42:18] Production.INFO: ProcessCDR(1,14983954,1,1,2) [2025-04-25 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983954', 'tblTempUsageDetail_20' ) start [2025-04-25 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983954', 'tblTempUsageDetail_20' ) end [2025-04-25 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:42:21] Production.INFO: ==11934== Releasing lock... [2025-04-25 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:43:05 [end_date_ymd] => 2025-04-25 02:43:05 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:43:05' and `end` < '2025-04-25 02: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-04-25 02:43:18] Production.INFO: count ==388 [2025-04-25 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:43:05 - End Time 2025-04-25 02:43:05 [2025-04-25 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983959', 'tblTempUsageDetail_20' ) start [2025-04-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983959', 'tblTempUsageDetail_20' ) end [2025-04-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983959', 'tblTempVendorCDR_20' ) start [2025-04-25 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983959', 'tblTempVendorCDR_20' ) end [2025-04-25 02:43:18] Production.INFO: ProcessCDR(1,14983959,1,1,2) [2025-04-25 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983959', 'tblTempUsageDetail_20' ) start [2025-04-25 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983959', 'tblTempUsageDetail_20' ) end [2025-04-25 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:43:21] Production.INFO: ==12021== Releasing lock... [2025-04-25 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:44:05 [end_date_ymd] => 2025-04-25 02:44:05 [RateCDR] => 1 ) [2025-04-25 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:44:05' and `end` < '2025-04-25 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:44:17] Production.INFO: count ==385 [2025-04-25 02:44:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:44:05 - End Time 2025-04-25 02:44:05 [2025-04-25 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983964', 'tblTempUsageDetail_20' ) start [2025-04-25 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983964', 'tblTempUsageDetail_20' ) end [2025-04-25 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983964', 'tblTempVendorCDR_20' ) start [2025-04-25 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983964', 'tblTempVendorCDR_20' ) end [2025-04-25 02:44:18] Production.INFO: ProcessCDR(1,14983964,1,1,2) [2025-04-25 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983964', 'tblTempUsageDetail_20' ) start [2025-04-25 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983964', 'tblTempUsageDetail_20' ) end [2025-04-25 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:44:21] Production.INFO: ==12109== Releasing lock... [2025-04-25 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:45:05 [end_date_ymd] => 2025-04-25 02:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:45:05' and `end` < '2025-04-25 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-04-25 02:45:18] Production.INFO: count ==382 [2025-04-25 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:45:05 - End Time 2025-04-25 02:45:05 [2025-04-25 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983969', 'tblTempUsageDetail_20' ) start [2025-04-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983969', 'tblTempUsageDetail_20' ) end [2025-04-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983969', 'tblTempVendorCDR_20' ) start [2025-04-25 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983969', 'tblTempVendorCDR_20' ) end [2025-04-25 02:45:18] Production.INFO: ProcessCDR(1,14983969,1,1,2) [2025-04-25 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983969', 'tblTempUsageDetail_20' ) start [2025-04-25 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983969', 'tblTempUsageDetail_20' ) end [2025-04-25 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:45:21] Production.INFO: ==12194== Releasing lock... [2025-04-25 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:46:06 [end_date_ymd] => 2025-04-25 02:46:06 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:46:06' and `end` < '2025-04-25 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-04-25 02:46:18] Production.INFO: count ==380 [2025-04-25 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:46:06 - End Time 2025-04-25 02:46:06 [2025-04-25 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983974', 'tblTempUsageDetail_20' ) start [2025-04-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983974', 'tblTempUsageDetail_20' ) end [2025-04-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983974', 'tblTempVendorCDR_20' ) start [2025-04-25 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983974', 'tblTempVendorCDR_20' ) end [2025-04-25 02:46:18] Production.INFO: ProcessCDR(1,14983974,1,1,2) [2025-04-25 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983974', 'tblTempUsageDetail_20' ) start [2025-04-25 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983974', 'tblTempUsageDetail_20' ) end [2025-04-25 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:46:22] Production.INFO: ==12322== Releasing lock... [2025-04-25 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:47:05 [end_date_ymd] => 2025-04-25 02:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:47:05' and `end` < '2025-04-25 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-04-25 02:47:17] Production.INFO: count ==379 [2025-04-25 02:47:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:47:05 - End Time 2025-04-25 02:47:05 [2025-04-25 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983979', 'tblTempUsageDetail_20' ) start [2025-04-25 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983979', 'tblTempUsageDetail_20' ) end [2025-04-25 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983979', 'tblTempVendorCDR_20' ) start [2025-04-25 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983979', 'tblTempVendorCDR_20' ) end [2025-04-25 02:47:17] Production.INFO: ProcessCDR(1,14983979,1,1,2) [2025-04-25 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983979', 'tblTempUsageDetail_20' ) start [2025-04-25 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983979', 'tblTempUsageDetail_20' ) end [2025-04-25 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:47:21] Production.INFO: ==12407== Releasing lock... [2025-04-25 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:48:05 [end_date_ymd] => 2025-04-25 02:48:05 [RateCDR] => 1 ) [2025-04-25 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:48:05' and `end` < '2025-04-25 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:48:17] Production.INFO: count ==376 [2025-04-25 02:48:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:48:05 - End Time 2025-04-25 02:48:05 [2025-04-25 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983984', 'tblTempUsageDetail_20' ) start [2025-04-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983984', 'tblTempUsageDetail_20' ) end [2025-04-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983984', 'tblTempVendorCDR_20' ) start [2025-04-25 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983984', 'tblTempVendorCDR_20' ) end [2025-04-25 02:48:18] Production.INFO: ProcessCDR(1,14983984,1,1,2) [2025-04-25 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983984', 'tblTempUsageDetail_20' ) start [2025-04-25 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983984', 'tblTempUsageDetail_20' ) end [2025-04-25 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:48:21] Production.INFO: ==12481== Releasing lock... [2025-04-25 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:48:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:49:05 [end_date_ymd] => 2025-04-25 02:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:49:05' and `end` < '2025-04-25 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-04-25 02:49:18] Production.INFO: count ==375 [2025-04-25 02:49:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:49:05 - End Time 2025-04-25 02:49:05 [2025-04-25 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983989', 'tblTempUsageDetail_20' ) start [2025-04-25 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983989', 'tblTempUsageDetail_20' ) end [2025-04-25 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983989', 'tblTempVendorCDR_20' ) start [2025-04-25 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983989', 'tblTempVendorCDR_20' ) end [2025-04-25 02:49:18] Production.INFO: ProcessCDR(1,14983989,1,1,2) [2025-04-25 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983989', 'tblTempUsageDetail_20' ) start [2025-04-25 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983989', 'tblTempUsageDetail_20' ) end [2025-04-25 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:49:21] Production.INFO: ==12560== Releasing lock... [2025-04-25 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:49:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:50:06 [end_date_ymd] => 2025-04-25 02:50:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:50:06' and `end` < '2025-04-25 02: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-04-25 02:50:18] Production.INFO: count ==379 [2025-04-25 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:50:06 - End Time 2025-04-25 02:50:06 [2025-04-25 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983995', 'tblTempUsageDetail_20' ) start [2025-04-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14983995', 'tblTempUsageDetail_20' ) end [2025-04-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983995', 'tblTempVendorCDR_20' ) start [2025-04-25 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14983995', 'tblTempVendorCDR_20' ) end [2025-04-25 02:50:19] Production.INFO: ProcessCDR(1,14983995,1,1,2) [2025-04-25 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14983995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14983995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14983995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14983995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983995', 'tblTempUsageDetail_20' ) start [2025-04-25 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14983995', 'tblTempUsageDetail_20' ) end [2025-04-25 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:50:22] Production.INFO: ==12635== Releasing lock... [2025-04-25 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:50:22] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:51:05 [end_date_ymd] => 2025-04-25 02:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:51:05' and `end` < '2025-04-25 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-04-25 02:51:17] Production.INFO: count ==378 [2025-04-25 02:51:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:51:05 - End Time 2025-04-25 02:51:05 [2025-04-25 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984000', 'tblTempUsageDetail_20' ) start [2025-04-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984000', 'tblTempUsageDetail_20' ) end [2025-04-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984000', 'tblTempVendorCDR_20' ) start [2025-04-25 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984000', 'tblTempVendorCDR_20' ) end [2025-04-25 02:51:17] Production.INFO: ProcessCDR(1,14984000,1,1,2) [2025-04-25 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984000', 'tblTempUsageDetail_20' ) start [2025-04-25 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984000', 'tblTempUsageDetail_20' ) end [2025-04-25 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:51:21] Production.INFO: ==12706== Releasing lock... [2025-04-25 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:51:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:52:05 [end_date_ymd] => 2025-04-25 02:52:05 [RateCDR] => 1 ) [2025-04-25 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:52:05' and `end` < '2025-04-25 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:52:18] Production.INFO: count ==551 [2025-04-25 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:52:05 - End Time 2025-04-25 02:52:05 [2025-04-25 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984005', 'tblTempUsageDetail_20' ) start [2025-04-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984005', 'tblTempUsageDetail_20' ) end [2025-04-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984005', 'tblTempVendorCDR_20' ) start [2025-04-25 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984005', 'tblTempVendorCDR_20' ) end [2025-04-25 02:52:18] Production.INFO: ProcessCDR(1,14984005,1,1,2) [2025-04-25 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984005', 'tblTempUsageDetail_20' ) start [2025-04-25 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984005', 'tblTempUsageDetail_20' ) end [2025-04-25 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:52:22] Production.INFO: ==12779== Releasing lock... [2025-04-25 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:53:05 [end_date_ymd] => 2025-04-25 02:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:53:05' and `end` < '2025-04-25 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-04-25 02:53:18] Production.INFO: count ==550 [2025-04-25 02:53:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:53:05 - End Time 2025-04-25 02:53:05 [2025-04-25 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984010', 'tblTempUsageDetail_20' ) start [2025-04-25 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984010', 'tblTempUsageDetail_20' ) end [2025-04-25 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984010', 'tblTempVendorCDR_20' ) start [2025-04-25 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984010', 'tblTempVendorCDR_20' ) end [2025-04-25 02:53:18] Production.INFO: ProcessCDR(1,14984010,1,1,2) [2025-04-25 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984010', 'tblTempUsageDetail_20' ) start [2025-04-25 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984010', 'tblTempUsageDetail_20' ) end [2025-04-25 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:53:22] Production.INFO: ==12857== Releasing lock... [2025-04-25 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:53:22] Production.INFO: 33 MB #Memory Used# [2025-04-25 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:54:05 [end_date_ymd] => 2025-04-25 02:54:05 [RateCDR] => 1 ) [2025-04-25 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:54:05' and `end` < '2025-04-25 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:54:18] Production.INFO: count ==549 [2025-04-25 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:54:05 - End Time 2025-04-25 02:54:05 [2025-04-25 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984015', 'tblTempUsageDetail_20' ) start [2025-04-25 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984015', 'tblTempUsageDetail_20' ) end [2025-04-25 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984015', 'tblTempVendorCDR_20' ) start [2025-04-25 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984015', 'tblTempVendorCDR_20' ) end [2025-04-25 02:54:18] Production.INFO: ProcessCDR(1,14984015,1,1,2) [2025-04-25 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984015', 'tblTempUsageDetail_20' ) start [2025-04-25 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984015', 'tblTempUsageDetail_20' ) end [2025-04-25 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:54:21] Production.INFO: ==12935== Releasing lock... [2025-04-25 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:55:05 [end_date_ymd] => 2025-04-25 02:55:05 [RateCDR] => 1 ) [2025-04-25 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:55:05' and `end` < '2025-04-25 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:55:18] Production.INFO: count ==551 [2025-04-25 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:55:05 - End Time 2025-04-25 02:55:05 [2025-04-25 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984020', 'tblTempUsageDetail_20' ) start [2025-04-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984020', 'tblTempUsageDetail_20' ) end [2025-04-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984020', 'tblTempVendorCDR_20' ) start [2025-04-25 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984020', 'tblTempVendorCDR_20' ) end [2025-04-25 02:55:18] Production.INFO: ProcessCDR(1,14984020,1,1,2) [2025-04-25 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984020', 'tblTempUsageDetail_20' ) start [2025-04-25 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984020', 'tblTempUsageDetail_20' ) end [2025-04-25 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:55:21] Production.INFO: ==13006== Releasing lock... [2025-04-25 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:55:21] Production.INFO: 33 MB #Memory Used# [2025-04-25 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:56:05 [end_date_ymd] => 2025-04-25 02:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-24 23:56:05' and `end` < '2025-04-25 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-04-25 02:56:18] Production.INFO: count ==551 [2025-04-25 02:56:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:56:05 - End Time 2025-04-25 02:56:05 [2025-04-25 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984025', 'tblTempUsageDetail_20' ) start [2025-04-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984025', 'tblTempUsageDetail_20' ) end [2025-04-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984025', 'tblTempVendorCDR_20' ) start [2025-04-25 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984025', 'tblTempVendorCDR_20' ) end [2025-04-25 02:56:18] Production.INFO: ProcessCDR(1,14984025,1,1,2) [2025-04-25 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984025', 'tblTempUsageDetail_20' ) start [2025-04-25 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984025', 'tblTempUsageDetail_20' ) end [2025-04-25 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:56:21] Production.INFO: ==13076== Releasing lock... [2025-04-25 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:56:21] Production.INFO: 33 MB #Memory Used# [2025-04-25 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:57:04 [end_date_ymd] => 2025-04-25 02:57:04 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:57:04' and `end` < '2025-04-25 02: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-04-25 02:57:17] Production.INFO: count ==549 [2025-04-25 02:57:17] Production.ERROR: pbx CDR StartTime 2025-04-24 23:57:04 - End Time 2025-04-25 02:57:04 [2025-04-25 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984029', 'tblTempUsageDetail_20' ) start [2025-04-25 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984029', 'tblTempUsageDetail_20' ) end [2025-04-25 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984029', 'tblTempVendorCDR_20' ) start [2025-04-25 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984029', 'tblTempVendorCDR_20' ) end [2025-04-25 02:57:17] Production.INFO: ProcessCDR(1,14984029,1,1,2) [2025-04-25 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984029', 'tblTempUsageDetail_20' ) start [2025-04-25 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984029', 'tblTempUsageDetail_20' ) end [2025-04-25 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:57:21] Production.INFO: ==13154== Releasing lock... [2025-04-25 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:58:06 [end_date_ymd] => 2025-04-25 02:58:06 [RateCDR] => 1 ) [2025-04-25 02: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-04-24 23:58:06' and `end` < '2025-04-25 02: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-04-25 02:58:18] Production.INFO: count ==548 [2025-04-25 02:58:19] Production.ERROR: pbx CDR StartTime 2025-04-24 23:58:06 - End Time 2025-04-25 02:58:06 [2025-04-25 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984035', 'tblTempUsageDetail_20' ) start [2025-04-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984035', 'tblTempUsageDetail_20' ) end [2025-04-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984035', 'tblTempVendorCDR_20' ) start [2025-04-25 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984035', 'tblTempVendorCDR_20' ) end [2025-04-25 02:58:19] Production.INFO: ProcessCDR(1,14984035,1,1,2) [2025-04-25 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984035', 'tblTempUsageDetail_20' ) start [2025-04-25 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984035', 'tblTempUsageDetail_20' ) end [2025-04-25 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:58:22] Production.INFO: ==13225== Releasing lock... [2025-04-25 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:58:22] Production.INFO: 33 MB #Memory Used# [2025-04-25 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-24 23:59:05 [end_date_ymd] => 2025-04-25 02:59:05 [RateCDR] => 1 ) [2025-04-25 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-24 23:59:05' and `end` < '2025-04-25 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 02:59:18] Production.INFO: count ==547 [2025-04-25 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-24 23:59:05 - End Time 2025-04-25 02:59:05 [2025-04-25 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984040', 'tblTempUsageDetail_20' ) start [2025-04-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984040', 'tblTempUsageDetail_20' ) end [2025-04-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984040', 'tblTempVendorCDR_20' ) start [2025-04-25 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984040', 'tblTempVendorCDR_20' ) end [2025-04-25 02:59:18] Production.INFO: ProcessCDR(1,14984040,1,1,2) [2025-04-25 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984040', 'tblTempUsageDetail_20' ) start [2025-04-25 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984040', 'tblTempUsageDetail_20' ) end [2025-04-25 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 02:59:21] Production.INFO: ==13305== Releasing lock... [2025-04-25 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 02:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:00:06 [end_date_ymd] => 2025-04-25 03:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:00:06' and `end` < '2025-04-25 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-04-25 03:00:19] Production.INFO: count ==1015 [2025-04-25 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:00:06 - End Time 2025-04-25 03:00:06 [2025-04-25 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984046', 'tblTempUsageDetail_20' ) start [2025-04-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984046', 'tblTempUsageDetail_20' ) end [2025-04-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984046', 'tblTempVendorCDR_20' ) start [2025-04-25 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984046', 'tblTempVendorCDR_20' ) end [2025-04-25 03:00:19] Production.INFO: ProcessCDR(1,14984046,1,1,2) [2025-04-25 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984046', 'tblTempUsageDetail_20' ) start [2025-04-25 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984046', 'tblTempUsageDetail_20' ) end [2025-04-25 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:00:23] Production.INFO: ==13380== Releasing lock... [2025-04-25 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-25 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:01:05 [end_date_ymd] => 2025-04-25 03:01:05 [RateCDR] => 1 ) [2025-04-25 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:01:05' and `end` < '2025-04-25 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:01:17] Production.INFO: count ==1015 [2025-04-25 03:01:17] Production.ERROR: pbx CDR StartTime 2025-04-25 00:01:05 - End Time 2025-04-25 03:01:05 [2025-04-25 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984051', 'tblTempUsageDetail_20' ) start [2025-04-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984051', 'tblTempUsageDetail_20' ) end [2025-04-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984051', 'tblTempVendorCDR_20' ) start [2025-04-25 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984051', 'tblTempVendorCDR_20' ) end [2025-04-25 03:01:17] Production.INFO: ProcessCDR(1,14984051,1,1,2) [2025-04-25 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984051', 'tblTempUsageDetail_20' ) start [2025-04-25 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984051', 'tblTempUsageDetail_20' ) end [2025-04-25 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:01:21] Production.INFO: ==13463== Releasing lock... [2025-04-25 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-25 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:02:05 [end_date_ymd] => 2025-04-25 03:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:02:05' and `end` < '2025-04-25 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-04-25 03:02:18] Production.INFO: count ==1014 [2025-04-25 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:02:05 - End Time 2025-04-25 03:02:05 [2025-04-25 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984056', 'tblTempUsageDetail_20' ) start [2025-04-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984056', 'tblTempUsageDetail_20' ) end [2025-04-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984056', 'tblTempVendorCDR_20' ) start [2025-04-25 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984056', 'tblTempVendorCDR_20' ) end [2025-04-25 03:02:18] Production.INFO: ProcessCDR(1,14984056,1,1,2) [2025-04-25 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984056', 'tblTempUsageDetail_20' ) start [2025-04-25 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984056', 'tblTempUsageDetail_20' ) end [2025-04-25 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:02:21] Production.INFO: ==13651== Releasing lock... [2025-04-25 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:02:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:03:05 [end_date_ymd] => 2025-04-25 03:03:05 [RateCDR] => 1 ) [2025-04-25 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:03:05' and `end` < '2025-04-25 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:03:17] Production.INFO: count ==1010 [2025-04-25 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:03:05 - End Time 2025-04-25 03:03:05 [2025-04-25 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984061', 'tblTempUsageDetail_20' ) start [2025-04-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984061', 'tblTempUsageDetail_20' ) end [2025-04-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984061', 'tblTempVendorCDR_20' ) start [2025-04-25 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984061', 'tblTempVendorCDR_20' ) end [2025-04-25 03:03:18] Production.INFO: ProcessCDR(1,14984061,1,1,2) [2025-04-25 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984061', 'tblTempUsageDetail_20' ) start [2025-04-25 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984061', 'tblTempUsageDetail_20' ) end [2025-04-25 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:03:21] Production.INFO: ==13720== Releasing lock... [2025-04-25 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:03:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:04:05 [end_date_ymd] => 2025-04-25 03:04:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:04:05' and `end` < '2025-04-25 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-04-25 03:04:18] Production.INFO: count ==1008 [2025-04-25 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:04:05 - End Time 2025-04-25 03:04:05 [2025-04-25 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984066', 'tblTempUsageDetail_20' ) start [2025-04-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984066', 'tblTempUsageDetail_20' ) end [2025-04-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984066', 'tblTempVendorCDR_20' ) start [2025-04-25 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984066', 'tblTempVendorCDR_20' ) end [2025-04-25 03:04:18] Production.INFO: ProcessCDR(1,14984066,1,1,2) [2025-04-25 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984066', 'tblTempUsageDetail_20' ) start [2025-04-25 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984066', 'tblTempUsageDetail_20' ) end [2025-04-25 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:04:22] Production.INFO: ==13793== Releasing lock... [2025-04-25 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:04:22] Production.INFO: 36 MB #Memory Used# [2025-04-25 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:05:05 [end_date_ymd] => 2025-04-25 03:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:05:05' and `end` < '2025-04-25 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-04-25 03:05:18] Production.INFO: count ==1007 [2025-04-25 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:05:05 - End Time 2025-04-25 03:05:05 [2025-04-25 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984071', 'tblTempUsageDetail_20' ) start [2025-04-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984071', 'tblTempUsageDetail_20' ) end [2025-04-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984071', 'tblTempVendorCDR_20' ) start [2025-04-25 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984071', 'tblTempVendorCDR_20' ) end [2025-04-25 03:05:18] Production.INFO: ProcessCDR(1,14984071,1,1,2) [2025-04-25 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984071', 'tblTempUsageDetail_20' ) start [2025-04-25 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984071', 'tblTempUsageDetail_20' ) end [2025-04-25 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:05:22] Production.INFO: ==13865== Releasing lock... [2025-04-25 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:05:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:06:04 [end_date_ymd] => 2025-04-25 03:06:04 [RateCDR] => 1 ) [2025-04-25 03:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:06:04' and `end` < '2025-04-25 03:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:06:17] Production.INFO: count ==1362 [2025-04-25 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:06:04 - End Time 2025-04-25 03:06:04 [2025-04-25 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984076', 'tblTempUsageDetail_20' ) start [2025-04-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984076', 'tblTempUsageDetail_20' ) end [2025-04-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984076', 'tblTempVendorCDR_20' ) start [2025-04-25 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984076', 'tblTempVendorCDR_20' ) end [2025-04-25 03:06:18] Production.INFO: ProcessCDR(1,14984076,1,1,2) [2025-04-25 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984076', 'tblTempUsageDetail_20' ) start [2025-04-25 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984076', 'tblTempUsageDetail_20' ) end [2025-04-25 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:06:22] Production.INFO: ==14013== Releasing lock... [2025-04-25 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:06:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-25 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:07:05 [end_date_ymd] => 2025-04-25 03:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:07:05' and `end` < '2025-04-25 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-04-25 03:07:18] Production.INFO: count ==1362 [2025-04-25 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:07:05 - End Time 2025-04-25 03:07:05 [2025-04-25 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984081', 'tblTempUsageDetail_20' ) start [2025-04-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984081', 'tblTempUsageDetail_20' ) end [2025-04-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984081', 'tblTempVendorCDR_20' ) start [2025-04-25 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984081', 'tblTempVendorCDR_20' ) end [2025-04-25 03:07:18] Production.INFO: ProcessCDR(1,14984081,1,1,2) [2025-04-25 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984081', 'tblTempUsageDetail_20' ) start [2025-04-25 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984081', 'tblTempUsageDetail_20' ) end [2025-04-25 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:07:22] Production.INFO: ==14089== Releasing lock... [2025-04-25 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-25 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:08:04 [end_date_ymd] => 2025-04-25 03:08:04 [RateCDR] => 1 ) [2025-04-25 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:08:04' and `end` < '2025-04-25 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:08:17] Production.INFO: count ==1361 [2025-04-25 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:08:04 - End Time 2025-04-25 03:08:04 [2025-04-25 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984086', 'tblTempUsageDetail_20' ) start [2025-04-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984086', 'tblTempUsageDetail_20' ) end [2025-04-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984086', 'tblTempVendorCDR_20' ) start [2025-04-25 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984086', 'tblTempVendorCDR_20' ) end [2025-04-25 03:08:18] Production.INFO: ProcessCDR(1,14984086,1,1,2) [2025-04-25 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984086', 'tblTempUsageDetail_20' ) start [2025-04-25 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984086', 'tblTempUsageDetail_20' ) end [2025-04-25 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:08:21] Production.INFO: ==14159== Releasing lock... [2025-04-25 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:08:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-25 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:09:05 [end_date_ymd] => 2025-04-25 03:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:09:05' and `end` < '2025-04-25 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-04-25 03:09:18] Production.INFO: count ==1359 [2025-04-25 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:09:05 - End Time 2025-04-25 03:09:05 [2025-04-25 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984091', 'tblTempUsageDetail_20' ) start [2025-04-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984091', 'tblTempUsageDetail_20' ) end [2025-04-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984091', 'tblTempVendorCDR_20' ) start [2025-04-25 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984091', 'tblTempVendorCDR_20' ) end [2025-04-25 03:09:18] Production.INFO: ProcessCDR(1,14984091,1,1,2) [2025-04-25 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984091', 'tblTempUsageDetail_20' ) start [2025-04-25 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984091', 'tblTempUsageDetail_20' ) end [2025-04-25 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:09:22] Production.INFO: ==14312== Releasing lock... [2025-04-25 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:09:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-25 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:10:05 [end_date_ymd] => 2025-04-25 03:10:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:10:05' and `end` < '2025-04-25 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-04-25 03:10:18] Production.INFO: count ==1353 [2025-04-25 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:10:05 - End Time 2025-04-25 03:10:05 [2025-04-25 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984097', 'tblTempUsageDetail_20' ) start [2025-04-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984097', 'tblTempUsageDetail_20' ) end [2025-04-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984097', 'tblTempVendorCDR_20' ) start [2025-04-25 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984097', 'tblTempVendorCDR_20' ) end [2025-04-25 03:10:19] Production.INFO: ProcessCDR(1,14984097,1,1,2) [2025-04-25 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984097', 'tblTempUsageDetail_20' ) start [2025-04-25 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984097', 'tblTempUsageDetail_20' ) end [2025-04-25 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:10:22] Production.INFO: ==14386== Releasing lock... [2025-04-25 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:10:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:11:05 [end_date_ymd] => 2025-04-25 03:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:11:05' and `end` < '2025-04-25 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-04-25 03:11:18] Production.INFO: count ==1343 [2025-04-25 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:11:05 - End Time 2025-04-25 03:11:05 [2025-04-25 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984102', 'tblTempUsageDetail_20' ) start [2025-04-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984102', 'tblTempUsageDetail_20' ) end [2025-04-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984102', 'tblTempVendorCDR_20' ) start [2025-04-25 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984102', 'tblTempVendorCDR_20' ) end [2025-04-25 03:11:18] Production.INFO: ProcessCDR(1,14984102,1,1,2) [2025-04-25 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984102', 'tblTempUsageDetail_20' ) start [2025-04-25 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984102', 'tblTempUsageDetail_20' ) end [2025-04-25 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:11:22] Production.INFO: ==14461== Releasing lock... [2025-04-25 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:12:05 [end_date_ymd] => 2025-04-25 03:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:12:05' and `end` < '2025-04-25 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-04-25 03:12:18] Production.INFO: count ==1342 [2025-04-25 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:12:05 - End Time 2025-04-25 03:12:05 [2025-04-25 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984107', 'tblTempUsageDetail_20' ) start [2025-04-25 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984107', 'tblTempUsageDetail_20' ) end [2025-04-25 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984107', 'tblTempVendorCDR_20' ) start [2025-04-25 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984107', 'tblTempVendorCDR_20' ) end [2025-04-25 03:12:19] Production.INFO: ProcessCDR(1,14984107,1,1,2) [2025-04-25 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984107', 'tblTempUsageDetail_20' ) start [2025-04-25 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984107', 'tblTempUsageDetail_20' ) end [2025-04-25 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:12:22] Production.INFO: ==14533== Releasing lock... [2025-04-25 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:13:05 [end_date_ymd] => 2025-04-25 03:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:13:05' and `end` < '2025-04-25 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-04-25 03:13:17] Production.INFO: count ==1341 [2025-04-25 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:13:05 - End Time 2025-04-25 03:13:05 [2025-04-25 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984112', 'tblTempUsageDetail_20' ) start [2025-04-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984112', 'tblTempUsageDetail_20' ) end [2025-04-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984112', 'tblTempVendorCDR_20' ) start [2025-04-25 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984112', 'tblTempVendorCDR_20' ) end [2025-04-25 03:13:18] Production.INFO: ProcessCDR(1,14984112,1,1,2) [2025-04-25 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984112', 'tblTempUsageDetail_20' ) start [2025-04-25 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984112', 'tblTempUsageDetail_20' ) end [2025-04-25 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:13:21] Production.INFO: ==14680== Releasing lock... [2025-04-25 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:13:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:14:05 [end_date_ymd] => 2025-04-25 03:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:14:05' and `end` < '2025-04-25 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-04-25 03:14:18] Production.INFO: count ==1340 [2025-04-25 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:14:05 - End Time 2025-04-25 03:14:05 [2025-04-25 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984117', 'tblTempUsageDetail_20' ) start [2025-04-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984117', 'tblTempUsageDetail_20' ) end [2025-04-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984117', 'tblTempVendorCDR_20' ) start [2025-04-25 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984117', 'tblTempVendorCDR_20' ) end [2025-04-25 03:14:18] Production.INFO: ProcessCDR(1,14984117,1,1,2) [2025-04-25 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984117', 'tblTempUsageDetail_20' ) start [2025-04-25 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984117', 'tblTempUsageDetail_20' ) end [2025-04-25 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:14:22] Production.INFO: ==14755== Releasing lock... [2025-04-25 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:14:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:15:05 [end_date_ymd] => 2025-04-25 03:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:15:05' and `end` < '2025-04-25 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-04-25 03:15:17] Production.INFO: count ==1337 [2025-04-25 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:15:05 - End Time 2025-04-25 03:15:05 [2025-04-25 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984122', 'tblTempUsageDetail_20' ) start [2025-04-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984122', 'tblTempUsageDetail_20' ) end [2025-04-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984122', 'tblTempVendorCDR_20' ) start [2025-04-25 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984122', 'tblTempVendorCDR_20' ) end [2025-04-25 03:15:18] Production.INFO: ProcessCDR(1,14984122,1,1,2) [2025-04-25 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984122', 'tblTempUsageDetail_20' ) start [2025-04-25 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984122', 'tblTempUsageDetail_20' ) end [2025-04-25 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:15:21] Production.INFO: ==14827== Releasing lock... [2025-04-25 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:15:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:16:05 [end_date_ymd] => 2025-04-25 03:16:05 [RateCDR] => 1 ) [2025-04-25 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:16:05' and `end` < '2025-04-25 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:16:18] Production.INFO: count ==1337 [2025-04-25 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:16:05 - End Time 2025-04-25 03:16:05 [2025-04-25 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984127', 'tblTempUsageDetail_20' ) start [2025-04-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984127', 'tblTempUsageDetail_20' ) end [2025-04-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984127', 'tblTempVendorCDR_20' ) start [2025-04-25 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984127', 'tblTempVendorCDR_20' ) end [2025-04-25 03:16:18] Production.INFO: ProcessCDR(1,14984127,1,1,2) [2025-04-25 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984127', 'tblTempUsageDetail_20' ) start [2025-04-25 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984127', 'tblTempUsageDetail_20' ) end [2025-04-25 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:16:21] Production.INFO: ==14904== Releasing lock... [2025-04-25 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:16:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:17:06 [end_date_ymd] => 2025-04-25 03:17:06 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:17:06' and `end` < '2025-04-25 03: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-04-25 03:17:18] Production.INFO: count ==1336 [2025-04-25 03:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:17:06 - End Time 2025-04-25 03:17:06 [2025-04-25 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984132', 'tblTempUsageDetail_20' ) start [2025-04-25 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984132', 'tblTempUsageDetail_20' ) end [2025-04-25 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984132', 'tblTempVendorCDR_20' ) start [2025-04-25 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984132', 'tblTempVendorCDR_20' ) end [2025-04-25 03:17:19] Production.INFO: ProcessCDR(1,14984132,1,1,2) [2025-04-25 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984132', 'tblTempUsageDetail_20' ) start [2025-04-25 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984132', 'tblTempUsageDetail_20' ) end [2025-04-25 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:17:23] Production.INFO: ==15054== Releasing lock... [2025-04-25 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:17:23] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:18:05 [end_date_ymd] => 2025-04-25 03:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:18:05' and `end` < '2025-04-25 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-04-25 03:18:18] Production.INFO: count ==1336 [2025-04-25 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:18:05 - End Time 2025-04-25 03:18:05 [2025-04-25 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984137', 'tblTempUsageDetail_20' ) start [2025-04-25 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984137', 'tblTempUsageDetail_20' ) end [2025-04-25 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984137', 'tblTempVendorCDR_20' ) start [2025-04-25 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984137', 'tblTempVendorCDR_20' ) end [2025-04-25 03:18:19] Production.INFO: ProcessCDR(1,14984137,1,1,2) [2025-04-25 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984137', 'tblTempUsageDetail_20' ) start [2025-04-25 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984137', 'tblTempUsageDetail_20' ) end [2025-04-25 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:18:22] Production.INFO: ==15125== Releasing lock... [2025-04-25 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:18:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:19:04 [end_date_ymd] => 2025-04-25 03:19:04 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:19:04' and `end` < '2025-04-25 03: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-04-25 03:19:17] Production.INFO: count ==1335 [2025-04-25 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:19:04 - End Time 2025-04-25 03:19:04 [2025-04-25 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984142', 'tblTempUsageDetail_20' ) start [2025-04-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984142', 'tblTempUsageDetail_20' ) end [2025-04-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984142', 'tblTempVendorCDR_20' ) start [2025-04-25 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984142', 'tblTempVendorCDR_20' ) end [2025-04-25 03:19:18] Production.INFO: ProcessCDR(1,14984142,1,1,2) [2025-04-25 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984142', 'tblTempUsageDetail_20' ) start [2025-04-25 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984142', 'tblTempUsageDetail_20' ) end [2025-04-25 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:19:21] Production.INFO: ==15234== Releasing lock... [2025-04-25 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:19:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:20:05 [end_date_ymd] => 2025-04-25 03:20:05 [RateCDR] => 1 ) [2025-04-25 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:20:05' and `end` < '2025-04-25 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:20:18] Production.INFO: count ==1329 [2025-04-25 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:20:05 - End Time 2025-04-25 03:20:05 [2025-04-25 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984148', 'tblTempUsageDetail_20' ) start [2025-04-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984148', 'tblTempUsageDetail_20' ) end [2025-04-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984148', 'tblTempVendorCDR_20' ) start [2025-04-25 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984148', 'tblTempVendorCDR_20' ) end [2025-04-25 03:20:19] Production.INFO: ProcessCDR(1,14984148,1,1,2) [2025-04-25 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984148', 'tblTempUsageDetail_20' ) start [2025-04-25 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984148', 'tblTempUsageDetail_20' ) end [2025-04-25 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:20:22] Production.INFO: ==15314== Releasing lock... [2025-04-25 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:20:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:21:05 [end_date_ymd] => 2025-04-25 03:21:05 [RateCDR] => 1 ) [2025-04-25 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:21:05' and `end` < '2025-04-25 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:21:18] Production.INFO: count ==1311 [2025-04-25 03:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:21:05 - End Time 2025-04-25 03:21:05 [2025-04-25 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984153', 'tblTempUsageDetail_20' ) start [2025-04-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984153', 'tblTempUsageDetail_20' ) end [2025-04-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984153', 'tblTempVendorCDR_20' ) start [2025-04-25 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984153', 'tblTempVendorCDR_20' ) end [2025-04-25 03:21:19] Production.INFO: ProcessCDR(1,14984153,1,1,2) [2025-04-25 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984153', 'tblTempUsageDetail_20' ) start [2025-04-25 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984153', 'tblTempUsageDetail_20' ) end [2025-04-25 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:21:22] Production.INFO: ==15392== Releasing lock... [2025-04-25 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:21:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:22:05 [end_date_ymd] => 2025-04-25 03:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:22:05' and `end` < '2025-04-25 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-04-25 03:22:18] Production.INFO: count ==1310 [2025-04-25 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:22:05 - End Time 2025-04-25 03:22:05 [2025-04-25 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984158', 'tblTempUsageDetail_20' ) start [2025-04-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984158', 'tblTempUsageDetail_20' ) end [2025-04-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984158', 'tblTempVendorCDR_20' ) start [2025-04-25 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984158', 'tblTempVendorCDR_20' ) end [2025-04-25 03:22:18] Production.INFO: ProcessCDR(1,14984158,1,1,2) [2025-04-25 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984158', 'tblTempUsageDetail_20' ) start [2025-04-25 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984158', 'tblTempUsageDetail_20' ) end [2025-04-25 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:22:22] Production.INFO: ==15467== Releasing lock... [2025-04-25 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:23:05 [end_date_ymd] => 2025-04-25 03:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:23:05' and `end` < '2025-04-25 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-04-25 03:23:18] Production.INFO: count ==1305 [2025-04-25 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:23:05 - End Time 2025-04-25 03:23:05 [2025-04-25 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984163', 'tblTempUsageDetail_20' ) start [2025-04-25 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984163', 'tblTempUsageDetail_20' ) end [2025-04-25 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984163', 'tblTempVendorCDR_20' ) start [2025-04-25 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984163', 'tblTempVendorCDR_20' ) end [2025-04-25 03:23:19] Production.INFO: ProcessCDR(1,14984163,1,1,2) [2025-04-25 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984163', 'tblTempUsageDetail_20' ) start [2025-04-25 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984163', 'tblTempUsageDetail_20' ) end [2025-04-25 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:23:22] Production.INFO: ==15538== Releasing lock... [2025-04-25 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:23:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:24:05 [end_date_ymd] => 2025-04-25 03:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:24:05' and `end` < '2025-04-25 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-04-25 03:24:18] Production.INFO: count ==1304 [2025-04-25 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:24:05 - End Time 2025-04-25 03:24:05 [2025-04-25 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984168', 'tblTempUsageDetail_20' ) start [2025-04-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984168', 'tblTempUsageDetail_20' ) end [2025-04-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984168', 'tblTempVendorCDR_20' ) start [2025-04-25 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984168', 'tblTempVendorCDR_20' ) end [2025-04-25 03:24:18] Production.INFO: ProcessCDR(1,14984168,1,1,2) [2025-04-25 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984168', 'tblTempUsageDetail_20' ) start [2025-04-25 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984168', 'tblTempUsageDetail_20' ) end [2025-04-25 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:24:22] Production.INFO: ==15609== Releasing lock... [2025-04-25 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:25:05 [end_date_ymd] => 2025-04-25 03:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:25:05' and `end` < '2025-04-25 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-04-25 03:25:17] Production.INFO: count ==1303 [2025-04-25 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:25:05 - End Time 2025-04-25 03:25:05 [2025-04-25 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984173', 'tblTempUsageDetail_20' ) start [2025-04-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984173', 'tblTempUsageDetail_20' ) end [2025-04-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984173', 'tblTempVendorCDR_20' ) start [2025-04-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984173', 'tblTempVendorCDR_20' ) end [2025-04-25 03:25:18] Production.INFO: ProcessCDR(1,14984173,1,1,2) [2025-04-25 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984173', 'tblTempUsageDetail_20' ) start [2025-04-25 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984173', 'tblTempUsageDetail_20' ) end [2025-04-25 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:25:21] Production.INFO: ==15681== Releasing lock... [2025-04-25 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:25:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:26:04 [end_date_ymd] => 2025-04-25 03:26:04 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:26:04' and `end` < '2025-04-25 03: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-04-25 03:26:17] Production.INFO: count ==1302 [2025-04-25 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:26:04 - End Time 2025-04-25 03:26:04 [2025-04-25 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984178', 'tblTempUsageDetail_20' ) start [2025-04-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984178', 'tblTempUsageDetail_20' ) end [2025-04-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984178', 'tblTempVendorCDR_20' ) start [2025-04-25 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984178', 'tblTempVendorCDR_20' ) end [2025-04-25 03:26:18] Production.INFO: ProcessCDR(1,14984178,1,1,2) [2025-04-25 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984178', 'tblTempUsageDetail_20' ) start [2025-04-25 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984178', 'tblTempUsageDetail_20' ) end [2025-04-25 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:26:21] Production.INFO: ==15752== Releasing lock... [2025-04-25 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:27:05 [end_date_ymd] => 2025-04-25 03:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:27:05' and `end` < '2025-04-25 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-04-25 03:27:18] Production.INFO: count ==1301 [2025-04-25 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:27:05 - End Time 2025-04-25 03:27:05 [2025-04-25 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984183', 'tblTempUsageDetail_20' ) start [2025-04-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984183', 'tblTempUsageDetail_20' ) end [2025-04-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984183', 'tblTempVendorCDR_20' ) start [2025-04-25 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984183', 'tblTempVendorCDR_20' ) end [2025-04-25 03:27:18] Production.INFO: ProcessCDR(1,14984183,1,1,2) [2025-04-25 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984183', 'tblTempUsageDetail_20' ) start [2025-04-25 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984183', 'tblTempUsageDetail_20' ) end [2025-04-25 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:27:22] Production.INFO: ==15820== Releasing lock... [2025-04-25 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:27:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:28:05 [end_date_ymd] => 2025-04-25 03:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:28:05' and `end` < '2025-04-25 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-04-25 03:28:18] Production.INFO: count ==1299 [2025-04-25 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:28:05 - End Time 2025-04-25 03:28:05 [2025-04-25 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984188', 'tblTempUsageDetail_20' ) start [2025-04-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984188', 'tblTempUsageDetail_20' ) end [2025-04-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984188', 'tblTempVendorCDR_20' ) start [2025-04-25 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984188', 'tblTempVendorCDR_20' ) end [2025-04-25 03:28:18] Production.INFO: ProcessCDR(1,14984188,1,1,2) [2025-04-25 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984188', 'tblTempUsageDetail_20' ) start [2025-04-25 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984188', 'tblTempUsageDetail_20' ) end [2025-04-25 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:28:22] Production.INFO: ==15891== Releasing lock... [2025-04-25 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:28:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:29:05 [end_date_ymd] => 2025-04-25 03:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:29:05' and `end` < '2025-04-25 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-04-25 03:29:18] Production.INFO: count ==1298 [2025-04-25 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:29:05 - End Time 2025-04-25 03:29:05 [2025-04-25 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984193', 'tblTempUsageDetail_20' ) start [2025-04-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984193', 'tblTempUsageDetail_20' ) end [2025-04-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984193', 'tblTempVendorCDR_20' ) start [2025-04-25 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984193', 'tblTempVendorCDR_20' ) end [2025-04-25 03:29:18] Production.INFO: ProcessCDR(1,14984193,1,1,2) [2025-04-25 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984193', 'tblTempUsageDetail_20' ) start [2025-04-25 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984193', 'tblTempUsageDetail_20' ) end [2025-04-25 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:29:21] Production.INFO: ==15966== Releasing lock... [2025-04-25 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:29:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:30:06 [end_date_ymd] => 2025-04-25 03:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:30:06' and `end` < '2025-04-25 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-04-25 03:30:18] Production.INFO: count ==1293 [2025-04-25 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:30:06 - End Time 2025-04-25 03:30:06 [2025-04-25 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984199', 'tblTempUsageDetail_20' ) start [2025-04-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984199', 'tblTempUsageDetail_20' ) end [2025-04-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984199', 'tblTempVendorCDR_20' ) start [2025-04-25 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984199', 'tblTempVendorCDR_20' ) end [2025-04-25 03:30:19] Production.INFO: ProcessCDR(1,14984199,1,1,2) [2025-04-25 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984199', 'tblTempUsageDetail_20' ) start [2025-04-25 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984199', 'tblTempUsageDetail_20' ) end [2025-04-25 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:30:22] Production.INFO: ==16042== Releasing lock... [2025-04-25 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:30:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:31:05 [end_date_ymd] => 2025-04-25 03:31:05 [RateCDR] => 1 ) [2025-04-25 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:31:05' and `end` < '2025-04-25 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:31:17] Production.INFO: count ==1280 [2025-04-25 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:31:05 - End Time 2025-04-25 03:31:05 [2025-04-25 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984204', 'tblTempUsageDetail_20' ) start [2025-04-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984204', 'tblTempUsageDetail_20' ) end [2025-04-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984204', 'tblTempVendorCDR_20' ) start [2025-04-25 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984204', 'tblTempVendorCDR_20' ) end [2025-04-25 03:31:18] Production.INFO: ProcessCDR(1,14984204,1,1,2) [2025-04-25 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984204', 'tblTempUsageDetail_20' ) start [2025-04-25 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984204', 'tblTempUsageDetail_20' ) end [2025-04-25 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:31:21] Production.INFO: ==16114== Releasing lock... [2025-04-25 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:31:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:32:05 [end_date_ymd] => 2025-04-25 03:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:32:05' and `end` < '2025-04-25 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-04-25 03:32:18] Production.INFO: count ==1280 [2025-04-25 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:32:05 - End Time 2025-04-25 03:32:05 [2025-04-25 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984209', 'tblTempUsageDetail_20' ) start [2025-04-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984209', 'tblTempUsageDetail_20' ) end [2025-04-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984209', 'tblTempVendorCDR_20' ) start [2025-04-25 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984209', 'tblTempVendorCDR_20' ) end [2025-04-25 03:32:18] Production.INFO: ProcessCDR(1,14984209,1,1,2) [2025-04-25 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984209', 'tblTempUsageDetail_20' ) start [2025-04-25 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984209', 'tblTempUsageDetail_20' ) end [2025-04-25 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:32:22] Production.INFO: ==16184== Releasing lock... [2025-04-25 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:32:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:33:06 [end_date_ymd] => 2025-04-25 03:33:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:33:06' and `end` < '2025-04-25 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-04-25 03:33:18] Production.INFO: count ==1279 [2025-04-25 03:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:33:06 - End Time 2025-04-25 03:33:06 [2025-04-25 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984214', 'tblTempUsageDetail_20' ) start [2025-04-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984214', 'tblTempUsageDetail_20' ) end [2025-04-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984214', 'tblTempVendorCDR_20' ) start [2025-04-25 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984214', 'tblTempVendorCDR_20' ) end [2025-04-25 03:33:19] Production.INFO: ProcessCDR(1,14984214,1,1,2) [2025-04-25 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984214', 'tblTempUsageDetail_20' ) start [2025-04-25 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984214', 'tblTempUsageDetail_20' ) end [2025-04-25 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:33:22] Production.INFO: ==16252== Releasing lock... [2025-04-25 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:33:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:34:05 [end_date_ymd] => 2025-04-25 03:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:34:05' and `end` < '2025-04-25 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-04-25 03:34:18] Production.INFO: count ==1276 [2025-04-25 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:34:05 - End Time 2025-04-25 03:34:05 [2025-04-25 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984219', 'tblTempUsageDetail_20' ) start [2025-04-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984219', 'tblTempUsageDetail_20' ) end [2025-04-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984219', 'tblTempVendorCDR_20' ) start [2025-04-25 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984219', 'tblTempVendorCDR_20' ) end [2025-04-25 03:34:18] Production.INFO: ProcessCDR(1,14984219,1,1,2) [2025-04-25 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984219', 'tblTempUsageDetail_20' ) start [2025-04-25 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984219', 'tblTempUsageDetail_20' ) end [2025-04-25 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:34:22] Production.INFO: ==16369== Releasing lock... [2025-04-25 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:34:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:35:05 [end_date_ymd] => 2025-04-25 03:35:05 [RateCDR] => 1 ) [2025-04-25 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:35:05' and `end` < '2025-04-25 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:35:18] Production.INFO: count ==1275 [2025-04-25 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:35:05 - End Time 2025-04-25 03:35:05 [2025-04-25 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984224', 'tblTempUsageDetail_20' ) start [2025-04-25 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984224', 'tblTempUsageDetail_20' ) end [2025-04-25 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984224', 'tblTempVendorCDR_20' ) start [2025-04-25 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984224', 'tblTempVendorCDR_20' ) end [2025-04-25 03:35:19] Production.INFO: ProcessCDR(1,14984224,1,1,2) [2025-04-25 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984224', 'tblTempUsageDetail_20' ) start [2025-04-25 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984224', 'tblTempUsageDetail_20' ) end [2025-04-25 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:35:22] Production.INFO: ==16441== Releasing lock... [2025-04-25 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:35:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:36:05 [end_date_ymd] => 2025-04-25 03:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:36:05' and `end` < '2025-04-25 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-04-25 03:36:17] Production.INFO: count ==1278 [2025-04-25 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:36:05 - End Time 2025-04-25 03:36:05 [2025-04-25 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984229', 'tblTempUsageDetail_20' ) start [2025-04-25 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984229', 'tblTempUsageDetail_20' ) end [2025-04-25 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984229', 'tblTempVendorCDR_20' ) start [2025-04-25 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984229', 'tblTempVendorCDR_20' ) end [2025-04-25 03:36:18] Production.INFO: ProcessCDR(1,14984229,1,1,2) [2025-04-25 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984229', 'tblTempUsageDetail_20' ) start [2025-04-25 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984229', 'tblTempUsageDetail_20' ) end [2025-04-25 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:36:21] Production.INFO: ==16510== Releasing lock... [2025-04-25 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:36:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:37:06 [end_date_ymd] => 2025-04-25 03:37:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:37:06' and `end` < '2025-04-25 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-04-25 03:37:18] Production.INFO: count ==1277 [2025-04-25 03:37:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:37:06 - End Time 2025-04-25 03:37:06 [2025-04-25 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984234', 'tblTempUsageDetail_20' ) start [2025-04-25 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984234', 'tblTempUsageDetail_20' ) end [2025-04-25 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984234', 'tblTempVendorCDR_20' ) start [2025-04-25 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984234', 'tblTempVendorCDR_20' ) end [2025-04-25 03:37:19] Production.INFO: ProcessCDR(1,14984234,1,1,2) [2025-04-25 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984234', 'tblTempUsageDetail_20' ) start [2025-04-25 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984234', 'tblTempUsageDetail_20' ) end [2025-04-25 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:37:22] Production.INFO: ==16580== Releasing lock... [2025-04-25 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:37:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:38:05 [end_date_ymd] => 2025-04-25 03:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:38:05' and `end` < '2025-04-25 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-04-25 03:38:18] Production.INFO: count ==1277 [2025-04-25 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:38:05 - End Time 2025-04-25 03:38:05 [2025-04-25 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984239', 'tblTempUsageDetail_20' ) start [2025-04-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984239', 'tblTempUsageDetail_20' ) end [2025-04-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984239', 'tblTempVendorCDR_20' ) start [2025-04-25 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984239', 'tblTempVendorCDR_20' ) end [2025-04-25 03:38:18] Production.INFO: ProcessCDR(1,14984239,1,1,2) [2025-04-25 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984239', 'tblTempUsageDetail_20' ) start [2025-04-25 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984239', 'tblTempUsageDetail_20' ) end [2025-04-25 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:38:21] Production.INFO: ==16665== Releasing lock... [2025-04-25 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:38:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:39:05 [end_date_ymd] => 2025-04-25 03:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:39:05' and `end` < '2025-04-25 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-04-25 03:39:18] Production.INFO: count ==1277 [2025-04-25 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:39:05 - End Time 2025-04-25 03:39:05 [2025-04-25 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984244', 'tblTempUsageDetail_20' ) start [2025-04-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984244', 'tblTempUsageDetail_20' ) end [2025-04-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984244', 'tblTempVendorCDR_20' ) start [2025-04-25 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984244', 'tblTempVendorCDR_20' ) end [2025-04-25 03:39:19] Production.INFO: ProcessCDR(1,14984244,1,1,2) [2025-04-25 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984244', 'tblTempUsageDetail_20' ) start [2025-04-25 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984244', 'tblTempUsageDetail_20' ) end [2025-04-25 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:39:22] Production.INFO: ==16757== Releasing lock... [2025-04-25 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:39:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:40:06 [end_date_ymd] => 2025-04-25 03:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:40:06' and `end` < '2025-04-25 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-04-25 03:40:18] Production.INFO: count ==1266 [2025-04-25 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:40:06 - End Time 2025-04-25 03:40:06 [2025-04-25 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984250', 'tblTempUsageDetail_20' ) start [2025-04-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984250', 'tblTempUsageDetail_20' ) end [2025-04-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984250', 'tblTempVendorCDR_20' ) start [2025-04-25 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984250', 'tblTempVendorCDR_20' ) end [2025-04-25 03:40:19] Production.INFO: ProcessCDR(1,14984250,1,1,2) [2025-04-25 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984250', 'tblTempUsageDetail_20' ) start [2025-04-25 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984250', 'tblTempUsageDetail_20' ) end [2025-04-25 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:40:22] Production.INFO: ==16832== Releasing lock... [2025-04-25 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:41:05 [end_date_ymd] => 2025-04-25 03:41:05 [RateCDR] => 1 ) [2025-04-25 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:41:05' and `end` < '2025-04-25 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:41:18] Production.INFO: count ==1259 [2025-04-25 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:41:05 - End Time 2025-04-25 03:41:05 [2025-04-25 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984255', 'tblTempUsageDetail_20' ) start [2025-04-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984255', 'tblTempUsageDetail_20' ) end [2025-04-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984255', 'tblTempVendorCDR_20' ) start [2025-04-25 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984255', 'tblTempVendorCDR_20' ) end [2025-04-25 03:41:18] Production.INFO: ProcessCDR(1,14984255,1,1,2) [2025-04-25 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984255', 'tblTempUsageDetail_20' ) start [2025-04-25 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984255', 'tblTempUsageDetail_20' ) end [2025-04-25 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:41:22] Production.INFO: ==16903== Releasing lock... [2025-04-25 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:42:05 [end_date_ymd] => 2025-04-25 03:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:42:05' and `end` < '2025-04-25 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-04-25 03:42:18] Production.INFO: count ==1256 [2025-04-25 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:42:05 - End Time 2025-04-25 03:42:05 [2025-04-25 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984260', 'tblTempUsageDetail_20' ) start [2025-04-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984260', 'tblTempUsageDetail_20' ) end [2025-04-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984260', 'tblTempVendorCDR_20' ) start [2025-04-25 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984260', 'tblTempVendorCDR_20' ) end [2025-04-25 03:42:19] Production.INFO: ProcessCDR(1,14984260,1,1,2) [2025-04-25 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984260', 'tblTempUsageDetail_20' ) start [2025-04-25 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984260', 'tblTempUsageDetail_20' ) end [2025-04-25 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:42:22] Production.INFO: ==16971== Releasing lock... [2025-04-25 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:43:06 [end_date_ymd] => 2025-04-25 03:43:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:43:06' and `end` < '2025-04-25 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-04-25 03:43:18] Production.INFO: count ==1255 [2025-04-25 03:43:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:43:06 - End Time 2025-04-25 03:43:06 [2025-04-25 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984265', 'tblTempUsageDetail_20' ) start [2025-04-25 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984265', 'tblTempUsageDetail_20' ) end [2025-04-25 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984265', 'tblTempVendorCDR_20' ) start [2025-04-25 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984265', 'tblTempVendorCDR_20' ) end [2025-04-25 03:43:19] Production.INFO: ProcessCDR(1,14984265,1,1,2) [2025-04-25 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984265', 'tblTempUsageDetail_20' ) start [2025-04-25 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984265', 'tblTempUsageDetail_20' ) end [2025-04-25 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:43:22] Production.INFO: ==17040== Releasing lock... [2025-04-25 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:43:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:44:06 [end_date_ymd] => 2025-04-25 03:44:06 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:44:06' and `end` < '2025-04-25 03: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-04-25 03:44:18] Production.INFO: count ==1252 [2025-04-25 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:44:06 - End Time 2025-04-25 03:44:06 [2025-04-25 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984270', 'tblTempUsageDetail_20' ) start [2025-04-25 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984270', 'tblTempUsageDetail_20' ) end [2025-04-25 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984270', 'tblTempVendorCDR_20' ) start [2025-04-25 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984270', 'tblTempVendorCDR_20' ) end [2025-04-25 03:44:19] Production.INFO: ProcessCDR(1,14984270,1,1,2) [2025-04-25 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984270', 'tblTempUsageDetail_20' ) start [2025-04-25 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984270', 'tblTempUsageDetail_20' ) end [2025-04-25 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:44:22] Production.INFO: ==17117== Releasing lock... [2025-04-25 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:44:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:45:06 [end_date_ymd] => 2025-04-25 03:45:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:45:06' and `end` < '2025-04-25 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-04-25 03:45:19] Production.INFO: count ==1248 [2025-04-25 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:45:06 - End Time 2025-04-25 03:45:06 [2025-04-25 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984275', 'tblTempUsageDetail_20' ) start [2025-04-25 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984275', 'tblTempUsageDetail_20' ) end [2025-04-25 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984275', 'tblTempVendorCDR_20' ) start [2025-04-25 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984275', 'tblTempVendorCDR_20' ) end [2025-04-25 03:45:19] Production.INFO: ProcessCDR(1,14984275,1,1,2) [2025-04-25 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984275', 'tblTempUsageDetail_20' ) start [2025-04-25 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984275', 'tblTempUsageDetail_20' ) end [2025-04-25 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:45:22] Production.INFO: ==17193== Releasing lock... [2025-04-25 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:45:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:46:05 [end_date_ymd] => 2025-04-25 03:46:05 [RateCDR] => 1 ) [2025-04-25 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:46:05' and `end` < '2025-04-25 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:46:18] Production.INFO: count ==1248 [2025-04-25 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:46:05 - End Time 2025-04-25 03:46:05 [2025-04-25 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984280', 'tblTempUsageDetail_20' ) start [2025-04-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984280', 'tblTempUsageDetail_20' ) end [2025-04-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984280', 'tblTempVendorCDR_20' ) start [2025-04-25 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984280', 'tblTempVendorCDR_20' ) end [2025-04-25 03:46:18] Production.INFO: ProcessCDR(1,14984280,1,1,2) [2025-04-25 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984280', 'tblTempUsageDetail_20' ) start [2025-04-25 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984280', 'tblTempUsageDetail_20' ) end [2025-04-25 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:46:22] Production.INFO: ==17267== Releasing lock... [2025-04-25 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:46:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:47:06 [end_date_ymd] => 2025-04-25 03:47:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:47:06' and `end` < '2025-04-25 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-04-25 03:47:18] Production.INFO: count ==1247 [2025-04-25 03:47:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:47:06 - End Time 2025-04-25 03:47:06 [2025-04-25 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984285', 'tblTempUsageDetail_20' ) start [2025-04-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984285', 'tblTempUsageDetail_20' ) end [2025-04-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984285', 'tblTempVendorCDR_20' ) start [2025-04-25 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984285', 'tblTempVendorCDR_20' ) end [2025-04-25 03:47:19] Production.INFO: ProcessCDR(1,14984285,1,1,2) [2025-04-25 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984285', 'tblTempUsageDetail_20' ) start [2025-04-25 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984285', 'tblTempUsageDetail_20' ) end [2025-04-25 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:47:22] Production.INFO: ==17338== Releasing lock... [2025-04-25 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:47:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:48:05 [end_date_ymd] => 2025-04-25 03:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:48:05' and `end` < '2025-04-25 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-04-25 03:48:17] Production.INFO: count ==1247 [2025-04-25 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:48:05 - End Time 2025-04-25 03:48:05 [2025-04-25 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984290', 'tblTempUsageDetail_20' ) start [2025-04-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984290', 'tblTempUsageDetail_20' ) end [2025-04-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984290', 'tblTempVendorCDR_20' ) start [2025-04-25 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984290', 'tblTempVendorCDR_20' ) end [2025-04-25 03:48:18] Production.INFO: ProcessCDR(1,14984290,1,1,2) [2025-04-25 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984290', 'tblTempUsageDetail_20' ) start [2025-04-25 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984290', 'tblTempUsageDetail_20' ) end [2025-04-25 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:48:21] Production.INFO: ==17415== Releasing lock... [2025-04-25 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:48:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:49:05 [end_date_ymd] => 2025-04-25 03:49:05 [RateCDR] => 1 ) [2025-04-25 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:49:05' and `end` < '2025-04-25 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:49:18] Production.INFO: count ==1246 [2025-04-25 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:49:05 - End Time 2025-04-25 03:49:05 [2025-04-25 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984295', 'tblTempUsageDetail_20' ) start [2025-04-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984295', 'tblTempUsageDetail_20' ) end [2025-04-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984295', 'tblTempVendorCDR_20' ) start [2025-04-25 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984295', 'tblTempVendorCDR_20' ) end [2025-04-25 03:49:18] Production.INFO: ProcessCDR(1,14984295,1,1,2) [2025-04-25 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984295', 'tblTempUsageDetail_20' ) start [2025-04-25 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984295', 'tblTempUsageDetail_20' ) end [2025-04-25 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:49:22] Production.INFO: ==17529== Releasing lock... [2025-04-25 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:49:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:50:05 [end_date_ymd] => 2025-04-25 03:50:05 [RateCDR] => 1 ) [2025-04-25 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:50:05' and `end` < '2025-04-25 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:50:18] Production.INFO: count ==1242 [2025-04-25 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:50:05 - End Time 2025-04-25 03:50:05 [2025-04-25 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984300', 'tblTempUsageDetail_20' ) start [2025-04-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984300', 'tblTempUsageDetail_20' ) end [2025-04-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984300', 'tblTempVendorCDR_20' ) start [2025-04-25 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984300', 'tblTempVendorCDR_20' ) end [2025-04-25 03:50:19] Production.INFO: ProcessCDR(1,14984300,1,1,2) [2025-04-25 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984300', 'tblTempUsageDetail_20' ) start [2025-04-25 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984300', 'tblTempUsageDetail_20' ) end [2025-04-25 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:50:22] Production.INFO: ==17600== Releasing lock... [2025-04-25 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:51:05 [end_date_ymd] => 2025-04-25 03:51:05 [RateCDR] => 1 ) [2025-04-25 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:51:05' and `end` < '2025-04-25 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:51:17] Production.INFO: count ==1242 [2025-04-25 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:51:05 - End Time 2025-04-25 03:51:05 [2025-04-25 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984306', 'tblTempUsageDetail_20' ) start [2025-04-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984306', 'tblTempUsageDetail_20' ) end [2025-04-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984306', 'tblTempVendorCDR_20' ) start [2025-04-25 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984306', 'tblTempVendorCDR_20' ) end [2025-04-25 03:51:18] Production.INFO: ProcessCDR(1,14984306,1,1,2) [2025-04-25 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984306', 'tblTempUsageDetail_20' ) start [2025-04-25 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984306', 'tblTempUsageDetail_20' ) end [2025-04-25 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:51:21] Production.INFO: ==17671== Releasing lock... [2025-04-25 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:52:04 [end_date_ymd] => 2025-04-25 03:52:04 [RateCDR] => 1 ) [2025-04-25 03:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:52:04' and `end` < '2025-04-25 03:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 03:52:17] Production.INFO: count ==1241 [2025-04-25 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:52:04 - End Time 2025-04-25 03:52:04 [2025-04-25 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984311', 'tblTempUsageDetail_20' ) start [2025-04-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984311', 'tblTempUsageDetail_20' ) end [2025-04-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984311', 'tblTempVendorCDR_20' ) start [2025-04-25 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984311', 'tblTempVendorCDR_20' ) end [2025-04-25 03:52:18] Production.INFO: ProcessCDR(1,14984311,1,1,2) [2025-04-25 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984311', 'tblTempUsageDetail_20' ) start [2025-04-25 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984311', 'tblTempUsageDetail_20' ) end [2025-04-25 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:52:21] Production.INFO: ==17742== Releasing lock... [2025-04-25 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:53:05 [end_date_ymd] => 2025-04-25 03:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:53:05' and `end` < '2025-04-25 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-04-25 03:53:18] Production.INFO: count ==1241 [2025-04-25 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:53:05 - End Time 2025-04-25 03:53:05 [2025-04-25 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984316', 'tblTempUsageDetail_20' ) start [2025-04-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984316', 'tblTempUsageDetail_20' ) end [2025-04-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984316', 'tblTempVendorCDR_20' ) start [2025-04-25 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984316', 'tblTempVendorCDR_20' ) end [2025-04-25 03:53:19] Production.INFO: ProcessCDR(1,14984316,1,1,2) [2025-04-25 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984316', 'tblTempUsageDetail_20' ) start [2025-04-25 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984316', 'tblTempUsageDetail_20' ) end [2025-04-25 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:53:22] Production.INFO: ==17813== Releasing lock... [2025-04-25 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:54:05 [end_date_ymd] => 2025-04-25 03:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:54:05' and `end` < '2025-04-25 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-04-25 03:54:18] Production.INFO: count ==1241 [2025-04-25 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:54:05 - End Time 2025-04-25 03:54:05 [2025-04-25 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984321', 'tblTempUsageDetail_20' ) start [2025-04-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984321', 'tblTempUsageDetail_20' ) end [2025-04-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984321', 'tblTempVendorCDR_20' ) start [2025-04-25 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984321', 'tblTempVendorCDR_20' ) end [2025-04-25 03:54:19] Production.INFO: ProcessCDR(1,14984321,1,1,2) [2025-04-25 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984321', 'tblTempUsageDetail_20' ) start [2025-04-25 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984321', 'tblTempUsageDetail_20' ) end [2025-04-25 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:54:22] Production.INFO: ==17889== Releasing lock... [2025-04-25 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:55:05 [end_date_ymd] => 2025-04-25 03:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:55:05' and `end` < '2025-04-25 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-04-25 03:55:18] Production.INFO: count ==1240 [2025-04-25 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:55:05 - End Time 2025-04-25 03:55:05 [2025-04-25 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984326', 'tblTempUsageDetail_20' ) start [2025-04-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984326', 'tblTempUsageDetail_20' ) end [2025-04-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984326', 'tblTempVendorCDR_20' ) start [2025-04-25 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984326', 'tblTempVendorCDR_20' ) end [2025-04-25 03:55:18] Production.INFO: ProcessCDR(1,14984326,1,1,2) [2025-04-25 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984326', 'tblTempUsageDetail_20' ) start [2025-04-25 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984326', 'tblTempUsageDetail_20' ) end [2025-04-25 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:55:22] Production.INFO: ==17960== Releasing lock... [2025-04-25 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:56:05 [end_date_ymd] => 2025-04-25 03:56:05 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:56:05' and `end` < '2025-04-25 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-04-25 03:56:18] Production.INFO: count ==1239 [2025-04-25 03:56:19] Production.ERROR: pbx CDR StartTime 2025-04-25 00:56:05 - End Time 2025-04-25 03:56:05 [2025-04-25 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984331', 'tblTempUsageDetail_20' ) start [2025-04-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984331', 'tblTempUsageDetail_20' ) end [2025-04-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984331', 'tblTempVendorCDR_20' ) start [2025-04-25 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984331', 'tblTempVendorCDR_20' ) end [2025-04-25 03:56:19] Production.INFO: ProcessCDR(1,14984331,1,1,2) [2025-04-25 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984331', 'tblTempUsageDetail_20' ) start [2025-04-25 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984331', 'tblTempUsageDetail_20' ) end [2025-04-25 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:56:22] Production.INFO: ==18029== Releasing lock... [2025-04-25 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:56:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:57:05 [end_date_ymd] => 2025-04-25 03:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 00:57:05' and `end` < '2025-04-25 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-04-25 03:57:18] Production.INFO: count ==1240 [2025-04-25 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:57:05 - End Time 2025-04-25 03:57:05 [2025-04-25 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984336', 'tblTempUsageDetail_20' ) start [2025-04-25 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984336', 'tblTempUsageDetail_20' ) end [2025-04-25 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984336', 'tblTempVendorCDR_20' ) start [2025-04-25 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984336', 'tblTempVendorCDR_20' ) end [2025-04-25 03:57:18] Production.INFO: ProcessCDR(1,14984336,1,1,2) [2025-04-25 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984336', 'tblTempUsageDetail_20' ) start [2025-04-25 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984336', 'tblTempUsageDetail_20' ) end [2025-04-25 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:57:22] Production.INFO: ==18099== Releasing lock... [2025-04-25 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:58:05 [end_date_ymd] => 2025-04-25 03:58:05 [RateCDR] => 1 ) [2025-04-25 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 00:58:05' and `end` < '2025-04-25 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-04-25 03:58:18] Production.INFO: count ==1238 [2025-04-25 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 00:58:05 - End Time 2025-04-25 03:58:05 [2025-04-25 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984341', 'tblTempUsageDetail_20' ) start [2025-04-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984341', 'tblTempUsageDetail_20' ) end [2025-04-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984341', 'tblTempVendorCDR_20' ) start [2025-04-25 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984341', 'tblTempVendorCDR_20' ) end [2025-04-25 03:58:18] Production.INFO: ProcessCDR(1,14984341,1,1,2) [2025-04-25 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984341', 'tblTempUsageDetail_20' ) start [2025-04-25 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984341', 'tblTempUsageDetail_20' ) end [2025-04-25 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:58:22] Production.INFO: ==18173== Releasing lock... [2025-04-25 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:58:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 00:59:04 [end_date_ymd] => 2025-04-25 03:59:04 [RateCDR] => 1 ) [2025-04-25 03: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-04-25 00:59:04' and `end` < '2025-04-25 03: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-04-25 03:59:17] Production.INFO: count ==1238 [2025-04-25 03:59:17] Production.ERROR: pbx CDR StartTime 2025-04-25 00:59:04 - End Time 2025-04-25 03:59:04 [2025-04-25 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984346', 'tblTempUsageDetail_20' ) start [2025-04-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984346', 'tblTempUsageDetail_20' ) end [2025-04-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984346', 'tblTempVendorCDR_20' ) start [2025-04-25 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984346', 'tblTempVendorCDR_20' ) end [2025-04-25 03:59:17] Production.INFO: ProcessCDR(1,14984346,1,1,2) [2025-04-25 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984346', 'tblTempUsageDetail_20' ) start [2025-04-25 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984346', 'tblTempUsageDetail_20' ) end [2025-04-25 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 03:59:21] Production.INFO: ==18249== Releasing lock... [2025-04-25 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 03:59:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:00:06 [end_date_ymd] => 2025-04-25 04:00:06 [RateCDR] => 1 ) [2025-04-25 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:00:06' and `end` < '2025-04-25 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:00:19] Production.INFO: count ==1238 [2025-04-25 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:00:06 - End Time 2025-04-25 04:00:06 [2025-04-25 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984352', 'tblTempUsageDetail_20' ) start [2025-04-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984352', 'tblTempUsageDetail_20' ) end [2025-04-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984352', 'tblTempVendorCDR_20' ) start [2025-04-25 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984352', 'tblTempVendorCDR_20' ) end [2025-04-25 04:00:20] Production.INFO: ProcessCDR(1,14984352,1,1,2) [2025-04-25 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984352', 'tblTempUsageDetail_20' ) start [2025-04-25 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984352', 'tblTempUsageDetail_20' ) end [2025-04-25 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:00:23] Production.INFO: ==18322== Releasing lock... [2025-04-25 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:00:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:01:05 [end_date_ymd] => 2025-04-25 04:01:05 [RateCDR] => 1 ) [2025-04-25 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:01:05' and `end` < '2025-04-25 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:01:17] Production.INFO: count ==1238 [2025-04-25 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:01:05 - End Time 2025-04-25 04:01:05 [2025-04-25 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984358', 'tblTempUsageDetail_20' ) start [2025-04-25 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984358', 'tblTempUsageDetail_20' ) end [2025-04-25 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984358', 'tblTempVendorCDR_20' ) start [2025-04-25 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984358', 'tblTempVendorCDR_20' ) end [2025-04-25 04:01:18] Production.INFO: ProcessCDR(1,14984358,1,1,2) [2025-04-25 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984358', 'tblTempUsageDetail_20' ) start [2025-04-25 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984358', 'tblTempUsageDetail_20' ) end [2025-04-25 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:01:21] Production.INFO: ==18419== Releasing lock... [2025-04-25 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:02:05 [end_date_ymd] => 2025-04-25 04:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:02:05' and `end` < '2025-04-25 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-04-25 04:02:18] Production.INFO: count ==1234 [2025-04-25 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:02:05 - End Time 2025-04-25 04:02:05 [2025-04-25 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984363', 'tblTempUsageDetail_20' ) start [2025-04-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984363', 'tblTempUsageDetail_20' ) end [2025-04-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984363', 'tblTempVendorCDR_20' ) start [2025-04-25 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984363', 'tblTempVendorCDR_20' ) end [2025-04-25 04:02:19] Production.INFO: ProcessCDR(1,14984363,1,1,2) [2025-04-25 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984363', 'tblTempUsageDetail_20' ) start [2025-04-25 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984363', 'tblTempUsageDetail_20' ) end [2025-04-25 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:02:22] Production.INFO: ==18489== Releasing lock... [2025-04-25 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:02:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:03:05 [end_date_ymd] => 2025-04-25 04:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:03:05' and `end` < '2025-04-25 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-04-25 04:03:18] Production.INFO: count ==1234 [2025-04-25 04:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:03:05 - End Time 2025-04-25 04:03:05 [2025-04-25 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984368', 'tblTempUsageDetail_20' ) start [2025-04-25 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984368', 'tblTempUsageDetail_20' ) end [2025-04-25 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984368', 'tblTempVendorCDR_20' ) start [2025-04-25 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984368', 'tblTempVendorCDR_20' ) end [2025-04-25 04:03:19] Production.INFO: ProcessCDR(1,14984368,1,1,2) [2025-04-25 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984368', 'tblTempUsageDetail_20' ) start [2025-04-25 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984368', 'tblTempUsageDetail_20' ) end [2025-04-25 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:03:22] Production.INFO: ==18560== Releasing lock... [2025-04-25 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:04:05 [end_date_ymd] => 2025-04-25 04:04:05 [RateCDR] => 1 ) [2025-04-25 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:04:05' and `end` < '2025-04-25 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:04:18] Production.INFO: count ==1233 [2025-04-25 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:04:05 - End Time 2025-04-25 04:04:05 [2025-04-25 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984373', 'tblTempUsageDetail_20' ) start [2025-04-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984373', 'tblTempUsageDetail_20' ) end [2025-04-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984373', 'tblTempVendorCDR_20' ) start [2025-04-25 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984373', 'tblTempVendorCDR_20' ) end [2025-04-25 04:04:18] Production.INFO: ProcessCDR(1,14984373,1,1,2) [2025-04-25 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984373', 'tblTempUsageDetail_20' ) start [2025-04-25 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984373', 'tblTempUsageDetail_20' ) end [2025-04-25 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:04:22] Production.INFO: ==18634== Releasing lock... [2025-04-25 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:05:05 [end_date_ymd] => 2025-04-25 04:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:05:05' and `end` < '2025-04-25 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-04-25 04:05:18] Production.INFO: count ==1232 [2025-04-25 04:05:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:05:05 - End Time 2025-04-25 04:05:05 [2025-04-25 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984378', 'tblTempUsageDetail_20' ) start [2025-04-25 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984378', 'tblTempUsageDetail_20' ) end [2025-04-25 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984378', 'tblTempVendorCDR_20' ) start [2025-04-25 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984378', 'tblTempVendorCDR_20' ) end [2025-04-25 04:05:19] Production.INFO: ProcessCDR(1,14984378,1,1,2) [2025-04-25 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984378', 'tblTempUsageDetail_20' ) start [2025-04-25 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984378', 'tblTempUsageDetail_20' ) end [2025-04-25 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:05:22] Production.INFO: ==18744== Releasing lock... [2025-04-25 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:06:05 [end_date_ymd] => 2025-04-25 04:06:05 [RateCDR] => 1 ) [2025-04-25 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:06:05' and `end` < '2025-04-25 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:06:17] Production.INFO: count ==1230 [2025-04-25 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:06:05 - End Time 2025-04-25 04:06:05 [2025-04-25 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984383', 'tblTempUsageDetail_20' ) start [2025-04-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984383', 'tblTempUsageDetail_20' ) end [2025-04-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984383', 'tblTempVendorCDR_20' ) start [2025-04-25 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984383', 'tblTempVendorCDR_20' ) end [2025-04-25 04:06:18] Production.INFO: ProcessCDR(1,14984383,1,1,2) [2025-04-25 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984383', 'tblTempUsageDetail_20' ) start [2025-04-25 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984383', 'tblTempUsageDetail_20' ) end [2025-04-25 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:06:21] Production.INFO: ==18817== Releasing lock... [2025-04-25 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:06:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:07:05 [end_date_ymd] => 2025-04-25 04:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:07:05' and `end` < '2025-04-25 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-04-25 04:07:17] Production.INFO: count ==1230 [2025-04-25 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:07:05 - End Time 2025-04-25 04:07:05 [2025-04-25 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984388', 'tblTempUsageDetail_20' ) start [2025-04-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984388', 'tblTempUsageDetail_20' ) end [2025-04-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984388', 'tblTempVendorCDR_20' ) start [2025-04-25 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984388', 'tblTempVendorCDR_20' ) end [2025-04-25 04:07:18] Production.INFO: ProcessCDR(1,14984388,1,1,2) [2025-04-25 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984388', 'tblTempUsageDetail_20' ) start [2025-04-25 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984388', 'tblTempUsageDetail_20' ) end [2025-04-25 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:07:21] Production.INFO: ==18887== Releasing lock... [2025-04-25 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:08:04 [end_date_ymd] => 2025-04-25 04:08:04 [RateCDR] => 1 ) [2025-04-25 04:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:08:04' and `end` < '2025-04-25 04:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:08:17] Production.INFO: count ==1230 [2025-04-25 04:08:17] Production.ERROR: pbx CDR StartTime 2025-04-25 01:08:04 - End Time 2025-04-25 04:08:04 [2025-04-25 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984393', 'tblTempUsageDetail_20' ) start [2025-04-25 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984393', 'tblTempUsageDetail_20' ) end [2025-04-25 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984393', 'tblTempVendorCDR_20' ) start [2025-04-25 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984393', 'tblTempVendorCDR_20' ) end [2025-04-25 04:08:17] Production.INFO: ProcessCDR(1,14984393,1,1,2) [2025-04-25 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984393', 'tblTempUsageDetail_20' ) start [2025-04-25 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984393', 'tblTempUsageDetail_20' ) end [2025-04-25 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:08:20] Production.INFO: ==18959== Releasing lock... [2025-04-25 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:08:20] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:09:05 [end_date_ymd] => 2025-04-25 04:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:09:05' and `end` < '2025-04-25 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-04-25 04:09:18] Production.INFO: count ==1233 [2025-04-25 04:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:09:05 - End Time 2025-04-25 04:09:05 [2025-04-25 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984398', 'tblTempUsageDetail_20' ) start [2025-04-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984398', 'tblTempUsageDetail_20' ) end [2025-04-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984398', 'tblTempVendorCDR_20' ) start [2025-04-25 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984398', 'tblTempVendorCDR_20' ) end [2025-04-25 04:09:19] Production.INFO: ProcessCDR(1,14984398,1,1,2) [2025-04-25 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984398', 'tblTempUsageDetail_20' ) start [2025-04-25 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984398', 'tblTempUsageDetail_20' ) end [2025-04-25 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:09:22] Production.INFO: ==19033== Releasing lock... [2025-04-25 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:10:06 [end_date_ymd] => 2025-04-25 04:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:10:06' and `end` < '2025-04-25 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-04-25 04:10:19] Production.INFO: count ==1225 [2025-04-25 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:10:06 - End Time 2025-04-25 04:10:06 [2025-04-25 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984404', 'tblTempUsageDetail_20' ) start [2025-04-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984404', 'tblTempUsageDetail_20' ) end [2025-04-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984404', 'tblTempVendorCDR_20' ) start [2025-04-25 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984404', 'tblTempVendorCDR_20' ) end [2025-04-25 04:10:19] Production.INFO: ProcessCDR(1,14984404,1,1,2) [2025-04-25 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984404', 'tblTempUsageDetail_20' ) start [2025-04-25 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984404', 'tblTempUsageDetail_20' ) end [2025-04-25 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:10:23] Production.INFO: ==19109== Releasing lock... [2025-04-25 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:11:04 [end_date_ymd] => 2025-04-25 04:11:04 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:11:04' and `end` < '2025-04-25 04: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-04-25 04:11:17] Production.INFO: count ==1213 [2025-04-25 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:11:04 - End Time 2025-04-25 04:11:04 [2025-04-25 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984409', 'tblTempUsageDetail_20' ) start [2025-04-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984409', 'tblTempUsageDetail_20' ) end [2025-04-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984409', 'tblTempVendorCDR_20' ) start [2025-04-25 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984409', 'tblTempVendorCDR_20' ) end [2025-04-25 04:11:18] Production.INFO: ProcessCDR(1,14984409,1,1,2) [2025-04-25 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984409', 'tblTempUsageDetail_20' ) start [2025-04-25 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984409', 'tblTempUsageDetail_20' ) end [2025-04-25 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:11:21] Production.INFO: ==19181== Releasing lock... [2025-04-25 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:11:21] Production.INFO: 38 MB #Memory Used# [2025-04-25 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:12:05 [end_date_ymd] => 2025-04-25 04:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:12:05' and `end` < '2025-04-25 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-04-25 04:12:18] Production.INFO: count ==1210 [2025-04-25 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:12:05 - End Time 2025-04-25 04:12:05 [2025-04-25 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984414', 'tblTempUsageDetail_20' ) start [2025-04-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984414', 'tblTempUsageDetail_20' ) end [2025-04-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984414', 'tblTempVendorCDR_20' ) start [2025-04-25 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984414', 'tblTempVendorCDR_20' ) end [2025-04-25 04:12:18] Production.INFO: ProcessCDR(1,14984414,1,1,2) [2025-04-25 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984414', 'tblTempUsageDetail_20' ) start [2025-04-25 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984414', 'tblTempUsageDetail_20' ) end [2025-04-25 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:12:21] Production.INFO: ==19254== Releasing lock... [2025-04-25 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:12:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:13:05 [end_date_ymd] => 2025-04-25 04:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:13:05' and `end` < '2025-04-25 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-04-25 04:13:17] Production.INFO: count ==1209 [2025-04-25 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:13:05 - End Time 2025-04-25 04:13:05 [2025-04-25 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984419', 'tblTempUsageDetail_20' ) start [2025-04-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984419', 'tblTempUsageDetail_20' ) end [2025-04-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984419', 'tblTempVendorCDR_20' ) start [2025-04-25 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984419', 'tblTempVendorCDR_20' ) end [2025-04-25 04:13:18] Production.INFO: ProcessCDR(1,14984419,1,1,2) [2025-04-25 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984419', 'tblTempUsageDetail_20' ) start [2025-04-25 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984419', 'tblTempUsageDetail_20' ) end [2025-04-25 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:13:21] Production.INFO: ==19326== Releasing lock... [2025-04-25 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:13:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:14:05 [end_date_ymd] => 2025-04-25 04:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:14:05' and `end` < '2025-04-25 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-04-25 04:14:17] Production.INFO: count ==1209 [2025-04-25 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:14:05 - End Time 2025-04-25 04:14:05 [2025-04-25 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984424', 'tblTempUsageDetail_20' ) start [2025-04-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984424', 'tblTempUsageDetail_20' ) end [2025-04-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984424', 'tblTempVendorCDR_20' ) start [2025-04-25 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984424', 'tblTempVendorCDR_20' ) end [2025-04-25 04:14:18] Production.INFO: ProcessCDR(1,14984424,1,1,2) [2025-04-25 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984424', 'tblTempUsageDetail_20' ) start [2025-04-25 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984424', 'tblTempUsageDetail_20' ) end [2025-04-25 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:14:21] Production.INFO: ==19398== Releasing lock... [2025-04-25 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:14:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:15:04 [end_date_ymd] => 2025-04-25 04:15:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:15:04' and `end` < '2025-04-25 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-04-25 04:15:17] Production.INFO: count ==1206 [2025-04-25 04:15:17] Production.ERROR: pbx CDR StartTime 2025-04-25 01:15:04 - End Time 2025-04-25 04:15:04 [2025-04-25 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984429', 'tblTempUsageDetail_20' ) start [2025-04-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984429', 'tblTempUsageDetail_20' ) end [2025-04-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984429', 'tblTempVendorCDR_20' ) start [2025-04-25 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984429', 'tblTempVendorCDR_20' ) end [2025-04-25 04:15:17] Production.INFO: ProcessCDR(1,14984429,1,1,2) [2025-04-25 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984429', 'tblTempUsageDetail_20' ) start [2025-04-25 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984429', 'tblTempUsageDetail_20' ) end [2025-04-25 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:15:21] Production.INFO: ==19473== Releasing lock... [2025-04-25 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:15:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:16:05 [end_date_ymd] => 2025-04-25 04:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:16:05' and `end` < '2025-04-25 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-04-25 04:16:17] Production.INFO: count ==1205 [2025-04-25 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:16:05 - End Time 2025-04-25 04:16:05 [2025-04-25 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984434', 'tblTempUsageDetail_20' ) start [2025-04-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984434', 'tblTempUsageDetail_20' ) end [2025-04-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984434', 'tblTempVendorCDR_20' ) start [2025-04-25 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984434', 'tblTempVendorCDR_20' ) end [2025-04-25 04:16:18] Production.INFO: ProcessCDR(1,14984434,1,1,2) [2025-04-25 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984434', 'tblTempUsageDetail_20' ) start [2025-04-25 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984434', 'tblTempUsageDetail_20' ) end [2025-04-25 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:16:21] Production.INFO: ==19546== Releasing lock... [2025-04-25 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:16:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:17:05 [end_date_ymd] => 2025-04-25 04:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:17:05' and `end` < '2025-04-25 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-04-25 04:17:18] Production.INFO: count ==1204 [2025-04-25 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:17:05 - End Time 2025-04-25 04:17:05 [2025-04-25 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984439', 'tblTempUsageDetail_20' ) start [2025-04-25 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984439', 'tblTempUsageDetail_20' ) end [2025-04-25 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984439', 'tblTempVendorCDR_20' ) start [2025-04-25 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984439', 'tblTempVendorCDR_20' ) end [2025-04-25 04:17:19] Production.INFO: ProcessCDR(1,14984439,1,1,2) [2025-04-25 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984439', 'tblTempUsageDetail_20' ) start [2025-04-25 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984439', 'tblTempUsageDetail_20' ) end [2025-04-25 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:17:22] Production.INFO: ==19621== Releasing lock... [2025-04-25 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:18:05 [end_date_ymd] => 2025-04-25 04:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:18:05' and `end` < '2025-04-25 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-04-25 04:18:17] Production.INFO: count ==1205 [2025-04-25 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:18:05 - End Time 2025-04-25 04:18:05 [2025-04-25 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984444', 'tblTempUsageDetail_20' ) start [2025-04-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984444', 'tblTempUsageDetail_20' ) end [2025-04-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984444', 'tblTempVendorCDR_20' ) start [2025-04-25 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984444', 'tblTempVendorCDR_20' ) end [2025-04-25 04:18:18] Production.INFO: ProcessCDR(1,14984444,1,1,2) [2025-04-25 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984444', 'tblTempUsageDetail_20' ) start [2025-04-25 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984444', 'tblTempUsageDetail_20' ) end [2025-04-25 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:18:21] Production.INFO: ==19696== Releasing lock... [2025-04-25 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:18:21] Production.INFO: 37 MB #Memory Used# [2025-04-25 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:19:05 [end_date_ymd] => 2025-04-25 04:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:19:05' and `end` < '2025-04-25 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-04-25 04:19:18] Production.INFO: count ==1204 [2025-04-25 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:19:05 - End Time 2025-04-25 04:19:05 [2025-04-25 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984449', 'tblTempUsageDetail_20' ) start [2025-04-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984449', 'tblTempUsageDetail_20' ) end [2025-04-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984449', 'tblTempVendorCDR_20' ) start [2025-04-25 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984449', 'tblTempVendorCDR_20' ) end [2025-04-25 04:19:18] Production.INFO: ProcessCDR(1,14984449,1,1,2) [2025-04-25 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984449', 'tblTempUsageDetail_20' ) start [2025-04-25 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984449', 'tblTempUsageDetail_20' ) end [2025-04-25 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:19:22] Production.INFO: ==19769== Releasing lock... [2025-04-25 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:20:05 [end_date_ymd] => 2025-04-25 04:20:05 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:20:05' and `end` < '2025-04-25 04: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-04-25 04:20:18] Production.INFO: count ==1213 [2025-04-25 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:20:05 - End Time 2025-04-25 04:20:05 [2025-04-25 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984454', 'tblTempUsageDetail_20' ) start [2025-04-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984454', 'tblTempUsageDetail_20' ) end [2025-04-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984454', 'tblTempVendorCDR_20' ) start [2025-04-25 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984454', 'tblTempVendorCDR_20' ) end [2025-04-25 04:20:19] Production.INFO: ProcessCDR(1,14984454,1,1,2) [2025-04-25 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984454', 'tblTempUsageDetail_20' ) start [2025-04-25 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984454', 'tblTempUsageDetail_20' ) end [2025-04-25 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:20:22] Production.INFO: ==19881== Releasing lock... [2025-04-25 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:20:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:21:05 [end_date_ymd] => 2025-04-25 04:21:05 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:21:05' and `end` < '2025-04-25 04: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-04-25 04:21:17] Production.INFO: count ==1216 [2025-04-25 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:21:05 - End Time 2025-04-25 04:21:05 [2025-04-25 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984460', 'tblTempUsageDetail_20' ) start [2025-04-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984460', 'tblTempUsageDetail_20' ) end [2025-04-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984460', 'tblTempVendorCDR_20' ) start [2025-04-25 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984460', 'tblTempVendorCDR_20' ) end [2025-04-25 04:21:18] Production.INFO: ProcessCDR(1,14984460,1,1,2) [2025-04-25 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984460', 'tblTempUsageDetail_20' ) start [2025-04-25 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984460', 'tblTempUsageDetail_20' ) end [2025-04-25 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:21:21] Production.INFO: ==19954== Releasing lock... [2025-04-25 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:21:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:22:05 [end_date_ymd] => 2025-04-25 04:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:22:05' and `end` < '2025-04-25 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-04-25 04:22:18] Production.INFO: count ==1215 [2025-04-25 04:22:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:22:05 - End Time 2025-04-25 04:22:05 [2025-04-25 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984465', 'tblTempUsageDetail_20' ) start [2025-04-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984465', 'tblTempUsageDetail_20' ) end [2025-04-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984465', 'tblTempVendorCDR_20' ) start [2025-04-25 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984465', 'tblTempVendorCDR_20' ) end [2025-04-25 04:22:19] Production.INFO: ProcessCDR(1,14984465,1,1,2) [2025-04-25 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984465', 'tblTempUsageDetail_20' ) start [2025-04-25 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984465', 'tblTempUsageDetail_20' ) end [2025-04-25 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:22:22] Production.INFO: ==20026== Releasing lock... [2025-04-25 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:23:05 [end_date_ymd] => 2025-04-25 04:23:05 [RateCDR] => 1 ) [2025-04-25 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:23:05' and `end` < '2025-04-25 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:23:18] Production.INFO: count ==1215 [2025-04-25 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:23:05 - End Time 2025-04-25 04:23:05 [2025-04-25 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984470', 'tblTempUsageDetail_20' ) start [2025-04-25 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984470', 'tblTempUsageDetail_20' ) end [2025-04-25 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984470', 'tblTempVendorCDR_20' ) start [2025-04-25 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984470', 'tblTempVendorCDR_20' ) end [2025-04-25 04:23:19] Production.INFO: ProcessCDR(1,14984470,1,1,2) [2025-04-25 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984470', 'tblTempUsageDetail_20' ) start [2025-04-25 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984470', 'tblTempUsageDetail_20' ) end [2025-04-25 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:23:22] Production.INFO: ==20099== Releasing lock... [2025-04-25 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:24:06 [end_date_ymd] => 2025-04-25 04:24:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:24:06' and `end` < '2025-04-25 04: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-04-25 04:24:19] Production.INFO: count ==1215 [2025-04-25 04:24:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:24:06 - End Time 2025-04-25 04:24:06 [2025-04-25 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984475', 'tblTempUsageDetail_20' ) start [2025-04-25 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984475', 'tblTempUsageDetail_20' ) end [2025-04-25 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984475', 'tblTempVendorCDR_20' ) start [2025-04-25 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984475', 'tblTempVendorCDR_20' ) end [2025-04-25 04:24:19] Production.INFO: ProcessCDR(1,14984475,1,1,2) [2025-04-25 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984475', 'tblTempUsageDetail_20' ) start [2025-04-25 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984475', 'tblTempUsageDetail_20' ) end [2025-04-25 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:24:23] Production.INFO: ==20171== Releasing lock... [2025-04-25 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:25:05 [end_date_ymd] => 2025-04-25 04:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:25:05' and `end` < '2025-04-25 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-04-25 04:25:18] Production.INFO: count ==1214 [2025-04-25 04:25:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:25:05 - End Time 2025-04-25 04:25:05 [2025-04-25 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984480', 'tblTempUsageDetail_20' ) start [2025-04-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984480', 'tblTempUsageDetail_20' ) end [2025-04-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984480', 'tblTempVendorCDR_20' ) start [2025-04-25 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984480', 'tblTempVendorCDR_20' ) end [2025-04-25 04:25:19] Production.INFO: ProcessCDR(1,14984480,1,1,2) [2025-04-25 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984480', 'tblTempUsageDetail_20' ) start [2025-04-25 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984480', 'tblTempUsageDetail_20' ) end [2025-04-25 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:25:22] Production.INFO: ==20242== Releasing lock... [2025-04-25 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:26:05 [end_date_ymd] => 2025-04-25 04:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:26:05' and `end` < '2025-04-25 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-04-25 04:26:18] Production.INFO: count ==1213 [2025-04-25 04:26:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:26:05 - End Time 2025-04-25 04:26:05 [2025-04-25 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984485', 'tblTempUsageDetail_20' ) start [2025-04-25 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984485', 'tblTempUsageDetail_20' ) end [2025-04-25 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984485', 'tblTempVendorCDR_20' ) start [2025-04-25 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984485', 'tblTempVendorCDR_20' ) end [2025-04-25 04:26:19] Production.INFO: ProcessCDR(1,14984485,1,1,2) [2025-04-25 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984485', 'tblTempUsageDetail_20' ) start [2025-04-25 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984485', 'tblTempUsageDetail_20' ) end [2025-04-25 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:26:22] Production.INFO: ==20313== Releasing lock... [2025-04-25 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:26:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:27:05 [end_date_ymd] => 2025-04-25 04:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:27:05' and `end` < '2025-04-25 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-04-25 04:27:17] Production.INFO: count ==1210 [2025-04-25 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:27:05 - End Time 2025-04-25 04:27:05 [2025-04-25 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984490', 'tblTempUsageDetail_20' ) start [2025-04-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984490', 'tblTempUsageDetail_20' ) end [2025-04-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984490', 'tblTempVendorCDR_20' ) start [2025-04-25 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984490', 'tblTempVendorCDR_20' ) end [2025-04-25 04:27:18] Production.INFO: ProcessCDR(1,14984490,1,1,2) [2025-04-25 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984490', 'tblTempUsageDetail_20' ) start [2025-04-25 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984490', 'tblTempUsageDetail_20' ) end [2025-04-25 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:27:21] Production.INFO: ==20383== Releasing lock... [2025-04-25 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:28:05 [end_date_ymd] => 2025-04-25 04:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:28:05' and `end` < '2025-04-25 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-04-25 04:28:18] Production.INFO: count ==1209 [2025-04-25 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:28:05 - End Time 2025-04-25 04:28:05 [2025-04-25 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984495', 'tblTempUsageDetail_20' ) start [2025-04-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984495', 'tblTempUsageDetail_20' ) end [2025-04-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984495', 'tblTempVendorCDR_20' ) start [2025-04-25 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984495', 'tblTempVendorCDR_20' ) end [2025-04-25 04:28:18] Production.INFO: ProcessCDR(1,14984495,1,1,2) [2025-04-25 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984495', 'tblTempUsageDetail_20' ) start [2025-04-25 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984495', 'tblTempUsageDetail_20' ) end [2025-04-25 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:28:21] Production.INFO: ==20460== Releasing lock... [2025-04-25 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:28:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:29:05 [end_date_ymd] => 2025-04-25 04:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:29:05' and `end` < '2025-04-25 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-04-25 04:29:17] Production.INFO: count ==1207 [2025-04-25 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:29:05 - End Time 2025-04-25 04:29:05 [2025-04-25 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984500', 'tblTempUsageDetail_20' ) start [2025-04-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984500', 'tblTempUsageDetail_20' ) end [2025-04-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984500', 'tblTempVendorCDR_20' ) start [2025-04-25 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984500', 'tblTempVendorCDR_20' ) end [2025-04-25 04:29:18] Production.INFO: ProcessCDR(1,14984500,1,1,2) [2025-04-25 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984500', 'tblTempUsageDetail_20' ) start [2025-04-25 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984500', 'tblTempUsageDetail_20' ) end [2025-04-25 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:29:21] Production.INFO: ==20532== Releasing lock... [2025-04-25 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:29:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:30:06 [end_date_ymd] => 2025-04-25 04:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:30:06' and `end` < '2025-04-25 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-04-25 04:30:19] Production.INFO: count ==1200 [2025-04-25 04:30:20] Production.ERROR: pbx CDR StartTime 2025-04-25 01:30:06 - End Time 2025-04-25 04:30:06 [2025-04-25 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984506', 'tblTempUsageDetail_20' ) start [2025-04-25 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984506', 'tblTempUsageDetail_20' ) end [2025-04-25 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984506', 'tblTempVendorCDR_20' ) start [2025-04-25 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984506', 'tblTempVendorCDR_20' ) end [2025-04-25 04:30:20] Production.INFO: ProcessCDR(1,14984506,1,1,2) [2025-04-25 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984506', 'tblTempUsageDetail_20' ) start [2025-04-25 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984506', 'tblTempUsageDetail_20' ) end [2025-04-25 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:30:23] Production.INFO: ==20606== Releasing lock... [2025-04-25 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:31:05 [end_date_ymd] => 2025-04-25 04:31:05 [RateCDR] => 1 ) [2025-04-25 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:31:05' and `end` < '2025-04-25 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:31:17] Production.INFO: count ==1174 [2025-04-25 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:31:05 - End Time 2025-04-25 04:31:05 [2025-04-25 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984512', 'tblTempUsageDetail_20' ) start [2025-04-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984512', 'tblTempUsageDetail_20' ) end [2025-04-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984512', 'tblTempVendorCDR_20' ) start [2025-04-25 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984512', 'tblTempVendorCDR_20' ) end [2025-04-25 04:31:18] Production.INFO: ProcessCDR(1,14984512,1,1,2) [2025-04-25 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984512', 'tblTempUsageDetail_20' ) start [2025-04-25 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984512', 'tblTempUsageDetail_20' ) end [2025-04-25 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:31:21] Production.INFO: ==20745== Releasing lock... [2025-04-25 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:31:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:32:05 [end_date_ymd] => 2025-04-25 04:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:32:05' and `end` < '2025-04-25 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-04-25 04:32:18] Production.INFO: count ==1171 [2025-04-25 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:32:05 - End Time 2025-04-25 04:32:05 [2025-04-25 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984517', 'tblTempUsageDetail_20' ) start [2025-04-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984517', 'tblTempUsageDetail_20' ) end [2025-04-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984517', 'tblTempVendorCDR_20' ) start [2025-04-25 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984517', 'tblTempVendorCDR_20' ) end [2025-04-25 04:32:18] Production.INFO: ProcessCDR(1,14984517,1,1,2) [2025-04-25 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984517', 'tblTempUsageDetail_20' ) start [2025-04-25 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984517', 'tblTempUsageDetail_20' ) end [2025-04-25 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:32:22] Production.INFO: ==20817== Releasing lock... [2025-04-25 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:33:06 [end_date_ymd] => 2025-04-25 04:33:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:33:06' and `end` < '2025-04-25 04: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-04-25 04:33:18] Production.INFO: count ==1170 [2025-04-25 04:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:33:06 - End Time 2025-04-25 04:33:06 [2025-04-25 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984522', 'tblTempUsageDetail_20' ) start [2025-04-25 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984522', 'tblTempUsageDetail_20' ) end [2025-04-25 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984522', 'tblTempVendorCDR_20' ) start [2025-04-25 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984522', 'tblTempVendorCDR_20' ) end [2025-04-25 04:33:19] Production.INFO: ProcessCDR(1,14984522,1,1,2) [2025-04-25 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984522', 'tblTempUsageDetail_20' ) start [2025-04-25 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984522', 'tblTempUsageDetail_20' ) end [2025-04-25 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:33:22] Production.INFO: ==20894== Releasing lock... [2025-04-25 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:34:05 [end_date_ymd] => 2025-04-25 04:34:05 [RateCDR] => 1 ) [2025-04-25 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:34:05' and `end` < '2025-04-25 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:34:17] Production.INFO: count ==1168 [2025-04-25 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:34:05 - End Time 2025-04-25 04:34:05 [2025-04-25 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984527', 'tblTempUsageDetail_20' ) start [2025-04-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984527', 'tblTempUsageDetail_20' ) end [2025-04-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984527', 'tblTempVendorCDR_20' ) start [2025-04-25 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984527', 'tblTempVendorCDR_20' ) end [2025-04-25 04:34:18] Production.INFO: ProcessCDR(1,14984527,1,1,2) [2025-04-25 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984527', 'tblTempUsageDetail_20' ) start [2025-04-25 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984527', 'tblTempUsageDetail_20' ) end [2025-04-25 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:34:21] Production.INFO: ==20966== Releasing lock... [2025-04-25 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:34:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:35:05 [end_date_ymd] => 2025-04-25 04:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:35:05' and `end` < '2025-04-25 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-04-25 04:35:18] Production.INFO: count ==1168 [2025-04-25 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:35:05 - End Time 2025-04-25 04:35:05 [2025-04-25 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984532', 'tblTempUsageDetail_20' ) start [2025-04-25 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984532', 'tblTempUsageDetail_20' ) end [2025-04-25 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984532', 'tblTempVendorCDR_20' ) start [2025-04-25 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984532', 'tblTempVendorCDR_20' ) end [2025-04-25 04:35:18] Production.INFO: ProcessCDR(1,14984532,1,1,2) [2025-04-25 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984532', 'tblTempUsageDetail_20' ) start [2025-04-25 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984532', 'tblTempUsageDetail_20' ) end [2025-04-25 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:35:22] Production.INFO: ==21038== Releasing lock... [2025-04-25 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:36:05 [end_date_ymd] => 2025-04-25 04:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:36:05' and `end` < '2025-04-25 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-04-25 04:36:17] Production.INFO: count ==1168 [2025-04-25 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:36:05 - End Time 2025-04-25 04:36:05 [2025-04-25 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984537', 'tblTempUsageDetail_20' ) start [2025-04-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984537', 'tblTempUsageDetail_20' ) end [2025-04-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984537', 'tblTempVendorCDR_20' ) start [2025-04-25 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984537', 'tblTempVendorCDR_20' ) end [2025-04-25 04:36:18] Production.INFO: ProcessCDR(1,14984537,1,1,2) [2025-04-25 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984537', 'tblTempUsageDetail_20' ) start [2025-04-25 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984537', 'tblTempUsageDetail_20' ) end [2025-04-25 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:36:21] Production.INFO: ==21147== Releasing lock... [2025-04-25 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:36:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:37:05 [end_date_ymd] => 2025-04-25 04:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:37:05' and `end` < '2025-04-25 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-04-25 04:37:18] Production.INFO: count ==1167 [2025-04-25 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:37:05 - End Time 2025-04-25 04:37:05 [2025-04-25 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984542', 'tblTempUsageDetail_20' ) start [2025-04-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984542', 'tblTempUsageDetail_20' ) end [2025-04-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984542', 'tblTempVendorCDR_20' ) start [2025-04-25 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984542', 'tblTempVendorCDR_20' ) end [2025-04-25 04:37:18] Production.INFO: ProcessCDR(1,14984542,1,1,2) [2025-04-25 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984542', 'tblTempUsageDetail_20' ) start [2025-04-25 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984542', 'tblTempUsageDetail_20' ) end [2025-04-25 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:37:22] Production.INFO: ==21232== Releasing lock... [2025-04-25 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:37:22] Production.INFO: 37 MB #Memory Used# [2025-04-25 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:38:06 [end_date_ymd] => 2025-04-25 04:38:06 [RateCDR] => 1 ) [2025-04-25 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:38:06' and `end` < '2025-04-25 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:38:18] Production.INFO: count ==1167 [2025-04-25 04:38:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:38:06 - End Time 2025-04-25 04:38:06 [2025-04-25 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984547', 'tblTempUsageDetail_20' ) start [2025-04-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984547', 'tblTempUsageDetail_20' ) end [2025-04-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984547', 'tblTempVendorCDR_20' ) start [2025-04-25 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984547', 'tblTempVendorCDR_20' ) end [2025-04-25 04:38:19] Production.INFO: ProcessCDR(1,14984547,1,1,2) [2025-04-25 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984547', 'tblTempUsageDetail_20' ) start [2025-04-25 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984547', 'tblTempUsageDetail_20' ) end [2025-04-25 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:38:22] Production.INFO: ==21331== Releasing lock... [2025-04-25 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:38:22] Production.INFO: 37 MB #Memory Used# [2025-04-25 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:39:04 [end_date_ymd] => 2025-04-25 04:39:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:39:04' and `end` < '2025-04-25 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-04-25 04:39:17] Production.INFO: count ==1164 [2025-04-25 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:39:04 - End Time 2025-04-25 04:39:04 [2025-04-25 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984552', 'tblTempUsageDetail_20' ) start [2025-04-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984552', 'tblTempUsageDetail_20' ) end [2025-04-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984552', 'tblTempVendorCDR_20' ) start [2025-04-25 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984552', 'tblTempVendorCDR_20' ) end [2025-04-25 04:39:18] Production.INFO: ProcessCDR(1,14984552,1,1,2) [2025-04-25 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984552', 'tblTempUsageDetail_20' ) start [2025-04-25 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984552', 'tblTempUsageDetail_20' ) end [2025-04-25 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:39:21] Production.INFO: ==21413== Releasing lock... [2025-04-25 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:39:21] Production.INFO: 37 MB #Memory Used# [2025-04-25 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:40:06 [end_date_ymd] => 2025-04-25 04:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:40:06' and `end` < '2025-04-25 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-04-25 04:40:19] Production.INFO: count ==1153 [2025-04-25 04:40:20] Production.ERROR: pbx CDR StartTime 2025-04-25 01:40:06 - End Time 2025-04-25 04:40:06 [2025-04-25 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984558', 'tblTempUsageDetail_20' ) start [2025-04-25 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984558', 'tblTempUsageDetail_20' ) end [2025-04-25 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984558', 'tblTempVendorCDR_20' ) start [2025-04-25 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984558', 'tblTempVendorCDR_20' ) end [2025-04-25 04:40:20] Production.INFO: ProcessCDR(1,14984558,1,1,2) [2025-04-25 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984558', 'tblTempUsageDetail_20' ) start [2025-04-25 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984558', 'tblTempUsageDetail_20' ) end [2025-04-25 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:40:23] Production.INFO: ==21514== Releasing lock... [2025-04-25 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:40:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:41:05 [end_date_ymd] => 2025-04-25 04:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:41:05' and `end` < '2025-04-25 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-04-25 04:41:18] Production.INFO: count ==1150 [2025-04-25 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:41:05 - End Time 2025-04-25 04:41:05 [2025-04-25 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984563', 'tblTempUsageDetail_20' ) start [2025-04-25 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984563', 'tblTempUsageDetail_20' ) end [2025-04-25 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984563', 'tblTempVendorCDR_20' ) start [2025-04-25 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984563', 'tblTempVendorCDR_20' ) end [2025-04-25 04:41:19] Production.INFO: ProcessCDR(1,14984563,1,1,2) [2025-04-25 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984563', 'tblTempUsageDetail_20' ) start [2025-04-25 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984563', 'tblTempUsageDetail_20' ) end [2025-04-25 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:41:22] Production.INFO: ==21612== Releasing lock... [2025-04-25 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:41:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:42:06 [end_date_ymd] => 2025-04-25 04:42:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:42:06' and `end` < '2025-04-25 04: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-04-25 04:42:19] Production.INFO: count ==1148 [2025-04-25 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:42:06 - End Time 2025-04-25 04:42:06 [2025-04-25 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984568', 'tblTempUsageDetail_20' ) start [2025-04-25 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984568', 'tblTempUsageDetail_20' ) end [2025-04-25 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984568', 'tblTempVendorCDR_20' ) start [2025-04-25 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984568', 'tblTempVendorCDR_20' ) end [2025-04-25 04:42:19] Production.INFO: ProcessCDR(1,14984568,1,1,2) [2025-04-25 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984568', 'tblTempUsageDetail_20' ) start [2025-04-25 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984568', 'tblTempUsageDetail_20' ) end [2025-04-25 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:42:23] Production.INFO: ==21708== Releasing lock... [2025-04-25 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:42:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:43:05 [end_date_ymd] => 2025-04-25 04:43:05 [RateCDR] => 1 ) [2025-04-25 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:43:05' and `end` < '2025-04-25 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:43:18] Production.INFO: count ==1148 [2025-04-25 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:43:05 - End Time 2025-04-25 04:43:05 [2025-04-25 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984573', 'tblTempUsageDetail_20' ) start [2025-04-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984573', 'tblTempUsageDetail_20' ) end [2025-04-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984573', 'tblTempVendorCDR_20' ) start [2025-04-25 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984573', 'tblTempVendorCDR_20' ) end [2025-04-25 04:43:18] Production.INFO: ProcessCDR(1,14984573,1,1,2) [2025-04-25 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984573', 'tblTempUsageDetail_20' ) start [2025-04-25 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984573', 'tblTempUsageDetail_20' ) end [2025-04-25 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:43:22] Production.INFO: ==21807== Releasing lock... [2025-04-25 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:43:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:44:05 [end_date_ymd] => 2025-04-25 04:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:44:05' and `end` < '2025-04-25 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-04-25 04:44:18] Production.INFO: count ==1148 [2025-04-25 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:44:05 - End Time 2025-04-25 04:44:05 [2025-04-25 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984578', 'tblTempUsageDetail_20' ) start [2025-04-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984578', 'tblTempUsageDetail_20' ) end [2025-04-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984578', 'tblTempVendorCDR_20' ) start [2025-04-25 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984578', 'tblTempVendorCDR_20' ) end [2025-04-25 04:44:18] Production.INFO: ProcessCDR(1,14984578,1,1,2) [2025-04-25 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984578', 'tblTempUsageDetail_20' ) start [2025-04-25 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984578', 'tblTempUsageDetail_20' ) end [2025-04-25 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:44:22] Production.INFO: ==21911== Releasing lock... [2025-04-25 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:44:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:45:06 [end_date_ymd] => 2025-04-25 04:45:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:45:06' and `end` < '2025-04-25 04: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-04-25 04:45:19] Production.INFO: count ==1148 [2025-04-25 04:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:45:06 - End Time 2025-04-25 04:45:06 [2025-04-25 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984583', 'tblTempUsageDetail_20' ) start [2025-04-25 04:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984583', 'tblTempUsageDetail_20' ) end [2025-04-25 04:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984583', 'tblTempVendorCDR_20' ) start [2025-04-25 04:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984583', 'tblTempVendorCDR_20' ) end [2025-04-25 04:45:20] Production.INFO: ProcessCDR(1,14984583,1,1,2) [2025-04-25 04:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984583', 'tblTempUsageDetail_20' ) start [2025-04-25 04:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984583', 'tblTempUsageDetail_20' ) end [2025-04-25 04:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:45:23] Production.INFO: ==22004== Releasing lock... [2025-04-25 04:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:45:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:46:05 [end_date_ymd] => 2025-04-25 04:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:46:05' and `end` < '2025-04-25 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-04-25 04:46:19] Production.INFO: count ==1147 [2025-04-25 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:46:05 - End Time 2025-04-25 04:46:05 [2025-04-25 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984588', 'tblTempUsageDetail_20' ) start [2025-04-25 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984588', 'tblTempUsageDetail_20' ) end [2025-04-25 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984588', 'tblTempVendorCDR_20' ) start [2025-04-25 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984588', 'tblTempVendorCDR_20' ) end [2025-04-25 04:46:19] Production.INFO: ProcessCDR(1,14984588,1,1,2) [2025-04-25 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984588', 'tblTempUsageDetail_20' ) start [2025-04-25 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984588', 'tblTempUsageDetail_20' ) end [2025-04-25 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:46:23] Production.INFO: ==22097== Releasing lock... [2025-04-25 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:46:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:47:05 [end_date_ymd] => 2025-04-25 04:47:05 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:47:05' and `end` < '2025-04-25 04: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-04-25 04:47:19] Production.INFO: count ==1146 [2025-04-25 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:47:05 - End Time 2025-04-25 04:47:05 [2025-04-25 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984593', 'tblTempUsageDetail_20' ) start [2025-04-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984593', 'tblTempUsageDetail_20' ) end [2025-04-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984593', 'tblTempVendorCDR_20' ) start [2025-04-25 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984593', 'tblTempVendorCDR_20' ) end [2025-04-25 04:47:19] Production.INFO: ProcessCDR(1,14984593,1,1,2) [2025-04-25 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984593', 'tblTempUsageDetail_20' ) start [2025-04-25 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984593', 'tblTempUsageDetail_20' ) end [2025-04-25 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:47:23] Production.INFO: ==22195== Releasing lock... [2025-04-25 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:48:05 [end_date_ymd] => 2025-04-25 04:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:48:05' and `end` < '2025-04-25 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-04-25 04:48:18] Production.INFO: count ==1144 [2025-04-25 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:48:05 - End Time 2025-04-25 04:48:05 [2025-04-25 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984598', 'tblTempUsageDetail_20' ) start [2025-04-25 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984598', 'tblTempUsageDetail_20' ) end [2025-04-25 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984598', 'tblTempVendorCDR_20' ) start [2025-04-25 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984598', 'tblTempVendorCDR_20' ) end [2025-04-25 04:48:19] Production.INFO: ProcessCDR(1,14984598,1,1,2) [2025-04-25 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984598', 'tblTempUsageDetail_20' ) start [2025-04-25 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984598', 'tblTempUsageDetail_20' ) end [2025-04-25 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:48:22] Production.INFO: ==22288== Releasing lock... [2025-04-25 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:49:06 [end_date_ymd] => 2025-04-25 04:49:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:49:06' and `end` < '2025-04-25 04: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-04-25 04:49:19] Production.INFO: count ==1144 [2025-04-25 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:49:06 - End Time 2025-04-25 04:49:06 [2025-04-25 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984603', 'tblTempUsageDetail_20' ) start [2025-04-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984603', 'tblTempUsageDetail_20' ) end [2025-04-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984603', 'tblTempVendorCDR_20' ) start [2025-04-25 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984603', 'tblTempVendorCDR_20' ) end [2025-04-25 04:49:19] Production.INFO: ProcessCDR(1,14984603,1,1,2) [2025-04-25 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984603', 'tblTempUsageDetail_20' ) start [2025-04-25 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984603', 'tblTempUsageDetail_20' ) end [2025-04-25 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:49:23] Production.INFO: ==22400== Releasing lock... [2025-04-25 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:49:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:50:06 [end_date_ymd] => 2025-04-25 04:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:50:06' and `end` < '2025-04-25 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-04-25 04:50:19] Production.INFO: count ==1136 [2025-04-25 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:50:06 - End Time 2025-04-25 04:50:06 [2025-04-25 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984609', 'tblTempUsageDetail_20' ) start [2025-04-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984609', 'tblTempUsageDetail_20' ) end [2025-04-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984609', 'tblTempVendorCDR_20' ) start [2025-04-25 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984609', 'tblTempVendorCDR_20' ) end [2025-04-25 04:50:19] Production.INFO: ProcessCDR(1,14984609,1,1,2) [2025-04-25 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984609', 'tblTempUsageDetail_20' ) start [2025-04-25 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984609', 'tblTempUsageDetail_20' ) end [2025-04-25 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:50:23] Production.INFO: ==22497== Releasing lock... [2025-04-25 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:50:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:51:05 [end_date_ymd] => 2025-04-25 04:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:51:05' and `end` < '2025-04-25 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-04-25 04:51:18] Production.INFO: count ==1132 [2025-04-25 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:51:05 - End Time 2025-04-25 04:51:05 [2025-04-25 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984614', 'tblTempUsageDetail_20' ) start [2025-04-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984614', 'tblTempUsageDetail_20' ) end [2025-04-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984614', 'tblTempVendorCDR_20' ) start [2025-04-25 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984614', 'tblTempVendorCDR_20' ) end [2025-04-25 04:51:19] Production.INFO: ProcessCDR(1,14984614,1,1,2) [2025-04-25 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984614', 'tblTempUsageDetail_20' ) start [2025-04-25 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984614', 'tblTempUsageDetail_20' ) end [2025-04-25 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:51:22] Production.INFO: ==22633== Releasing lock... [2025-04-25 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:51:22] Production.INFO: 38 MB #Memory Used# [2025-04-25 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:52:05 [end_date_ymd] => 2025-04-25 04:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:52:05' and `end` < '2025-04-25 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-04-25 04:52:18] Production.INFO: count ==1138 [2025-04-25 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:52:05 - End Time 2025-04-25 04:52:05 [2025-04-25 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984619', 'tblTempUsageDetail_20' ) start [2025-04-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984619', 'tblTempUsageDetail_20' ) end [2025-04-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984619', 'tblTempVendorCDR_20' ) start [2025-04-25 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984619', 'tblTempVendorCDR_20' ) end [2025-04-25 04:52:19] Production.INFO: ProcessCDR(1,14984619,1,1,2) [2025-04-25 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984619', 'tblTempUsageDetail_20' ) start [2025-04-25 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984619', 'tblTempUsageDetail_20' ) end [2025-04-25 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:52:22] Production.INFO: ==22729== Releasing lock... [2025-04-25 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:53:05 [end_date_ymd] => 2025-04-25 04:53:05 [RateCDR] => 1 ) [2025-04-25 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 01:53:05' and `end` < '2025-04-25 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 04:53:18] Production.INFO: count ==1138 [2025-04-25 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:53:05 - End Time 2025-04-25 04:53:05 [2025-04-25 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984624', 'tblTempUsageDetail_20' ) start [2025-04-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984624', 'tblTempUsageDetail_20' ) end [2025-04-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984624', 'tblTempVendorCDR_20' ) start [2025-04-25 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984624', 'tblTempVendorCDR_20' ) end [2025-04-25 04:53:19] Production.INFO: ProcessCDR(1,14984624,1,1,2) [2025-04-25 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984624', 'tblTempUsageDetail_20' ) start [2025-04-25 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984624', 'tblTempUsageDetail_20' ) end [2025-04-25 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:53:22] Production.INFO: ==22821== Releasing lock... [2025-04-25 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:54:05 [end_date_ymd] => 2025-04-25 04:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:54:05' and `end` < '2025-04-25 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-04-25 04:54:18] Production.INFO: count ==1136 [2025-04-25 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 01:54:05 - End Time 2025-04-25 04:54:05 [2025-04-25 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984629', 'tblTempUsageDetail_20' ) start [2025-04-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984629', 'tblTempUsageDetail_20' ) end [2025-04-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984629', 'tblTempVendorCDR_20' ) start [2025-04-25 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984629', 'tblTempVendorCDR_20' ) end [2025-04-25 04:54:18] Production.INFO: ProcessCDR(1,14984629,1,1,2) [2025-04-25 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984629', 'tblTempUsageDetail_20' ) start [2025-04-25 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984629', 'tblTempUsageDetail_20' ) end [2025-04-25 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:54:22] Production.INFO: ==22903== Releasing lock... [2025-04-25 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:55:05 [end_date_ymd] => 2025-04-25 04:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:55:05' and `end` < '2025-04-25 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-04-25 04:55:19] Production.INFO: count ==1135 [2025-04-25 04:55:20] Production.ERROR: pbx CDR StartTime 2025-04-25 01:55:05 - End Time 2025-04-25 04:55:05 [2025-04-25 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984634', 'tblTempUsageDetail_20' ) start [2025-04-25 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984634', 'tblTempUsageDetail_20' ) end [2025-04-25 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984634', 'tblTempVendorCDR_20' ) start [2025-04-25 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984634', 'tblTempVendorCDR_20' ) end [2025-04-25 04:55:20] Production.INFO: ProcessCDR(1,14984634,1,1,2) [2025-04-25 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984634', 'tblTempUsageDetail_20' ) start [2025-04-25 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984634', 'tblTempUsageDetail_20' ) end [2025-04-25 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:55:23] Production.INFO: ==22974== Releasing lock... [2025-04-25 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:55:23] Production.INFO: 37 MB #Memory Used# [2025-04-25 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:56:05 [end_date_ymd] => 2025-04-25 04:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:56:05' and `end` < '2025-04-25 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-04-25 04:56:19] Production.INFO: count ==1131 [2025-04-25 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:56:05 - End Time 2025-04-25 04:56:05 [2025-04-25 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984639', 'tblTempUsageDetail_20' ) start [2025-04-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984639', 'tblTempUsageDetail_20' ) end [2025-04-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984639', 'tblTempVendorCDR_20' ) start [2025-04-25 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984639', 'tblTempVendorCDR_20' ) end [2025-04-25 04:56:19] Production.INFO: ProcessCDR(1,14984639,1,1,2) [2025-04-25 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984639', 'tblTempUsageDetail_20' ) start [2025-04-25 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984639', 'tblTempUsageDetail_20' ) end [2025-04-25 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:56:23] Production.INFO: ==23050== Releasing lock... [2025-04-25 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:56:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:57:05 [end_date_ymd] => 2025-04-25 04:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:57:05' and `end` < '2025-04-25 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-04-25 04:57:18] Production.INFO: count ==1133 [2025-04-25 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:57:05 - End Time 2025-04-25 04:57:05 [2025-04-25 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984644', 'tblTempUsageDetail_20' ) start [2025-04-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984644', 'tblTempUsageDetail_20' ) end [2025-04-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984644', 'tblTempVendorCDR_20' ) start [2025-04-25 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984644', 'tblTempVendorCDR_20' ) end [2025-04-25 04:57:19] Production.INFO: ProcessCDR(1,14984644,1,1,2) [2025-04-25 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984644', 'tblTempUsageDetail_20' ) start [2025-04-25 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984644', 'tblTempUsageDetail_20' ) end [2025-04-25 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:57:22] Production.INFO: ==23120== Releasing lock... [2025-04-25 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:57:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:58:06 [end_date_ymd] => 2025-04-25 04:58:06 [RateCDR] => 1 ) [2025-04-25 04: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-04-25 01:58:06' and `end` < '2025-04-25 04: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-04-25 04:58:20] Production.INFO: count ==1133 [2025-04-25 04:58:21] Production.ERROR: pbx CDR StartTime 2025-04-25 01:58:06 - End Time 2025-04-25 04:58:06 [2025-04-25 04:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984649', 'tblTempUsageDetail_20' ) start [2025-04-25 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984649', 'tblTempUsageDetail_20' ) end [2025-04-25 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984649', 'tblTempVendorCDR_20' ) start [2025-04-25 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984649', 'tblTempVendorCDR_20' ) end [2025-04-25 04:58:21] Production.INFO: ProcessCDR(1,14984649,1,1,2) [2025-04-25 04:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984649', 'tblTempUsageDetail_20' ) start [2025-04-25 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984649', 'tblTempUsageDetail_20' ) end [2025-04-25 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:58:24] Production.INFO: ==23200== Releasing lock... [2025-04-25 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:58:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 01:59:05 [end_date_ymd] => 2025-04-25 04:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 01:59:05' and `end` < '2025-04-25 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-04-25 04:59:18] Production.INFO: count ==1132 [2025-04-25 04:59:19] Production.ERROR: pbx CDR StartTime 2025-04-25 01:59:05 - End Time 2025-04-25 04:59:05 [2025-04-25 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984654', 'tblTempUsageDetail_20' ) start [2025-04-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984654', 'tblTempUsageDetail_20' ) end [2025-04-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984654', 'tblTempVendorCDR_20' ) start [2025-04-25 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984654', 'tblTempVendorCDR_20' ) end [2025-04-25 04:59:19] Production.INFO: ProcessCDR(1,14984654,1,1,2) [2025-04-25 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984654', 'tblTempUsageDetail_20' ) start [2025-04-25 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984654', 'tblTempUsageDetail_20' ) end [2025-04-25 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 04:59:23] Production.INFO: ==23297== Releasing lock... [2025-04-25 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 04:59:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:00:06 [end_date_ymd] => 2025-04-25 05:00:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:00:06' and `end` < '2025-04-25 05: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-04-25 05:00:20] Production.INFO: count ==1120 [2025-04-25 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 02:00:06 - End Time 2025-04-25 05:00:06 [2025-04-25 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984660', 'tblTempUsageDetail_20' ) start [2025-04-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984660', 'tblTempUsageDetail_20' ) end [2025-04-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984660', 'tblTempVendorCDR_20' ) start [2025-04-25 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984660', 'tblTempVendorCDR_20' ) end [2025-04-25 05:00:20] Production.INFO: ProcessCDR(1,14984660,1,1,2) [2025-04-25 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984660', 'tblTempUsageDetail_20' ) start [2025-04-25 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984660', 'tblTempUsageDetail_20' ) end [2025-04-25 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:00:24] Production.INFO: ==23381== Releasing lock... [2025-04-25 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:00:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:01:05 [end_date_ymd] => 2025-04-25 05:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:01:05' and `end` < '2025-04-25 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-04-25 05:01:19] Production.INFO: count ==1119 [2025-04-25 05:01:20] Production.ERROR: pbx CDR StartTime 2025-04-25 02:01:05 - End Time 2025-04-25 05:01:05 [2025-04-25 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984665', 'tblTempUsageDetail_20' ) start [2025-04-25 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984665', 'tblTempUsageDetail_20' ) end [2025-04-25 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984665', 'tblTempVendorCDR_20' ) start [2025-04-25 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984665', 'tblTempVendorCDR_20' ) end [2025-04-25 05:01:20] Production.INFO: ProcessCDR(1,14984665,1,1,2) [2025-04-25 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984665', 'tblTempUsageDetail_20' ) start [2025-04-25 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984665', 'tblTempUsageDetail_20' ) end [2025-04-25 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:01:23] Production.INFO: ==23500== Releasing lock... [2025-04-25 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:01:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:02:05 [end_date_ymd] => 2025-04-25 05:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:02:05' and `end` < '2025-04-25 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-04-25 05:02:18] Production.INFO: count ==1116 [2025-04-25 05:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:02:05 - End Time 2025-04-25 05:02:05 [2025-04-25 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984670', 'tblTempUsageDetail_20' ) start [2025-04-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984670', 'tblTempUsageDetail_20' ) end [2025-04-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984670', 'tblTempVendorCDR_20' ) start [2025-04-25 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984670', 'tblTempVendorCDR_20' ) end [2025-04-25 05:02:18] Production.INFO: ProcessCDR(1,14984670,1,1,2) [2025-04-25 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984670', 'tblTempUsageDetail_20' ) start [2025-04-25 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984670', 'tblTempUsageDetail_20' ) end [2025-04-25 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:02:22] Production.INFO: ==23572== Releasing lock... [2025-04-25 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:02:22] Production.INFO: 37 MB #Memory Used# [2025-04-25 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:03:05 [end_date_ymd] => 2025-04-25 05:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:03:05' and `end` < '2025-04-25 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-04-25 05:03:18] Production.INFO: count ==1115 [2025-04-25 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:03:05 - End Time 2025-04-25 05:03:05 [2025-04-25 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984675', 'tblTempUsageDetail_20' ) start [2025-04-25 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984675', 'tblTempUsageDetail_20' ) end [2025-04-25 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984675', 'tblTempVendorCDR_20' ) start [2025-04-25 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984675', 'tblTempVendorCDR_20' ) end [2025-04-25 05:03:18] Production.INFO: ProcessCDR(1,14984675,1,1,2) [2025-04-25 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984675', 'tblTempUsageDetail_20' ) start [2025-04-25 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984675', 'tblTempUsageDetail_20' ) end [2025-04-25 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:03:22] Production.INFO: ==23678== Releasing lock... [2025-04-25 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:04:06 [end_date_ymd] => 2025-04-25 05:04:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:04:06' and `end` < '2025-04-25 05: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-04-25 05:04:19] Production.INFO: count ==1115 [2025-04-25 05:04:20] Production.ERROR: pbx CDR StartTime 2025-04-25 02:04:06 - End Time 2025-04-25 05:04:06 [2025-04-25 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984680', 'tblTempUsageDetail_20' ) start [2025-04-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984680', 'tblTempUsageDetail_20' ) end [2025-04-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984680', 'tblTempVendorCDR_20' ) start [2025-04-25 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984680', 'tblTempVendorCDR_20' ) end [2025-04-25 05:04:20] Production.INFO: ProcessCDR(1,14984680,1,1,2) [2025-04-25 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984680', 'tblTempUsageDetail_20' ) start [2025-04-25 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984680', 'tblTempUsageDetail_20' ) end [2025-04-25 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:04:23] Production.INFO: ==23764== Releasing lock... [2025-04-25 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:04:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:05:05 [end_date_ymd] => 2025-04-25 05:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:05:05' and `end` < '2025-04-25 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-04-25 05:05:18] Production.INFO: count ==1115 [2025-04-25 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:05:05 - End Time 2025-04-25 05:05:05 [2025-04-25 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984685', 'tblTempUsageDetail_20' ) start [2025-04-25 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984685', 'tblTempUsageDetail_20' ) end [2025-04-25 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984685', 'tblTempVendorCDR_20' ) start [2025-04-25 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984685', 'tblTempVendorCDR_20' ) end [2025-04-25 05:05:18] Production.INFO: ProcessCDR(1,14984685,1,1,2) [2025-04-25 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984685', 'tblTempUsageDetail_20' ) start [2025-04-25 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984685', 'tblTempUsageDetail_20' ) end [2025-04-25 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:05:22] Production.INFO: ==23882== Releasing lock... [2025-04-25 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:06:05 [end_date_ymd] => 2025-04-25 05:06:05 [RateCDR] => 1 ) [2025-04-25 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:06:05' and `end` < '2025-04-25 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:06:18] Production.INFO: count ==1111 [2025-04-25 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:06:05 - End Time 2025-04-25 05:06:05 [2025-04-25 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984690', 'tblTempUsageDetail_20' ) start [2025-04-25 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984690', 'tblTempUsageDetail_20' ) end [2025-04-25 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984690', 'tblTempVendorCDR_20' ) start [2025-04-25 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984690', 'tblTempVendorCDR_20' ) end [2025-04-25 05:06:19] Production.INFO: ProcessCDR(1,14984690,1,1,2) [2025-04-25 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984690', 'tblTempUsageDetail_20' ) start [2025-04-25 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984690', 'tblTempUsageDetail_20' ) end [2025-04-25 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:06:22] Production.INFO: ==23960== Releasing lock... [2025-04-25 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:06:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:07:05 [end_date_ymd] => 2025-04-25 05:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:07:05' and `end` < '2025-04-25 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-04-25 05:07:17] Production.INFO: count ==1110 [2025-04-25 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:07:05 - End Time 2025-04-25 05:07:05 [2025-04-25 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984695', 'tblTempUsageDetail_20' ) start [2025-04-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984695', 'tblTempUsageDetail_20' ) end [2025-04-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984695', 'tblTempVendorCDR_20' ) start [2025-04-25 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984695', 'tblTempVendorCDR_20' ) end [2025-04-25 05:07:18] Production.INFO: ProcessCDR(1,14984695,1,1,2) [2025-04-25 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984695', 'tblTempUsageDetail_20' ) start [2025-04-25 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984695', 'tblTempUsageDetail_20' ) end [2025-04-25 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:07:21] Production.INFO: ==24095== Releasing lock... [2025-04-25 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:08:06 [end_date_ymd] => 2025-04-25 05:08:06 [RateCDR] => 1 ) [2025-04-25 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:08:06' and `end` < '2025-04-25 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:08:19] Production.INFO: count ==1109 [2025-04-25 05:08:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:08:06 - End Time 2025-04-25 05:08:06 [2025-04-25 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984700', 'tblTempUsageDetail_20' ) start [2025-04-25 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984700', 'tblTempUsageDetail_20' ) end [2025-04-25 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984700', 'tblTempVendorCDR_20' ) start [2025-04-25 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984700', 'tblTempVendorCDR_20' ) end [2025-04-25 05:08:19] Production.INFO: ProcessCDR(1,14984700,1,1,2) [2025-04-25 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984700', 'tblTempUsageDetail_20' ) start [2025-04-25 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984700', 'tblTempUsageDetail_20' ) end [2025-04-25 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:08:23] Production.INFO: ==24174== Releasing lock... [2025-04-25 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:08:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:09:05 [end_date_ymd] => 2025-04-25 05:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:09:05' and `end` < '2025-04-25 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-04-25 05:09:18] Production.INFO: count ==1108 [2025-04-25 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:09:05 - End Time 2025-04-25 05:09:05 [2025-04-25 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984705', 'tblTempUsageDetail_20' ) start [2025-04-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984705', 'tblTempUsageDetail_20' ) end [2025-04-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984705', 'tblTempVendorCDR_20' ) start [2025-04-25 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984705', 'tblTempVendorCDR_20' ) end [2025-04-25 05:09:18] Production.INFO: ProcessCDR(1,14984705,1,1,2) [2025-04-25 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984705', 'tblTempUsageDetail_20' ) start [2025-04-25 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984705', 'tblTempUsageDetail_20' ) end [2025-04-25 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:09:22] Production.INFO: ==24274== Releasing lock... [2025-04-25 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:09:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-25 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:10:06 [end_date_ymd] => 2025-04-25 05:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:10:06' and `end` < '2025-04-25 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-04-25 05:10:19] Production.INFO: count ==1099 [2025-04-25 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:10:06 - End Time 2025-04-25 05:10:06 [2025-04-25 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984711', 'tblTempUsageDetail_20' ) start [2025-04-25 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984711', 'tblTempUsageDetail_20' ) end [2025-04-25 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984711', 'tblTempVendorCDR_20' ) start [2025-04-25 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984711', 'tblTempVendorCDR_20' ) end [2025-04-25 05:10:20] Production.INFO: ProcessCDR(1,14984711,1,1,2) [2025-04-25 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984711', 'tblTempUsageDetail_20' ) start [2025-04-25 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984711', 'tblTempUsageDetail_20' ) end [2025-04-25 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:10:23] Production.INFO: ==24371== Releasing lock... [2025-04-25 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:11:05 [end_date_ymd] => 2025-04-25 05:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:11:05' and `end` < '2025-04-25 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-04-25 05:11:18] Production.INFO: count ==1095 [2025-04-25 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:11:05 - End Time 2025-04-25 05:11:05 [2025-04-25 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984716', 'tblTempUsageDetail_20' ) start [2025-04-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984716', 'tblTempUsageDetail_20' ) end [2025-04-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984716', 'tblTempVendorCDR_20' ) start [2025-04-25 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984716', 'tblTempVendorCDR_20' ) end [2025-04-25 05:11:18] Production.INFO: ProcessCDR(1,14984716,1,1,2) [2025-04-25 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984716', 'tblTempUsageDetail_20' ) start [2025-04-25 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984716', 'tblTempUsageDetail_20' ) end [2025-04-25 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:11:22] Production.INFO: ==24461== Releasing lock... [2025-04-25 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:12:05 [end_date_ymd] => 2025-04-25 05:12:05 [RateCDR] => 1 ) [2025-04-25 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:12:05' and `end` < '2025-04-25 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:12:18] Production.INFO: count ==1093 [2025-04-25 05:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:12:05 - End Time 2025-04-25 05:12:05 [2025-04-25 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984721', 'tblTempUsageDetail_20' ) start [2025-04-25 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984721', 'tblTempUsageDetail_20' ) end [2025-04-25 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984721', 'tblTempVendorCDR_20' ) start [2025-04-25 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984721', 'tblTempVendorCDR_20' ) end [2025-04-25 05:12:19] Production.INFO: ProcessCDR(1,14984721,1,1,2) [2025-04-25 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984721', 'tblTempUsageDetail_20' ) start [2025-04-25 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984721', 'tblTempUsageDetail_20' ) end [2025-04-25 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:12:22] Production.INFO: ==24557== Releasing lock... [2025-04-25 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:13:05 [end_date_ymd] => 2025-04-25 05:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:13:05' and `end` < '2025-04-25 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-04-25 05:13:17] Production.INFO: count ==1094 [2025-04-25 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:13:05 - End Time 2025-04-25 05:13:05 [2025-04-25 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984726', 'tblTempUsageDetail_20' ) start [2025-04-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984726', 'tblTempUsageDetail_20' ) end [2025-04-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984726', 'tblTempVendorCDR_20' ) start [2025-04-25 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984726', 'tblTempVendorCDR_20' ) end [2025-04-25 05:13:18] Production.INFO: ProcessCDR(1,14984726,1,1,2) [2025-04-25 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984726', 'tblTempUsageDetail_20' ) start [2025-04-25 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984726', 'tblTempUsageDetail_20' ) end [2025-04-25 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:13:21] Production.INFO: ==24646== Releasing lock... [2025-04-25 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:13:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:14:05 [end_date_ymd] => 2025-04-25 05:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:14:05' and `end` < '2025-04-25 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-04-25 05:14:18] Production.INFO: count ==1096 [2025-04-25 05:14:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:14:05 - End Time 2025-04-25 05:14:05 [2025-04-25 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984731', 'tblTempUsageDetail_20' ) start [2025-04-25 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984731', 'tblTempUsageDetail_20' ) end [2025-04-25 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984731', 'tblTempVendorCDR_20' ) start [2025-04-25 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984731', 'tblTempVendorCDR_20' ) end [2025-04-25 05:14:19] Production.INFO: ProcessCDR(1,14984731,1,1,2) [2025-04-25 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984731', 'tblTempUsageDetail_20' ) start [2025-04-25 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984731', 'tblTempUsageDetail_20' ) end [2025-04-25 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:14:22] Production.INFO: ==24742== Releasing lock... [2025-04-25 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:15:06 [end_date_ymd] => 2025-04-25 05:15:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:15:06' and `end` < '2025-04-25 05: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-04-25 05:15:18] Production.INFO: count ==1096 [2025-04-25 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:15:06 - End Time 2025-04-25 05:15:06 [2025-04-25 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984736', 'tblTempUsageDetail_20' ) start [2025-04-25 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984736', 'tblTempUsageDetail_20' ) end [2025-04-25 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984736', 'tblTempVendorCDR_20' ) start [2025-04-25 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984736', 'tblTempVendorCDR_20' ) end [2025-04-25 05:15:19] Production.INFO: ProcessCDR(1,14984736,1,1,2) [2025-04-25 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984736', 'tblTempUsageDetail_20' ) start [2025-04-25 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984736', 'tblTempUsageDetail_20' ) end [2025-04-25 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:15:23] Production.INFO: ==24814== Releasing lock... [2025-04-25 05:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:15:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:16:05 [end_date_ymd] => 2025-04-25 05:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:16:05' and `end` < '2025-04-25 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-04-25 05:16:18] Production.INFO: count ==1098 [2025-04-25 05:16:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:16:05 - End Time 2025-04-25 05:16:05 [2025-04-25 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984741', 'tblTempUsageDetail_20' ) start [2025-04-25 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984741', 'tblTempUsageDetail_20' ) end [2025-04-25 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984741', 'tblTempVendorCDR_20' ) start [2025-04-25 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984741', 'tblTempVendorCDR_20' ) end [2025-04-25 05:16:19] Production.INFO: ProcessCDR(1,14984741,1,1,2) [2025-04-25 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984741', 'tblTempUsageDetail_20' ) start [2025-04-25 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984741', 'tblTempUsageDetail_20' ) end [2025-04-25 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:16:22] Production.INFO: ==24888== Releasing lock... [2025-04-25 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:16:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:17:06 [end_date_ymd] => 2025-04-25 05:17:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:17:06' and `end` < '2025-04-25 05: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-04-25 05:17:18] Production.INFO: count ==1098 [2025-04-25 05:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:17:06 - End Time 2025-04-25 05:17:06 [2025-04-25 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984746', 'tblTempUsageDetail_20' ) start [2025-04-25 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984746', 'tblTempUsageDetail_20' ) end [2025-04-25 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984746', 'tblTempVendorCDR_20' ) start [2025-04-25 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984746', 'tblTempVendorCDR_20' ) end [2025-04-25 05:17:19] Production.INFO: ProcessCDR(1,14984746,1,1,2) [2025-04-25 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984746', 'tblTempUsageDetail_20' ) start [2025-04-25 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984746', 'tblTempUsageDetail_20' ) end [2025-04-25 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:17:22] Production.INFO: ==24961== Releasing lock... [2025-04-25 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:18:05 [end_date_ymd] => 2025-04-25 05:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:18:05' and `end` < '2025-04-25 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-04-25 05:18:17] Production.INFO: count ==1096 [2025-04-25 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:18:05 - End Time 2025-04-25 05:18:05 [2025-04-25 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984751', 'tblTempUsageDetail_20' ) start [2025-04-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984751', 'tblTempUsageDetail_20' ) end [2025-04-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984751', 'tblTempVendorCDR_20' ) start [2025-04-25 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984751', 'tblTempVendorCDR_20' ) end [2025-04-25 05:18:18] Production.INFO: ProcessCDR(1,14984751,1,1,2) [2025-04-25 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984751', 'tblTempUsageDetail_20' ) start [2025-04-25 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984751', 'tblTempUsageDetail_20' ) end [2025-04-25 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:18:21] Production.INFO: ==25042== Releasing lock... [2025-04-25 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:18:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:19:05 [end_date_ymd] => 2025-04-25 05:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:19:05' and `end` < '2025-04-25 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-04-25 05:19:18] Production.INFO: count ==1097 [2025-04-25 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:19:05 - End Time 2025-04-25 05:19:05 [2025-04-25 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984756', 'tblTempUsageDetail_20' ) start [2025-04-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984756', 'tblTempUsageDetail_20' ) end [2025-04-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984756', 'tblTempVendorCDR_20' ) start [2025-04-25 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984756', 'tblTempVendorCDR_20' ) end [2025-04-25 05:19:18] Production.INFO: ProcessCDR(1,14984756,1,1,2) [2025-04-25 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984756', 'tblTempUsageDetail_20' ) start [2025-04-25 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984756', 'tblTempUsageDetail_20' ) end [2025-04-25 05:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:19:23] Production.INFO: ==25114== Releasing lock... [2025-04-25 05:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:20:06 [end_date_ymd] => 2025-04-25 05:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:20:06' and `end` < '2025-04-25 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-04-25 05:20:19] Production.INFO: count ==1097 [2025-04-25 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:20:06 - End Time 2025-04-25 05:20:06 [2025-04-25 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984762', 'tblTempUsageDetail_20' ) start [2025-04-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984762', 'tblTempUsageDetail_20' ) end [2025-04-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984762', 'tblTempVendorCDR_20' ) start [2025-04-25 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984762', 'tblTempVendorCDR_20' ) end [2025-04-25 05:20:19] Production.INFO: ProcessCDR(1,14984762,1,1,2) [2025-04-25 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984762', 'tblTempUsageDetail_20' ) start [2025-04-25 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984762', 'tblTempUsageDetail_20' ) end [2025-04-25 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:20:22] Production.INFO: ==25191== Releasing lock... [2025-04-25 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:21:05 [end_date_ymd] => 2025-04-25 05:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:21:05' and `end` < '2025-04-25 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-04-25 05:21:17] Production.INFO: count ==1097 [2025-04-25 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:21:05 - End Time 2025-04-25 05:21:05 [2025-04-25 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984767', 'tblTempUsageDetail_20' ) start [2025-04-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984767', 'tblTempUsageDetail_20' ) end [2025-04-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984767', 'tblTempVendorCDR_20' ) start [2025-04-25 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984767', 'tblTempVendorCDR_20' ) end [2025-04-25 05:21:18] Production.INFO: ProcessCDR(1,14984767,1,1,2) [2025-04-25 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984767', 'tblTempUsageDetail_20' ) start [2025-04-25 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984767', 'tblTempUsageDetail_20' ) end [2025-04-25 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:21:21] Production.INFO: ==25269== Releasing lock... [2025-04-25 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:21:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:22:05 [end_date_ymd] => 2025-04-25 05:22:05 [RateCDR] => 1 ) [2025-04-25 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:22:05' and `end` < '2025-04-25 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:22:18] Production.INFO: count ==1099 [2025-04-25 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:22:05 - End Time 2025-04-25 05:22:05 [2025-04-25 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984772', 'tblTempUsageDetail_20' ) start [2025-04-25 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984772', 'tblTempUsageDetail_20' ) end [2025-04-25 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984772', 'tblTempVendorCDR_20' ) start [2025-04-25 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984772', 'tblTempVendorCDR_20' ) end [2025-04-25 05:22:19] Production.INFO: ProcessCDR(1,14984772,1,1,2) [2025-04-25 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984772', 'tblTempUsageDetail_20' ) start [2025-04-25 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984772', 'tblTempUsageDetail_20' ) end [2025-04-25 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:22:22] Production.INFO: ==25382== Releasing lock... [2025-04-25 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:23:05 [end_date_ymd] => 2025-04-25 05:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:23:05' and `end` < '2025-04-25 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-04-25 05:23:18] Production.INFO: count ==1099 [2025-04-25 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:23:05 - End Time 2025-04-25 05:23:05 [2025-04-25 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984777', 'tblTempUsageDetail_20' ) start [2025-04-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984777', 'tblTempUsageDetail_20' ) end [2025-04-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984777', 'tblTempVendorCDR_20' ) start [2025-04-25 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984777', 'tblTempVendorCDR_20' ) end [2025-04-25 05:23:18] Production.INFO: ProcessCDR(1,14984777,1,1,2) [2025-04-25 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984777', 'tblTempUsageDetail_20' ) start [2025-04-25 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984777', 'tblTempUsageDetail_20' ) end [2025-04-25 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:23:22] Production.INFO: ==25456== Releasing lock... [2025-04-25 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:24:05 [end_date_ymd] => 2025-04-25 05:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:24:05' and `end` < '2025-04-25 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-04-25 05:24:18] Production.INFO: count ==1099 [2025-04-25 05:24:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:24:05 - End Time 2025-04-25 05:24:05 [2025-04-25 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984782', 'tblTempUsageDetail_20' ) start [2025-04-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984782', 'tblTempUsageDetail_20' ) end [2025-04-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984782', 'tblTempVendorCDR_20' ) start [2025-04-25 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984782', 'tblTempVendorCDR_20' ) end [2025-04-25 05:24:19] Production.INFO: ProcessCDR(1,14984782,1,1,2) [2025-04-25 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984782', 'tblTempUsageDetail_20' ) start [2025-04-25 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984782', 'tblTempUsageDetail_20' ) end [2025-04-25 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:24:22] Production.INFO: ==25530== Releasing lock... [2025-04-25 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:25:05 [end_date_ymd] => 2025-04-25 05:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:25:05' and `end` < '2025-04-25 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-04-25 05:25:18] Production.INFO: count ==1099 [2025-04-25 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:25:05 - End Time 2025-04-25 05:25:05 [2025-04-25 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984787', 'tblTempUsageDetail_20' ) start [2025-04-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984787', 'tblTempUsageDetail_20' ) end [2025-04-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984787', 'tblTempVendorCDR_20' ) start [2025-04-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984787', 'tblTempVendorCDR_20' ) end [2025-04-25 05:25:18] Production.INFO: ProcessCDR(1,14984787,1,1,2) [2025-04-25 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984787', 'tblTempUsageDetail_20' ) start [2025-04-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984787', 'tblTempUsageDetail_20' ) end [2025-04-25 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:25:21] Production.INFO: ==25601== Releasing lock... [2025-04-25 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:25:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:26:05 [end_date_ymd] => 2025-04-25 05:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:26:05' and `end` < '2025-04-25 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-04-25 05:26:17] Production.INFO: count ==1099 [2025-04-25 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:26:05 - End Time 2025-04-25 05:26:05 [2025-04-25 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984792', 'tblTempUsageDetail_20' ) start [2025-04-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984792', 'tblTempUsageDetail_20' ) end [2025-04-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984792', 'tblTempVendorCDR_20' ) start [2025-04-25 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984792', 'tblTempVendorCDR_20' ) end [2025-04-25 05:26:18] Production.INFO: ProcessCDR(1,14984792,1,1,2) [2025-04-25 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984792', 'tblTempUsageDetail_20' ) start [2025-04-25 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984792', 'tblTempUsageDetail_20' ) end [2025-04-25 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:26:21] Production.INFO: ==25674== Releasing lock... [2025-04-25 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:26:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:27:05 [end_date_ymd] => 2025-04-25 05:27:05 [RateCDR] => 1 ) [2025-04-25 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:27:05' and `end` < '2025-04-25 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:27:18] Production.INFO: count ==1099 [2025-04-25 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:27:05 - End Time 2025-04-25 05:27:05 [2025-04-25 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984797', 'tblTempUsageDetail_20' ) start [2025-04-25 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984797', 'tblTempUsageDetail_20' ) end [2025-04-25 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984797', 'tblTempVendorCDR_20' ) start [2025-04-25 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984797', 'tblTempVendorCDR_20' ) end [2025-04-25 05:27:18] Production.INFO: ProcessCDR(1,14984797,1,1,2) [2025-04-25 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984797', 'tblTempUsageDetail_20' ) start [2025-04-25 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984797', 'tblTempUsageDetail_20' ) end [2025-04-25 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:27:22] Production.INFO: ==25745== Releasing lock... [2025-04-25 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:28:05 [end_date_ymd] => 2025-04-25 05:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:28:05' and `end` < '2025-04-25 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-04-25 05:28:18] Production.INFO: count ==1098 [2025-04-25 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:28:05 - End Time 2025-04-25 05:28:05 [2025-04-25 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984802', 'tblTempUsageDetail_20' ) start [2025-04-25 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984802', 'tblTempUsageDetail_20' ) end [2025-04-25 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984802', 'tblTempVendorCDR_20' ) start [2025-04-25 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984802', 'tblTempVendorCDR_20' ) end [2025-04-25 05:28:19] Production.INFO: ProcessCDR(1,14984802,1,1,2) [2025-04-25 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984802', 'tblTempUsageDetail_20' ) start [2025-04-25 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984802', 'tblTempUsageDetail_20' ) end [2025-04-25 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:28:22] Production.INFO: ==25820== Releasing lock... [2025-04-25 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:28:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:29:05 [end_date_ymd] => 2025-04-25 05:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:29:05' and `end` < '2025-04-25 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-04-25 05:29:18] Production.INFO: count ==1098 [2025-04-25 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:29:05 - End Time 2025-04-25 05:29:05 [2025-04-25 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984807', 'tblTempUsageDetail_20' ) start [2025-04-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984807', 'tblTempUsageDetail_20' ) end [2025-04-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984807', 'tblTempVendorCDR_20' ) start [2025-04-25 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984807', 'tblTempVendorCDR_20' ) end [2025-04-25 05:29:18] Production.INFO: ProcessCDR(1,14984807,1,1,2) [2025-04-25 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984807', 'tblTempUsageDetail_20' ) start [2025-04-25 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984807', 'tblTempUsageDetail_20' ) end [2025-04-25 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:29:22] Production.INFO: ==25891== Releasing lock... [2025-04-25 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:30:06 [end_date_ymd] => 2025-04-25 05:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:30:06' and `end` < '2025-04-25 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-04-25 05:30:19] Production.INFO: count ==1096 [2025-04-25 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:30:06 - End Time 2025-04-25 05:30:06 [2025-04-25 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984812', 'tblTempUsageDetail_20' ) start [2025-04-25 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984812', 'tblTempUsageDetail_20' ) end [2025-04-25 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984812', 'tblTempVendorCDR_20' ) start [2025-04-25 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984812', 'tblTempVendorCDR_20' ) end [2025-04-25 05:30:20] Production.INFO: ProcessCDR(1,14984812,1,1,2) [2025-04-25 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984812', 'tblTempUsageDetail_20' ) start [2025-04-25 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984812', 'tblTempUsageDetail_20' ) end [2025-04-25 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:30:23] Production.INFO: ==25963== Releasing lock... [2025-04-25 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:30:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:31:05 [end_date_ymd] => 2025-04-25 05:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:31:05' and `end` < '2025-04-25 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-04-25 05:31:18] Production.INFO: count ==1095 [2025-04-25 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:31:05 - End Time 2025-04-25 05:31:05 [2025-04-25 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984818', 'tblTempUsageDetail_20' ) start [2025-04-25 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984818', 'tblTempUsageDetail_20' ) end [2025-04-25 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984818', 'tblTempVendorCDR_20' ) start [2025-04-25 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984818', 'tblTempVendorCDR_20' ) end [2025-04-25 05:31:19] Production.INFO: ProcessCDR(1,14984818,1,1,2) [2025-04-25 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984818', 'tblTempUsageDetail_20' ) start [2025-04-25 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984818', 'tblTempUsageDetail_20' ) end [2025-04-25 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:31:22] Production.INFO: ==26040== Releasing lock... [2025-04-25 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:31:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:32:06 [end_date_ymd] => 2025-04-25 05:32:06 [RateCDR] => 1 ) [2025-04-25 05:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:32:06' and `end` < '2025-04-25 05:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:32:18] Production.INFO: count ==1094 [2025-04-25 05:32:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:32:06 - End Time 2025-04-25 05:32:06 [2025-04-25 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984823', 'tblTempUsageDetail_20' ) start [2025-04-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984823', 'tblTempUsageDetail_20' ) end [2025-04-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984823', 'tblTempVendorCDR_20' ) start [2025-04-25 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984823', 'tblTempVendorCDR_20' ) end [2025-04-25 05:32:19] Production.INFO: ProcessCDR(1,14984823,1,1,2) [2025-04-25 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984823', 'tblTempUsageDetail_20' ) start [2025-04-25 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984823', 'tblTempUsageDetail_20' ) end [2025-04-25 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:32:22] Production.INFO: ==26110== Releasing lock... [2025-04-25 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:33:04 [end_date_ymd] => 2025-04-25 05:33:04 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:33:04' and `end` < '2025-04-25 05: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-04-25 05:33:17] Production.INFO: count ==1094 [2025-04-25 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:33:04 - End Time 2025-04-25 05:33:04 [2025-04-25 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984828', 'tblTempUsageDetail_20' ) start [2025-04-25 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984828', 'tblTempUsageDetail_20' ) end [2025-04-25 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984828', 'tblTempVendorCDR_20' ) start [2025-04-25 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984828', 'tblTempVendorCDR_20' ) end [2025-04-25 05:33:18] Production.INFO: ProcessCDR(1,14984828,1,1,2) [2025-04-25 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984828', 'tblTempUsageDetail_20' ) start [2025-04-25 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984828', 'tblTempUsageDetail_20' ) end [2025-04-25 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:33:22] Production.INFO: ==26179== Releasing lock... [2025-04-25 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:34:06 [end_date_ymd] => 2025-04-25 05:34:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:34:06' and `end` < '2025-04-25 05: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-04-25 05:34:18] Production.INFO: count ==1093 [2025-04-25 05:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:34:06 - End Time 2025-04-25 05:34:06 [2025-04-25 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984833', 'tblTempUsageDetail_20' ) start [2025-04-25 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984833', 'tblTempUsageDetail_20' ) end [2025-04-25 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984833', 'tblTempVendorCDR_20' ) start [2025-04-25 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984833', 'tblTempVendorCDR_20' ) end [2025-04-25 05:34:19] Production.INFO: ProcessCDR(1,14984833,1,1,2) [2025-04-25 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984833', 'tblTempUsageDetail_20' ) start [2025-04-25 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984833', 'tblTempUsageDetail_20' ) end [2025-04-25 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:34:22] Production.INFO: ==26253== Releasing lock... [2025-04-25 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:34:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:35:05 [end_date_ymd] => 2025-04-25 05:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:35:05' and `end` < '2025-04-25 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-04-25 05:35:18] Production.INFO: count ==1093 [2025-04-25 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:35:05 - End Time 2025-04-25 05:35:05 [2025-04-25 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984838', 'tblTempUsageDetail_20' ) start [2025-04-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984838', 'tblTempUsageDetail_20' ) end [2025-04-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984838', 'tblTempVendorCDR_20' ) start [2025-04-25 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984838', 'tblTempVendorCDR_20' ) end [2025-04-25 05:35:18] Production.INFO: ProcessCDR(1,14984838,1,1,2) [2025-04-25 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984838', 'tblTempUsageDetail_20' ) start [2025-04-25 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984838', 'tblTempUsageDetail_20' ) end [2025-04-25 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:35:21] Production.INFO: ==26323== Releasing lock... [2025-04-25 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:35:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:36:05 [end_date_ymd] => 2025-04-25 05:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:36:05' and `end` < '2025-04-25 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-04-25 05:36:18] Production.INFO: count ==1093 [2025-04-25 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:36:05 - End Time 2025-04-25 05:36:05 [2025-04-25 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984843', 'tblTempUsageDetail_20' ) start [2025-04-25 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984843', 'tblTempUsageDetail_20' ) end [2025-04-25 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984843', 'tblTempVendorCDR_20' ) start [2025-04-25 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984843', 'tblTempVendorCDR_20' ) end [2025-04-25 05:36:19] Production.INFO: ProcessCDR(1,14984843,1,1,2) [2025-04-25 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984843', 'tblTempUsageDetail_20' ) start [2025-04-25 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984843', 'tblTempUsageDetail_20' ) end [2025-04-25 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:36:22] Production.INFO: ==26404== Releasing lock... [2025-04-25 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:36:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:37:04 [end_date_ymd] => 2025-04-25 05:37:04 [RateCDR] => 1 ) [2025-04-25 05:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:37:04' and `end` < '2025-04-25 05:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:37:17] Production.INFO: count ==1092 [2025-04-25 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:37:04 - End Time 2025-04-25 05:37:04 [2025-04-25 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984848', 'tblTempUsageDetail_20' ) start [2025-04-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984848', 'tblTempUsageDetail_20' ) end [2025-04-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984848', 'tblTempVendorCDR_20' ) start [2025-04-25 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984848', 'tblTempVendorCDR_20' ) end [2025-04-25 05:37:18] Production.INFO: ProcessCDR(1,14984848,1,1,2) [2025-04-25 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984848', 'tblTempUsageDetail_20' ) start [2025-04-25 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984848', 'tblTempUsageDetail_20' ) end [2025-04-25 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:37:21] Production.INFO: ==26479== Releasing lock... [2025-04-25 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:37:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:38:05 [end_date_ymd] => 2025-04-25 05:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:38:05' and `end` < '2025-04-25 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-04-25 05:38:18] Production.INFO: count ==1092 [2025-04-25 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:38:05 - End Time 2025-04-25 05:38:05 [2025-04-25 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984853', 'tblTempUsageDetail_20' ) start [2025-04-25 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984853', 'tblTempUsageDetail_20' ) end [2025-04-25 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984853', 'tblTempVendorCDR_20' ) start [2025-04-25 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984853', 'tblTempVendorCDR_20' ) end [2025-04-25 05:38:19] Production.INFO: ProcessCDR(1,14984853,1,1,2) [2025-04-25 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984853', 'tblTempUsageDetail_20' ) start [2025-04-25 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984853', 'tblTempUsageDetail_20' ) end [2025-04-25 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:38:22] Production.INFO: ==26590== Releasing lock... [2025-04-25 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:38:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:39:05 [end_date_ymd] => 2025-04-25 05:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:39:05' and `end` < '2025-04-25 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:39:18] Production.INFO: count ==1092 [2025-04-25 05:39:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:39:05 - End Time 2025-04-25 05:39:05 [2025-04-25 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984858', 'tblTempUsageDetail_20' ) start [2025-04-25 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984858', 'tblTempUsageDetail_20' ) end [2025-04-25 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984858', 'tblTempVendorCDR_20' ) start [2025-04-25 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984858', 'tblTempVendorCDR_20' ) end [2025-04-25 05:39:19] Production.INFO: ProcessCDR(1,14984858,1,1,2) [2025-04-25 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984858', 'tblTempUsageDetail_20' ) start [2025-04-25 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984858', 'tblTempUsageDetail_20' ) end [2025-04-25 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:39:22] Production.INFO: ==26661== Releasing lock... [2025-04-25 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:39:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:40:06 [end_date_ymd] => 2025-04-25 05:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:40:06' and `end` < '2025-04-25 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-04-25 05:40:18] Production.INFO: count ==1090 [2025-04-25 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:40:06 - End Time 2025-04-25 05:40:06 [2025-04-25 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984864', 'tblTempUsageDetail_20' ) start [2025-04-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984864', 'tblTempUsageDetail_20' ) end [2025-04-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984864', 'tblTempVendorCDR_20' ) start [2025-04-25 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984864', 'tblTempVendorCDR_20' ) end [2025-04-25 05:40:19] Production.INFO: ProcessCDR(1,14984864,1,1,2) [2025-04-25 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984864', 'tblTempUsageDetail_20' ) start [2025-04-25 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984864', 'tblTempUsageDetail_20' ) end [2025-04-25 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:40:22] Production.INFO: ==26736== Releasing lock... [2025-04-25 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:40:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:41:06 [end_date_ymd] => 2025-04-25 05:41:06 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:41:06' and `end` < '2025-04-25 05: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-04-25 05:41:19] Production.INFO: count ==1090 [2025-04-25 05:41:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:41:06 - End Time 2025-04-25 05:41:06 [2025-04-25 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984869', 'tblTempUsageDetail_20' ) start [2025-04-25 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984869', 'tblTempUsageDetail_20' ) end [2025-04-25 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984869', 'tblTempVendorCDR_20' ) start [2025-04-25 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984869', 'tblTempVendorCDR_20' ) end [2025-04-25 05:41:19] Production.INFO: ProcessCDR(1,14984869,1,1,2) [2025-04-25 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984869', 'tblTempUsageDetail_20' ) start [2025-04-25 05:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984869', 'tblTempUsageDetail_20' ) end [2025-04-25 05:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:41:23] Production.INFO: ==26813== Releasing lock... [2025-04-25 05:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:41:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:42:05 [end_date_ymd] => 2025-04-25 05:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:42:05' and `end` < '2025-04-25 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-04-25 05:42:18] Production.INFO: count ==1087 [2025-04-25 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:42:05 - End Time 2025-04-25 05:42:05 [2025-04-25 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984874', 'tblTempUsageDetail_20' ) start [2025-04-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984874', 'tblTempUsageDetail_20' ) end [2025-04-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984874', 'tblTempVendorCDR_20' ) start [2025-04-25 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984874', 'tblTempVendorCDR_20' ) end [2025-04-25 05:42:18] Production.INFO: ProcessCDR(1,14984874,1,1,2) [2025-04-25 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984874', 'tblTempUsageDetail_20' ) start [2025-04-25 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984874', 'tblTempUsageDetail_20' ) end [2025-04-25 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:42:22] Production.INFO: ==26893== Releasing lock... [2025-04-25 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:43:05 [end_date_ymd] => 2025-04-25 05:43:05 [RateCDR] => 1 ) [2025-04-25 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:43:05' and `end` < '2025-04-25 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:43:18] Production.INFO: count ==1087 [2025-04-25 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:43:05 - End Time 2025-04-25 05:43:05 [2025-04-25 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984879', 'tblTempUsageDetail_20' ) start [2025-04-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984879', 'tblTempUsageDetail_20' ) end [2025-04-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984879', 'tblTempVendorCDR_20' ) start [2025-04-25 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984879', 'tblTempVendorCDR_20' ) end [2025-04-25 05:43:18] Production.INFO: ProcessCDR(1,14984879,1,1,2) [2025-04-25 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984879', 'tblTempUsageDetail_20' ) start [2025-04-25 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984879', 'tblTempUsageDetail_20' ) end [2025-04-25 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:43:22] Production.INFO: ==26963== Releasing lock... [2025-04-25 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:44:05 [end_date_ymd] => 2025-04-25 05:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:44:05' and `end` < '2025-04-25 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-04-25 05:44:18] Production.INFO: count ==1087 [2025-04-25 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:44:05 - End Time 2025-04-25 05:44:05 [2025-04-25 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984884', 'tblTempUsageDetail_20' ) start [2025-04-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984884', 'tblTempUsageDetail_20' ) end [2025-04-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984884', 'tblTempVendorCDR_20' ) start [2025-04-25 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984884', 'tblTempVendorCDR_20' ) end [2025-04-25 05:44:18] Production.INFO: ProcessCDR(1,14984884,1,1,2) [2025-04-25 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984884', 'tblTempUsageDetail_20' ) start [2025-04-25 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984884', 'tblTempUsageDetail_20' ) end [2025-04-25 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:44:22] Production.INFO: ==27034== Releasing lock... [2025-04-25 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:45:05 [end_date_ymd] => 2025-04-25 05:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:45:05' and `end` < '2025-04-25 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-04-25 05:45:18] Production.INFO: count ==1087 [2025-04-25 05:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:45:05 - End Time 2025-04-25 05:45:05 [2025-04-25 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984889', 'tblTempUsageDetail_20' ) start [2025-04-25 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984889', 'tblTempUsageDetail_20' ) end [2025-04-25 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984889', 'tblTempVendorCDR_20' ) start [2025-04-25 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984889', 'tblTempVendorCDR_20' ) end [2025-04-25 05:45:19] Production.INFO: ProcessCDR(1,14984889,1,1,2) [2025-04-25 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984889', 'tblTempUsageDetail_20' ) start [2025-04-25 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984889', 'tblTempUsageDetail_20' ) end [2025-04-25 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:45:22] Production.INFO: ==27106== Releasing lock... [2025-04-25 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:45:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:46:05 [end_date_ymd] => 2025-04-25 05:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:46:05' and `end` < '2025-04-25 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-04-25 05:46:17] Production.INFO: count ==1087 [2025-04-25 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:46:05 - End Time 2025-04-25 05:46:05 [2025-04-25 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984894', 'tblTempUsageDetail_20' ) start [2025-04-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984894', 'tblTempUsageDetail_20' ) end [2025-04-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984894', 'tblTempVendorCDR_20' ) start [2025-04-25 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984894', 'tblTempVendorCDR_20' ) end [2025-04-25 05:46:18] Production.INFO: ProcessCDR(1,14984894,1,1,2) [2025-04-25 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984894', 'tblTempUsageDetail_20' ) start [2025-04-25 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984894', 'tblTempUsageDetail_20' ) end [2025-04-25 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:46:21] Production.INFO: ==27175== Releasing lock... [2025-04-25 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:47:05 [end_date_ymd] => 2025-04-25 05:47:05 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:47:05' and `end` < '2025-04-25 05: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-04-25 05:47:17] Production.INFO: count ==1087 [2025-04-25 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:47:05 - End Time 2025-04-25 05:47:05 [2025-04-25 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984899', 'tblTempUsageDetail_20' ) start [2025-04-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984899', 'tblTempUsageDetail_20' ) end [2025-04-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984899', 'tblTempVendorCDR_20' ) start [2025-04-25 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984899', 'tblTempVendorCDR_20' ) end [2025-04-25 05:47:18] Production.INFO: ProcessCDR(1,14984899,1,1,2) [2025-04-25 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984899', 'tblTempUsageDetail_20' ) start [2025-04-25 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984899', 'tblTempUsageDetail_20' ) end [2025-04-25 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:47:21] Production.INFO: ==27246== Releasing lock... [2025-04-25 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:47:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:48:05 [end_date_ymd] => 2025-04-25 05:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:48:05' and `end` < '2025-04-25 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-04-25 05:48:18] Production.INFO: count ==1087 [2025-04-25 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:48:05 - End Time 2025-04-25 05:48:05 [2025-04-25 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984904', 'tblTempUsageDetail_20' ) start [2025-04-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984904', 'tblTempUsageDetail_20' ) end [2025-04-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984904', 'tblTempVendorCDR_20' ) start [2025-04-25 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984904', 'tblTempVendorCDR_20' ) end [2025-04-25 05:48:18] Production.INFO: ProcessCDR(1,14984904,1,1,2) [2025-04-25 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984904', 'tblTempUsageDetail_20' ) start [2025-04-25 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984904', 'tblTempUsageDetail_20' ) end [2025-04-25 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:48:22] Production.INFO: ==27323== Releasing lock... [2025-04-25 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:49:05 [end_date_ymd] => 2025-04-25 05:49:05 [RateCDR] => 1 ) [2025-04-25 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:49:05' and `end` < '2025-04-25 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:49:18] Production.INFO: count ==1055 [2025-04-25 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:49:05 - End Time 2025-04-25 05:49:05 [2025-04-25 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984909', 'tblTempUsageDetail_20' ) start [2025-04-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984909', 'tblTempUsageDetail_20' ) end [2025-04-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984909', 'tblTempVendorCDR_20' ) start [2025-04-25 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984909', 'tblTempVendorCDR_20' ) end [2025-04-25 05:49:18] Production.INFO: ProcessCDR(1,14984909,1,1,2) [2025-04-25 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984909', 'tblTempUsageDetail_20' ) start [2025-04-25 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984909', 'tblTempUsageDetail_20' ) end [2025-04-25 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:49:21] Production.INFO: ==27394== Releasing lock... [2025-04-25 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:49:21] Production.INFO: 37 MB #Memory Used# [2025-04-25 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:50:06 [end_date_ymd] => 2025-04-25 05:50:06 [RateCDR] => 1 ) [2025-04-25 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:50:06' and `end` < '2025-04-25 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:50:18] Production.INFO: count ==983 [2025-04-25 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 02:50:06 - End Time 2025-04-25 05:50:06 [2025-04-25 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984915', 'tblTempUsageDetail_20' ) start [2025-04-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984915', 'tblTempUsageDetail_20' ) end [2025-04-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984915', 'tblTempVendorCDR_20' ) start [2025-04-25 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984915', 'tblTempVendorCDR_20' ) end [2025-04-25 05:50:19] Production.INFO: ProcessCDR(1,14984915,1,1,2) [2025-04-25 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984915', 'tblTempUsageDetail_20' ) start [2025-04-25 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984915', 'tblTempUsageDetail_20' ) end [2025-04-25 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:50:22] Production.INFO: ==27474== Releasing lock... [2025-04-25 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-25 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:51:05 [end_date_ymd] => 2025-04-25 05:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:51:05' and `end` < '2025-04-25 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-04-25 05:51:17] Production.INFO: count ==923 [2025-04-25 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:51:05 - End Time 2025-04-25 05:51:05 [2025-04-25 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984920', 'tblTempUsageDetail_20' ) start [2025-04-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984920', 'tblTempUsageDetail_20' ) end [2025-04-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984920', 'tblTempVendorCDR_20' ) start [2025-04-25 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984920', 'tblTempVendorCDR_20' ) end [2025-04-25 05:51:18] Production.INFO: ProcessCDR(1,14984920,1,1,2) [2025-04-25 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984920', 'tblTempUsageDetail_20' ) start [2025-04-25 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984920', 'tblTempUsageDetail_20' ) end [2025-04-25 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:51:21] Production.INFO: ==27546== Releasing lock... [2025-04-25 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:51:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:52:05 [end_date_ymd] => 2025-04-25 05:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:52:05' and `end` < '2025-04-25 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-04-25 05:52:18] Production.INFO: count ==872 [2025-04-25 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:52:05 - End Time 2025-04-25 05:52:05 [2025-04-25 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984925', 'tblTempUsageDetail_20' ) start [2025-04-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984925', 'tblTempUsageDetail_20' ) end [2025-04-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984925', 'tblTempVendorCDR_20' ) start [2025-04-25 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984925', 'tblTempVendorCDR_20' ) end [2025-04-25 05:52:18] Production.INFO: ProcessCDR(1,14984925,1,1,2) [2025-04-25 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984925', 'tblTempUsageDetail_20' ) start [2025-04-25 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984925', 'tblTempUsageDetail_20' ) end [2025-04-25 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:52:21] Production.INFO: ==27623== Releasing lock... [2025-04-25 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:52:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:53:04 [end_date_ymd] => 2025-04-25 05:53:04 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:53:04' and `end` < '2025-04-25 05: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-04-25 05:53:17] Production.INFO: count ==813 [2025-04-25 05:53:17] Production.ERROR: pbx CDR StartTime 2025-04-25 02:53:04 - End Time 2025-04-25 05:53:04 [2025-04-25 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984930', 'tblTempUsageDetail_20' ) start [2025-04-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984930', 'tblTempUsageDetail_20' ) end [2025-04-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984930', 'tblTempVendorCDR_20' ) start [2025-04-25 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984930', 'tblTempVendorCDR_20' ) end [2025-04-25 05:53:17] Production.INFO: ProcessCDR(1,14984930,1,1,2) [2025-04-25 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984930', 'tblTempUsageDetail_20' ) start [2025-04-25 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984930', 'tblTempUsageDetail_20' ) end [2025-04-25 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:53:21] Production.INFO: ==27741== Releasing lock... [2025-04-25 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:53:21] Production.INFO: 35 MB #Memory Used# [2025-04-25 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:54:05 [end_date_ymd] => 2025-04-25 05:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:54:05' and `end` < '2025-04-25 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-04-25 05:54:18] Production.INFO: count ==753 [2025-04-25 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:54:05 - End Time 2025-04-25 05:54:05 [2025-04-25 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984935', 'tblTempUsageDetail_20' ) start [2025-04-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984935', 'tblTempUsageDetail_20' ) end [2025-04-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984935', 'tblTempVendorCDR_20' ) start [2025-04-25 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984935', 'tblTempVendorCDR_20' ) end [2025-04-25 05:54:18] Production.INFO: ProcessCDR(1,14984935,1,1,2) [2025-04-25 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984935', 'tblTempUsageDetail_20' ) start [2025-04-25 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984935', 'tblTempUsageDetail_20' ) end [2025-04-25 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:54:22] Production.INFO: ==27816== Releasing lock... [2025-04-25 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-25 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:55:05 [end_date_ymd] => 2025-04-25 05:55:05 [RateCDR] => 1 ) [2025-04-25 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 02:55:05' and `end` < '2025-04-25 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 05:55:18] Production.INFO: count ==690 [2025-04-25 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:55:05 - End Time 2025-04-25 05:55:05 [2025-04-25 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984940', 'tblTempUsageDetail_20' ) start [2025-04-25 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984940', 'tblTempUsageDetail_20' ) end [2025-04-25 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984940', 'tblTempVendorCDR_20' ) start [2025-04-25 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984940', 'tblTempVendorCDR_20' ) end [2025-04-25 05:55:18] Production.INFO: ProcessCDR(1,14984940,1,1,2) [2025-04-25 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984940', 'tblTempUsageDetail_20' ) start [2025-04-25 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984940', 'tblTempUsageDetail_20' ) end [2025-04-25 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:55:22] Production.INFO: ==27892== Releasing lock... [2025-04-25 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:55:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-25 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:56:05 [end_date_ymd] => 2025-04-25 05:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:56:05' and `end` < '2025-04-25 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-04-25 05:56:17] Production.INFO: count ==631 [2025-04-25 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:56:05 - End Time 2025-04-25 05:56:05 [2025-04-25 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984945', 'tblTempUsageDetail_20' ) start [2025-04-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984945', 'tblTempUsageDetail_20' ) end [2025-04-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984945', 'tblTempVendorCDR_20' ) start [2025-04-25 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984945', 'tblTempVendorCDR_20' ) end [2025-04-25 05:56:18] Production.INFO: ProcessCDR(1,14984945,1,1,2) [2025-04-25 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984945', 'tblTempUsageDetail_20' ) start [2025-04-25 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984945', 'tblTempUsageDetail_20' ) end [2025-04-25 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:56:21] Production.INFO: ==27962== Releasing lock... [2025-04-25 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-25 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:57:05 [end_date_ymd] => 2025-04-25 05:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:57:05' and `end` < '2025-04-25 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-04-25 05:57:18] Production.INFO: count ==571 [2025-04-25 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:57:05 - End Time 2025-04-25 05:57:05 [2025-04-25 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984950', 'tblTempUsageDetail_20' ) start [2025-04-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984950', 'tblTempUsageDetail_20' ) end [2025-04-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984950', 'tblTempVendorCDR_20' ) start [2025-04-25 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984950', 'tblTempVendorCDR_20' ) end [2025-04-25 05:57:18] Production.INFO: ProcessCDR(1,14984950,1,1,2) [2025-04-25 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984950', 'tblTempUsageDetail_20' ) start [2025-04-25 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984950', 'tblTempUsageDetail_20' ) end [2025-04-25 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:57:21] Production.INFO: ==28035== Releasing lock... [2025-04-25 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:57:21] Production.INFO: 33 MB #Memory Used# [2025-04-25 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:58:04 [end_date_ymd] => 2025-04-25 05:58:04 [RateCDR] => 1 ) [2025-04-25 05: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-04-25 02:58:04' and `end` < '2025-04-25 05: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-04-25 05:58:17] Production.INFO: count ==509 [2025-04-25 05:58:17] Production.ERROR: pbx CDR StartTime 2025-04-25 02:58:04 - End Time 2025-04-25 05:58:04 [2025-04-25 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984955', 'tblTempUsageDetail_20' ) start [2025-04-25 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984955', 'tblTempUsageDetail_20' ) end [2025-04-25 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984955', 'tblTempVendorCDR_20' ) start [2025-04-25 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984955', 'tblTempVendorCDR_20' ) end [2025-04-25 05:58:17] Production.INFO: ProcessCDR(1,14984955,1,1,2) [2025-04-25 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984955', 'tblTempUsageDetail_20' ) start [2025-04-25 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984955', 'tblTempUsageDetail_20' ) end [2025-04-25 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:58:20] Production.INFO: ==28105== Releasing lock... [2025-04-25 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:58:20] Production.INFO: 32 MB #Memory Used# [2025-04-25 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 02:59:05 [end_date_ymd] => 2025-04-25 05:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 02:59:05' and `end` < '2025-04-25 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-04-25 05:59:18] Production.INFO: count ==450 [2025-04-25 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 02:59:05 - End Time 2025-04-25 05:59:05 [2025-04-25 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984960', 'tblTempUsageDetail_20' ) start [2025-04-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984960', 'tblTempUsageDetail_20' ) end [2025-04-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984960', 'tblTempVendorCDR_20' ) start [2025-04-25 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984960', 'tblTempVendorCDR_20' ) end [2025-04-25 05:59:18] Production.INFO: ProcessCDR(1,14984960,1,1,2) [2025-04-25 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984960', 'tblTempUsageDetail_20' ) start [2025-04-25 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984960', 'tblTempUsageDetail_20' ) end [2025-04-25 05:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 05:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 05:59:23] Production.INFO: ==28182== Releasing lock... [2025-04-25 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 05:59:23] Production.INFO: 32 MB #Memory Used# [2025-04-25 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:00:06 [end_date_ymd] => 2025-04-25 06:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:00:06' and `end` < '2025-04-25 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-04-25 06:00:18] Production.INFO: count ==378 [2025-04-25 06:00:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:00:06 - End Time 2025-04-25 06:00:06 [2025-04-25 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984965', 'tblTempUsageDetail_20' ) start [2025-04-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984965', 'tblTempUsageDetail_20' ) end [2025-04-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984965', 'tblTempVendorCDR_20' ) start [2025-04-25 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984965', 'tblTempVendorCDR_20' ) end [2025-04-25 06:00:18] Production.INFO: ProcessCDR(1,14984965,1,1,2) [2025-04-25 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984965', 'tblTempUsageDetail_20' ) start [2025-04-25 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984965', 'tblTempUsageDetail_20' ) end [2025-04-25 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:00:22] Production.INFO: ==28259== Releasing lock... [2025-04-25 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:01:05 [end_date_ymd] => 2025-04-25 06:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:01:05' and `end` < '2025-04-25 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-04-25 06:01:18] Production.INFO: count ==316 [2025-04-25 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:01:05 - End Time 2025-04-25 06:01:05 [2025-04-25 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984971', 'tblTempUsageDetail_20' ) start [2025-04-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984971', 'tblTempUsageDetail_20' ) end [2025-04-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984971', 'tblTempVendorCDR_20' ) start [2025-04-25 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984971', 'tblTempVendorCDR_20' ) end [2025-04-25 06:01:18] Production.INFO: ProcessCDR(1,14984971,1,1,2) [2025-04-25 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984971', 'tblTempUsageDetail_20' ) start [2025-04-25 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984971', 'tblTempUsageDetail_20' ) end [2025-04-25 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:01:21] Production.INFO: ==28342== Releasing lock... [2025-04-25 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:02:05 [end_date_ymd] => 2025-04-25 06:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:02:05' and `end` < '2025-04-25 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-04-25 06:02:18] Production.INFO: count ==255 [2025-04-25 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:02:05 - End Time 2025-04-25 06:02:05 [2025-04-25 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984976', 'tblTempUsageDetail_20' ) start [2025-04-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984976', 'tblTempUsageDetail_20' ) end [2025-04-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984976', 'tblTempVendorCDR_20' ) start [2025-04-25 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984976', 'tblTempVendorCDR_20' ) end [2025-04-25 06:02:18] Production.INFO: ProcessCDR(1,14984976,1,1,2) [2025-04-25 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984976', 'tblTempUsageDetail_20' ) start [2025-04-25 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984976', 'tblTempUsageDetail_20' ) end [2025-04-25 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:02:21] Production.INFO: ==28417== Releasing lock... [2025-04-25 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:02:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:03:05 [end_date_ymd] => 2025-04-25 06:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:03:05' and `end` < '2025-04-25 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-04-25 06:03:17] Production.INFO: count ==195 [2025-04-25 06:03:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:03:05 - End Time 2025-04-25 06:03:05 [2025-04-25 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984981', 'tblTempUsageDetail_20' ) start [2025-04-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984981', 'tblTempUsageDetail_20' ) end [2025-04-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984981', 'tblTempVendorCDR_20' ) start [2025-04-25 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984981', 'tblTempVendorCDR_20' ) end [2025-04-25 06:03:17] Production.INFO: ProcessCDR(1,14984981,1,1,2) [2025-04-25 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984981', 'tblTempUsageDetail_20' ) start [2025-04-25 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984981', 'tblTempUsageDetail_20' ) end [2025-04-25 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:03:21] Production.INFO: ==28487== Releasing lock... [2025-04-25 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:04:06 [end_date_ymd] => 2025-04-25 06:04:06 [RateCDR] => 1 ) [2025-04-25 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:04:06' and `end` < '2025-04-25 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:04:18] Production.INFO: count ==135 [2025-04-25 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:04:06 - End Time 2025-04-25 06:04:06 [2025-04-25 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984986', 'tblTempUsageDetail_20' ) start [2025-04-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984986', 'tblTempUsageDetail_20' ) end [2025-04-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984986', 'tblTempVendorCDR_20' ) start [2025-04-25 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984986', 'tblTempVendorCDR_20' ) end [2025-04-25 06:04:18] Production.INFO: ProcessCDR(1,14984986,1,1,2) [2025-04-25 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984986', 'tblTempUsageDetail_20' ) start [2025-04-25 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984986', 'tblTempUsageDetail_20' ) end [2025-04-25 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:04:22] Production.INFO: ==28570== Releasing lock... [2025-04-25 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:05:05 [end_date_ymd] => 2025-04-25 06:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:05:05' and `end` < '2025-04-25 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-04-25 06:05:18] Production.INFO: count ==77 [2025-04-25 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:05:05 - End Time 2025-04-25 06:05:05 [2025-04-25 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984991', 'tblTempUsageDetail_20' ) start [2025-04-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984991', 'tblTempUsageDetail_20' ) end [2025-04-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984991', 'tblTempVendorCDR_20' ) start [2025-04-25 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984991', 'tblTempVendorCDR_20' ) end [2025-04-25 06:05:18] Production.INFO: ProcessCDR(1,14984991,1,1,2) [2025-04-25 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984991', 'tblTempUsageDetail_20' ) start [2025-04-25 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984991', 'tblTempUsageDetail_20' ) end [2025-04-25 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:05:21] Production.INFO: ==28656== Releasing lock... [2025-04-25 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:06:05 [end_date_ymd] => 2025-04-25 06:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:06:05' and `end` < '2025-04-25 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-04-25 06:06:18] Production.INFO: count ==75 [2025-04-25 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:06:05 - End Time 2025-04-25 06:06:05 [2025-04-25 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984996', 'tblTempUsageDetail_20' ) start [2025-04-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14984996', 'tblTempUsageDetail_20' ) end [2025-04-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984996', 'tblTempVendorCDR_20' ) start [2025-04-25 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14984996', 'tblTempVendorCDR_20' ) end [2025-04-25 06:06:18] Production.INFO: ProcessCDR(1,14984996,1,1,2) [2025-04-25 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14984996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14984996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14984996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14984996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984996', 'tblTempUsageDetail_20' ) start [2025-04-25 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14984996', 'tblTempUsageDetail_20' ) end [2025-04-25 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:06:21] Production.INFO: ==28728== Releasing lock... [2025-04-25 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:07:05 [end_date_ymd] => 2025-04-25 06:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:07:05' and `end` < '2025-04-25 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-04-25 06:07:17] Production.INFO: count ==75 [2025-04-25 06:07:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:07:05 - End Time 2025-04-25 06:07:05 [2025-04-25 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985001', 'tblTempUsageDetail_20' ) start [2025-04-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985001', 'tblTempUsageDetail_20' ) end [2025-04-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985001', 'tblTempVendorCDR_20' ) start [2025-04-25 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985001', 'tblTempVendorCDR_20' ) end [2025-04-25 06:07:17] Production.INFO: ProcessCDR(1,14985001,1,1,2) [2025-04-25 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985001', 'tblTempUsageDetail_20' ) start [2025-04-25 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985001', 'tblTempUsageDetail_20' ) end [2025-04-25 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:07:21] Production.INFO: ==28803== Releasing lock... [2025-04-25 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:08:05 [end_date_ymd] => 2025-04-25 06:08:05 [RateCDR] => 1 ) [2025-04-25 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:08:05' and `end` < '2025-04-25 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:08:17] Production.INFO: count ==76 [2025-04-25 06:08:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:08:05 - End Time 2025-04-25 06:08:05 [2025-04-25 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985006', 'tblTempUsageDetail_20' ) start [2025-04-25 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985006', 'tblTempUsageDetail_20' ) end [2025-04-25 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985006', 'tblTempVendorCDR_20' ) start [2025-04-25 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985006', 'tblTempVendorCDR_20' ) end [2025-04-25 06:08:17] Production.INFO: ProcessCDR(1,14985006,1,1,2) [2025-04-25 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985006', 'tblTempUsageDetail_20' ) start [2025-04-25 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985006', 'tblTempUsageDetail_20' ) end [2025-04-25 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:08:21] Production.INFO: ==28880== Releasing lock... [2025-04-25 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:09:06 [end_date_ymd] => 2025-04-25 06:09:06 [RateCDR] => 1 ) [2025-04-25 06: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-04-25 03:09:06' and `end` < '2025-04-25 06: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-04-25 06:09:19] Production.INFO: count ==76 [2025-04-25 06:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 03:09:06 - End Time 2025-04-25 06:09:06 [2025-04-25 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985011', 'tblTempUsageDetail_20' ) start [2025-04-25 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985011', 'tblTempUsageDetail_20' ) end [2025-04-25 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985011', 'tblTempVendorCDR_20' ) start [2025-04-25 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985011', 'tblTempVendorCDR_20' ) end [2025-04-25 06:09:19] Production.INFO: ProcessCDR(1,14985011,1,1,2) [2025-04-25 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985011', 'tblTempUsageDetail_20' ) start [2025-04-25 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985011', 'tblTempUsageDetail_20' ) end [2025-04-25 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:09:22] Production.INFO: ==28990== Releasing lock... [2025-04-25 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:10:06 [end_date_ymd] => 2025-04-25 06:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:10:06' and `end` < '2025-04-25 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-04-25 06:10:18] Production.INFO: count ==76 [2025-04-25 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:10:06 - End Time 2025-04-25 06:10:06 [2025-04-25 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985017', 'tblTempUsageDetail_20' ) start [2025-04-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985017', 'tblTempUsageDetail_20' ) end [2025-04-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985017', 'tblTempVendorCDR_20' ) start [2025-04-25 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985017', 'tblTempVendorCDR_20' ) end [2025-04-25 06:10:18] Production.INFO: ProcessCDR(1,14985017,1,1,2) [2025-04-25 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985017', 'tblTempUsageDetail_20' ) start [2025-04-25 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985017', 'tblTempUsageDetail_20' ) end [2025-04-25 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:10:21] Production.INFO: ==29071== Releasing lock... [2025-04-25 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:11:06 [end_date_ymd] => 2025-04-25 06:11:06 [RateCDR] => 1 ) [2025-04-25 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:11:06' and `end` < '2025-04-25 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:11:18] Production.INFO: count ==76 [2025-04-25 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:11:06 - End Time 2025-04-25 06:11:06 [2025-04-25 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985022', 'tblTempUsageDetail_20' ) start [2025-04-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985022', 'tblTempUsageDetail_20' ) end [2025-04-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985022', 'tblTempVendorCDR_20' ) start [2025-04-25 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985022', 'tblTempVendorCDR_20' ) end [2025-04-25 06:11:18] Production.INFO: ProcessCDR(1,14985022,1,1,2) [2025-04-25 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985022', 'tblTempUsageDetail_20' ) start [2025-04-25 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985022', 'tblTempUsageDetail_20' ) end [2025-04-25 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:11:22] Production.INFO: ==29142== Releasing lock... [2025-04-25 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:12:05 [end_date_ymd] => 2025-04-25 06:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:12:05' and `end` < '2025-04-25 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-04-25 06:12:18] Production.INFO: count ==76 [2025-04-25 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:12:05 - End Time 2025-04-25 06:12:05 [2025-04-25 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985027', 'tblTempUsageDetail_20' ) start [2025-04-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985027', 'tblTempUsageDetail_20' ) end [2025-04-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985027', 'tblTempVendorCDR_20' ) start [2025-04-25 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985027', 'tblTempVendorCDR_20' ) end [2025-04-25 06:12:18] Production.INFO: ProcessCDR(1,14985027,1,1,2) [2025-04-25 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985027', 'tblTempUsageDetail_20' ) start [2025-04-25 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985027', 'tblTempUsageDetail_20' ) end [2025-04-25 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:12:21] Production.INFO: ==29214== Releasing lock... [2025-04-25 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:13:06 [end_date_ymd] => 2025-04-25 06:13:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:13:06' and `end` < '2025-04-25 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-04-25 06:13:18] Production.INFO: count ==76 [2025-04-25 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:13:06 - End Time 2025-04-25 06:13:06 [2025-04-25 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985032', 'tblTempUsageDetail_20' ) start [2025-04-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985032', 'tblTempUsageDetail_20' ) end [2025-04-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985032', 'tblTempVendorCDR_20' ) start [2025-04-25 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985032', 'tblTempVendorCDR_20' ) end [2025-04-25 06:13:18] Production.INFO: ProcessCDR(1,14985032,1,1,2) [2025-04-25 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985032', 'tblTempUsageDetail_20' ) start [2025-04-25 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985032', 'tblTempUsageDetail_20' ) end [2025-04-25 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:13:22] Production.INFO: ==29287== Releasing lock... [2025-04-25 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:14:05 [end_date_ymd] => 2025-04-25 06:14:05 [RateCDR] => 1 ) [2025-04-25 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:14:05' and `end` < '2025-04-25 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:14:17] Production.INFO: count ==76 [2025-04-25 06:14:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:14:05 - End Time 2025-04-25 06:14:05 [2025-04-25 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985037', 'tblTempUsageDetail_20' ) start [2025-04-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985037', 'tblTempUsageDetail_20' ) end [2025-04-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985037', 'tblTempVendorCDR_20' ) start [2025-04-25 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985037', 'tblTempVendorCDR_20' ) end [2025-04-25 06:14:17] Production.INFO: ProcessCDR(1,14985037,1,1,2) [2025-04-25 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985037', 'tblTempUsageDetail_20' ) start [2025-04-25 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985037', 'tblTempUsageDetail_20' ) end [2025-04-25 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:14:21] Production.INFO: ==29360== Releasing lock... [2025-04-25 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:15:05 [end_date_ymd] => 2025-04-25 06:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:15:05' and `end` < '2025-04-25 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-04-25 06:15:18] Production.INFO: count ==76 [2025-04-25 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:15:05 - End Time 2025-04-25 06:15:05 [2025-04-25 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985042', 'tblTempUsageDetail_20' ) start [2025-04-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985042', 'tblTempUsageDetail_20' ) end [2025-04-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985042', 'tblTempVendorCDR_20' ) start [2025-04-25 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985042', 'tblTempVendorCDR_20' ) end [2025-04-25 06:15:18] Production.INFO: ProcessCDR(1,14985042,1,1,2) [2025-04-25 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985042', 'tblTempUsageDetail_20' ) start [2025-04-25 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985042', 'tblTempUsageDetail_20' ) end [2025-04-25 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:15:21] Production.INFO: ==29438== Releasing lock... [2025-04-25 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:16:05 [end_date_ymd] => 2025-04-25 06:16:05 [RateCDR] => 1 ) [2025-04-25 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:16:05' and `end` < '2025-04-25 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:16:17] Production.INFO: count ==76 [2025-04-25 06:16:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:16:05 - End Time 2025-04-25 06:16:05 [2025-04-25 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985047', 'tblTempUsageDetail_20' ) start [2025-04-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985047', 'tblTempUsageDetail_20' ) end [2025-04-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985047', 'tblTempVendorCDR_20' ) start [2025-04-25 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985047', 'tblTempVendorCDR_20' ) end [2025-04-25 06:16:18] Production.INFO: ProcessCDR(1,14985047,1,1,2) [2025-04-25 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985047', 'tblTempUsageDetail_20' ) start [2025-04-25 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985047', 'tblTempUsageDetail_20' ) end [2025-04-25 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:16:21] Production.INFO: ==29512== Releasing lock... [2025-04-25 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:17:05 [end_date_ymd] => 2025-04-25 06:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:17:05' and `end` < '2025-04-25 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-04-25 06:17:18] Production.INFO: count ==76 [2025-04-25 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:17:05 - End Time 2025-04-25 06:17:05 [2025-04-25 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985052', 'tblTempUsageDetail_20' ) start [2025-04-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985052', 'tblTempUsageDetail_20' ) end [2025-04-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985052', 'tblTempVendorCDR_20' ) start [2025-04-25 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985052', 'tblTempVendorCDR_20' ) end [2025-04-25 06:17:18] Production.INFO: ProcessCDR(1,14985052,1,1,2) [2025-04-25 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985052', 'tblTempUsageDetail_20' ) start [2025-04-25 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985052', 'tblTempUsageDetail_20' ) end [2025-04-25 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:17:21] Production.INFO: ==29591== Releasing lock... [2025-04-25 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:18:05 [end_date_ymd] => 2025-04-25 06:18:05 [RateCDR] => 1 ) [2025-04-25 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:18:05' and `end` < '2025-04-25 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:18:18] Production.INFO: count ==76 [2025-04-25 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:18:05 - End Time 2025-04-25 06:18:05 [2025-04-25 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985057', 'tblTempUsageDetail_20' ) start [2025-04-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985057', 'tblTempUsageDetail_20' ) end [2025-04-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985057', 'tblTempVendorCDR_20' ) start [2025-04-25 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985057', 'tblTempVendorCDR_20' ) end [2025-04-25 06:18:18] Production.INFO: ProcessCDR(1,14985057,1,1,2) [2025-04-25 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985057', 'tblTempUsageDetail_20' ) start [2025-04-25 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985057', 'tblTempUsageDetail_20' ) end [2025-04-25 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:18:22] Production.INFO: ==29661== Releasing lock... [2025-04-25 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:19:04 [end_date_ymd] => 2025-04-25 06:19:04 [RateCDR] => 1 ) [2025-04-25 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:19:04' and `end` < '2025-04-25 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-04-25 06:19:17] Production.INFO: count ==76 [2025-04-25 06:19:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:19:04 - End Time 2025-04-25 06:19:04 [2025-04-25 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985062', 'tblTempUsageDetail_20' ) start [2025-04-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985062', 'tblTempUsageDetail_20' ) end [2025-04-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985062', 'tblTempVendorCDR_20' ) start [2025-04-25 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985062', 'tblTempVendorCDR_20' ) end [2025-04-25 06:19:17] Production.INFO: ProcessCDR(1,14985062,1,1,2) [2025-04-25 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985062', 'tblTempUsageDetail_20' ) start [2025-04-25 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985062', 'tblTempUsageDetail_20' ) end [2025-04-25 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:19:20] Production.INFO: ==29734== Releasing lock... [2025-04-25 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:20:06 [end_date_ymd] => 2025-04-25 06:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:20:06' and `end` < '2025-04-25 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-04-25 06:20:19] Production.INFO: count ==76 [2025-04-25 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 03:20:06 - End Time 2025-04-25 06:20:06 [2025-04-25 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985068', 'tblTempUsageDetail_20' ) start [2025-04-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985068', 'tblTempUsageDetail_20' ) end [2025-04-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985068', 'tblTempVendorCDR_20' ) start [2025-04-25 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985068', 'tblTempVendorCDR_20' ) end [2025-04-25 06:20:19] Production.INFO: ProcessCDR(1,14985068,1,1,2) [2025-04-25 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985068', 'tblTempUsageDetail_20' ) start [2025-04-25 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985068', 'tblTempUsageDetail_20' ) end [2025-04-25 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:20:22] Production.INFO: ==29809== Releasing lock... [2025-04-25 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:21:05 [end_date_ymd] => 2025-04-25 06:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:21:05' and `end` < '2025-04-25 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-04-25 06:21:17] Production.INFO: count ==76 [2025-04-25 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:21:05 - End Time 2025-04-25 06:21:05 [2025-04-25 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985073', 'tblTempUsageDetail_20' ) start [2025-04-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985073', 'tblTempUsageDetail_20' ) end [2025-04-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985073', 'tblTempVendorCDR_20' ) start [2025-04-25 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985073', 'tblTempVendorCDR_20' ) end [2025-04-25 06:21:17] Production.INFO: ProcessCDR(1,14985073,1,1,2) [2025-04-25 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985073', 'tblTempUsageDetail_20' ) start [2025-04-25 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985073', 'tblTempUsageDetail_20' ) end [2025-04-25 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:21:21] Production.INFO: ==29889== Releasing lock... [2025-04-25 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:22:05 [end_date_ymd] => 2025-04-25 06:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:22:05' and `end` < '2025-04-25 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-04-25 06:22:18] Production.INFO: count ==76 [2025-04-25 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:22:05 - End Time 2025-04-25 06:22:05 [2025-04-25 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985078', 'tblTempUsageDetail_20' ) start [2025-04-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985078', 'tblTempUsageDetail_20' ) end [2025-04-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985078', 'tblTempVendorCDR_20' ) start [2025-04-25 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985078', 'tblTempVendorCDR_20' ) end [2025-04-25 06:22:18] Production.INFO: ProcessCDR(1,14985078,1,1,2) [2025-04-25 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985078', 'tblTempUsageDetail_20' ) start [2025-04-25 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985078', 'tblTempUsageDetail_20' ) end [2025-04-25 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:22:21] Production.INFO: ==29963== Releasing lock... [2025-04-25 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:23:06 [end_date_ymd] => 2025-04-25 06:23:06 [RateCDR] => 1 ) [2025-04-25 06: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-04-25 03:23:06' and `end` < '2025-04-25 06: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-04-25 06:23:18] Production.INFO: count ==76 [2025-04-25 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:23:06 - End Time 2025-04-25 06:23:06 [2025-04-25 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985083', 'tblTempUsageDetail_20' ) start [2025-04-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985083', 'tblTempUsageDetail_20' ) end [2025-04-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985083', 'tblTempVendorCDR_20' ) start [2025-04-25 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985083', 'tblTempVendorCDR_20' ) end [2025-04-25 06:23:18] Production.INFO: ProcessCDR(1,14985083,1,1,2) [2025-04-25 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985083', 'tblTempUsageDetail_20' ) start [2025-04-25 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985083', 'tblTempUsageDetail_20' ) end [2025-04-25 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:23:22] Production.INFO: ==30039== Releasing lock... [2025-04-25 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:24:05 [end_date_ymd] => 2025-04-25 06:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:24:05' and `end` < '2025-04-25 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-04-25 06:24:18] Production.INFO: count ==76 [2025-04-25 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:24:05 - End Time 2025-04-25 06:24:05 [2025-04-25 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985088', 'tblTempUsageDetail_20' ) start [2025-04-25 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985088', 'tblTempUsageDetail_20' ) end [2025-04-25 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985088', 'tblTempVendorCDR_20' ) start [2025-04-25 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985088', 'tblTempVendorCDR_20' ) end [2025-04-25 06:24:18] Production.INFO: ProcessCDR(1,14985088,1,1,2) [2025-04-25 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985088', 'tblTempUsageDetail_20' ) start [2025-04-25 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985088', 'tblTempUsageDetail_20' ) end [2025-04-25 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:24:21] Production.INFO: ==30153== Releasing lock... [2025-04-25 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:25:05 [end_date_ymd] => 2025-04-25 06:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:25:05' and `end` < '2025-04-25 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-04-25 06:25:18] Production.INFO: count ==76 [2025-04-25 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:25:05 - End Time 2025-04-25 06:25:05 [2025-04-25 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985093', 'tblTempUsageDetail_20' ) start [2025-04-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985093', 'tblTempUsageDetail_20' ) end [2025-04-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985093', 'tblTempVendorCDR_20' ) start [2025-04-25 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985093', 'tblTempVendorCDR_20' ) end [2025-04-25 06:25:18] Production.INFO: ProcessCDR(1,14985093,1,1,2) [2025-04-25 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985093', 'tblTempUsageDetail_20' ) start [2025-04-25 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985093', 'tblTempUsageDetail_20' ) end [2025-04-25 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:25:21] Production.INFO: ==30227== Releasing lock... [2025-04-25 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:26:05 [end_date_ymd] => 2025-04-25 06:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:26:05' and `end` < '2025-04-25 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-04-25 06:26:18] Production.INFO: count ==76 [2025-04-25 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:26:05 - End Time 2025-04-25 06:26:05 [2025-04-25 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985098', 'tblTempUsageDetail_20' ) start [2025-04-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985098', 'tblTempUsageDetail_20' ) end [2025-04-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985098', 'tblTempVendorCDR_20' ) start [2025-04-25 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985098', 'tblTempVendorCDR_20' ) end [2025-04-25 06:26:18] Production.INFO: ProcessCDR(1,14985098,1,1,2) [2025-04-25 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985098', 'tblTempUsageDetail_20' ) start [2025-04-25 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985098', 'tblTempUsageDetail_20' ) end [2025-04-25 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:26:21] Production.INFO: ==30299== Releasing lock... [2025-04-25 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:27:05 [end_date_ymd] => 2025-04-25 06:27:05 [RateCDR] => 1 ) [2025-04-25 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:27:05' and `end` < '2025-04-25 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:27:18] Production.INFO: count ==76 [2025-04-25 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:27:05 - End Time 2025-04-25 06:27:05 [2025-04-25 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985103', 'tblTempUsageDetail_20' ) start [2025-04-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985103', 'tblTempUsageDetail_20' ) end [2025-04-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985103', 'tblTempVendorCDR_20' ) start [2025-04-25 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985103', 'tblTempVendorCDR_20' ) end [2025-04-25 06:27:18] Production.INFO: ProcessCDR(1,14985103,1,1,2) [2025-04-25 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985103', 'tblTempUsageDetail_20' ) start [2025-04-25 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985103', 'tblTempUsageDetail_20' ) end [2025-04-25 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:27:21] Production.INFO: ==30377== Releasing lock... [2025-04-25 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:28:05 [end_date_ymd] => 2025-04-25 06:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:28:05' and `end` < '2025-04-25 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-04-25 06:28:17] Production.INFO: count ==76 [2025-04-25 06:28:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:28:05 - End Time 2025-04-25 06:28:05 [2025-04-25 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985108', 'tblTempUsageDetail_20' ) start [2025-04-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985108', 'tblTempUsageDetail_20' ) end [2025-04-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985108', 'tblTempVendorCDR_20' ) start [2025-04-25 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985108', 'tblTempVendorCDR_20' ) end [2025-04-25 06:28:17] Production.INFO: ProcessCDR(1,14985108,1,1,2) [2025-04-25 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985108', 'tblTempUsageDetail_20' ) start [2025-04-25 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985108', 'tblTempUsageDetail_20' ) end [2025-04-25 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:28:21] Production.INFO: ==30448== Releasing lock... [2025-04-25 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:29:05 [end_date_ymd] => 2025-04-25 06:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:29:05' and `end` < '2025-04-25 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-04-25 06:29:18] Production.INFO: count ==76 [2025-04-25 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:29:05 - End Time 2025-04-25 06:29:05 [2025-04-25 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985113', 'tblTempUsageDetail_20' ) start [2025-04-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985113', 'tblTempUsageDetail_20' ) end [2025-04-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985113', 'tblTempVendorCDR_20' ) start [2025-04-25 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985113', 'tblTempVendorCDR_20' ) end [2025-04-25 06:29:18] Production.INFO: ProcessCDR(1,14985113,1,1,2) [2025-04-25 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985113', 'tblTempUsageDetail_20' ) start [2025-04-25 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985113', 'tblTempUsageDetail_20' ) end [2025-04-25 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:29:21] Production.INFO: ==30520== Releasing lock... [2025-04-25 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:30:06 [end_date_ymd] => 2025-04-25 06:30:06 [RateCDR] => 1 ) [2025-04-25 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:30:06' and `end` < '2025-04-25 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:30:18] Production.INFO: count ==70 [2025-04-25 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:30:06 - End Time 2025-04-25 06:30:06 [2025-04-25 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985119', 'tblTempUsageDetail_20' ) start [2025-04-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985119', 'tblTempUsageDetail_20' ) end [2025-04-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985119', 'tblTempVendorCDR_20' ) start [2025-04-25 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985119', 'tblTempVendorCDR_20' ) end [2025-04-25 06:30:18] Production.INFO: ProcessCDR(1,14985119,1,1,2) [2025-04-25 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985119', 'tblTempUsageDetail_20' ) start [2025-04-25 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985119', 'tblTempUsageDetail_20' ) end [2025-04-25 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:30:22] Production.INFO: ==30593== Releasing lock... [2025-04-25 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:31:05 [end_date_ymd] => 2025-04-25 06:31:05 [RateCDR] => 1 ) [2025-04-25 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:31:05' and `end` < '2025-04-25 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:31:18] Production.INFO: count ==70 [2025-04-25 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:31:05 - End Time 2025-04-25 06:31:05 [2025-04-25 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985124', 'tblTempUsageDetail_20' ) start [2025-04-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985124', 'tblTempUsageDetail_20' ) end [2025-04-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985124', 'tblTempVendorCDR_20' ) start [2025-04-25 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985124', 'tblTempVendorCDR_20' ) end [2025-04-25 06:31:18] Production.INFO: ProcessCDR(1,14985124,1,1,2) [2025-04-25 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985124', 'tblTempUsageDetail_20' ) start [2025-04-25 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985124', 'tblTempUsageDetail_20' ) end [2025-04-25 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:31:21] Production.INFO: ==30673== Releasing lock... [2025-04-25 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:32:05 [end_date_ymd] => 2025-04-25 06:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:32:05' and `end` < '2025-04-25 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-04-25 06:32:17] Production.INFO: count ==70 [2025-04-25 06:32:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:32:05 - End Time 2025-04-25 06:32:05 [2025-04-25 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985129', 'tblTempUsageDetail_20' ) start [2025-04-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985129', 'tblTempUsageDetail_20' ) end [2025-04-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985129', 'tblTempVendorCDR_20' ) start [2025-04-25 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985129', 'tblTempVendorCDR_20' ) end [2025-04-25 06:32:17] Production.INFO: ProcessCDR(1,14985129,1,1,2) [2025-04-25 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985129', 'tblTempUsageDetail_20' ) start [2025-04-25 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985129', 'tblTempUsageDetail_20' ) end [2025-04-25 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:32:21] Production.INFO: ==30744== Releasing lock... [2025-04-25 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:33:05 [end_date_ymd] => 2025-04-25 06:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:33:05' and `end` < '2025-04-25 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-04-25 06:33:18] Production.INFO: count ==70 [2025-04-25 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:33:05 - End Time 2025-04-25 06:33:05 [2025-04-25 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985134', 'tblTempUsageDetail_20' ) start [2025-04-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985134', 'tblTempUsageDetail_20' ) end [2025-04-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985134', 'tblTempVendorCDR_20' ) start [2025-04-25 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985134', 'tblTempVendorCDR_20' ) end [2025-04-25 06:33:18] Production.INFO: ProcessCDR(1,14985134,1,1,2) [2025-04-25 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985134', 'tblTempUsageDetail_20' ) start [2025-04-25 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985134', 'tblTempUsageDetail_20' ) end [2025-04-25 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:33:22] Production.INFO: ==30821== Releasing lock... [2025-04-25 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:34:05 [end_date_ymd] => 2025-04-25 06:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:34:05' and `end` < '2025-04-25 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-04-25 06:34:18] Production.INFO: count ==71 [2025-04-25 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:34:05 - End Time 2025-04-25 06:34:05 [2025-04-25 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985139', 'tblTempUsageDetail_20' ) start [2025-04-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985139', 'tblTempUsageDetail_20' ) end [2025-04-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985139', 'tblTempVendorCDR_20' ) start [2025-04-25 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985139', 'tblTempVendorCDR_20' ) end [2025-04-25 06:34:18] Production.INFO: ProcessCDR(1,14985139,1,1,2) [2025-04-25 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985139', 'tblTempUsageDetail_20' ) start [2025-04-25 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985139', 'tblTempUsageDetail_20' ) end [2025-04-25 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:34:21] Production.INFO: ==30895== Releasing lock... [2025-04-25 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:35:05 [end_date_ymd] => 2025-04-25 06:35:05 [RateCDR] => 1 ) [2025-04-25 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:35:05' and `end` < '2025-04-25 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:35:18] Production.INFO: count ==71 [2025-04-25 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:35:05 - End Time 2025-04-25 06:35:05 [2025-04-25 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985144', 'tblTempUsageDetail_20' ) start [2025-04-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985144', 'tblTempUsageDetail_20' ) end [2025-04-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985144', 'tblTempVendorCDR_20' ) start [2025-04-25 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985144', 'tblTempVendorCDR_20' ) end [2025-04-25 06:35:18] Production.INFO: ProcessCDR(1,14985144,1,1,2) [2025-04-25 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985144', 'tblTempUsageDetail_20' ) start [2025-04-25 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985144', 'tblTempUsageDetail_20' ) end [2025-04-25 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:35:21] Production.INFO: ==30965== Releasing lock... [2025-04-25 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:36:05 [end_date_ymd] => 2025-04-25 06:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:36:05' and `end` < '2025-04-25 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-04-25 06:36:18] Production.INFO: count ==68 [2025-04-25 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:36:05 - End Time 2025-04-25 06:36:05 [2025-04-25 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985149', 'tblTempUsageDetail_20' ) start [2025-04-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985149', 'tblTempUsageDetail_20' ) end [2025-04-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985149', 'tblTempVendorCDR_20' ) start [2025-04-25 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985149', 'tblTempVendorCDR_20' ) end [2025-04-25 06:36:18] Production.INFO: ProcessCDR(1,14985149,1,1,2) [2025-04-25 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985149', 'tblTempUsageDetail_20' ) start [2025-04-25 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985149', 'tblTempUsageDetail_20' ) end [2025-04-25 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:36:21] Production.INFO: ==31038== Releasing lock... [2025-04-25 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:37:05 [end_date_ymd] => 2025-04-25 06:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:37:05' and `end` < '2025-04-25 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-04-25 06:37:17] Production.INFO: count ==68 [2025-04-25 06:37:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:37:05 - End Time 2025-04-25 06:37:05 [2025-04-25 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985154', 'tblTempUsageDetail_20' ) start [2025-04-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985154', 'tblTempUsageDetail_20' ) end [2025-04-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985154', 'tblTempVendorCDR_20' ) start [2025-04-25 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985154', 'tblTempVendorCDR_20' ) end [2025-04-25 06:37:17] Production.INFO: ProcessCDR(1,14985154,1,1,2) [2025-04-25 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985154', 'tblTempUsageDetail_20' ) start [2025-04-25 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985154', 'tblTempUsageDetail_20' ) end [2025-04-25 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:37:21] Production.INFO: ==31107== Releasing lock... [2025-04-25 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:38:05 [end_date_ymd] => 2025-04-25 06:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:38:05' and `end` < '2025-04-25 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-04-25 06:38:18] Production.INFO: count ==68 [2025-04-25 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:38:05 - End Time 2025-04-25 06:38:05 [2025-04-25 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985159', 'tblTempUsageDetail_20' ) start [2025-04-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985159', 'tblTempUsageDetail_20' ) end [2025-04-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985159', 'tblTempVendorCDR_20' ) start [2025-04-25 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985159', 'tblTempVendorCDR_20' ) end [2025-04-25 06:38:18] Production.INFO: ProcessCDR(1,14985159,1,1,2) [2025-04-25 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985159', 'tblTempUsageDetail_20' ) start [2025-04-25 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985159', 'tblTempUsageDetail_20' ) end [2025-04-25 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:38:21] Production.INFO: ==31184== Releasing lock... [2025-04-25 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:39:05 [end_date_ymd] => 2025-04-25 06:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:39:05' and `end` < '2025-04-25 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-04-25 06:39:17] Production.INFO: count ==69 [2025-04-25 06:39:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:39:05 - End Time 2025-04-25 06:39:05 [2025-04-25 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985164', 'tblTempUsageDetail_20' ) start [2025-04-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985164', 'tblTempUsageDetail_20' ) end [2025-04-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985164', 'tblTempVendorCDR_20' ) start [2025-04-25 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985164', 'tblTempVendorCDR_20' ) end [2025-04-25 06:39:17] Production.INFO: ProcessCDR(1,14985164,1,1,2) [2025-04-25 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985164', 'tblTempUsageDetail_20' ) start [2025-04-25 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985164', 'tblTempUsageDetail_20' ) end [2025-04-25 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:39:20] Production.INFO: ==31295== Releasing lock... [2025-04-25 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:40:06 [end_date_ymd] => 2025-04-25 06:40:06 [RateCDR] => 1 ) [2025-04-25 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:40:06' and `end` < '2025-04-25 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:40:19] Production.INFO: count ==69 [2025-04-25 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 03:40:06 - End Time 2025-04-25 06:40:06 [2025-04-25 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985170', 'tblTempUsageDetail_20' ) start [2025-04-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985170', 'tblTempUsageDetail_20' ) end [2025-04-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985170', 'tblTempVendorCDR_20' ) start [2025-04-25 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985170', 'tblTempVendorCDR_20' ) end [2025-04-25 06:40:19] Production.INFO: ProcessCDR(1,14985170,1,1,2) [2025-04-25 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985170', 'tblTempUsageDetail_20' ) start [2025-04-25 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985170', 'tblTempUsageDetail_20' ) end [2025-04-25 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:40:22] Production.INFO: ==31369== Releasing lock... [2025-04-25 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:41:05 [end_date_ymd] => 2025-04-25 06:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:41:05' and `end` < '2025-04-25 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-04-25 06:41:17] Production.INFO: count ==69 [2025-04-25 06:41:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:41:05 - End Time 2025-04-25 06:41:05 [2025-04-25 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985175', 'tblTempUsageDetail_20' ) start [2025-04-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985175', 'tblTempUsageDetail_20' ) end [2025-04-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985175', 'tblTempVendorCDR_20' ) start [2025-04-25 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985175', 'tblTempVendorCDR_20' ) end [2025-04-25 06:41:17] Production.INFO: ProcessCDR(1,14985175,1,1,2) [2025-04-25 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985175', 'tblTempUsageDetail_20' ) start [2025-04-25 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985175', 'tblTempUsageDetail_20' ) end [2025-04-25 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:41:20] Production.INFO: ==31440== Releasing lock... [2025-04-25 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:42:05 [end_date_ymd] => 2025-04-25 06:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:42:05' and `end` < '2025-04-25 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-04-25 06:42:18] Production.INFO: count ==69 [2025-04-25 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:42:05 - End Time 2025-04-25 06:42:05 [2025-04-25 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985180', 'tblTempUsageDetail_20' ) start [2025-04-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985180', 'tblTempUsageDetail_20' ) end [2025-04-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985180', 'tblTempVendorCDR_20' ) start [2025-04-25 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985180', 'tblTempVendorCDR_20' ) end [2025-04-25 06:42:18] Production.INFO: ProcessCDR(1,14985180,1,1,2) [2025-04-25 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985180', 'tblTempUsageDetail_20' ) start [2025-04-25 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985180', 'tblTempUsageDetail_20' ) end [2025-04-25 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:42:21] Production.INFO: ==31512== Releasing lock... [2025-04-25 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:43:05 [end_date_ymd] => 2025-04-25 06:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:43:05' and `end` < '2025-04-25 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-04-25 06:43:18] Production.INFO: count ==69 [2025-04-25 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:43:05 - End Time 2025-04-25 06:43:05 [2025-04-25 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985185', 'tblTempUsageDetail_20' ) start [2025-04-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985185', 'tblTempUsageDetail_20' ) end [2025-04-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985185', 'tblTempVendorCDR_20' ) start [2025-04-25 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985185', 'tblTempVendorCDR_20' ) end [2025-04-25 06:43:18] Production.INFO: ProcessCDR(1,14985185,1,1,2) [2025-04-25 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985185', 'tblTempUsageDetail_20' ) start [2025-04-25 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985185', 'tblTempUsageDetail_20' ) end [2025-04-25 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:43:21] Production.INFO: ==31584== Releasing lock... [2025-04-25 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:44:05 [end_date_ymd] => 2025-04-25 06:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:44:05' and `end` < '2025-04-25 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-04-25 06:44:18] Production.INFO: count ==69 [2025-04-25 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:44:05 - End Time 2025-04-25 06:44:05 [2025-04-25 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985190', 'tblTempUsageDetail_20' ) start [2025-04-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985190', 'tblTempUsageDetail_20' ) end [2025-04-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985190', 'tblTempVendorCDR_20' ) start [2025-04-25 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985190', 'tblTempVendorCDR_20' ) end [2025-04-25 06:44:18] Production.INFO: ProcessCDR(1,14985190,1,1,2) [2025-04-25 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985190', 'tblTempUsageDetail_20' ) start [2025-04-25 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985190', 'tblTempUsageDetail_20' ) end [2025-04-25 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:44:21] Production.INFO: ==31658== Releasing lock... [2025-04-25 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:45:05 [end_date_ymd] => 2025-04-25 06:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:45:05' and `end` < '2025-04-25 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-04-25 06:45:18] Production.INFO: count ==72 [2025-04-25 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:45:05 - End Time 2025-04-25 06:45:05 [2025-04-25 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985195', 'tblTempUsageDetail_20' ) start [2025-04-25 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985195', 'tblTempUsageDetail_20' ) end [2025-04-25 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985195', 'tblTempVendorCDR_20' ) start [2025-04-25 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985195', 'tblTempVendorCDR_20' ) end [2025-04-25 06:45:18] Production.INFO: ProcessCDR(1,14985195,1,1,2) [2025-04-25 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985195', 'tblTempUsageDetail_20' ) start [2025-04-25 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985195', 'tblTempUsageDetail_20' ) end [2025-04-25 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:45:21] Production.INFO: ==31735== Releasing lock... [2025-04-25 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:46:04 [end_date_ymd] => 2025-04-25 06:46:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:46:04' and `end` < '2025-04-25 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:46:17] Production.INFO: count ==72 [2025-04-25 06:46:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:46:04 - End Time 2025-04-25 06:46:04 [2025-04-25 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985200', 'tblTempUsageDetail_20' ) start [2025-04-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985200', 'tblTempUsageDetail_20' ) end [2025-04-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985200', 'tblTempVendorCDR_20' ) start [2025-04-25 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985200', 'tblTempVendorCDR_20' ) end [2025-04-25 06:46:17] Production.INFO: ProcessCDR(1,14985200,1,1,2) [2025-04-25 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985200', 'tblTempUsageDetail_20' ) start [2025-04-25 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985200', 'tblTempUsageDetail_20' ) end [2025-04-25 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:46:20] Production.INFO: ==31807== Releasing lock... [2025-04-25 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:47:05 [end_date_ymd] => 2025-04-25 06:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:47:05' and `end` < '2025-04-25 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-04-25 06:47:18] Production.INFO: count ==72 [2025-04-25 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:47:05 - End Time 2025-04-25 06:47:05 [2025-04-25 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985205', 'tblTempUsageDetail_20' ) start [2025-04-25 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985205', 'tblTempUsageDetail_20' ) end [2025-04-25 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985205', 'tblTempVendorCDR_20' ) start [2025-04-25 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985205', 'tblTempVendorCDR_20' ) end [2025-04-25 06:47:18] Production.INFO: ProcessCDR(1,14985205,1,1,2) [2025-04-25 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985205', 'tblTempUsageDetail_20' ) start [2025-04-25 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985205', 'tblTempUsageDetail_20' ) end [2025-04-25 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:47:21] Production.INFO: ==31880== Releasing lock... [2025-04-25 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:48:04 [end_date_ymd] => 2025-04-25 06:48:04 [RateCDR] => 1 ) [2025-04-25 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:48:04' and `end` < '2025-04-25 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:48:17] Production.INFO: count ==74 [2025-04-25 06:48:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:48:04 - End Time 2025-04-25 06:48:04 [2025-04-25 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985210', 'tblTempUsageDetail_20' ) start [2025-04-25 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985210', 'tblTempUsageDetail_20' ) end [2025-04-25 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985210', 'tblTempVendorCDR_20' ) start [2025-04-25 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985210', 'tblTempVendorCDR_20' ) end [2025-04-25 06:48:17] Production.INFO: ProcessCDR(1,14985210,1,1,2) [2025-04-25 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985210', 'tblTempUsageDetail_20' ) start [2025-04-25 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985210', 'tblTempUsageDetail_20' ) end [2025-04-25 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:48:22] Production.INFO: ==31949== Releasing lock... [2025-04-25 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:49:05 [end_date_ymd] => 2025-04-25 06:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:49:05' and `end` < '2025-04-25 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-04-25 06:49:18] Production.INFO: count ==74 [2025-04-25 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:49:05 - End Time 2025-04-25 06:49:05 [2025-04-25 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985215', 'tblTempUsageDetail_20' ) start [2025-04-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985215', 'tblTempUsageDetail_20' ) end [2025-04-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985215', 'tblTempVendorCDR_20' ) start [2025-04-25 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985215', 'tblTempVendorCDR_20' ) end [2025-04-25 06:49:18] Production.INFO: ProcessCDR(1,14985215,1,1,2) [2025-04-25 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985215', 'tblTempUsageDetail_20' ) start [2025-04-25 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985215', 'tblTempUsageDetail_20' ) end [2025-04-25 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:49:22] Production.INFO: ==32021== Releasing lock... [2025-04-25 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:50:06 [end_date_ymd] => 2025-04-25 06:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:50:06' and `end` < '2025-04-25 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-04-25 06:50:19] Production.INFO: count ==64 [2025-04-25 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 03:50:06 - End Time 2025-04-25 06:50:06 [2025-04-25 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985221', 'tblTempUsageDetail_20' ) start [2025-04-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985221', 'tblTempUsageDetail_20' ) end [2025-04-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985221', 'tblTempVendorCDR_20' ) start [2025-04-25 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985221', 'tblTempVendorCDR_20' ) end [2025-04-25 06:50:19] Production.INFO: ProcessCDR(1,14985221,1,1,2) [2025-04-25 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985221', 'tblTempUsageDetail_20' ) start [2025-04-25 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985221', 'tblTempUsageDetail_20' ) end [2025-04-25 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:50:22] Production.INFO: ==32098== Releasing lock... [2025-04-25 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:51:05 [end_date_ymd] => 2025-04-25 06:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:51:05' and `end` < '2025-04-25 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-04-25 06:51:17] Production.INFO: count ==60 [2025-04-25 06:51:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:51:05 - End Time 2025-04-25 06:51:05 [2025-04-25 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985226', 'tblTempUsageDetail_20' ) start [2025-04-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985226', 'tblTempUsageDetail_20' ) end [2025-04-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985226', 'tblTempVendorCDR_20' ) start [2025-04-25 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985226', 'tblTempVendorCDR_20' ) end [2025-04-25 06:51:17] Production.INFO: ProcessCDR(1,14985226,1,1,2) [2025-04-25 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985226', 'tblTempUsageDetail_20' ) start [2025-04-25 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985226', 'tblTempUsageDetail_20' ) end [2025-04-25 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:51:21] Production.INFO: ==32169== Releasing lock... [2025-04-25 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:52:05 [end_date_ymd] => 2025-04-25 06:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:52:05' and `end` < '2025-04-25 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-04-25 06:52:18] Production.INFO: count ==60 [2025-04-25 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:52:05 - End Time 2025-04-25 06:52:05 [2025-04-25 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985231', 'tblTempUsageDetail_20' ) start [2025-04-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985231', 'tblTempUsageDetail_20' ) end [2025-04-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985231', 'tblTempVendorCDR_20' ) start [2025-04-25 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985231', 'tblTempVendorCDR_20' ) end [2025-04-25 06:52:18] Production.INFO: ProcessCDR(1,14985231,1,1,2) [2025-04-25 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985231', 'tblTempUsageDetail_20' ) start [2025-04-25 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985231', 'tblTempUsageDetail_20' ) end [2025-04-25 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:52:21] Production.INFO: ==32241== Releasing lock... [2025-04-25 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:53:04 [end_date_ymd] => 2025-04-25 06:53:04 [RateCDR] => 1 ) [2025-04-25 06:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 03:53:04' and `end` < '2025-04-25 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 06:53:17] Production.INFO: count ==60 [2025-04-25 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:53:04 - End Time 2025-04-25 06:53:04 [2025-04-25 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985236', 'tblTempUsageDetail_20' ) start [2025-04-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985236', 'tblTempUsageDetail_20' ) end [2025-04-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985236', 'tblTempVendorCDR_20' ) start [2025-04-25 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985236', 'tblTempVendorCDR_20' ) end [2025-04-25 06:53:17] Production.INFO: ProcessCDR(1,14985236,1,1,2) [2025-04-25 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985236', 'tblTempUsageDetail_20' ) start [2025-04-25 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985236', 'tblTempUsageDetail_20' ) end [2025-04-25 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:53:20] Production.INFO: ==32310== Releasing lock... [2025-04-25 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:54:05 [end_date_ymd] => 2025-04-25 06:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:54:05' and `end` < '2025-04-25 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-04-25 06:54:18] Production.INFO: count ==60 [2025-04-25 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:54:05 - End Time 2025-04-25 06:54:05 [2025-04-25 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985241', 'tblTempUsageDetail_20' ) start [2025-04-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985241', 'tblTempUsageDetail_20' ) end [2025-04-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985241', 'tblTempVendorCDR_20' ) start [2025-04-25 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985241', 'tblTempVendorCDR_20' ) end [2025-04-25 06:54:18] Production.INFO: ProcessCDR(1,14985241,1,1,2) [2025-04-25 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985241', 'tblTempUsageDetail_20' ) start [2025-04-25 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985241', 'tblTempUsageDetail_20' ) end [2025-04-25 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:54:21] Production.INFO: ==32384== Releasing lock... [2025-04-25 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:55:05 [end_date_ymd] => 2025-04-25 06:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:55:05' and `end` < '2025-04-25 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-04-25 06:55:18] Production.INFO: count ==59 [2025-04-25 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:55:05 - End Time 2025-04-25 06:55:05 [2025-04-25 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985246', 'tblTempUsageDetail_20' ) start [2025-04-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985246', 'tblTempUsageDetail_20' ) end [2025-04-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985246', 'tblTempVendorCDR_20' ) start [2025-04-25 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985246', 'tblTempVendorCDR_20' ) end [2025-04-25 06:55:18] Production.INFO: ProcessCDR(1,14985246,1,1,2) [2025-04-25 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985246', 'tblTempUsageDetail_20' ) start [2025-04-25 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985246', 'tblTempUsageDetail_20' ) end [2025-04-25 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:55:21] Production.INFO: ==32497== Releasing lock... [2025-04-25 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:56:05 [end_date_ymd] => 2025-04-25 06:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:56:05' and `end` < '2025-04-25 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-04-25 06:56:18] Production.INFO: count ==58 [2025-04-25 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:56:05 - End Time 2025-04-25 06:56:05 [2025-04-25 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985251', 'tblTempUsageDetail_20' ) start [2025-04-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985251', 'tblTempUsageDetail_20' ) end [2025-04-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985251', 'tblTempVendorCDR_20' ) start [2025-04-25 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985251', 'tblTempVendorCDR_20' ) end [2025-04-25 06:56:18] Production.INFO: ProcessCDR(1,14985251,1,1,2) [2025-04-25 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985251', 'tblTempUsageDetail_20' ) start [2025-04-25 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985251', 'tblTempUsageDetail_20' ) end [2025-04-25 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:56:21] Production.INFO: ==32572== Releasing lock... [2025-04-25 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:57:05 [end_date_ymd] => 2025-04-25 06:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:57:05' and `end` < '2025-04-25 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-04-25 06:57:18] Production.INFO: count ==56 [2025-04-25 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:57:05 - End Time 2025-04-25 06:57:05 [2025-04-25 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985256', 'tblTempUsageDetail_20' ) start [2025-04-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985256', 'tblTempUsageDetail_20' ) end [2025-04-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985256', 'tblTempVendorCDR_20' ) start [2025-04-25 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985256', 'tblTempVendorCDR_20' ) end [2025-04-25 06:57:18] Production.INFO: ProcessCDR(1,14985256,1,1,2) [2025-04-25 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985256', 'tblTempUsageDetail_20' ) start [2025-04-25 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985256', 'tblTempUsageDetail_20' ) end [2025-04-25 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:57:21] Production.INFO: ==32645== Releasing lock... [2025-04-25 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:58:04 [end_date_ymd] => 2025-04-25 06:58:04 [RateCDR] => 1 ) [2025-04-25 06: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-04-25 03:58:04' and `end` < '2025-04-25 06: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-04-25 06:58:17] Production.INFO: count ==57 [2025-04-25 06:58:17] Production.ERROR: pbx CDR StartTime 2025-04-25 03:58:04 - End Time 2025-04-25 06:58:04 [2025-04-25 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985261', 'tblTempUsageDetail_20' ) start [2025-04-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985261', 'tblTempUsageDetail_20' ) end [2025-04-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985261', 'tblTempVendorCDR_20' ) start [2025-04-25 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985261', 'tblTempVendorCDR_20' ) end [2025-04-25 06:58:17] Production.INFO: ProcessCDR(1,14985261,1,1,2) [2025-04-25 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985261', 'tblTempUsageDetail_20' ) start [2025-04-25 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985261', 'tblTempUsageDetail_20' ) end [2025-04-25 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:58:20] Production.INFO: ==32722== Releasing lock... [2025-04-25 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 03:59:05 [end_date_ymd] => 2025-04-25 06:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 03:59:05' and `end` < '2025-04-25 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-04-25 06:59:18] Production.INFO: count ==57 [2025-04-25 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 03:59:05 - End Time 2025-04-25 06:59:05 [2025-04-25 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985266', 'tblTempUsageDetail_20' ) start [2025-04-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985266', 'tblTempUsageDetail_20' ) end [2025-04-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985266', 'tblTempVendorCDR_20' ) start [2025-04-25 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985266', 'tblTempVendorCDR_20' ) end [2025-04-25 06:59:18] Production.INFO: ProcessCDR(1,14985266,1,1,2) [2025-04-25 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985266', 'tblTempUsageDetail_20' ) start [2025-04-25 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985266', 'tblTempUsageDetail_20' ) end [2025-04-25 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 06:59:21] Production.INFO: ==332== Releasing lock... [2025-04-25 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:00:05 [end_date_ymd] => 2025-04-25 07:00:05 [RateCDR] => 1 ) [2025-04-25 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:00:05' and `end` < '2025-04-25 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:00:18] Production.INFO: count ==57 [2025-04-25 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:00:05 - End Time 2025-04-25 07:00:05 [2025-04-25 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985271', 'tblTempUsageDetail_20' ) start [2025-04-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985271', 'tblTempUsageDetail_20' ) end [2025-04-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985271', 'tblTempVendorCDR_20' ) start [2025-04-25 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985271', 'tblTempVendorCDR_20' ) end [2025-04-25 07:00:18] Production.INFO: ProcessCDR(1,14985271,1,1,2) [2025-04-25 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985271', 'tblTempUsageDetail_20' ) start [2025-04-25 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985271', 'tblTempUsageDetail_20' ) end [2025-04-25 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:00:21] Production.INFO: ==420== Releasing lock... [2025-04-25 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:01:05 [end_date_ymd] => 2025-04-25 07:01:05 [RateCDR] => 1 ) [2025-04-25 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:01:05' and `end` < '2025-04-25 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:01:18] Production.INFO: count ==60 [2025-04-25 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:01:05 - End Time 2025-04-25 07:01:05 [2025-04-25 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985277', 'tblTempUsageDetail_20' ) start [2025-04-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985277', 'tblTempUsageDetail_20' ) end [2025-04-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985277', 'tblTempVendorCDR_20' ) start [2025-04-25 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985277', 'tblTempVendorCDR_20' ) end [2025-04-25 07:01:18] Production.INFO: ProcessCDR(1,14985277,1,1,2) [2025-04-25 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985277', 'tblTempUsageDetail_20' ) start [2025-04-25 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985277', 'tblTempUsageDetail_20' ) end [2025-04-25 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:01:21] Production.INFO: ==587== Releasing lock... [2025-04-25 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:02:05 [end_date_ymd] => 2025-04-25 07:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:02:05' and `end` < '2025-04-25 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-04-25 07:02:17] Production.INFO: count ==60 [2025-04-25 07:02:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:02:05 - End Time 2025-04-25 07:02:05 [2025-04-25 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985282', 'tblTempUsageDetail_20' ) start [2025-04-25 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985282', 'tblTempUsageDetail_20' ) end [2025-04-25 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985282', 'tblTempVendorCDR_20' ) start [2025-04-25 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985282', 'tblTempVendorCDR_20' ) end [2025-04-25 07:02:17] Production.INFO: ProcessCDR(1,14985282,1,1,2) [2025-04-25 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985282', 'tblTempUsageDetail_20' ) start [2025-04-25 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985282', 'tblTempUsageDetail_20' ) end [2025-04-25 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:02:21] Production.INFO: ==677== Releasing lock... [2025-04-25 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:03:05 [end_date_ymd] => 2025-04-25 07:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:03:05' and `end` < '2025-04-25 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-04-25 07:03:19] Production.INFO: count ==60 [2025-04-25 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:03:05 - End Time 2025-04-25 07:03:05 [2025-04-25 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985287', 'tblTempUsageDetail_20' ) start [2025-04-25 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985287', 'tblTempUsageDetail_20' ) end [2025-04-25 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985287', 'tblTempVendorCDR_20' ) start [2025-04-25 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985287', 'tblTempVendorCDR_20' ) end [2025-04-25 07:03:19] Production.INFO: ProcessCDR(1,14985287,1,1,2) [2025-04-25 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985287', 'tblTempUsageDetail_20' ) start [2025-04-25 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985287', 'tblTempUsageDetail_20' ) end [2025-04-25 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:03:23] Production.INFO: ==764== Releasing lock... [2025-04-25 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:04:06 [end_date_ymd] => 2025-04-25 07:04:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:04:06' and `end` < '2025-04-25 07: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-04-25 07:04:18] Production.INFO: count ==60 [2025-04-25 07:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:04:06 - End Time 2025-04-25 07:04:06 [2025-04-25 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985292', 'tblTempUsageDetail_20' ) start [2025-04-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985292', 'tblTempUsageDetail_20' ) end [2025-04-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985292', 'tblTempVendorCDR_20' ) start [2025-04-25 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985292', 'tblTempVendorCDR_20' ) end [2025-04-25 07:04:18] Production.INFO: ProcessCDR(1,14985292,1,1,2) [2025-04-25 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985292', 'tblTempUsageDetail_20' ) start [2025-04-25 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985292', 'tblTempUsageDetail_20' ) end [2025-04-25 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:04:22] Production.INFO: ==835== Releasing lock... [2025-04-25 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:05:05 [end_date_ymd] => 2025-04-25 07:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:05:05' and `end` < '2025-04-25 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-04-25 07:05:20] Production.INFO: count ==60 [2025-04-25 07:05:20] Production.ERROR: pbx CDR StartTime 2025-04-25 04:05:05 - End Time 2025-04-25 07:05:05 [2025-04-25 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985297', 'tblTempUsageDetail_20' ) start [2025-04-25 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985297', 'tblTempUsageDetail_20' ) end [2025-04-25 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985297', 'tblTempVendorCDR_20' ) start [2025-04-25 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985297', 'tblTempVendorCDR_20' ) end [2025-04-25 07:05:20] Production.INFO: ProcessCDR(1,14985297,1,1,2) [2025-04-25 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985297', 'tblTempUsageDetail_20' ) start [2025-04-25 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985297', 'tblTempUsageDetail_20' ) end [2025-04-25 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:05:23] Production.INFO: ==984== Releasing lock... [2025-04-25 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:05:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:06:05 [end_date_ymd] => 2025-04-25 07:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:06:05' and `end` < '2025-04-25 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-04-25 07:06:19] Production.INFO: count ==60 [2025-04-25 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:06:05 - End Time 2025-04-25 07:06:05 [2025-04-25 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985302', 'tblTempUsageDetail_20' ) start [2025-04-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985302', 'tblTempUsageDetail_20' ) end [2025-04-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985302', 'tblTempVendorCDR_20' ) start [2025-04-25 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985302', 'tblTempVendorCDR_20' ) end [2025-04-25 07:06:19] Production.INFO: ProcessCDR(1,14985302,1,1,2) [2025-04-25 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985302', 'tblTempUsageDetail_20' ) start [2025-04-25 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985302', 'tblTempUsageDetail_20' ) end [2025-04-25 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:06:22] Production.INFO: ==1058== Releasing lock... [2025-04-25 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:07:05 [end_date_ymd] => 2025-04-25 07:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:07:05' and `end` < '2025-04-25 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-04-25 07:07:20] Production.INFO: count ==60 [2025-04-25 07:07:20] Production.ERROR: pbx CDR StartTime 2025-04-25 04:07:05 - End Time 2025-04-25 07:07:05 [2025-04-25 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985307', 'tblTempUsageDetail_20' ) start [2025-04-25 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985307', 'tblTempUsageDetail_20' ) end [2025-04-25 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985307', 'tblTempVendorCDR_20' ) start [2025-04-25 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985307', 'tblTempVendorCDR_20' ) end [2025-04-25 07:07:20] Production.INFO: ProcessCDR(1,14985307,1,1,2) [2025-04-25 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985307', 'tblTempUsageDetail_20' ) start [2025-04-25 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985307', 'tblTempUsageDetail_20' ) end [2025-04-25 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:07:24] Production.INFO: ==1133== Releasing lock... [2025-04-25 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:07:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:08:06 [end_date_ymd] => 2025-04-25 07:08:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:08:06' and `end` < '2025-04-25 07: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-04-25 07:08:21] Production.INFO: count ==63 [2025-04-25 07:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 04:08:06 - End Time 2025-04-25 07:08:06 [2025-04-25 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985312', 'tblTempUsageDetail_20' ) start [2025-04-25 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985312', 'tblTempUsageDetail_20' ) end [2025-04-25 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985312', 'tblTempVendorCDR_20' ) start [2025-04-25 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985312', 'tblTempVendorCDR_20' ) end [2025-04-25 07:08:21] Production.INFO: ProcessCDR(1,14985312,1,1,2) [2025-04-25 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985312', 'tblTempUsageDetail_20' ) start [2025-04-25 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985312', 'tblTempUsageDetail_20' ) end [2025-04-25 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:08:25] Production.INFO: ==1299== Releasing lock... [2025-04-25 07:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:08:25] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:09:05 [end_date_ymd] => 2025-04-25 07:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:09:05' and `end` < '2025-04-25 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-04-25 07:09:18] Production.INFO: count ==60 [2025-04-25 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:09:05 - End Time 2025-04-25 07:09:05 [2025-04-25 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985317', 'tblTempUsageDetail_20' ) start [2025-04-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985317', 'tblTempUsageDetail_20' ) end [2025-04-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985317', 'tblTempVendorCDR_20' ) start [2025-04-25 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985317', 'tblTempVendorCDR_20' ) end [2025-04-25 07:09:18] Production.INFO: ProcessCDR(1,14985317,1,1,2) [2025-04-25 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985317', 'tblTempUsageDetail_20' ) start [2025-04-25 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985317', 'tblTempUsageDetail_20' ) end [2025-04-25 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:09:21] Production.INFO: ==1370== Releasing lock... [2025-04-25 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:10:06 [end_date_ymd] => 2025-04-25 07:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:10:06' and `end` < '2025-04-25 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-04-25 07:10:19] Production.INFO: count ==60 [2025-04-25 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:10:06 - End Time 2025-04-25 07:10:06 [2025-04-25 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985323', 'tblTempUsageDetail_20' ) start [2025-04-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985323', 'tblTempUsageDetail_20' ) end [2025-04-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985323', 'tblTempVendorCDR_20' ) start [2025-04-25 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985323', 'tblTempVendorCDR_20' ) end [2025-04-25 07:10:19] Production.INFO: ProcessCDR(1,14985323,1,1,2) [2025-04-25 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985323', 'tblTempUsageDetail_20' ) start [2025-04-25 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985323', 'tblTempUsageDetail_20' ) end [2025-04-25 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:10:23] Production.INFO: ==1486== Releasing lock... [2025-04-25 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:11:05 [end_date_ymd] => 2025-04-25 07:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:11:05' and `end` < '2025-04-25 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-04-25 07:11:18] Production.INFO: count ==60 [2025-04-25 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:11:05 - End Time 2025-04-25 07:11:05 [2025-04-25 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985328', 'tblTempUsageDetail_20' ) start [2025-04-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985328', 'tblTempUsageDetail_20' ) end [2025-04-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985328', 'tblTempVendorCDR_20' ) start [2025-04-25 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985328', 'tblTempVendorCDR_20' ) end [2025-04-25 07:11:18] Production.INFO: ProcessCDR(1,14985328,1,1,2) [2025-04-25 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985328', 'tblTempUsageDetail_20' ) start [2025-04-25 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985328', 'tblTempUsageDetail_20' ) end [2025-04-25 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:11:22] Production.INFO: ==1602== Releasing lock... [2025-04-25 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:12:05 [end_date_ymd] => 2025-04-25 07:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:12:05' and `end` < '2025-04-25 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-04-25 07:12:18] Production.INFO: count ==60 [2025-04-25 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:12:05 - End Time 2025-04-25 07:12:05 [2025-04-25 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985333', 'tblTempUsageDetail_20' ) start [2025-04-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985333', 'tblTempUsageDetail_20' ) end [2025-04-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985333', 'tblTempVendorCDR_20' ) start [2025-04-25 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985333', 'tblTempVendorCDR_20' ) end [2025-04-25 07:12:18] Production.INFO: ProcessCDR(1,14985333,1,1,2) [2025-04-25 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985333', 'tblTempUsageDetail_20' ) start [2025-04-25 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985333', 'tblTempUsageDetail_20' ) end [2025-04-25 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:12:21] Production.INFO: ==1758== Releasing lock... [2025-04-25 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-25 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:13:06 [end_date_ymd] => 2025-04-25 07:13:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:13:06' and `end` < '2025-04-25 07: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-04-25 07:13:20] Production.INFO: count ==63 [2025-04-25 07:13:20] Production.ERROR: pbx CDR StartTime 2025-04-25 04:13:06 - End Time 2025-04-25 07:13:06 [2025-04-25 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985338', 'tblTempUsageDetail_20' ) start [2025-04-25 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985338', 'tblTempUsageDetail_20' ) end [2025-04-25 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985338', 'tblTempVendorCDR_20' ) start [2025-04-25 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985338', 'tblTempVendorCDR_20' ) end [2025-04-25 07:13:20] Production.INFO: ProcessCDR(1,14985338,1,1,2) [2025-04-25 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985338', 'tblTempUsageDetail_20' ) start [2025-04-25 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985338', 'tblTempUsageDetail_20' ) end [2025-04-25 07:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:13:25] Production.INFO: ==1833== Releasing lock... [2025-04-25 07:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:13:25] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:14:05 [end_date_ymd] => 2025-04-25 07:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:14:05' and `end` < '2025-04-25 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-04-25 07:14:18] Production.INFO: count ==68 [2025-04-25 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:14:05 - End Time 2025-04-25 07:14:05 [2025-04-25 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985343', 'tblTempUsageDetail_20' ) start [2025-04-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985343', 'tblTempUsageDetail_20' ) end [2025-04-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985343', 'tblTempVendorCDR_20' ) start [2025-04-25 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985343', 'tblTempVendorCDR_20' ) end [2025-04-25 07:14:18] Production.INFO: ProcessCDR(1,14985343,1,1,2) [2025-04-25 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985343', 'tblTempUsageDetail_20' ) start [2025-04-25 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985343', 'tblTempUsageDetail_20' ) end [2025-04-25 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:14:22] Production.INFO: ==1902== Releasing lock... [2025-04-25 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:15:06 [end_date_ymd] => 2025-04-25 07:15:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:15:06' and `end` < '2025-04-25 07: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-04-25 07:15:18] Production.INFO: count ==68 [2025-04-25 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:15:06 - End Time 2025-04-25 07:15:06 [2025-04-25 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985348', 'tblTempUsageDetail_20' ) start [2025-04-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985348', 'tblTempUsageDetail_20' ) end [2025-04-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985348', 'tblTempVendorCDR_20' ) start [2025-04-25 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985348', 'tblTempVendorCDR_20' ) end [2025-04-25 07:15:18] Production.INFO: ProcessCDR(1,14985348,1,1,2) [2025-04-25 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985348', 'tblTempUsageDetail_20' ) start [2025-04-25 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985348', 'tblTempUsageDetail_20' ) end [2025-04-25 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:15:22] Production.INFO: ==2057== Releasing lock... [2025-04-25 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:16:05 [end_date_ymd] => 2025-04-25 07:16:05 [RateCDR] => 1 ) [2025-04-25 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:16:05' and `end` < '2025-04-25 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:16:18] Production.INFO: count ==68 [2025-04-25 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:16:05 - End Time 2025-04-25 07:16:05 [2025-04-25 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985353', 'tblTempUsageDetail_20' ) start [2025-04-25 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985353', 'tblTempUsageDetail_20' ) end [2025-04-25 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985353', 'tblTempVendorCDR_20' ) start [2025-04-25 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985353', 'tblTempVendorCDR_20' ) end [2025-04-25 07:16:18] Production.INFO: ProcessCDR(1,14985353,1,1,2) [2025-04-25 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985353', 'tblTempUsageDetail_20' ) start [2025-04-25 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985353', 'tblTempUsageDetail_20' ) end [2025-04-25 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:16:21] Production.INFO: ==2126== Releasing lock... [2025-04-25 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:17:06 [end_date_ymd] => 2025-04-25 07:17:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:17:06' and `end` < '2025-04-25 07: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-04-25 07:17:18] Production.INFO: count ==68 [2025-04-25 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:17:06 - End Time 2025-04-25 07:17:06 [2025-04-25 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985358', 'tblTempUsageDetail_20' ) start [2025-04-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985358', 'tblTempUsageDetail_20' ) end [2025-04-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985358', 'tblTempVendorCDR_20' ) start [2025-04-25 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985358', 'tblTempVendorCDR_20' ) end [2025-04-25 07:17:18] Production.INFO: ProcessCDR(1,14985358,1,1,2) [2025-04-25 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985358', 'tblTempUsageDetail_20' ) start [2025-04-25 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985358', 'tblTempUsageDetail_20' ) end [2025-04-25 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:17:22] Production.INFO: ==2204== Releasing lock... [2025-04-25 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:18:05 [end_date_ymd] => 2025-04-25 07:18:05 [RateCDR] => 1 ) [2025-04-25 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:18:05' and `end` < '2025-04-25 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:18:18] Production.INFO: count ==67 [2025-04-25 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:18:05 - End Time 2025-04-25 07:18:05 [2025-04-25 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985363', 'tblTempUsageDetail_20' ) start [2025-04-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985363', 'tblTempUsageDetail_20' ) end [2025-04-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985363', 'tblTempVendorCDR_20' ) start [2025-04-25 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985363', 'tblTempVendorCDR_20' ) end [2025-04-25 07:18:18] Production.INFO: ProcessCDR(1,14985363,1,1,2) [2025-04-25 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985363', 'tblTempUsageDetail_20' ) start [2025-04-25 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985363', 'tblTempUsageDetail_20' ) end [2025-04-25 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:18:21] Production.INFO: ==2276== Releasing lock... [2025-04-25 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:19:05 [end_date_ymd] => 2025-04-25 07:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:19:05' and `end` < '2025-04-25 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-04-25 07:19:18] Production.INFO: count ==67 [2025-04-25 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:19:05 - End Time 2025-04-25 07:19:05 [2025-04-25 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985368', 'tblTempUsageDetail_20' ) start [2025-04-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985368', 'tblTempUsageDetail_20' ) end [2025-04-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985368', 'tblTempVendorCDR_20' ) start [2025-04-25 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985368', 'tblTempVendorCDR_20' ) end [2025-04-25 07:19:18] Production.INFO: ProcessCDR(1,14985368,1,1,2) [2025-04-25 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985368', 'tblTempUsageDetail_20' ) start [2025-04-25 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985368', 'tblTempUsageDetail_20' ) end [2025-04-25 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:19:22] Production.INFO: ==2349== Releasing lock... [2025-04-25 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:20:05 [end_date_ymd] => 2025-04-25 07:20:05 [RateCDR] => 1 ) [2025-04-25 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:20:05' and `end` < '2025-04-25 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:20:18] Production.INFO: count ==71 [2025-04-25 07:20:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:20:05 - End Time 2025-04-25 07:20:05 [2025-04-25 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985374', 'tblTempUsageDetail_20' ) start [2025-04-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985374', 'tblTempUsageDetail_20' ) end [2025-04-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985374', 'tblTempVendorCDR_20' ) start [2025-04-25 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985374', 'tblTempVendorCDR_20' ) end [2025-04-25 07:20:18] Production.INFO: ProcessCDR(1,14985374,1,1,2) [2025-04-25 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985374', 'tblTempUsageDetail_20' ) start [2025-04-25 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985374', 'tblTempUsageDetail_20' ) end [2025-04-25 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:20:21] Production.INFO: ==2426== Releasing lock... [2025-04-25 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:21:05 [end_date_ymd] => 2025-04-25 07:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:21:05' and `end` < '2025-04-25 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-04-25 07:21:18] Production.INFO: count ==69 [2025-04-25 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:21:05 - End Time 2025-04-25 07:21:05 [2025-04-25 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985379', 'tblTempUsageDetail_20' ) start [2025-04-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985379', 'tblTempUsageDetail_20' ) end [2025-04-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985379', 'tblTempVendorCDR_20' ) start [2025-04-25 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985379', 'tblTempVendorCDR_20' ) end [2025-04-25 07:21:18] Production.INFO: ProcessCDR(1,14985379,1,1,2) [2025-04-25 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985379', 'tblTempUsageDetail_20' ) start [2025-04-25 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985379', 'tblTempUsageDetail_20' ) end [2025-04-25 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:21:21] Production.INFO: ==2499== Releasing lock... [2025-04-25 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:22:05 [end_date_ymd] => 2025-04-25 07:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:22:05' and `end` < '2025-04-25 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-04-25 07:22:18] Production.INFO: count ==73 [2025-04-25 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:22:05 - End Time 2025-04-25 07:22:05 [2025-04-25 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985384', 'tblTempUsageDetail_20' ) start [2025-04-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985384', 'tblTempUsageDetail_20' ) end [2025-04-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985384', 'tblTempVendorCDR_20' ) start [2025-04-25 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985384', 'tblTempVendorCDR_20' ) end [2025-04-25 07:22:18] Production.INFO: ProcessCDR(1,14985384,1,1,2) [2025-04-25 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985384', 'tblTempUsageDetail_20' ) start [2025-04-25 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985384', 'tblTempUsageDetail_20' ) end [2025-04-25 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:22:21] Production.INFO: ==2570== Releasing lock... [2025-04-25 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:23:05 [end_date_ymd] => 2025-04-25 07:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:23:05' and `end` < '2025-04-25 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-04-25 07:23:18] Production.INFO: count ==74 [2025-04-25 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:23:05 - End Time 2025-04-25 07:23:05 [2025-04-25 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985389', 'tblTempUsageDetail_20' ) start [2025-04-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985389', 'tblTempUsageDetail_20' ) end [2025-04-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985389', 'tblTempVendorCDR_20' ) start [2025-04-25 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985389', 'tblTempVendorCDR_20' ) end [2025-04-25 07:23:18] Production.INFO: ProcessCDR(1,14985389,1,1,2) [2025-04-25 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985389', 'tblTempUsageDetail_20' ) start [2025-04-25 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985389', 'tblTempUsageDetail_20' ) end [2025-04-25 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:23:21] Production.INFO: ==2643== Releasing lock... [2025-04-25 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:24:06 [end_date_ymd] => 2025-04-25 07:24:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:24:06' and `end` < '2025-04-25 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-04-25 07:24:18] Production.INFO: count ==74 [2025-04-25 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:24:06 - End Time 2025-04-25 07:24:06 [2025-04-25 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985394', 'tblTempUsageDetail_20' ) start [2025-04-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985394', 'tblTempUsageDetail_20' ) end [2025-04-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985394', 'tblTempVendorCDR_20' ) start [2025-04-25 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985394', 'tblTempVendorCDR_20' ) end [2025-04-25 07:24:18] Production.INFO: ProcessCDR(1,14985394,1,1,2) [2025-04-25 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985394', 'tblTempUsageDetail_20' ) start [2025-04-25 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985394', 'tblTempUsageDetail_20' ) end [2025-04-25 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:24:22] Production.INFO: ==2719== Releasing lock... [2025-04-25 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:25:05 [end_date_ymd] => 2025-04-25 07:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:25:05' and `end` < '2025-04-25 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-04-25 07:25:18] Production.INFO: count ==74 [2025-04-25 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:25:05 - End Time 2025-04-25 07:25:05 [2025-04-25 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985399', 'tblTempUsageDetail_20' ) start [2025-04-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985399', 'tblTempUsageDetail_20' ) end [2025-04-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985399', 'tblTempVendorCDR_20' ) start [2025-04-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985399', 'tblTempVendorCDR_20' ) end [2025-04-25 07:25:18] Production.INFO: ProcessCDR(1,14985399,1,1,2) [2025-04-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985399', 'tblTempUsageDetail_20' ) start [2025-04-25 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985399', 'tblTempUsageDetail_20' ) end [2025-04-25 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:25:21] Production.INFO: ==2796== Releasing lock... [2025-04-25 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:26:06 [end_date_ymd] => 2025-04-25 07:26:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:26:06' and `end` < '2025-04-25 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-04-25 07:26:18] Production.INFO: count ==74 [2025-04-25 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:26:06 - End Time 2025-04-25 07:26:06 [2025-04-25 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985404', 'tblTempUsageDetail_20' ) start [2025-04-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985404', 'tblTempUsageDetail_20' ) end [2025-04-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985404', 'tblTempVendorCDR_20' ) start [2025-04-25 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985404', 'tblTempVendorCDR_20' ) end [2025-04-25 07:26:18] Production.INFO: ProcessCDR(1,14985404,1,1,2) [2025-04-25 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985404', 'tblTempUsageDetail_20' ) start [2025-04-25 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985404', 'tblTempUsageDetail_20' ) end [2025-04-25 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:26:22] Production.INFO: ==2913== Releasing lock... [2025-04-25 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:27:04 [end_date_ymd] => 2025-04-25 07:27:04 [RateCDR] => 1 ) [2025-04-25 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:27:04' and `end` < '2025-04-25 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:27:17] Production.INFO: count ==74 [2025-04-25 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:27:04 - End Time 2025-04-25 07:27:04 [2025-04-25 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985409', 'tblTempUsageDetail_20' ) start [2025-04-25 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985409', 'tblTempUsageDetail_20' ) end [2025-04-25 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985409', 'tblTempVendorCDR_20' ) start [2025-04-25 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985409', 'tblTempVendorCDR_20' ) end [2025-04-25 07:27:17] Production.INFO: ProcessCDR(1,14985409,1,1,2) [2025-04-25 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985409', 'tblTempUsageDetail_20' ) start [2025-04-25 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985409', 'tblTempUsageDetail_20' ) end [2025-04-25 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:27:20] Production.INFO: ==2990== Releasing lock... [2025-04-25 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:28:05 [end_date_ymd] => 2025-04-25 07:28:05 [RateCDR] => 1 ) [2025-04-25 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:28:05' and `end` < '2025-04-25 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:28:18] Production.INFO: count ==74 [2025-04-25 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:28:05 - End Time 2025-04-25 07:28:05 [2025-04-25 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985414', 'tblTempUsageDetail_20' ) start [2025-04-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985414', 'tblTempUsageDetail_20' ) end [2025-04-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985414', 'tblTempVendorCDR_20' ) start [2025-04-25 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985414', 'tblTempVendorCDR_20' ) end [2025-04-25 07:28:18] Production.INFO: ProcessCDR(1,14985414,1,1,2) [2025-04-25 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985414', 'tblTempUsageDetail_20' ) start [2025-04-25 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985414', 'tblTempUsageDetail_20' ) end [2025-04-25 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:28:21] Production.INFO: ==3062== Releasing lock... [2025-04-25 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:29:06 [end_date_ymd] => 2025-04-25 07:29:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:29:06' and `end` < '2025-04-25 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-04-25 07:29:18] Production.INFO: count ==74 [2025-04-25 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:29:06 - End Time 2025-04-25 07:29:06 [2025-04-25 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985419', 'tblTempUsageDetail_20' ) start [2025-04-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985419', 'tblTempUsageDetail_20' ) end [2025-04-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985419', 'tblTempVendorCDR_20' ) start [2025-04-25 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985419', 'tblTempVendorCDR_20' ) end [2025-04-25 07:29:18] Production.INFO: ProcessCDR(1,14985419,1,1,2) [2025-04-25 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985419', 'tblTempUsageDetail_20' ) start [2025-04-25 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985419', 'tblTempUsageDetail_20' ) end [2025-04-25 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:29:22] Production.INFO: ==3137== Releasing lock... [2025-04-25 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:30:06 [end_date_ymd] => 2025-04-25 07:30:06 [RateCDR] => 1 ) [2025-04-25 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:30:06' and `end` < '2025-04-25 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:30:19] Production.INFO: count ==72 [2025-04-25 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:30:06 - End Time 2025-04-25 07:30:06 [2025-04-25 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985425', 'tblTempUsageDetail_20' ) start [2025-04-25 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985425', 'tblTempUsageDetail_20' ) end [2025-04-25 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985425', 'tblTempVendorCDR_20' ) start [2025-04-25 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985425', 'tblTempVendorCDR_20' ) end [2025-04-25 07:30:19] Production.INFO: ProcessCDR(1,14985425,1,1,2) [2025-04-25 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985425', 'tblTempUsageDetail_20' ) start [2025-04-25 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985425', 'tblTempUsageDetail_20' ) end [2025-04-25 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:30:22] Production.INFO: ==3213== Releasing lock... [2025-04-25 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:31:05 [end_date_ymd] => 2025-04-25 07:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:31:05' and `end` < '2025-04-25 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-04-25 07:31:18] Production.INFO: count ==77 [2025-04-25 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:31:05 - End Time 2025-04-25 07:31:05 [2025-04-25 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985430', 'tblTempUsageDetail_20' ) start [2025-04-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985430', 'tblTempUsageDetail_20' ) end [2025-04-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985430', 'tblTempVendorCDR_20' ) start [2025-04-25 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985430', 'tblTempVendorCDR_20' ) end [2025-04-25 07:31:18] Production.INFO: ProcessCDR(1,14985430,1,1,2) [2025-04-25 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985430', 'tblTempUsageDetail_20' ) start [2025-04-25 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985430', 'tblTempUsageDetail_20' ) end [2025-04-25 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:31:22] Production.INFO: ==3286== Releasing lock... [2025-04-25 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:31:22] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:32:05 [end_date_ymd] => 2025-04-25 07:32:05 [RateCDR] => 1 ) [2025-04-25 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:32:05' and `end` < '2025-04-25 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:32:18] Production.INFO: count ==82 [2025-04-25 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:32:05 - End Time 2025-04-25 07:32:05 [2025-04-25 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985435', 'tblTempUsageDetail_20' ) start [2025-04-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985435', 'tblTempUsageDetail_20' ) end [2025-04-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985435', 'tblTempVendorCDR_20' ) start [2025-04-25 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985435', 'tblTempVendorCDR_20' ) end [2025-04-25 07:32:18] Production.INFO: ProcessCDR(1,14985435,1,1,2) [2025-04-25 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985435', 'tblTempUsageDetail_20' ) start [2025-04-25 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985435', 'tblTempUsageDetail_20' ) end [2025-04-25 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:32:21] Production.INFO: ==3360== Releasing lock... [2025-04-25 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:33:05 [end_date_ymd] => 2025-04-25 07:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:33:05' and `end` < '2025-04-25 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-04-25 07:33:18] Production.INFO: count ==82 [2025-04-25 07:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:33:05 - End Time 2025-04-25 07:33:05 [2025-04-25 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985440', 'tblTempUsageDetail_20' ) start [2025-04-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985440', 'tblTempUsageDetail_20' ) end [2025-04-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985440', 'tblTempVendorCDR_20' ) start [2025-04-25 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985440', 'tblTempVendorCDR_20' ) end [2025-04-25 07:33:18] Production.INFO: ProcessCDR(1,14985440,1,1,2) [2025-04-25 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985440', 'tblTempUsageDetail_20' ) start [2025-04-25 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985440', 'tblTempUsageDetail_20' ) end [2025-04-25 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:33:22] Production.INFO: ==3439== Releasing lock... [2025-04-25 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:34:05 [end_date_ymd] => 2025-04-25 07:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:34:05' and `end` < '2025-04-25 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-04-25 07:34:17] Production.INFO: count ==82 [2025-04-25 07:34:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:34:05 - End Time 2025-04-25 07:34:05 [2025-04-25 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985445', 'tblTempUsageDetail_20' ) start [2025-04-25 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985445', 'tblTempUsageDetail_20' ) end [2025-04-25 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985445', 'tblTempVendorCDR_20' ) start [2025-04-25 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985445', 'tblTempVendorCDR_20' ) end [2025-04-25 07:34:17] Production.INFO: ProcessCDR(1,14985445,1,1,2) [2025-04-25 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985445', 'tblTempUsageDetail_20' ) start [2025-04-25 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985445', 'tblTempUsageDetail_20' ) end [2025-04-25 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:34:21] Production.INFO: ==3513== Releasing lock... [2025-04-25 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-25 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:35:06 [end_date_ymd] => 2025-04-25 07:35:06 [RateCDR] => 1 ) [2025-04-25 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:35:06' and `end` < '2025-04-25 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:35:18] Production.INFO: count ==84 [2025-04-25 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:35:06 - End Time 2025-04-25 07:35:06 [2025-04-25 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985450', 'tblTempUsageDetail_20' ) start [2025-04-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985450', 'tblTempUsageDetail_20' ) end [2025-04-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985450', 'tblTempVendorCDR_20' ) start [2025-04-25 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985450', 'tblTempVendorCDR_20' ) end [2025-04-25 07:35:18] Production.INFO: ProcessCDR(1,14985450,1,1,2) [2025-04-25 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985450', 'tblTempUsageDetail_20' ) start [2025-04-25 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985450', 'tblTempUsageDetail_20' ) end [2025-04-25 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:35:22] Production.INFO: ==3586== Releasing lock... [2025-04-25 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:35:22] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:36:05 [end_date_ymd] => 2025-04-25 07:36:05 [RateCDR] => 1 ) [2025-04-25 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:36:05' and `end` < '2025-04-25 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:36:17] Production.INFO: count ==84 [2025-04-25 07:36:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:36:05 - End Time 2025-04-25 07:36:05 [2025-04-25 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985455', 'tblTempUsageDetail_20' ) start [2025-04-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985455', 'tblTempUsageDetail_20' ) end [2025-04-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985455', 'tblTempVendorCDR_20' ) start [2025-04-25 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985455', 'tblTempVendorCDR_20' ) end [2025-04-25 07:36:17] Production.INFO: ProcessCDR(1,14985455,1,1,2) [2025-04-25 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985455', 'tblTempUsageDetail_20' ) start [2025-04-25 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985455', 'tblTempUsageDetail_20' ) end [2025-04-25 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:36:20] Production.INFO: ==3655== Releasing lock... [2025-04-25 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:36:20] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:37:05 [end_date_ymd] => 2025-04-25 07:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:37:05' and `end` < '2025-04-25 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-04-25 07:37:18] Production.INFO: count ==84 [2025-04-25 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:37:05 - End Time 2025-04-25 07:37:05 [2025-04-25 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985460', 'tblTempUsageDetail_20' ) start [2025-04-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985460', 'tblTempUsageDetail_20' ) end [2025-04-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985460', 'tblTempVendorCDR_20' ) start [2025-04-25 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985460', 'tblTempVendorCDR_20' ) end [2025-04-25 07:37:18] Production.INFO: ProcessCDR(1,14985460,1,1,2) [2025-04-25 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985460', 'tblTempUsageDetail_20' ) start [2025-04-25 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985460', 'tblTempUsageDetail_20' ) end [2025-04-25 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:37:21] Production.INFO: ==3730== Releasing lock... [2025-04-25 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:38:05 [end_date_ymd] => 2025-04-25 07:38:05 [RateCDR] => 1 ) [2025-04-25 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:38:05' and `end` < '2025-04-25 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:38:18] Production.INFO: count ==89 [2025-04-25 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:38:05 - End Time 2025-04-25 07:38:05 [2025-04-25 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985465', 'tblTempUsageDetail_20' ) start [2025-04-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985465', 'tblTempUsageDetail_20' ) end [2025-04-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985465', 'tblTempVendorCDR_20' ) start [2025-04-25 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985465', 'tblTempVendorCDR_20' ) end [2025-04-25 07:38:18] Production.INFO: ProcessCDR(1,14985465,1,1,2) [2025-04-25 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985465', 'tblTempUsageDetail_20' ) start [2025-04-25 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985465', 'tblTempUsageDetail_20' ) end [2025-04-25 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:38:21] Production.INFO: ==3808== Releasing lock... [2025-04-25 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:38:21] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:39:05 [end_date_ymd] => 2025-04-25 07:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:39:05' and `end` < '2025-04-25 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-04-25 07:39:17] Production.INFO: count ==94 [2025-04-25 07:39:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:39:05 - End Time 2025-04-25 07:39:05 [2025-04-25 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985470', 'tblTempUsageDetail_20' ) start [2025-04-25 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985470', 'tblTempUsageDetail_20' ) end [2025-04-25 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985470', 'tblTempVendorCDR_20' ) start [2025-04-25 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985470', 'tblTempVendorCDR_20' ) end [2025-04-25 07:39:17] Production.INFO: ProcessCDR(1,14985470,1,1,2) [2025-04-25 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985470', 'tblTempUsageDetail_20' ) start [2025-04-25 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985470', 'tblTempUsageDetail_20' ) end [2025-04-25 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:39:21] Production.INFO: ==3887== Releasing lock... [2025-04-25 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:39:21] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:40:06 [end_date_ymd] => 2025-04-25 07:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:40:06' and `end` < '2025-04-25 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-04-25 07:40:19] Production.INFO: count ==96 [2025-04-25 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:40:06 - End Time 2025-04-25 07:40:06 [2025-04-25 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985476', 'tblTempUsageDetail_20' ) start [2025-04-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985476', 'tblTempUsageDetail_20' ) end [2025-04-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985476', 'tblTempVendorCDR_20' ) start [2025-04-25 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985476', 'tblTempVendorCDR_20' ) end [2025-04-25 07:40:19] Production.INFO: ProcessCDR(1,14985476,1,1,2) [2025-04-25 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985476', 'tblTempUsageDetail_20' ) start [2025-04-25 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985476', 'tblTempUsageDetail_20' ) end [2025-04-25 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:40:23] Production.INFO: ==3963== Releasing lock... [2025-04-25 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:40:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:41:05 [end_date_ymd] => 2025-04-25 07:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:41:05' and `end` < '2025-04-25 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-04-25 07:41:17] Production.INFO: count ==97 [2025-04-25 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:41:05 - End Time 2025-04-25 07:41:05 [2025-04-25 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985481', 'tblTempUsageDetail_20' ) start [2025-04-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985481', 'tblTempUsageDetail_20' ) end [2025-04-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985481', 'tblTempVendorCDR_20' ) start [2025-04-25 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985481', 'tblTempVendorCDR_20' ) end [2025-04-25 07:41:17] Production.INFO: ProcessCDR(1,14985481,1,1,2) [2025-04-25 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985481', 'tblTempUsageDetail_20' ) start [2025-04-25 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985481', 'tblTempUsageDetail_20' ) end [2025-04-25 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:41:22] Production.INFO: ==4074== Releasing lock... [2025-04-25 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:42:05 [end_date_ymd] => 2025-04-25 07:42:05 [RateCDR] => 1 ) [2025-04-25 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:42:05' and `end` < '2025-04-25 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:42:18] Production.INFO: count ==98 [2025-04-25 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:42:05 - End Time 2025-04-25 07:42:05 [2025-04-25 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985486', 'tblTempUsageDetail_20' ) start [2025-04-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985486', 'tblTempUsageDetail_20' ) end [2025-04-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985486', 'tblTempVendorCDR_20' ) start [2025-04-25 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985486', 'tblTempVendorCDR_20' ) end [2025-04-25 07:42:18] Production.INFO: ProcessCDR(1,14985486,1,1,2) [2025-04-25 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985486', 'tblTempUsageDetail_20' ) start [2025-04-25 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985486', 'tblTempUsageDetail_20' ) end [2025-04-25 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:42:23] Production.INFO: ==4149== Releasing lock... [2025-04-25 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:42:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:43:05 [end_date_ymd] => 2025-04-25 07:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:43:05' and `end` < '2025-04-25 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-04-25 07:43:18] Production.INFO: count ==101 [2025-04-25 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:43:05 - End Time 2025-04-25 07:43:05 [2025-04-25 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985491', 'tblTempUsageDetail_20' ) start [2025-04-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985491', 'tblTempUsageDetail_20' ) end [2025-04-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985491', 'tblTempVendorCDR_20' ) start [2025-04-25 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985491', 'tblTempVendorCDR_20' ) end [2025-04-25 07:43:18] Production.INFO: ProcessCDR(1,14985491,1,1,2) [2025-04-25 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985491', 'tblTempUsageDetail_20' ) start [2025-04-25 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985491', 'tblTempUsageDetail_20' ) end [2025-04-25 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:43:23] Production.INFO: ==4228== Releasing lock... [2025-04-25 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:43:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:44:05 [end_date_ymd] => 2025-04-25 07:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:44:05' and `end` < '2025-04-25 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-04-25 07:44:18] Production.INFO: count ==101 [2025-04-25 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:44:05 - End Time 2025-04-25 07:44:05 [2025-04-25 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985496', 'tblTempUsageDetail_20' ) start [2025-04-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985496', 'tblTempUsageDetail_20' ) end [2025-04-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985496', 'tblTempVendorCDR_20' ) start [2025-04-25 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985496', 'tblTempVendorCDR_20' ) end [2025-04-25 07:44:18] Production.INFO: ProcessCDR(1,14985496,1,1,2) [2025-04-25 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985496', 'tblTempUsageDetail_20' ) start [2025-04-25 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985496', 'tblTempUsageDetail_20' ) end [2025-04-25 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:44:21] Production.INFO: ==4300== Releasing lock... [2025-04-25 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:45:05 [end_date_ymd] => 2025-04-25 07:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:45:05' and `end` < '2025-04-25 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-04-25 07:45:18] Production.INFO: count ==102 [2025-04-25 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:45:05 - End Time 2025-04-25 07:45:05 [2025-04-25 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985501', 'tblTempUsageDetail_20' ) start [2025-04-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985501', 'tblTempUsageDetail_20' ) end [2025-04-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985501', 'tblTempVendorCDR_20' ) start [2025-04-25 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985501', 'tblTempVendorCDR_20' ) end [2025-04-25 07:45:18] Production.INFO: ProcessCDR(1,14985501,1,1,2) [2025-04-25 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985501', 'tblTempUsageDetail_20' ) start [2025-04-25 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985501', 'tblTempUsageDetail_20' ) end [2025-04-25 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:45:23] Production.INFO: ==4373== Releasing lock... [2025-04-25 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:45:23] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:46:05 [end_date_ymd] => 2025-04-25 07:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:46:05' and `end` < '2025-04-25 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-04-25 07:46:17] Production.INFO: count ==102 [2025-04-25 07:46:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:46:05 - End Time 2025-04-25 07:46:05 [2025-04-25 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985506', 'tblTempUsageDetail_20' ) start [2025-04-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985506', 'tblTempUsageDetail_20' ) end [2025-04-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985506', 'tblTempVendorCDR_20' ) start [2025-04-25 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985506', 'tblTempVendorCDR_20' ) end [2025-04-25 07:46:17] Production.INFO: ProcessCDR(1,14985506,1,1,2) [2025-04-25 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985506', 'tblTempUsageDetail_20' ) start [2025-04-25 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985506', 'tblTempUsageDetail_20' ) end [2025-04-25 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:46:21] Production.INFO: ==4446== Releasing lock... [2025-04-25 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:46:21] Production.INFO: 29 MB #Memory Used# [2025-04-25 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:47:05 [end_date_ymd] => 2025-04-25 07:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:47:05' and `end` < '2025-04-25 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-04-25 07:47:18] Production.INFO: count ==119 [2025-04-25 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:47:05 - End Time 2025-04-25 07:47:05 [2025-04-25 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985511', 'tblTempUsageDetail_20' ) start [2025-04-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985511', 'tblTempUsageDetail_20' ) end [2025-04-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985511', 'tblTempVendorCDR_20' ) start [2025-04-25 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985511', 'tblTempVendorCDR_20' ) end [2025-04-25 07:47:18] Production.INFO: ProcessCDR(1,14985511,1,1,2) [2025-04-25 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985511', 'tblTempUsageDetail_20' ) start [2025-04-25 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985511', 'tblTempUsageDetail_20' ) end [2025-04-25 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:47:23] Production.INFO: ==4521== Releasing lock... [2025-04-25 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:47:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-25 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:48:05 [end_date_ymd] => 2025-04-25 07:48:05 [RateCDR] => 1 ) [2025-04-25 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:48:05' and `end` < '2025-04-25 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:48:17] Production.INFO: count ==121 [2025-04-25 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:48:05 - End Time 2025-04-25 07:48:05 [2025-04-25 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985516', 'tblTempUsageDetail_20' ) start [2025-04-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985516', 'tblTempUsageDetail_20' ) end [2025-04-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985516', 'tblTempVendorCDR_20' ) start [2025-04-25 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985516', 'tblTempVendorCDR_20' ) end [2025-04-25 07:48:17] Production.INFO: ProcessCDR(1,14985516,1,1,2) [2025-04-25 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985516', 'tblTempUsageDetail_20' ) start [2025-04-25 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985516', 'tblTempUsageDetail_20' ) end [2025-04-25 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:48:21] Production.INFO: ==4605== Releasing lock... [2025-04-25 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:49:05 [end_date_ymd] => 2025-04-25 07:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:49:05' and `end` < '2025-04-25 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-04-25 07:49:18] Production.INFO: count ==136 [2025-04-25 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:49:05 - End Time 2025-04-25 07:49:05 [2025-04-25 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985521', 'tblTempUsageDetail_20' ) start [2025-04-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985521', 'tblTempUsageDetail_20' ) end [2025-04-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985521', 'tblTempVendorCDR_20' ) start [2025-04-25 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985521', 'tblTempVendorCDR_20' ) end [2025-04-25 07:49:18] Production.INFO: ProcessCDR(1,14985521,1,1,2) [2025-04-25 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985521', 'tblTempUsageDetail_20' ) start [2025-04-25 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985521', 'tblTempUsageDetail_20' ) end [2025-04-25 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:49:22] Production.INFO: ==4681== Releasing lock... [2025-04-25 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:50:06 [end_date_ymd] => 2025-04-25 07:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:50:06' and `end` < '2025-04-25 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-04-25 07:50:19] Production.INFO: count ==144 [2025-04-25 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 04:50:06 - End Time 2025-04-25 07:50:06 [2025-04-25 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985527', 'tblTempUsageDetail_20' ) start [2025-04-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985527', 'tblTempUsageDetail_20' ) end [2025-04-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985527', 'tblTempVendorCDR_20' ) start [2025-04-25 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985527', 'tblTempVendorCDR_20' ) end [2025-04-25 07:50:19] Production.INFO: ProcessCDR(1,14985527,1,1,2) [2025-04-25 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985527', 'tblTempUsageDetail_20' ) start [2025-04-25 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985527', 'tblTempUsageDetail_20' ) end [2025-04-25 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:50:23] Production.INFO: ==4754== Releasing lock... [2025-04-25 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-25 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:51:05 [end_date_ymd] => 2025-04-25 07:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:51:05' and `end` < '2025-04-25 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-04-25 07:51:18] Production.INFO: count ==159 [2025-04-25 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:51:05 - End Time 2025-04-25 07:51:05 [2025-04-25 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985532', 'tblTempUsageDetail_20' ) start [2025-04-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985532', 'tblTempUsageDetail_20' ) end [2025-04-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985532', 'tblTempVendorCDR_20' ) start [2025-04-25 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985532', 'tblTempVendorCDR_20' ) end [2025-04-25 07:51:18] Production.INFO: ProcessCDR(1,14985532,1,1,2) [2025-04-25 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985532', 'tblTempUsageDetail_20' ) start [2025-04-25 07:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985532', 'tblTempUsageDetail_20' ) end [2025-04-25 07:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:51:23] Production.INFO: ==4829== Releasing lock... [2025-04-25 07:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:51:23] Production.INFO: 30 MB #Memory Used# [2025-04-25 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:52:06 [end_date_ymd] => 2025-04-25 07:52:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:52:06' and `end` < '2025-04-25 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-04-25 07:52:18] Production.INFO: count ==158 [2025-04-25 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:52:06 - End Time 2025-04-25 07:52:06 [2025-04-25 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985537', 'tblTempUsageDetail_20' ) start [2025-04-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985537', 'tblTempUsageDetail_20' ) end [2025-04-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985537', 'tblTempVendorCDR_20' ) start [2025-04-25 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985537', 'tblTempVendorCDR_20' ) end [2025-04-25 07:52:18] Production.INFO: ProcessCDR(1,14985537,1,1,2) [2025-04-25 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985537', 'tblTempUsageDetail_20' ) start [2025-04-25 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985537', 'tblTempUsageDetail_20' ) end [2025-04-25 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:52:22] Production.INFO: ==4904== Releasing lock... [2025-04-25 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:53:05 [end_date_ymd] => 2025-04-25 07:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:53:05' and `end` < '2025-04-25 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-04-25 07:53:17] Production.INFO: count ==157 [2025-04-25 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:53:05 - End Time 2025-04-25 07:53:05 [2025-04-25 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985542', 'tblTempUsageDetail_20' ) start [2025-04-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985542', 'tblTempUsageDetail_20' ) end [2025-04-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985542', 'tblTempVendorCDR_20' ) start [2025-04-25 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985542', 'tblTempVendorCDR_20' ) end [2025-04-25 07:53:17] Production.INFO: ProcessCDR(1,14985542,1,1,2) [2025-04-25 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985542', 'tblTempUsageDetail_20' ) start [2025-04-25 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985542', 'tblTempUsageDetail_20' ) end [2025-04-25 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:53:22] Production.INFO: ==4985== Releasing lock... [2025-04-25 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:54:05 [end_date_ymd] => 2025-04-25 07:54:05 [RateCDR] => 1 ) [2025-04-25 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 04:54:05' and `end` < '2025-04-25 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 07:54:18] Production.INFO: count ==158 [2025-04-25 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:54:05 - End Time 2025-04-25 07:54:05 [2025-04-25 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985547', 'tblTempUsageDetail_20' ) start [2025-04-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985547', 'tblTempUsageDetail_20' ) end [2025-04-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985547', 'tblTempVendorCDR_20' ) start [2025-04-25 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985547', 'tblTempVendorCDR_20' ) end [2025-04-25 07:54:18] Production.INFO: ProcessCDR(1,14985547,1,1,2) [2025-04-25 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985547', 'tblTempUsageDetail_20' ) start [2025-04-25 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985547', 'tblTempUsageDetail_20' ) end [2025-04-25 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:54:23] Production.INFO: ==5058== Releasing lock... [2025-04-25 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:54:23] Production.INFO: 30 MB #Memory Used# [2025-04-25 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:55:05 [end_date_ymd] => 2025-04-25 07:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:55:05' and `end` < '2025-04-25 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-04-25 07:55:17] Production.INFO: count ==163 [2025-04-25 07:55:17] Production.ERROR: pbx CDR StartTime 2025-04-25 04:55:05 - End Time 2025-04-25 07:55:05 [2025-04-25 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985552', 'tblTempUsageDetail_20' ) start [2025-04-25 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985552', 'tblTempUsageDetail_20' ) end [2025-04-25 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985552', 'tblTempVendorCDR_20' ) start [2025-04-25 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985552', 'tblTempVendorCDR_20' ) end [2025-04-25 07:55:18] Production.INFO: ProcessCDR(1,14985552,1,1,2) [2025-04-25 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985552', 'tblTempUsageDetail_20' ) start [2025-04-25 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985552', 'tblTempUsageDetail_20' ) end [2025-04-25 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:55:21] Production.INFO: ==5134== Releasing lock... [2025-04-25 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-25 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:56:05 [end_date_ymd] => 2025-04-25 07:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:56:05' and `end` < '2025-04-25 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-04-25 07:56:18] Production.INFO: count ==164 [2025-04-25 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:56:05 - End Time 2025-04-25 07:56:05 [2025-04-25 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985557', 'tblTempUsageDetail_20' ) start [2025-04-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985557', 'tblTempUsageDetail_20' ) end [2025-04-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985557', 'tblTempVendorCDR_20' ) start [2025-04-25 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985557', 'tblTempVendorCDR_20' ) end [2025-04-25 07:56:18] Production.INFO: ProcessCDR(1,14985557,1,1,2) [2025-04-25 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985557', 'tblTempUsageDetail_20' ) start [2025-04-25 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985557', 'tblTempUsageDetail_20' ) end [2025-04-25 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:56:23] Production.INFO: ==5204== Releasing lock... [2025-04-25 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:57:05 [end_date_ymd] => 2025-04-25 07:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:57:05' and `end` < '2025-04-25 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-04-25 07:57:18] Production.INFO: count ==162 [2025-04-25 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:57:05 - End Time 2025-04-25 07:57:05 [2025-04-25 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985562', 'tblTempUsageDetail_20' ) start [2025-04-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985562', 'tblTempUsageDetail_20' ) end [2025-04-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985562', 'tblTempVendorCDR_20' ) start [2025-04-25 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985562', 'tblTempVendorCDR_20' ) end [2025-04-25 07:57:18] Production.INFO: ProcessCDR(1,14985562,1,1,2) [2025-04-25 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985562', 'tblTempUsageDetail_20' ) start [2025-04-25 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985562', 'tblTempUsageDetail_20' ) end [2025-04-25 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:57:23] Production.INFO: ==5319== Releasing lock... [2025-04-25 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-25 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:58:05 [end_date_ymd] => 2025-04-25 07:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 04:58:05' and `end` < '2025-04-25 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-04-25 07:58:18] Production.INFO: count ==165 [2025-04-25 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:58:05 - End Time 2025-04-25 07:58:05 [2025-04-25 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985567', 'tblTempUsageDetail_20' ) start [2025-04-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985567', 'tblTempUsageDetail_20' ) end [2025-04-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985567', 'tblTempVendorCDR_20' ) start [2025-04-25 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985567', 'tblTempVendorCDR_20' ) end [2025-04-25 07:58:18] Production.INFO: ProcessCDR(1,14985567,1,1,2) [2025-04-25 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985567', 'tblTempUsageDetail_20' ) start [2025-04-25 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985567', 'tblTempUsageDetail_20' ) end [2025-04-25 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:58:23] Production.INFO: ==5400== Releasing lock... [2025-04-25 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-25 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 04:59:06 [end_date_ymd] => 2025-04-25 07:59:06 [RateCDR] => 1 ) [2025-04-25 07: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-04-25 04:59:06' and `end` < '2025-04-25 07: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-04-25 07:59:18] Production.INFO: count ==166 [2025-04-25 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 04:59:06 - End Time 2025-04-25 07:59:06 [2025-04-25 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985572', 'tblTempUsageDetail_20' ) start [2025-04-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985572', 'tblTempUsageDetail_20' ) end [2025-04-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985572', 'tblTempVendorCDR_20' ) start [2025-04-25 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985572', 'tblTempVendorCDR_20' ) end [2025-04-25 07:59:18] Production.INFO: ProcessCDR(1,14985572,1,1,2) [2025-04-25 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985572', 'tblTempUsageDetail_20' ) start [2025-04-25 07:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985572', 'tblTempUsageDetail_20' ) end [2025-04-25 07:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 07:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 07:59:24] Production.INFO: ==5477== Releasing lock... [2025-04-25 07:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 07:59:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:00:06 [end_date_ymd] => 2025-04-25 08:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:00:06' and `end` < '2025-04-25 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-04-25 08:00:18] Production.INFO: count ==177 [2025-04-25 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:00:06 - End Time 2025-04-25 08:00:06 [2025-04-25 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985578', 'tblTempUsageDetail_20' ) start [2025-04-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985578', 'tblTempUsageDetail_20' ) end [2025-04-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985578', 'tblTempVendorCDR_20' ) start [2025-04-25 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985578', 'tblTempVendorCDR_20' ) end [2025-04-25 08:00:19] Production.INFO: ProcessCDR(1,14985578,1,1,2) [2025-04-25 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985578', 'tblTempUsageDetail_20' ) start [2025-04-25 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985578', 'tblTempUsageDetail_20' ) end [2025-04-25 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:00:24] Production.INFO: ==5555== Releasing lock... [2025-04-25 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:00:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-25 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:01:06 [end_date_ymd] => 2025-04-25 08:01:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:01:06' and `end` < '2025-04-25 08: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-04-25 08:01:18] Production.INFO: count ==186 [2025-04-25 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:01:06 - End Time 2025-04-25 08:01:06 [2025-04-25 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985583', 'tblTempUsageDetail_20' ) start [2025-04-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985583', 'tblTempUsageDetail_20' ) end [2025-04-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985583', 'tblTempVendorCDR_20' ) start [2025-04-25 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985583', 'tblTempVendorCDR_20' ) end [2025-04-25 08:01:18] Production.INFO: ProcessCDR(1,14985583,1,1,2) [2025-04-25 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985583', 'tblTempUsageDetail_20' ) start [2025-04-25 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985583', 'tblTempUsageDetail_20' ) end [2025-04-25 08:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:01:24] Production.INFO: ==5642== Releasing lock... [2025-04-25 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:01:24] Production.INFO: 30 MB #Memory Used# [2025-04-25 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:02:05 [end_date_ymd] => 2025-04-25 08:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:02:05' and `end` < '2025-04-25 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-04-25 08:02:17] Production.INFO: count ==187 [2025-04-25 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:02:05 - End Time 2025-04-25 08:02:05 [2025-04-25 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985588', 'tblTempUsageDetail_20' ) start [2025-04-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985588', 'tblTempUsageDetail_20' ) end [2025-04-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985588', 'tblTempVendorCDR_20' ) start [2025-04-25 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985588', 'tblTempVendorCDR_20' ) end [2025-04-25 08:02:18] Production.INFO: ProcessCDR(1,14985588,1,1,2) [2025-04-25 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985588', 'tblTempUsageDetail_20' ) start [2025-04-25 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985588', 'tblTempUsageDetail_20' ) end [2025-04-25 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:02:21] Production.INFO: ==5714== Releasing lock... [2025-04-25 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:03:05 [end_date_ymd] => 2025-04-25 08:03:05 [RateCDR] => 1 ) [2025-04-25 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:03:05' and `end` < '2025-04-25 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:03:18] Production.INFO: count ==189 [2025-04-25 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:03:05 - End Time 2025-04-25 08:03:05 [2025-04-25 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985593', 'tblTempUsageDetail_20' ) start [2025-04-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985593', 'tblTempUsageDetail_20' ) end [2025-04-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985593', 'tblTempVendorCDR_20' ) start [2025-04-25 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985593', 'tblTempVendorCDR_20' ) end [2025-04-25 08:03:18] Production.INFO: ProcessCDR(1,14985593,1,1,2) [2025-04-25 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985593', 'tblTempUsageDetail_20' ) start [2025-04-25 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985593', 'tblTempUsageDetail_20' ) end [2025-04-25 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:03:21] Production.INFO: ==5791== Releasing lock... [2025-04-25 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:03:21] Production.INFO: 30 MB #Memory Used# [2025-04-25 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:04:05 [end_date_ymd] => 2025-04-25 08:04:05 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:04:05' and `end` < '2025-04-25 08: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-04-25 08:04:18] Production.INFO: count ==194 [2025-04-25 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:04:05 - End Time 2025-04-25 08:04:05 [2025-04-25 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985598', 'tblTempUsageDetail_20' ) start [2025-04-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985598', 'tblTempUsageDetail_20' ) end [2025-04-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985598', 'tblTempVendorCDR_20' ) start [2025-04-25 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985598', 'tblTempVendorCDR_20' ) end [2025-04-25 08:04:18] Production.INFO: ProcessCDR(1,14985598,1,1,2) [2025-04-25 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985598', 'tblTempUsageDetail_20' ) start [2025-04-25 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985598', 'tblTempUsageDetail_20' ) end [2025-04-25 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:04:22] Production.INFO: ==5871== Releasing lock... [2025-04-25 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:04:22] Production.INFO: 30 MB #Memory Used# [2025-04-25 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:05:05 [end_date_ymd] => 2025-04-25 08:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:05:05' and `end` < '2025-04-25 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-04-25 08:05:18] Production.INFO: count ==196 [2025-04-25 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:05:05 - End Time 2025-04-25 08:05:05 [2025-04-25 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985603', 'tblTempUsageDetail_20' ) start [2025-04-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985603', 'tblTempUsageDetail_20' ) end [2025-04-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985603', 'tblTempVendorCDR_20' ) start [2025-04-25 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985603', 'tblTempVendorCDR_20' ) end [2025-04-25 08:05:18] Production.INFO: ProcessCDR(1,14985603,1,1,2) [2025-04-25 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985603', 'tblTempUsageDetail_20' ) start [2025-04-25 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985603', 'tblTempUsageDetail_20' ) end [2025-04-25 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:05:23] Production.INFO: ==5948== Releasing lock... [2025-04-25 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:05:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:06:05 [end_date_ymd] => 2025-04-25 08:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:06:05' and `end` < '2025-04-25 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-04-25 08:06:18] Production.INFO: count ==201 [2025-04-25 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:06:05 - End Time 2025-04-25 08:06:05 [2025-04-25 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985608', 'tblTempUsageDetail_20' ) start [2025-04-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985608', 'tblTempUsageDetail_20' ) end [2025-04-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985608', 'tblTempVendorCDR_20' ) start [2025-04-25 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985608', 'tblTempVendorCDR_20' ) end [2025-04-25 08:06:18] Production.INFO: ProcessCDR(1,14985608,1,1,2) [2025-04-25 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985608', 'tblTempUsageDetail_20' ) start [2025-04-25 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985608', 'tblTempUsageDetail_20' ) end [2025-04-25 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:06:22] Production.INFO: ==6027== Releasing lock... [2025-04-25 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-25 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:07:05 [end_date_ymd] => 2025-04-25 08:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:07:05' and `end` < '2025-04-25 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-04-25 08:07:18] Production.INFO: count ==216 [2025-04-25 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:07:05 - End Time 2025-04-25 08:07:05 [2025-04-25 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985613', 'tblTempUsageDetail_20' ) start [2025-04-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985613', 'tblTempUsageDetail_20' ) end [2025-04-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985613', 'tblTempVendorCDR_20' ) start [2025-04-25 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985613', 'tblTempVendorCDR_20' ) end [2025-04-25 08:07:18] Production.INFO: ProcessCDR(1,14985613,1,1,2) [2025-04-25 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985613', 'tblTempUsageDetail_20' ) start [2025-04-25 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985613', 'tblTempUsageDetail_20' ) end [2025-04-25 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:07:22] Production.INFO: ==6120== Releasing lock... [2025-04-25 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-25 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:08:05 [end_date_ymd] => 2025-04-25 08:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:08:05' and `end` < '2025-04-25 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-04-25 08:08:17] Production.INFO: count ==221 [2025-04-25 08:08:17] Production.ERROR: pbx CDR StartTime 2025-04-25 05:08:05 - End Time 2025-04-25 08:08:05 [2025-04-25 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985618', 'tblTempUsageDetail_20' ) start [2025-04-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985618', 'tblTempUsageDetail_20' ) end [2025-04-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985618', 'tblTempVendorCDR_20' ) start [2025-04-25 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985618', 'tblTempVendorCDR_20' ) end [2025-04-25 08:08:18] Production.INFO: ProcessCDR(1,14985618,1,1,2) [2025-04-25 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985618', 'tblTempUsageDetail_20' ) start [2025-04-25 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985618', 'tblTempUsageDetail_20' ) end [2025-04-25 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:08:21] Production.INFO: ==6215== Releasing lock... [2025-04-25 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-25 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:09:05 [end_date_ymd] => 2025-04-25 08:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:09:05' and `end` < '2025-04-25 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-04-25 08:09:18] Production.INFO: count ==222 [2025-04-25 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:09:05 - End Time 2025-04-25 08:09:05 [2025-04-25 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985623', 'tblTempUsageDetail_20' ) start [2025-04-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985623', 'tblTempUsageDetail_20' ) end [2025-04-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985623', 'tblTempVendorCDR_20' ) start [2025-04-25 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985623', 'tblTempVendorCDR_20' ) end [2025-04-25 08:09:18] Production.INFO: ProcessCDR(1,14985623,1,1,2) [2025-04-25 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985623', 'tblTempUsageDetail_20' ) start [2025-04-25 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985623', 'tblTempUsageDetail_20' ) end [2025-04-25 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:09:21] Production.INFO: ==6303== Releasing lock... [2025-04-25 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-25 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:10:07 [end_date_ymd] => 2025-04-25 08:10:07 [RateCDR] => 1 ) [2025-04-25 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:10:07' and `end` < '2025-04-25 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:10:20] Production.INFO: count ==241 [2025-04-25 08:10:20] Production.ERROR: pbx CDR StartTime 2025-04-25 05:10:07 - End Time 2025-04-25 08:10:07 [2025-04-25 08:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985629', 'tblTempUsageDetail_20' ) start [2025-04-25 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985629', 'tblTempUsageDetail_20' ) end [2025-04-25 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985629', 'tblTempVendorCDR_20' ) start [2025-04-25 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985629', 'tblTempVendorCDR_20' ) end [2025-04-25 08:10:20] Production.INFO: ProcessCDR(1,14985629,1,1,2) [2025-04-25 08:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985629', 'tblTempUsageDetail_20' ) start [2025-04-25 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985629', 'tblTempUsageDetail_20' ) end [2025-04-25 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:10:23] Production.INFO: ==6398== Releasing lock... [2025-04-25 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:10:23] Production.INFO: 30 MB #Memory Used# [2025-04-25 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:11:05 [end_date_ymd] => 2025-04-25 08:11:05 [RateCDR] => 1 ) [2025-04-25 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:11:05' and `end` < '2025-04-25 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:11:18] Production.INFO: count ==280 [2025-04-25 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:11:05 - End Time 2025-04-25 08:11:05 [2025-04-25 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985634', 'tblTempUsageDetail_20' ) start [2025-04-25 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985634', 'tblTempUsageDetail_20' ) end [2025-04-25 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985634', 'tblTempVendorCDR_20' ) start [2025-04-25 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985634', 'tblTempVendorCDR_20' ) end [2025-04-25 08:11:18] Production.INFO: ProcessCDR(1,14985634,1,1,2) [2025-04-25 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985634', 'tblTempUsageDetail_20' ) start [2025-04-25 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985634', 'tblTempUsageDetail_20' ) end [2025-04-25 08:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:11:24] Production.INFO: ==6494== Releasing lock... [2025-04-25 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:11:24] Production.INFO: 31 MB #Memory Used# [2025-04-25 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:12:06 [end_date_ymd] => 2025-04-25 08:12:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:12:06' and `end` < '2025-04-25 08: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-04-25 08:12:18] Production.INFO: count ==287 [2025-04-25 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:12:06 - End Time 2025-04-25 08:12:06 [2025-04-25 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985639', 'tblTempUsageDetail_20' ) start [2025-04-25 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985639', 'tblTempUsageDetail_20' ) end [2025-04-25 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985639', 'tblTempVendorCDR_20' ) start [2025-04-25 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985639', 'tblTempVendorCDR_20' ) end [2025-04-25 08:12:18] Production.INFO: ProcessCDR(1,14985639,1,1,2) [2025-04-25 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985639', 'tblTempUsageDetail_20' ) start [2025-04-25 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985639', 'tblTempUsageDetail_20' ) end [2025-04-25 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:12:23] Production.INFO: ==6629== Releasing lock... [2025-04-25 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:12:23] Production.INFO: 31 MB #Memory Used# [2025-04-25 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:13:05 [end_date_ymd] => 2025-04-25 08:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:13:05' and `end` < '2025-04-25 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-04-25 08:13:18] Production.INFO: count ==289 [2025-04-25 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:13:05 - End Time 2025-04-25 08:13:05 [2025-04-25 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985644', 'tblTempUsageDetail_20' ) start [2025-04-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985644', 'tblTempUsageDetail_20' ) end [2025-04-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985644', 'tblTempVendorCDR_20' ) start [2025-04-25 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985644', 'tblTempVendorCDR_20' ) end [2025-04-25 08:13:18] Production.INFO: ProcessCDR(1,14985644,1,1,2) [2025-04-25 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985644', 'tblTempUsageDetail_20' ) start [2025-04-25 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985644', 'tblTempUsageDetail_20' ) end [2025-04-25 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:13:23] Production.INFO: ==6721== Releasing lock... [2025-04-25 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-25 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:14:05 [end_date_ymd] => 2025-04-25 08:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:14:05' and `end` < '2025-04-25 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-04-25 08:14:18] Production.INFO: count ==307 [2025-04-25 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:14:05 - End Time 2025-04-25 08:14:05 [2025-04-25 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985649', 'tblTempUsageDetail_20' ) start [2025-04-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985649', 'tblTempUsageDetail_20' ) end [2025-04-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985649', 'tblTempVendorCDR_20' ) start [2025-04-25 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985649', 'tblTempVendorCDR_20' ) end [2025-04-25 08:14:18] Production.INFO: ProcessCDR(1,14985649,1,1,2) [2025-04-25 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985649', 'tblTempUsageDetail_20' ) start [2025-04-25 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985649', 'tblTempUsageDetail_20' ) end [2025-04-25 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:14:21] Production.INFO: ==6810== Releasing lock... [2025-04-25 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:14:21] Production.INFO: 31 MB #Memory Used# [2025-04-25 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:15:05 [end_date_ymd] => 2025-04-25 08:15:05 [RateCDR] => 1 ) [2025-04-25 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:15:05' and `end` < '2025-04-25 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:15:18] Production.INFO: count ==309 [2025-04-25 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:15:05 - End Time 2025-04-25 08:15:05 [2025-04-25 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985654', 'tblTempUsageDetail_20' ) start [2025-04-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985654', 'tblTempUsageDetail_20' ) end [2025-04-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985654', 'tblTempVendorCDR_20' ) start [2025-04-25 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985654', 'tblTempVendorCDR_20' ) end [2025-04-25 08:15:18] Production.INFO: ProcessCDR(1,14985654,1,1,2) [2025-04-25 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985654', 'tblTempUsageDetail_20' ) start [2025-04-25 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985654', 'tblTempUsageDetail_20' ) end [2025-04-25 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:15:23] Production.INFO: ==6908== Releasing lock... [2025-04-25 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:15:23] Production.INFO: 31 MB #Memory Used# [2025-04-25 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:16:06 [end_date_ymd] => 2025-04-25 08:16:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:16:06' and `end` < '2025-04-25 08: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-04-25 08:16:18] Production.INFO: count ==317 [2025-04-25 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:16:06 - End Time 2025-04-25 08:16:06 [2025-04-25 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985659', 'tblTempUsageDetail_20' ) start [2025-04-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985659', 'tblTempUsageDetail_20' ) end [2025-04-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985659', 'tblTempVendorCDR_20' ) start [2025-04-25 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985659', 'tblTempVendorCDR_20' ) end [2025-04-25 08:16:18] Production.INFO: ProcessCDR(1,14985659,1,1,2) [2025-04-25 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985659', 'tblTempUsageDetail_20' ) start [2025-04-25 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985659', 'tblTempUsageDetail_20' ) end [2025-04-25 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:16:23] Production.INFO: ==6996== Releasing lock... [2025-04-25 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:16:23] Production.INFO: 31 MB #Memory Used# [2025-04-25 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:17:05 [end_date_ymd] => 2025-04-25 08:17:05 [RateCDR] => 1 ) [2025-04-25 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:17:05' and `end` < '2025-04-25 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:17:17] Production.INFO: count ==319 [2025-04-25 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-25 05:17:05 - End Time 2025-04-25 08:17:05 [2025-04-25 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985664', 'tblTempUsageDetail_20' ) start [2025-04-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985664', 'tblTempUsageDetail_20' ) end [2025-04-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985664', 'tblTempVendorCDR_20' ) start [2025-04-25 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985664', 'tblTempVendorCDR_20' ) end [2025-04-25 08:17:17] Production.INFO: ProcessCDR(1,14985664,1,1,2) [2025-04-25 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985664', 'tblTempUsageDetail_20' ) start [2025-04-25 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985664', 'tblTempUsageDetail_20' ) end [2025-04-25 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:17:22] Production.INFO: ==7091== Releasing lock... [2025-04-25 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:18:05 [end_date_ymd] => 2025-04-25 08:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:18:05' and `end` < '2025-04-25 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-04-25 08:18:18] Production.INFO: count ==327 [2025-04-25 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:18:05 - End Time 2025-04-25 08:18:05 [2025-04-25 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985669', 'tblTempUsageDetail_20' ) start [2025-04-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985669', 'tblTempUsageDetail_20' ) end [2025-04-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985669', 'tblTempVendorCDR_20' ) start [2025-04-25 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985669', 'tblTempVendorCDR_20' ) end [2025-04-25 08:18:18] Production.INFO: ProcessCDR(1,14985669,1,1,2) [2025-04-25 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985669', 'tblTempUsageDetail_20' ) start [2025-04-25 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985669', 'tblTempUsageDetail_20' ) end [2025-04-25 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:18:21] Production.INFO: ==7181== Releasing lock... [2025-04-25 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-25 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:19:06 [end_date_ymd] => 2025-04-25 08:19:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:19:06' and `end` < '2025-04-25 08: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-04-25 08:19:19] Production.INFO: count ==331 [2025-04-25 08:19:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:19:06 - End Time 2025-04-25 08:19:06 [2025-04-25 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985674', 'tblTempUsageDetail_20' ) start [2025-04-25 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985674', 'tblTempUsageDetail_20' ) end [2025-04-25 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985674', 'tblTempVendorCDR_20' ) start [2025-04-25 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985674', 'tblTempVendorCDR_20' ) end [2025-04-25 08:19:19] Production.INFO: ProcessCDR(1,14985674,1,1,2) [2025-04-25 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985674', 'tblTempUsageDetail_20' ) start [2025-04-25 08:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985674', 'tblTempUsageDetail_20' ) end [2025-04-25 08:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:19:24] Production.INFO: ==7272== Releasing lock... [2025-04-25 08:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:19:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:20:06 [end_date_ymd] => 2025-04-25 08:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:20:06' and `end` < '2025-04-25 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-04-25 08:20:19] Production.INFO: count ==347 [2025-04-25 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:20:06 - End Time 2025-04-25 08:20:06 [2025-04-25 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985680', 'tblTempUsageDetail_20' ) start [2025-04-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985680', 'tblTempUsageDetail_20' ) end [2025-04-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985680', 'tblTempVendorCDR_20' ) start [2025-04-25 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985680', 'tblTempVendorCDR_20' ) end [2025-04-25 08:20:19] Production.INFO: ProcessCDR(1,14985680,1,1,2) [2025-04-25 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985680', 'tblTempUsageDetail_20' ) start [2025-04-25 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985680', 'tblTempUsageDetail_20' ) end [2025-04-25 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:20:22] Production.INFO: ==7354== Releasing lock... [2025-04-25 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:21:06 [end_date_ymd] => 2025-04-25 08:21:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:21:06' and `end` < '2025-04-25 08: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-04-25 08:21:19] Production.INFO: count ==382 [2025-04-25 08:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:21:06 - End Time 2025-04-25 08:21:06 [2025-04-25 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985685', 'tblTempUsageDetail_20' ) start [2025-04-25 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985685', 'tblTempUsageDetail_20' ) end [2025-04-25 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985685', 'tblTempVendorCDR_20' ) start [2025-04-25 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985685', 'tblTempVendorCDR_20' ) end [2025-04-25 08:21:19] Production.INFO: ProcessCDR(1,14985685,1,1,2) [2025-04-25 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985685', 'tblTempUsageDetail_20' ) start [2025-04-25 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985685', 'tblTempUsageDetail_20' ) end [2025-04-25 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:21:24] Production.INFO: ==7438== Releasing lock... [2025-04-25 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:21:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-25 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:22:05 [end_date_ymd] => 2025-04-25 08:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:22:05' and `end` < '2025-04-25 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-04-25 08:22:18] Production.INFO: count ==388 [2025-04-25 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:22:05 - End Time 2025-04-25 08:22:05 [2025-04-25 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985690', 'tblTempUsageDetail_20' ) start [2025-04-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985690', 'tblTempUsageDetail_20' ) end [2025-04-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985690', 'tblTempVendorCDR_20' ) start [2025-04-25 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985690', 'tblTempVendorCDR_20' ) end [2025-04-25 08:22:18] Production.INFO: ProcessCDR(1,14985690,1,1,2) [2025-04-25 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985690', 'tblTempUsageDetail_20' ) start [2025-04-25 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985690', 'tblTempUsageDetail_20' ) end [2025-04-25 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:22:23] Production.INFO: ==7512== Releasing lock... [2025-04-25 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-25 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:23:06 [end_date_ymd] => 2025-04-25 08:23:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:23:06' and `end` < '2025-04-25 08: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-04-25 08:23:19] Production.INFO: count ==402 [2025-04-25 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:23:06 - End Time 2025-04-25 08:23:06 [2025-04-25 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985695', 'tblTempUsageDetail_20' ) start [2025-04-25 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985695', 'tblTempUsageDetail_20' ) end [2025-04-25 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985695', 'tblTempVendorCDR_20' ) start [2025-04-25 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985695', 'tblTempVendorCDR_20' ) end [2025-04-25 08:23:19] Production.INFO: ProcessCDR(1,14985695,1,1,2) [2025-04-25 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985695', 'tblTempUsageDetail_20' ) start [2025-04-25 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985695', 'tblTempUsageDetail_20' ) end [2025-04-25 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:23:22] Production.INFO: ==7589== Releasing lock... [2025-04-25 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:23:22] Production.INFO: 32 MB #Memory Used# [2025-04-25 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:24:05 [end_date_ymd] => 2025-04-25 08:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:24:05' and `end` < '2025-04-25 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-04-25 08:24:18] Production.INFO: count ==416 [2025-04-25 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:24:05 - End Time 2025-04-25 08:24:05 [2025-04-25 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985700', 'tblTempUsageDetail_20' ) start [2025-04-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985700', 'tblTempUsageDetail_20' ) end [2025-04-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985700', 'tblTempVendorCDR_20' ) start [2025-04-25 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985700', 'tblTempVendorCDR_20' ) end [2025-04-25 08:24:18] Production.INFO: ProcessCDR(1,14985700,1,1,2) [2025-04-25 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985700', 'tblTempUsageDetail_20' ) start [2025-04-25 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985700', 'tblTempUsageDetail_20' ) end [2025-04-25 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:24:22] Production.INFO: ==7664== Releasing lock... [2025-04-25 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:25:05 [end_date_ymd] => 2025-04-25 08:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:25:05' and `end` < '2025-04-25 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-04-25 08:25:18] Production.INFO: count ==417 [2025-04-25 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:25:05 - End Time 2025-04-25 08:25:05 [2025-04-25 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985705', 'tblTempUsageDetail_20' ) start [2025-04-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985705', 'tblTempUsageDetail_20' ) end [2025-04-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985705', 'tblTempVendorCDR_20' ) start [2025-04-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985705', 'tblTempVendorCDR_20' ) end [2025-04-25 08:25:18] Production.INFO: ProcessCDR(1,14985705,1,1,2) [2025-04-25 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985705', 'tblTempUsageDetail_20' ) start [2025-04-25 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985705', 'tblTempUsageDetail_20' ) end [2025-04-25 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:25:23] Production.INFO: ==7738== Releasing lock... [2025-04-25 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-04-25 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:26:05 [end_date_ymd] => 2025-04-25 08:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:26:05' and `end` < '2025-04-25 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-04-25 08:26:18] Production.INFO: count ==430 [2025-04-25 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:26:05 - End Time 2025-04-25 08:26:05 [2025-04-25 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985710', 'tblTempUsageDetail_20' ) start [2025-04-25 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985710', 'tblTempUsageDetail_20' ) end [2025-04-25 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985710', 'tblTempVendorCDR_20' ) start [2025-04-25 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985710', 'tblTempVendorCDR_20' ) end [2025-04-25 08:26:18] Production.INFO: ProcessCDR(1,14985710,1,1,2) [2025-04-25 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985710', 'tblTempUsageDetail_20' ) start [2025-04-25 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985710', 'tblTempUsageDetail_20' ) end [2025-04-25 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:26:23] Production.INFO: ==7818== Releasing lock... [2025-04-25 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:27:05 [end_date_ymd] => 2025-04-25 08:27:05 [RateCDR] => 1 ) [2025-04-25 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:27:05' and `end` < '2025-04-25 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:27:19] Production.INFO: count ==435 [2025-04-25 08:27:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:27:05 - End Time 2025-04-25 08:27:05 [2025-04-25 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985715', 'tblTempUsageDetail_20' ) start [2025-04-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985715', 'tblTempUsageDetail_20' ) end [2025-04-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985715', 'tblTempVendorCDR_20' ) start [2025-04-25 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985715', 'tblTempVendorCDR_20' ) end [2025-04-25 08:27:19] Production.INFO: ProcessCDR(1,14985715,1,1,2) [2025-04-25 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985715', 'tblTempUsageDetail_20' ) start [2025-04-25 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985715', 'tblTempUsageDetail_20' ) end [2025-04-25 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:27:24] Production.INFO: ==7902== Releasing lock... [2025-04-25 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:27:24] Production.INFO: 32 MB #Memory Used# [2025-04-25 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:28:05 [end_date_ymd] => 2025-04-25 08:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:28:05' and `end` < '2025-04-25 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-04-25 08:28:18] Production.INFO: count ==465 [2025-04-25 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:28:05 - End Time 2025-04-25 08:28:05 [2025-04-25 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985720', 'tblTempUsageDetail_20' ) start [2025-04-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985720', 'tblTempUsageDetail_20' ) end [2025-04-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985720', 'tblTempVendorCDR_20' ) start [2025-04-25 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985720', 'tblTempVendorCDR_20' ) end [2025-04-25 08:28:18] Production.INFO: ProcessCDR(1,14985720,1,1,2) [2025-04-25 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985720', 'tblTempUsageDetail_20' ) start [2025-04-25 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985720', 'tblTempUsageDetail_20' ) end [2025-04-25 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:28:23] Production.INFO: ==8019== Releasing lock... [2025-04-25 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-25 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:29:05 [end_date_ymd] => 2025-04-25 08:29:05 [RateCDR] => 1 ) [2025-04-25 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:29:05' and `end` < '2025-04-25 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:29:17] Production.INFO: count ==472 [2025-04-25 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:29:05 - End Time 2025-04-25 08:29:05 [2025-04-25 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985725', 'tblTempUsageDetail_20' ) start [2025-04-25 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985725', 'tblTempUsageDetail_20' ) end [2025-04-25 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985725', 'tblTempVendorCDR_20' ) start [2025-04-25 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985725', 'tblTempVendorCDR_20' ) end [2025-04-25 08:29:18] Production.INFO: ProcessCDR(1,14985725,1,1,2) [2025-04-25 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985725', 'tblTempUsageDetail_20' ) start [2025-04-25 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985725', 'tblTempUsageDetail_20' ) end [2025-04-25 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:29:23] Production.INFO: ==8093== Releasing lock... [2025-04-25 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:30:06 [end_date_ymd] => 2025-04-25 08:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:30:06' and `end` < '2025-04-25 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-04-25 08:30:19] Production.INFO: count ==500 [2025-04-25 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:30:06 - End Time 2025-04-25 08:30:06 [2025-04-25 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985731', 'tblTempUsageDetail_20' ) start [2025-04-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985731', 'tblTempUsageDetail_20' ) end [2025-04-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985731', 'tblTempVendorCDR_20' ) start [2025-04-25 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985731', 'tblTempVendorCDR_20' ) end [2025-04-25 08:30:19] Production.INFO: ProcessCDR(1,14985731,1,1,2) [2025-04-25 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985731', 'tblTempUsageDetail_20' ) start [2025-04-25 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985731', 'tblTempUsageDetail_20' ) end [2025-04-25 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:30:25] Production.INFO: ==8172== Releasing lock... [2025-04-25 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:30:25] Production.INFO: 32.25 MB #Memory Used# [2025-04-25 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:31:05 [end_date_ymd] => 2025-04-25 08:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:31:05' and `end` < '2025-04-25 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-04-25 08:31:18] Production.INFO: count ==516 [2025-04-25 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:31:05 - End Time 2025-04-25 08:31:05 [2025-04-25 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985736', 'tblTempUsageDetail_20' ) start [2025-04-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985736', 'tblTempUsageDetail_20' ) end [2025-04-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985736', 'tblTempVendorCDR_20' ) start [2025-04-25 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985736', 'tblTempVendorCDR_20' ) end [2025-04-25 08:31:18] Production.INFO: ProcessCDR(1,14985736,1,1,2) [2025-04-25 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985736', 'tblTempUsageDetail_20' ) start [2025-04-25 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985736', 'tblTempUsageDetail_20' ) end [2025-04-25 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:31:21] Production.INFO: ==8250== Releasing lock... [2025-04-25 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-25 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:32:05 [end_date_ymd] => 2025-04-25 08:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:32:05' and `end` < '2025-04-25 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-04-25 08:32:18] Production.INFO: count ==526 [2025-04-25 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:32:05 - End Time 2025-04-25 08:32:05 [2025-04-25 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985741', 'tblTempUsageDetail_20' ) start [2025-04-25 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985741', 'tblTempUsageDetail_20' ) end [2025-04-25 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985741', 'tblTempVendorCDR_20' ) start [2025-04-25 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985741', 'tblTempVendorCDR_20' ) end [2025-04-25 08:32:18] Production.INFO: ProcessCDR(1,14985741,1,1,2) [2025-04-25 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985741', 'tblTempUsageDetail_20' ) start [2025-04-25 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985741', 'tblTempUsageDetail_20' ) end [2025-04-25 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:32:23] Production.INFO: ==8329== Releasing lock... [2025-04-25 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:33:05 [end_date_ymd] => 2025-04-25 08:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:33:05' and `end` < '2025-04-25 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-04-25 08:33:18] Production.INFO: count ==532 [2025-04-25 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:33:05 - End Time 2025-04-25 08:33:05 [2025-04-25 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985746', 'tblTempUsageDetail_20' ) start [2025-04-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985746', 'tblTempUsageDetail_20' ) end [2025-04-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985746', 'tblTempVendorCDR_20' ) start [2025-04-25 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985746', 'tblTempVendorCDR_20' ) end [2025-04-25 08:33:18] Production.INFO: ProcessCDR(1,14985746,1,1,2) [2025-04-25 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985746', 'tblTempUsageDetail_20' ) start [2025-04-25 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985746', 'tblTempUsageDetail_20' ) end [2025-04-25 08:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:33:24] Production.INFO: ==8413== Releasing lock... [2025-04-25 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:33:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:34:06 [end_date_ymd] => 2025-04-25 08:34:06 [RateCDR] => 1 ) [2025-04-25 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:34:06' and `end` < '2025-04-25 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:34:19] Production.INFO: count ==553 [2025-04-25 08:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:34:06 - End Time 2025-04-25 08:34:06 [2025-04-25 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985751', 'tblTempUsageDetail_20' ) start [2025-04-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985751', 'tblTempUsageDetail_20' ) end [2025-04-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985751', 'tblTempVendorCDR_20' ) start [2025-04-25 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985751', 'tblTempVendorCDR_20' ) end [2025-04-25 08:34:19] Production.INFO: ProcessCDR(1,14985751,1,1,2) [2025-04-25 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985751', 'tblTempUsageDetail_20' ) start [2025-04-25 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985751', 'tblTempUsageDetail_20' ) end [2025-04-25 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:34:24] Production.INFO: ==8498== Releasing lock... [2025-04-25 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:34:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-25 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:35:05 [end_date_ymd] => 2025-04-25 08:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:35:05' and `end` < '2025-04-25 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-04-25 08:35:17] Production.INFO: count ==556 [2025-04-25 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:35:05 - End Time 2025-04-25 08:35:05 [2025-04-25 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985756', 'tblTempUsageDetail_20' ) start [2025-04-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985756', 'tblTempUsageDetail_20' ) end [2025-04-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985756', 'tblTempVendorCDR_20' ) start [2025-04-25 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985756', 'tblTempVendorCDR_20' ) end [2025-04-25 08:35:18] Production.INFO: ProcessCDR(1,14985756,1,1,2) [2025-04-25 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985756', 'tblTempUsageDetail_20' ) start [2025-04-25 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985756', 'tblTempUsageDetail_20' ) end [2025-04-25 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:35:21] Production.INFO: ==8570== Releasing lock... [2025-04-25 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:36:05 [end_date_ymd] => 2025-04-25 08:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:36:05' and `end` < '2025-04-25 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-04-25 08:36:19] Production.INFO: count ==556 [2025-04-25 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:36:05 - End Time 2025-04-25 08:36:05 [2025-04-25 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985761', 'tblTempUsageDetail_20' ) start [2025-04-25 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985761', 'tblTempUsageDetail_20' ) end [2025-04-25 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985761', 'tblTempVendorCDR_20' ) start [2025-04-25 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985761', 'tblTempVendorCDR_20' ) end [2025-04-25 08:36:19] Production.INFO: ProcessCDR(1,14985761,1,1,2) [2025-04-25 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985761', 'tblTempUsageDetail_20' ) start [2025-04-25 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985761', 'tblTempUsageDetail_20' ) end [2025-04-25 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:36:22] Production.INFO: ==8646== Releasing lock... [2025-04-25 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:37:05 [end_date_ymd] => 2025-04-25 08:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:37:05' and `end` < '2025-04-25 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-04-25 08:37:18] Production.INFO: count ==568 [2025-04-25 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:37:05 - End Time 2025-04-25 08:37:05 [2025-04-25 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985766', 'tblTempUsageDetail_20' ) start [2025-04-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985766', 'tblTempUsageDetail_20' ) end [2025-04-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985766', 'tblTempVendorCDR_20' ) start [2025-04-25 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985766', 'tblTempVendorCDR_20' ) end [2025-04-25 08:37:18] Production.INFO: ProcessCDR(1,14985766,1,1,2) [2025-04-25 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985766', 'tblTempUsageDetail_20' ) start [2025-04-25 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985766', 'tblTempUsageDetail_20' ) end [2025-04-25 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:37:23] Production.INFO: ==8724== Releasing lock... [2025-04-25 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:38:05 [end_date_ymd] => 2025-04-25 08:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:38:05' and `end` < '2025-04-25 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-04-25 08:38:18] Production.INFO: count ==578 [2025-04-25 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:38:05 - End Time 2025-04-25 08:38:05 [2025-04-25 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985771', 'tblTempUsageDetail_20' ) start [2025-04-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985771', 'tblTempUsageDetail_20' ) end [2025-04-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985771', 'tblTempVendorCDR_20' ) start [2025-04-25 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985771', 'tblTempVendorCDR_20' ) end [2025-04-25 08:38:18] Production.INFO: ProcessCDR(1,14985771,1,1,2) [2025-04-25 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985771', 'tblTempUsageDetail_20' ) start [2025-04-25 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985771', 'tblTempUsageDetail_20' ) end [2025-04-25 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:38:23] Production.INFO: ==8801== Releasing lock... [2025-04-25 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-25 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:39:05 [end_date_ymd] => 2025-04-25 08:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:39:05' and `end` < '2025-04-25 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-04-25 08:39:18] Production.INFO: count ==580 [2025-04-25 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:39:05 - End Time 2025-04-25 08:39:05 [2025-04-25 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985776', 'tblTempUsageDetail_20' ) start [2025-04-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985776', 'tblTempUsageDetail_20' ) end [2025-04-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985776', 'tblTempVendorCDR_20' ) start [2025-04-25 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985776', 'tblTempVendorCDR_20' ) end [2025-04-25 08:39:18] Production.INFO: ProcessCDR(1,14985776,1,1,2) [2025-04-25 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985776', 'tblTempUsageDetail_20' ) start [2025-04-25 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985776', 'tblTempUsageDetail_20' ) end [2025-04-25 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:39:22] Production.INFO: ==8890== Releasing lock... [2025-04-25 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-25 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:40:06 [end_date_ymd] => 2025-04-25 08:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:40:06' and `end` < '2025-04-25 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-04-25 08:40:18] Production.INFO: count ==602 [2025-04-25 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:40:06 - End Time 2025-04-25 08:40:06 [2025-04-25 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985782', 'tblTempUsageDetail_20' ) start [2025-04-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985782', 'tblTempUsageDetail_20' ) end [2025-04-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985782', 'tblTempVendorCDR_20' ) start [2025-04-25 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985782', 'tblTempVendorCDR_20' ) end [2025-04-25 08:40:19] Production.INFO: ProcessCDR(1,14985782,1,1,2) [2025-04-25 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985782', 'tblTempUsageDetail_20' ) start [2025-04-25 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985782', 'tblTempUsageDetail_20' ) end [2025-04-25 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:40:24] Production.INFO: ==8965== Releasing lock... [2025-04-25 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:40:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-25 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:41:05 [end_date_ymd] => 2025-04-25 08:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:41:05' and `end` < '2025-04-25 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-04-25 08:41:18] Production.INFO: count ==648 [2025-04-25 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:41:05 - End Time 2025-04-25 08:41:05 [2025-04-25 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985787', 'tblTempUsageDetail_20' ) start [2025-04-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985787', 'tblTempUsageDetail_20' ) end [2025-04-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985787', 'tblTempVendorCDR_20' ) start [2025-04-25 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985787', 'tblTempVendorCDR_20' ) end [2025-04-25 08:41:18] Production.INFO: ProcessCDR(1,14985787,1,1,2) [2025-04-25 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985787', 'tblTempUsageDetail_20' ) start [2025-04-25 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985787', 'tblTempUsageDetail_20' ) end [2025-04-25 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:41:23] Production.INFO: ==9037== Releasing lock... [2025-04-25 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-25 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:42:05 [end_date_ymd] => 2025-04-25 08:42:05 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:42:05' and `end` < '2025-04-25 08: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-04-25 08:42:18] Production.INFO: count ==651 [2025-04-25 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:42:05 - End Time 2025-04-25 08:42:05 [2025-04-25 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985792', 'tblTempUsageDetail_20' ) start [2025-04-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985792', 'tblTempUsageDetail_20' ) end [2025-04-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985792', 'tblTempVendorCDR_20' ) start [2025-04-25 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985792', 'tblTempVendorCDR_20' ) end [2025-04-25 08:42:18] Production.INFO: ProcessCDR(1,14985792,1,1,2) [2025-04-25 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985792', 'tblTempUsageDetail_20' ) start [2025-04-25 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985792', 'tblTempUsageDetail_20' ) end [2025-04-25 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:42:23] Production.INFO: ==9109== Releasing lock... [2025-04-25 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-25 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:43:06 [end_date_ymd] => 2025-04-25 08:43:06 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:43:06' and `end` < '2025-04-25 08: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-04-25 08:43:18] Production.INFO: count ==665 [2025-04-25 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:43:06 - End Time 2025-04-25 08:43:06 [2025-04-25 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985797', 'tblTempUsageDetail_20' ) start [2025-04-25 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985797', 'tblTempUsageDetail_20' ) end [2025-04-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985797', 'tblTempVendorCDR_20' ) start [2025-04-25 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985797', 'tblTempVendorCDR_20' ) end [2025-04-25 08:43:19] Production.INFO: ProcessCDR(1,14985797,1,1,2) [2025-04-25 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985797', 'tblTempUsageDetail_20' ) start [2025-04-25 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985797', 'tblTempUsageDetail_20' ) end [2025-04-25 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:43:22] Production.INFO: ==9231== Releasing lock... [2025-04-25 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-25 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:44:05 [end_date_ymd] => 2025-04-25 08:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:44:05' and `end` < '2025-04-25 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-04-25 08:44:18] Production.INFO: count ==675 [2025-04-25 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:44:05 - End Time 2025-04-25 08:44:05 [2025-04-25 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985802', 'tblTempUsageDetail_20' ) start [2025-04-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985802', 'tblTempUsageDetail_20' ) end [2025-04-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985802', 'tblTempVendorCDR_20' ) start [2025-04-25 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985802', 'tblTempVendorCDR_20' ) end [2025-04-25 08:44:18] Production.INFO: ProcessCDR(1,14985802,1,1,2) [2025-04-25 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985802', 'tblTempUsageDetail_20' ) start [2025-04-25 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985802', 'tblTempUsageDetail_20' ) end [2025-04-25 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:44:22] Production.INFO: ==9312== Releasing lock... [2025-04-25 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-25 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:45:05 [end_date_ymd] => 2025-04-25 08:45:05 [RateCDR] => 1 ) [2025-04-25 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:45:05' and `end` < '2025-04-25 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:45:18] Production.INFO: count ==679 [2025-04-25 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:45:05 - End Time 2025-04-25 08:45:05 [2025-04-25 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985807', 'tblTempUsageDetail_20' ) start [2025-04-25 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985807', 'tblTempUsageDetail_20' ) end [2025-04-25 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985807', 'tblTempVendorCDR_20' ) start [2025-04-25 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985807', 'tblTempVendorCDR_20' ) end [2025-04-25 08:45:18] Production.INFO: ProcessCDR(1,14985807,1,1,2) [2025-04-25 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985807', 'tblTempUsageDetail_20' ) start [2025-04-25 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985807', 'tblTempUsageDetail_20' ) end [2025-04-25 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:45:22] Production.INFO: ==9393== Releasing lock... [2025-04-25 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-25 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:46:04 [end_date_ymd] => 2025-04-25 08:46:04 [RateCDR] => 1 ) [2025-04-25 08: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-04-25 05:46:04' and `end` < '2025-04-25 08: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-04-25 08:46:17] Production.INFO: count ==685 [2025-04-25 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:46:04 - End Time 2025-04-25 08:46:04 [2025-04-25 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985812', 'tblTempUsageDetail_20' ) start [2025-04-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985812', 'tblTempUsageDetail_20' ) end [2025-04-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985812', 'tblTempVendorCDR_20' ) start [2025-04-25 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985812', 'tblTempVendorCDR_20' ) end [2025-04-25 08:46:18] Production.INFO: ProcessCDR(1,14985812,1,1,2) [2025-04-25 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985812', 'tblTempUsageDetail_20' ) start [2025-04-25 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985812', 'tblTempUsageDetail_20' ) end [2025-04-25 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:46:21] Production.INFO: ==9469== Releasing lock... [2025-04-25 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-25 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:47:05 [end_date_ymd] => 2025-04-25 08:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:47:05' and `end` < '2025-04-25 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-04-25 08:47:18] Production.INFO: count ==687 [2025-04-25 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:47:05 - End Time 2025-04-25 08:47:05 [2025-04-25 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985817', 'tblTempUsageDetail_20' ) start [2025-04-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985817', 'tblTempUsageDetail_20' ) end [2025-04-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985817', 'tblTempVendorCDR_20' ) start [2025-04-25 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985817', 'tblTempVendorCDR_20' ) end [2025-04-25 08:47:18] Production.INFO: ProcessCDR(1,14985817,1,1,2) [2025-04-25 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985817', 'tblTempUsageDetail_20' ) start [2025-04-25 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985817', 'tblTempUsageDetail_20' ) end [2025-04-25 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:47:22] Production.INFO: ==9554== Releasing lock... [2025-04-25 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-25 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:48:05 [end_date_ymd] => 2025-04-25 08:48:05 [RateCDR] => 1 ) [2025-04-25 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:48:05' and `end` < '2025-04-25 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:48:17] Production.INFO: count ==695 [2025-04-25 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:48:05 - End Time 2025-04-25 08:48:05 [2025-04-25 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985822', 'tblTempUsageDetail_20' ) start [2025-04-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985822', 'tblTempUsageDetail_20' ) end [2025-04-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985822', 'tblTempVendorCDR_20' ) start [2025-04-25 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985822', 'tblTempVendorCDR_20' ) end [2025-04-25 08:48:18] Production.INFO: ProcessCDR(1,14985822,1,1,2) [2025-04-25 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985822', 'tblTempUsageDetail_20' ) start [2025-04-25 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985822', 'tblTempUsageDetail_20' ) end [2025-04-25 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:48:22] Production.INFO: ==9637== Releasing lock... [2025-04-25 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-25 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:49:05 [end_date_ymd] => 2025-04-25 08:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:49:05' and `end` < '2025-04-25 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-04-25 08:49:18] Production.INFO: count ==701 [2025-04-25 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:49:05 - End Time 2025-04-25 08:49:05 [2025-04-25 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985827', 'tblTempUsageDetail_20' ) start [2025-04-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985827', 'tblTempUsageDetail_20' ) end [2025-04-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985827', 'tblTempVendorCDR_20' ) start [2025-04-25 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985827', 'tblTempVendorCDR_20' ) end [2025-04-25 08:49:18] Production.INFO: ProcessCDR(1,14985827,1,1,2) [2025-04-25 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985827', 'tblTempUsageDetail_20' ) start [2025-04-25 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985827', 'tblTempUsageDetail_20' ) end [2025-04-25 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:49:21] Production.INFO: ==9716== Releasing lock... [2025-04-25 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-25 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:50:06 [end_date_ymd] => 2025-04-25 08:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:50:06' and `end` < '2025-04-25 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-04-25 08:50:19] Production.INFO: count ==725 [2025-04-25 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:50:06 - End Time 2025-04-25 08:50:06 [2025-04-25 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985833', 'tblTempUsageDetail_20' ) start [2025-04-25 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985833', 'tblTempUsageDetail_20' ) end [2025-04-25 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985833', 'tblTempVendorCDR_20' ) start [2025-04-25 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985833', 'tblTempVendorCDR_20' ) end [2025-04-25 08:50:19] Production.INFO: ProcessCDR(1,14985833,1,1,2) [2025-04-25 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985833', 'tblTempUsageDetail_20' ) start [2025-04-25 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985833', 'tblTempUsageDetail_20' ) end [2025-04-25 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:50:24] Production.INFO: ==9798== Releasing lock... [2025-04-25 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-25 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:51:04 [end_date_ymd] => 2025-04-25 08:51:04 [RateCDR] => 1 ) [2025-04-25 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:51:04' and `end` < '2025-04-25 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:51:17] Production.INFO: count ==792 [2025-04-25 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-25 05:51:04 - End Time 2025-04-25 08:51:04 [2025-04-25 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985838', 'tblTempUsageDetail_20' ) start [2025-04-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985838', 'tblTempUsageDetail_20' ) end [2025-04-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985838', 'tblTempVendorCDR_20' ) start [2025-04-25 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985838', 'tblTempVendorCDR_20' ) end [2025-04-25 08:51:17] Production.INFO: ProcessCDR(1,14985838,1,1,2) [2025-04-25 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985838', 'tblTempUsageDetail_20' ) start [2025-04-25 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985838', 'tblTempUsageDetail_20' ) end [2025-04-25 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:51:21] Production.INFO: ==9874== Releasing lock... [2025-04-25 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:51:21] Production.INFO: 34 MB #Memory Used# [2025-04-25 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:52:05 [end_date_ymd] => 2025-04-25 08:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:52:05' and `end` < '2025-04-25 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-04-25 08:52:18] Production.INFO: count ==802 [2025-04-25 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 05:52:05 - End Time 2025-04-25 08:52:05 [2025-04-25 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985843', 'tblTempUsageDetail_20' ) start [2025-04-25 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985843', 'tblTempUsageDetail_20' ) end [2025-04-25 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985843', 'tblTempVendorCDR_20' ) start [2025-04-25 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985843', 'tblTempVendorCDR_20' ) end [2025-04-25 08:52:19] Production.INFO: ProcessCDR(1,14985843,1,1,2) [2025-04-25 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985843', 'tblTempUsageDetail_20' ) start [2025-04-25 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985843', 'tblTempUsageDetail_20' ) end [2025-04-25 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:52:24] Production.INFO: ==9947== Releasing lock... [2025-04-25 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:52:24] Production.INFO: 34 MB #Memory Used# [2025-04-25 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:53:05 [end_date_ymd] => 2025-04-25 08:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:53:05' and `end` < '2025-04-25 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-04-25 08:53:18] Production.INFO: count ==810 [2025-04-25 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:53:05 - End Time 2025-04-25 08:53:05 [2025-04-25 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985848', 'tblTempUsageDetail_20' ) start [2025-04-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985848', 'tblTempUsageDetail_20' ) end [2025-04-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985848', 'tblTempVendorCDR_20' ) start [2025-04-25 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985848', 'tblTempVendorCDR_20' ) end [2025-04-25 08:53:18] Production.INFO: ProcessCDR(1,14985848,1,1,2) [2025-04-25 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985848', 'tblTempUsageDetail_20' ) start [2025-04-25 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985848', 'tblTempUsageDetail_20' ) end [2025-04-25 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:53:21] Production.INFO: ==10022== Releasing lock... [2025-04-25 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-25 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:54:05 [end_date_ymd] => 2025-04-25 08:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:54:05' and `end` < '2025-04-25 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-04-25 08:54:18] Production.INFO: count ==816 [2025-04-25 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:54:05 - End Time 2025-04-25 08:54:05 [2025-04-25 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985853', 'tblTempUsageDetail_20' ) start [2025-04-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985853', 'tblTempUsageDetail_20' ) end [2025-04-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985853', 'tblTempVendorCDR_20' ) start [2025-04-25 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985853', 'tblTempVendorCDR_20' ) end [2025-04-25 08:54:18] Production.INFO: ProcessCDR(1,14985853,1,1,2) [2025-04-25 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985853', 'tblTempUsageDetail_20' ) start [2025-04-25 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985853', 'tblTempUsageDetail_20' ) end [2025-04-25 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:54:23] Production.INFO: ==10097== Releasing lock... [2025-04-25 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:54:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-25 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:55:05 [end_date_ymd] => 2025-04-25 08:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:55:05' and `end` < '2025-04-25 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-04-25 08:55:18] Production.INFO: count ==843 [2025-04-25 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:55:05 - End Time 2025-04-25 08:55:05 [2025-04-25 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985858', 'tblTempUsageDetail_20' ) start [2025-04-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985858', 'tblTempUsageDetail_20' ) end [2025-04-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985858', 'tblTempVendorCDR_20' ) start [2025-04-25 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985858', 'tblTempVendorCDR_20' ) end [2025-04-25 08:55:18] Production.INFO: ProcessCDR(1,14985858,1,1,2) [2025-04-25 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985858', 'tblTempUsageDetail_20' ) start [2025-04-25 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985858', 'tblTempUsageDetail_20' ) end [2025-04-25 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:55:23] Production.INFO: ==10173== Releasing lock... [2025-04-25 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:55:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-25 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:56:05 [end_date_ymd] => 2025-04-25 08:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:56:05' and `end` < '2025-04-25 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-04-25 08:56:18] Production.INFO: count ==849 [2025-04-25 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:56:05 - End Time 2025-04-25 08:56:05 [2025-04-25 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985863', 'tblTempUsageDetail_20' ) start [2025-04-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985863', 'tblTempUsageDetail_20' ) end [2025-04-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985863', 'tblTempVendorCDR_20' ) start [2025-04-25 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985863', 'tblTempVendorCDR_20' ) end [2025-04-25 08:56:18] Production.INFO: ProcessCDR(1,14985863,1,1,2) [2025-04-25 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985863', 'tblTempUsageDetail_20' ) start [2025-04-25 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985863', 'tblTempUsageDetail_20' ) end [2025-04-25 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:56:23] Production.INFO: ==10255== Releasing lock... [2025-04-25 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:56:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-25 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:57:04 [end_date_ymd] => 2025-04-25 08:57:04 [RateCDR] => 1 ) [2025-04-25 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 05:57:04' and `end` < '2025-04-25 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 08:57:17] Production.INFO: count ==858 [2025-04-25 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-25 05:57:04 - End Time 2025-04-25 08:57:04 [2025-04-25 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985868', 'tblTempUsageDetail_20' ) start [2025-04-25 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985868', 'tblTempUsageDetail_20' ) end [2025-04-25 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985868', 'tblTempVendorCDR_20' ) start [2025-04-25 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985868', 'tblTempVendorCDR_20' ) end [2025-04-25 08:57:17] Production.INFO: ProcessCDR(1,14985868,1,1,2) [2025-04-25 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985868', 'tblTempUsageDetail_20' ) start [2025-04-25 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985868', 'tblTempUsageDetail_20' ) end [2025-04-25 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:57:23] Production.INFO: ==10331== Releasing lock... [2025-04-25 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:57:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-25 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:58:05 [end_date_ymd] => 2025-04-25 08:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:58:05' and `end` < '2025-04-25 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-04-25 08:58:18] Production.INFO: count ==866 [2025-04-25 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:58:05 - End Time 2025-04-25 08:58:05 [2025-04-25 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985873', 'tblTempUsageDetail_20' ) start [2025-04-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985873', 'tblTempUsageDetail_20' ) end [2025-04-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985873', 'tblTempVendorCDR_20' ) start [2025-04-25 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985873', 'tblTempVendorCDR_20' ) end [2025-04-25 08:58:18] Production.INFO: ProcessCDR(1,14985873,1,1,2) [2025-04-25 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985873', 'tblTempUsageDetail_20' ) start [2025-04-25 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985873', 'tblTempUsageDetail_20' ) end [2025-04-25 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:58:23] Production.INFO: ==10451== Releasing lock... [2025-04-25 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-25 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 05:59:05 [end_date_ymd] => 2025-04-25 08:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 05:59:05' and `end` < '2025-04-25 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-04-25 08:59:18] Production.INFO: count ==873 [2025-04-25 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 05:59:05 - End Time 2025-04-25 08:59:05 [2025-04-25 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985878', 'tblTempUsageDetail_20' ) start [2025-04-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985878', 'tblTempUsageDetail_20' ) end [2025-04-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985878', 'tblTempVendorCDR_20' ) start [2025-04-25 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985878', 'tblTempVendorCDR_20' ) end [2025-04-25 08:59:18] Production.INFO: ProcessCDR(1,14985878,1,1,2) [2025-04-25 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985878', 'tblTempUsageDetail_20' ) start [2025-04-25 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985878', 'tblTempUsageDetail_20' ) end [2025-04-25 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 08:59:23] Production.INFO: ==10532== Releasing lock... [2025-04-25 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 08:59:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-25 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:00:06 [end_date_ymd] => 2025-04-25 09:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:00:06' and `end` < '2025-04-25 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-04-25 09:00:19] Production.INFO: count ==889 [2025-04-25 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:00:06 - End Time 2025-04-25 09:00:06 [2025-04-25 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985884', 'tblTempUsageDetail_20' ) start [2025-04-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985884', 'tblTempUsageDetail_20' ) end [2025-04-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985884', 'tblTempVendorCDR_20' ) start [2025-04-25 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985884', 'tblTempVendorCDR_20' ) end [2025-04-25 09:00:19] Production.INFO: ProcessCDR(1,14985884,1,1,2) [2025-04-25 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985884', 'tblTempUsageDetail_20' ) start [2025-04-25 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985884', 'tblTempUsageDetail_20' ) end [2025-04-25 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:00:24] Production.INFO: ==10608== Releasing lock... [2025-04-25 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-25 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:01:05 [end_date_ymd] => 2025-04-25 09:01:05 [RateCDR] => 1 ) [2025-04-25 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:01:05' and `end` < '2025-04-25 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:01:18] Production.INFO: count ==941 [2025-04-25 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:01:05 - End Time 2025-04-25 09:01:05 [2025-04-25 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985889', 'tblTempUsageDetail_20' ) start [2025-04-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985889', 'tblTempUsageDetail_20' ) end [2025-04-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985889', 'tblTempVendorCDR_20' ) start [2025-04-25 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985889', 'tblTempVendorCDR_20' ) end [2025-04-25 09:01:19] Production.INFO: ProcessCDR(1,14985889,1,1,2) [2025-04-25 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985889', 'tblTempUsageDetail_20' ) start [2025-04-25 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985889', 'tblTempUsageDetail_20' ) end [2025-04-25 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:01:23] Production.INFO: ==10705== Releasing lock... [2025-04-25 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:01:23] Production.INFO: 35 MB #Memory Used# [2025-04-25 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:02:05 [end_date_ymd] => 2025-04-25 09:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:02:05' and `end` < '2025-04-25 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-04-25 09:02:18] Production.INFO: count ==944 [2025-04-25 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:02:05 - End Time 2025-04-25 09:02:05 [2025-04-25 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985894', 'tblTempUsageDetail_20' ) start [2025-04-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985894', 'tblTempUsageDetail_20' ) end [2025-04-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985894', 'tblTempVendorCDR_20' ) start [2025-04-25 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985894', 'tblTempVendorCDR_20' ) end [2025-04-25 09:02:18] Production.INFO: ProcessCDR(1,14985894,1,1,2) [2025-04-25 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985894', 'tblTempUsageDetail_20' ) start [2025-04-25 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985894', 'tblTempUsageDetail_20' ) end [2025-04-25 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:02:23] Production.INFO: ==10787== Releasing lock... [2025-04-25 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:03:06 [end_date_ymd] => 2025-04-25 09:03:06 [RateCDR] => 1 ) [2025-04-25 09: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-04-25 06:03:06' and `end` < '2025-04-25 09: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-04-25 09:03:18] Production.INFO: count ==955 [2025-04-25 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:03:06 - End Time 2025-04-25 09:03:06 [2025-04-25 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985899', 'tblTempUsageDetail_20' ) start [2025-04-25 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985899', 'tblTempUsageDetail_20' ) end [2025-04-25 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985899', 'tblTempVendorCDR_20' ) start [2025-04-25 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985899', 'tblTempVendorCDR_20' ) end [2025-04-25 09:03:19] Production.INFO: ProcessCDR(1,14985899,1,1,2) [2025-04-25 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985899', 'tblTempUsageDetail_20' ) start [2025-04-25 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985899', 'tblTempUsageDetail_20' ) end [2025-04-25 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:03:22] Production.INFO: ==10861== Releasing lock... [2025-04-25 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:03:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:04:05 [end_date_ymd] => 2025-04-25 09:04:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:04:05' and `end` < '2025-04-25 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-04-25 09:04:18] Production.INFO: count ==955 [2025-04-25 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:04:05 - End Time 2025-04-25 09:04:05 [2025-04-25 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985904', 'tblTempUsageDetail_20' ) start [2025-04-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985904', 'tblTempUsageDetail_20' ) end [2025-04-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985904', 'tblTempVendorCDR_20' ) start [2025-04-25 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985904', 'tblTempVendorCDR_20' ) end [2025-04-25 09:04:18] Production.INFO: ProcessCDR(1,14985904,1,1,2) [2025-04-25 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985904', 'tblTempUsageDetail_20' ) start [2025-04-25 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985904', 'tblTempUsageDetail_20' ) end [2025-04-25 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:04:23] Production.INFO: ==10939== Releasing lock... [2025-04-25 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:04:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:05:05 [end_date_ymd] => 2025-04-25 09:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:05:05' and `end` < '2025-04-25 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-04-25 09:05:18] Production.INFO: count ==968 [2025-04-25 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:05:05 - End Time 2025-04-25 09:05:05 [2025-04-25 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985909', 'tblTempUsageDetail_20' ) start [2025-04-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985909', 'tblTempUsageDetail_20' ) end [2025-04-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985909', 'tblTempVendorCDR_20' ) start [2025-04-25 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985909', 'tblTempVendorCDR_20' ) end [2025-04-25 09:05:18] Production.INFO: ProcessCDR(1,14985909,1,1,2) [2025-04-25 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985909', 'tblTempUsageDetail_20' ) start [2025-04-25 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985909', 'tblTempUsageDetail_20' ) end [2025-04-25 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:05:23] Production.INFO: ==11017== Releasing lock... [2025-04-25 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:05:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:06:05 [end_date_ymd] => 2025-04-25 09:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:06:05' and `end` < '2025-04-25 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-04-25 09:06:18] Production.INFO: count ==970 [2025-04-25 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:06:05 - End Time 2025-04-25 09:06:05 [2025-04-25 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985914', 'tblTempUsageDetail_20' ) start [2025-04-25 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985914', 'tblTempUsageDetail_20' ) end [2025-04-25 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985914', 'tblTempVendorCDR_20' ) start [2025-04-25 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985914', 'tblTempVendorCDR_20' ) end [2025-04-25 09:06:18] Production.INFO: ProcessCDR(1,14985914,1,1,2) [2025-04-25 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985914', 'tblTempUsageDetail_20' ) start [2025-04-25 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985914', 'tblTempUsageDetail_20' ) end [2025-04-25 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:06:23] Production.INFO: ==11092== Releasing lock... [2025-04-25 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:06:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:07:05 [end_date_ymd] => 2025-04-25 09:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:07:05' and `end` < '2025-04-25 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-04-25 09:07:18] Production.INFO: count ==982 [2025-04-25 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:07:05 - End Time 2025-04-25 09:07:05 [2025-04-25 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985919', 'tblTempUsageDetail_20' ) start [2025-04-25 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985919', 'tblTempUsageDetail_20' ) end [2025-04-25 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985919', 'tblTempVendorCDR_20' ) start [2025-04-25 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985919', 'tblTempVendorCDR_20' ) end [2025-04-25 09:07:18] Production.INFO: ProcessCDR(1,14985919,1,1,2) [2025-04-25 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985919', 'tblTempUsageDetail_20' ) start [2025-04-25 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985919', 'tblTempUsageDetail_20' ) end [2025-04-25 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:07:23] Production.INFO: ==11168== Releasing lock... [2025-04-25 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:07:23] Production.INFO: 36 MB #Memory Used# [2025-04-25 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:08:05 [end_date_ymd] => 2025-04-25 09:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:08:05' and `end` < '2025-04-25 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-04-25 09:08:18] Production.INFO: count ==986 [2025-04-25 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:08:05 - End Time 2025-04-25 09:08:05 [2025-04-25 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985924', 'tblTempUsageDetail_20' ) start [2025-04-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985924', 'tblTempUsageDetail_20' ) end [2025-04-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985924', 'tblTempVendorCDR_20' ) start [2025-04-25 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985924', 'tblTempVendorCDR_20' ) end [2025-04-25 09:08:18] Production.INFO: ProcessCDR(1,14985924,1,1,2) [2025-04-25 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985924', 'tblTempUsageDetail_20' ) start [2025-04-25 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985924', 'tblTempUsageDetail_20' ) end [2025-04-25 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:08:23] Production.INFO: ==11243== Releasing lock... [2025-04-25 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-25 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:09:05 [end_date_ymd] => 2025-04-25 09:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:09:05' and `end` < '2025-04-25 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-04-25 09:09:18] Production.INFO: count ==994 [2025-04-25 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:09:05 - End Time 2025-04-25 09:09:05 [2025-04-25 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985929', 'tblTempUsageDetail_20' ) start [2025-04-25 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985929', 'tblTempUsageDetail_20' ) end [2025-04-25 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985929', 'tblTempVendorCDR_20' ) start [2025-04-25 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985929', 'tblTempVendorCDR_20' ) end [2025-04-25 09:09:18] Production.INFO: ProcessCDR(1,14985929,1,1,2) [2025-04-25 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985929', 'tblTempUsageDetail_20' ) start [2025-04-25 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985929', 'tblTempUsageDetail_20' ) end [2025-04-25 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:09:23] Production.INFO: ==11323== Releasing lock... [2025-04-25 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:09:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-25 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:10:06 [end_date_ymd] => 2025-04-25 09:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:10:06' and `end` < '2025-04-25 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-04-25 09:10:19] Production.INFO: count ==1015 [2025-04-25 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:10:06 - End Time 2025-04-25 09:10:06 [2025-04-25 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985935', 'tblTempUsageDetail_20' ) start [2025-04-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985935', 'tblTempUsageDetail_20' ) end [2025-04-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985935', 'tblTempVendorCDR_20' ) start [2025-04-25 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985935', 'tblTempVendorCDR_20' ) end [2025-04-25 09:10:19] Production.INFO: ProcessCDR(1,14985935,1,1,2) [2025-04-25 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985935', 'tblTempUsageDetail_20' ) start [2025-04-25 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985935', 'tblTempUsageDetail_20' ) end [2025-04-25 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:10:24] Production.INFO: ==11400== Releasing lock... [2025-04-25 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:10:24] Production.INFO: 36 MB #Memory Used# [2025-04-25 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:11:05 [end_date_ymd] => 2025-04-25 09:11:05 [RateCDR] => 1 ) [2025-04-25 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:11:05' and `end` < '2025-04-25 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:11:18] Production.INFO: count ==1072 [2025-04-25 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:11:05 - End Time 2025-04-25 09:11:05 [2025-04-25 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985940', 'tblTempUsageDetail_20' ) start [2025-04-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985940', 'tblTempUsageDetail_20' ) end [2025-04-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985940', 'tblTempVendorCDR_20' ) start [2025-04-25 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985940', 'tblTempVendorCDR_20' ) end [2025-04-25 09:11:19] Production.INFO: ProcessCDR(1,14985940,1,1,2) [2025-04-25 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985940', 'tblTempUsageDetail_20' ) start [2025-04-25 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985940', 'tblTempUsageDetail_20' ) end [2025-04-25 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:11:23] Production.INFO: ==11474== Releasing lock... [2025-04-25 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-25 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:12:05 [end_date_ymd] => 2025-04-25 09:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:12:05' and `end` < '2025-04-25 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-04-25 09:12:18] Production.INFO: count ==1083 [2025-04-25 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:12:05 - End Time 2025-04-25 09:12:05 [2025-04-25 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985945', 'tblTempUsageDetail_20' ) start [2025-04-25 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985945', 'tblTempUsageDetail_20' ) end [2025-04-25 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985945', 'tblTempVendorCDR_20' ) start [2025-04-25 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985945', 'tblTempVendorCDR_20' ) end [2025-04-25 09:12:19] Production.INFO: ProcessCDR(1,14985945,1,1,2) [2025-04-25 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985945', 'tblTempUsageDetail_20' ) start [2025-04-25 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985945', 'tblTempUsageDetail_20' ) end [2025-04-25 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:12:23] Production.INFO: ==11551== Releasing lock... [2025-04-25 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:12:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-25 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:13:05 [end_date_ymd] => 2025-04-25 09:13:05 [RateCDR] => 1 ) [2025-04-25 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:13:05' and `end` < '2025-04-25 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:13:18] Production.INFO: count ==1107 [2025-04-25 09:13:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:13:05 - End Time 2025-04-25 09:13:05 [2025-04-25 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985950', 'tblTempUsageDetail_20' ) start [2025-04-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985950', 'tblTempUsageDetail_20' ) end [2025-04-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985950', 'tblTempVendorCDR_20' ) start [2025-04-25 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985950', 'tblTempVendorCDR_20' ) end [2025-04-25 09:13:19] Production.INFO: ProcessCDR(1,14985950,1,1,2) [2025-04-25 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985950', 'tblTempUsageDetail_20' ) start [2025-04-25 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985950', 'tblTempUsageDetail_20' ) end [2025-04-25 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:13:24] Production.INFO: ==11627== Releasing lock... [2025-04-25 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:13:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-25 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:14:05 [end_date_ymd] => 2025-04-25 09:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:14:05' and `end` < '2025-04-25 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-04-25 09:14:18] Production.INFO: count ==1110 [2025-04-25 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:14:05 - End Time 2025-04-25 09:14:05 [2025-04-25 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985955', 'tblTempUsageDetail_20' ) start [2025-04-25 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985955', 'tblTempUsageDetail_20' ) end [2025-04-25 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985955', 'tblTempVendorCDR_20' ) start [2025-04-25 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985955', 'tblTempVendorCDR_20' ) end [2025-04-25 09:14:19] Production.INFO: ProcessCDR(1,14985955,1,1,2) [2025-04-25 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985955', 'tblTempUsageDetail_20' ) start [2025-04-25 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985955', 'tblTempUsageDetail_20' ) end [2025-04-25 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:14:22] Production.INFO: ==11750== Releasing lock... [2025-04-25 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-25 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:15:05 [end_date_ymd] => 2025-04-25 09:15:05 [RateCDR] => 1 ) [2025-04-25 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:15:05' and `end` < '2025-04-25 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:15:18] Production.INFO: count ==1138 [2025-04-25 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:15:05 - End Time 2025-04-25 09:15:05 [2025-04-25 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985960', 'tblTempUsageDetail_20' ) start [2025-04-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985960', 'tblTempUsageDetail_20' ) end [2025-04-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985960', 'tblTempVendorCDR_20' ) start [2025-04-25 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985960', 'tblTempVendorCDR_20' ) end [2025-04-25 09:15:19] Production.INFO: ProcessCDR(1,14985960,1,1,2) [2025-04-25 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985960', 'tblTempUsageDetail_20' ) start [2025-04-25 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985960', 'tblTempUsageDetail_20' ) end [2025-04-25 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:15:24] Production.INFO: ==11826== Releasing lock... [2025-04-25 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:15:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-25 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:16:05 [end_date_ymd] => 2025-04-25 09:16:05 [RateCDR] => 1 ) [2025-04-25 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:16:05' and `end` < '2025-04-25 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-04-25 09:16:18] Production.INFO: count ==1154 [2025-04-25 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:16:05 - End Time 2025-04-25 09:16:05 [2025-04-25 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985965', 'tblTempUsageDetail_20' ) start [2025-04-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985965', 'tblTempUsageDetail_20' ) end [2025-04-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985965', 'tblTempVendorCDR_20' ) start [2025-04-25 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985965', 'tblTempVendorCDR_20' ) end [2025-04-25 09:16:18] Production.INFO: ProcessCDR(1,14985965,1,1,2) [2025-04-25 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985965', 'tblTempUsageDetail_20' ) start [2025-04-25 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985965', 'tblTempUsageDetail_20' ) end [2025-04-25 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:16:23] Production.INFO: ==11897== Releasing lock... [2025-04-25 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-25 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:17:05 [end_date_ymd] => 2025-04-25 09:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:17:05' and `end` < '2025-04-25 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:17:19] Production.INFO: count ==1172 [2025-04-25 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:17:05 - End Time 2025-04-25 09:17:05 [2025-04-25 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985970', 'tblTempUsageDetail_20' ) start [2025-04-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985970', 'tblTempUsageDetail_20' ) end [2025-04-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985970', 'tblTempVendorCDR_20' ) start [2025-04-25 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985970', 'tblTempVendorCDR_20' ) end [2025-04-25 09:17:19] Production.INFO: ProcessCDR(1,14985970,1,1,2) [2025-04-25 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985970', 'tblTempUsageDetail_20' ) start [2025-04-25 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985970', 'tblTempUsageDetail_20' ) end [2025-04-25 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:17:24] Production.INFO: ==11971== Releasing lock... [2025-04-25 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-25 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:18:05 [end_date_ymd] => 2025-04-25 09:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:18:05' and `end` < '2025-04-25 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-04-25 09:18:18] Production.INFO: count ==1183 [2025-04-25 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:18:05 - End Time 2025-04-25 09:18:05 [2025-04-25 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985975', 'tblTempUsageDetail_20' ) start [2025-04-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985975', 'tblTempUsageDetail_20' ) end [2025-04-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985975', 'tblTempVendorCDR_20' ) start [2025-04-25 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985975', 'tblTempVendorCDR_20' ) end [2025-04-25 09:18:18] Production.INFO: ProcessCDR(1,14985975,1,1,2) [2025-04-25 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985975', 'tblTempUsageDetail_20' ) start [2025-04-25 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985975', 'tblTempUsageDetail_20' ) end [2025-04-25 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:18:23] Production.INFO: ==12056== Releasing lock... [2025-04-25 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:18:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:19:05 [end_date_ymd] => 2025-04-25 09:19:05 [RateCDR] => 1 ) [2025-04-25 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:19:05' and `end` < '2025-04-25 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:19:18] Production.INFO: count ==1210 [2025-04-25 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:19:05 - End Time 2025-04-25 09:19:05 [2025-04-25 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985980', 'tblTempUsageDetail_20' ) start [2025-04-25 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985980', 'tblTempUsageDetail_20' ) end [2025-04-25 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985980', 'tblTempVendorCDR_20' ) start [2025-04-25 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985980', 'tblTempVendorCDR_20' ) end [2025-04-25 09:19:18] Production.INFO: ProcessCDR(1,14985980,1,1,2) [2025-04-25 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985980', 'tblTempUsageDetail_20' ) start [2025-04-25 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985980', 'tblTempUsageDetail_20' ) end [2025-04-25 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:19:23] Production.INFO: ==12141== Releasing lock... [2025-04-25 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-25 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:20:05 [end_date_ymd] => 2025-04-25 09:20:05 [RateCDR] => 1 ) [2025-04-25 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:20:05' and `end` < '2025-04-25 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:20:18] Production.INFO: count ==1238 [2025-04-25 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:20:05 - End Time 2025-04-25 09:20:05 [2025-04-25 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985986', 'tblTempUsageDetail_20' ) start [2025-04-25 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985986', 'tblTempUsageDetail_20' ) end [2025-04-25 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985986', 'tblTempVendorCDR_20' ) start [2025-04-25 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985986', 'tblTempVendorCDR_20' ) end [2025-04-25 09:20:19] Production.INFO: ProcessCDR(1,14985986,1,1,2) [2025-04-25 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985986', 'tblTempUsageDetail_20' ) start [2025-04-25 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985986', 'tblTempUsageDetail_20' ) end [2025-04-25 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:20:24] Production.INFO: ==12220== Releasing lock... [2025-04-25 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-25 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:21:05 [end_date_ymd] => 2025-04-25 09:21:05 [RateCDR] => 1 ) [2025-04-25 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:21:05' and `end` < '2025-04-25 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:21:18] Production.INFO: count ==1362 [2025-04-25 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:21:05 - End Time 2025-04-25 09:21:05 [2025-04-25 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985991', 'tblTempUsageDetail_20' ) start [2025-04-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985991', 'tblTempUsageDetail_20' ) end [2025-04-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985991', 'tblTempVendorCDR_20' ) start [2025-04-25 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985991', 'tblTempVendorCDR_20' ) end [2025-04-25 09:21:18] Production.INFO: ProcessCDR(1,14985991,1,1,2) [2025-04-25 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985991', 'tblTempUsageDetail_20' ) start [2025-04-25 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985991', 'tblTempUsageDetail_20' ) end [2025-04-25 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:21:23] Production.INFO: ==12292== Releasing lock... [2025-04-25 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:21:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:22:05 [end_date_ymd] => 2025-04-25 09:22:05 [RateCDR] => 1 ) [2025-04-25 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:22:05' and `end` < '2025-04-25 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:22:18] Production.INFO: count ==1389 [2025-04-25 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:22:05 - End Time 2025-04-25 09:22:05 [2025-04-25 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985996', 'tblTempUsageDetail_20' ) start [2025-04-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14985996', 'tblTempUsageDetail_20' ) end [2025-04-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985996', 'tblTempVendorCDR_20' ) start [2025-04-25 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14985996', 'tblTempVendorCDR_20' ) end [2025-04-25 09:22:19] Production.INFO: ProcessCDR(1,14985996,1,1,2) [2025-04-25 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14985996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14985996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14985996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14985996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985996', 'tblTempUsageDetail_20' ) start [2025-04-25 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14985996', 'tblTempUsageDetail_20' ) end [2025-04-25 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:22:24] Production.INFO: ==12369== Releasing lock... [2025-04-25 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:22:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-25 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:23:05 [end_date_ymd] => 2025-04-25 09:23:05 [RateCDR] => 1 ) [2025-04-25 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:23:05' and `end` < '2025-04-25 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:23:18] Production.INFO: count ==1390 [2025-04-25 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:23:05 - End Time 2025-04-25 09:23:05 [2025-04-25 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986001', 'tblTempUsageDetail_20' ) start [2025-04-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986001', 'tblTempUsageDetail_20' ) end [2025-04-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986001', 'tblTempVendorCDR_20' ) start [2025-04-25 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986001', 'tblTempVendorCDR_20' ) end [2025-04-25 09:23:18] Production.INFO: ProcessCDR(1,14986001,1,1,2) [2025-04-25 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986001', 'tblTempUsageDetail_20' ) start [2025-04-25 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986001', 'tblTempUsageDetail_20' ) end [2025-04-25 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:23:21] Production.INFO: ==12438== Releasing lock... [2025-04-25 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:23:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-25 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:24:05 [end_date_ymd] => 2025-04-25 09:24:05 [RateCDR] => 1 ) [2025-04-25 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:24:05' and `end` < '2025-04-25 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:24:18] Production.INFO: count ==1402 [2025-04-25 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:24:05 - End Time 2025-04-25 09:24:05 [2025-04-25 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986006', 'tblTempUsageDetail_20' ) start [2025-04-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986006', 'tblTempUsageDetail_20' ) end [2025-04-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986006', 'tblTempVendorCDR_20' ) start [2025-04-25 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986006', 'tblTempVendorCDR_20' ) end [2025-04-25 09:24:19] Production.INFO: ProcessCDR(1,14986006,1,1,2) [2025-04-25 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986006', 'tblTempUsageDetail_20' ) start [2025-04-25 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986006', 'tblTempUsageDetail_20' ) end [2025-04-25 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:24:24] Production.INFO: ==12513== Releasing lock... [2025-04-25 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:24:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-25 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:25:04 [end_date_ymd] => 2025-04-25 09:25:04 [RateCDR] => 1 ) [2025-04-25 09: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-04-25 06:25:04' and `end` < '2025-04-25 09: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-04-25 09:25:17] Production.INFO: count ==1415 [2025-04-25 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:25:04 - End Time 2025-04-25 09:25:04 [2025-04-25 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986011', 'tblTempUsageDetail_20' ) start [2025-04-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986011', 'tblTempUsageDetail_20' ) end [2025-04-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986011', 'tblTempVendorCDR_20' ) start [2025-04-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986011', 'tblTempVendorCDR_20' ) end [2025-04-25 09:25:18] Production.INFO: ProcessCDR(1,14986011,1,1,2) [2025-04-25 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986011', 'tblTempUsageDetail_20' ) start [2025-04-25 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986011', 'tblTempUsageDetail_20' ) end [2025-04-25 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:25:23] Production.INFO: ==12594== Releasing lock... [2025-04-25 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:25:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-25 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:26:05 [end_date_ymd] => 2025-04-25 09:26:05 [RateCDR] => 1 ) [2025-04-25 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:26:05' and `end` < '2025-04-25 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:26:18] Production.INFO: count ==1435 [2025-04-25 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:26:05 - End Time 2025-04-25 09:26:05 [2025-04-25 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986016', 'tblTempUsageDetail_20' ) start [2025-04-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986016', 'tblTempUsageDetail_20' ) end [2025-04-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986016', 'tblTempVendorCDR_20' ) start [2025-04-25 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986016', 'tblTempVendorCDR_20' ) end [2025-04-25 09:26:18] Production.INFO: ProcessCDR(1,14986016,1,1,2) [2025-04-25 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986016', 'tblTempUsageDetail_20' ) start [2025-04-25 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986016', 'tblTempUsageDetail_20' ) end [2025-04-25 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:26:23] Production.INFO: ==12669== Releasing lock... [2025-04-25 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:26:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-25 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:27:05 [end_date_ymd] => 2025-04-25 09:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:27:05' and `end` < '2025-04-25 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-04-25 09:27:18] Production.INFO: count ==1445 [2025-04-25 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:27:05 - End Time 2025-04-25 09:27:05 [2025-04-25 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986021', 'tblTempUsageDetail_20' ) start [2025-04-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986021', 'tblTempUsageDetail_20' ) end [2025-04-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986021', 'tblTempVendorCDR_20' ) start [2025-04-25 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986021', 'tblTempVendorCDR_20' ) end [2025-04-25 09:27:19] Production.INFO: ProcessCDR(1,14986021,1,1,2) [2025-04-25 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986021', 'tblTempUsageDetail_20' ) start [2025-04-25 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986021', 'tblTempUsageDetail_20' ) end [2025-04-25 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:27:24] Production.INFO: ==12742== Releasing lock... [2025-04-25 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:27:24] Production.INFO: 39 MB #Memory Used# [2025-04-25 09:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:28:04 [end_date_ymd] => 2025-04-25 09:28:04 [RateCDR] => 1 ) [2025-04-25 09:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:28:04' and `end` < '2025-04-25 09:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:28:17] Production.INFO: count ==1460 [2025-04-25 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:28:04 - End Time 2025-04-25 09:28:04 [2025-04-25 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986026', 'tblTempUsageDetail_20' ) start [2025-04-25 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986026', 'tblTempUsageDetail_20' ) end [2025-04-25 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986026', 'tblTempVendorCDR_20' ) start [2025-04-25 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986026', 'tblTempVendorCDR_20' ) end [2025-04-25 09:28:18] Production.INFO: ProcessCDR(1,14986026,1,1,2) [2025-04-25 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986026', 'tblTempUsageDetail_20' ) start [2025-04-25 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986026', 'tblTempUsageDetail_20' ) end [2025-04-25 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:28:23] Production.INFO: ==12817== Releasing lock... [2025-04-25 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:28:23] Production.INFO: 39 MB #Memory Used# [2025-04-25 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:29:05 [end_date_ymd] => 2025-04-25 09:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:29:05' and `end` < '2025-04-25 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-04-25 09:29:18] Production.INFO: count ==1490 [2025-04-25 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:29:05 - End Time 2025-04-25 09:29:05 [2025-04-25 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986031', 'tblTempUsageDetail_20' ) start [2025-04-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986031', 'tblTempUsageDetail_20' ) end [2025-04-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986031', 'tblTempVendorCDR_20' ) start [2025-04-25 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986031', 'tblTempVendorCDR_20' ) end [2025-04-25 09:29:19] Production.INFO: ProcessCDR(1,14986031,1,1,2) [2025-04-25 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986031', 'tblTempUsageDetail_20' ) start [2025-04-25 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986031', 'tblTempUsageDetail_20' ) end [2025-04-25 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:29:24] Production.INFO: ==12932== Releasing lock... [2025-04-25 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:29:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-25 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:30:05 [end_date_ymd] => 2025-04-25 09:30:05 [RateCDR] => 1 ) [2025-04-25 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:30:05' and `end` < '2025-04-25 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:30:18] Production.INFO: count ==1506 [2025-04-25 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:30:05 - End Time 2025-04-25 09:30:05 [2025-04-25 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986036', 'tblTempUsageDetail_20' ) start [2025-04-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986036', 'tblTempUsageDetail_20' ) end [2025-04-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986036', 'tblTempVendorCDR_20' ) start [2025-04-25 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986036', 'tblTempVendorCDR_20' ) end [2025-04-25 09:30:19] Production.INFO: ProcessCDR(1,14986036,1,1,2) [2025-04-25 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986036', 'tblTempUsageDetail_20' ) start [2025-04-25 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986036', 'tblTempUsageDetail_20' ) end [2025-04-25 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:30:23] Production.INFO: ==13006== Releasing lock... [2025-04-25 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:30:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:31:05 [end_date_ymd] => 2025-04-25 09:31:05 [RateCDR] => 1 ) [2025-04-25 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:31:05' and `end` < '2025-04-25 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:31:18] Production.INFO: count ==1615 [2025-04-25 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:31:05 - End Time 2025-04-25 09:31:05 [2025-04-25 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986042', 'tblTempUsageDetail_20' ) start [2025-04-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986042', 'tblTempUsageDetail_20' ) end [2025-04-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986042', 'tblTempVendorCDR_20' ) start [2025-04-25 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986042', 'tblTempVendorCDR_20' ) end [2025-04-25 09:31:19] Production.INFO: ProcessCDR(1,14986042,1,1,2) [2025-04-25 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986042', 'tblTempUsageDetail_20' ) start [2025-04-25 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986042', 'tblTempUsageDetail_20' ) end [2025-04-25 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:31:24] Production.INFO: ==13091== Releasing lock... [2025-04-25 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:31:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:32:05 [end_date_ymd] => 2025-04-25 09:32:05 [RateCDR] => 1 ) [2025-04-25 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:32:05' and `end` < '2025-04-25 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:32:18] Production.INFO: count ==1635 [2025-04-25 09:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:32:05 - End Time 2025-04-25 09:32:05 [2025-04-25 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986047', 'tblTempUsageDetail_20' ) start [2025-04-25 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986047', 'tblTempUsageDetail_20' ) end [2025-04-25 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986047', 'tblTempVendorCDR_20' ) start [2025-04-25 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986047', 'tblTempVendorCDR_20' ) end [2025-04-25 09:32:18] Production.INFO: ProcessCDR(1,14986047,1,1,2) [2025-04-25 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986047', 'tblTempUsageDetail_20' ) start [2025-04-25 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986047', 'tblTempUsageDetail_20' ) end [2025-04-25 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:32:24] Production.INFO: ==13164== Releasing lock... [2025-04-25 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:32:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-25 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:33:05 [end_date_ymd] => 2025-04-25 09:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:33:05' and `end` < '2025-04-25 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-04-25 09:33:18] Production.INFO: count ==1644 [2025-04-25 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:33:05 - End Time 2025-04-25 09:33:05 [2025-04-25 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986052', 'tblTempUsageDetail_20' ) start [2025-04-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986052', 'tblTempUsageDetail_20' ) end [2025-04-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986052', 'tblTempVendorCDR_20' ) start [2025-04-25 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986052', 'tblTempVendorCDR_20' ) end [2025-04-25 09:33:19] Production.INFO: ProcessCDR(1,14986052,1,1,2) [2025-04-25 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986052', 'tblTempUsageDetail_20' ) start [2025-04-25 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986052', 'tblTempUsageDetail_20' ) end [2025-04-25 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:33:24] Production.INFO: ==13236== Releasing lock... [2025-04-25 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:33:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:34:05 [end_date_ymd] => 2025-04-25 09:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:34:05' and `end` < '2025-04-25 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-04-25 09:34:18] Production.INFO: count ==1652 [2025-04-25 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:34:05 - End Time 2025-04-25 09:34:05 [2025-04-25 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986057', 'tblTempUsageDetail_20' ) start [2025-04-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986057', 'tblTempUsageDetail_20' ) end [2025-04-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986057', 'tblTempVendorCDR_20' ) start [2025-04-25 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986057', 'tblTempVendorCDR_20' ) end [2025-04-25 09:34:19] Production.INFO: ProcessCDR(1,14986057,1,1,2) [2025-04-25 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986057', 'tblTempUsageDetail_20' ) start [2025-04-25 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986057', 'tblTempUsageDetail_20' ) end [2025-04-25 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:34:24] Production.INFO: ==13310== Releasing lock... [2025-04-25 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:34:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:35:05 [end_date_ymd] => 2025-04-25 09:35:05 [RateCDR] => 1 ) [2025-04-25 09: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-04-25 06:35:05' and `end` < '2025-04-25 09: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-04-25 09:35:18] Production.INFO: count ==1669 [2025-04-25 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:35:05 - End Time 2025-04-25 09:35:05 [2025-04-25 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986062', 'tblTempUsageDetail_20' ) start [2025-04-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986062', 'tblTempUsageDetail_20' ) end [2025-04-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986062', 'tblTempVendorCDR_20' ) start [2025-04-25 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986062', 'tblTempVendorCDR_20' ) end [2025-04-25 09:35:19] Production.INFO: ProcessCDR(1,14986062,1,1,2) [2025-04-25 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986062', 'tblTempUsageDetail_20' ) start [2025-04-25 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986062', 'tblTempUsageDetail_20' ) end [2025-04-25 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:35:24] Production.INFO: ==13386== Releasing lock... [2025-04-25 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:35:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:36:05 [end_date_ymd] => 2025-04-25 09:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:36:05' and `end` < '2025-04-25 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-04-25 09:36:18] Production.INFO: count ==1688 [2025-04-25 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:36:05 - End Time 2025-04-25 09:36:05 [2025-04-25 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986067', 'tblTempUsageDetail_20' ) start [2025-04-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986067', 'tblTempUsageDetail_20' ) end [2025-04-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986067', 'tblTempVendorCDR_20' ) start [2025-04-25 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986067', 'tblTempVendorCDR_20' ) end [2025-04-25 09:36:19] Production.INFO: ProcessCDR(1,14986067,1,1,2) [2025-04-25 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986067', 'tblTempUsageDetail_20' ) start [2025-04-25 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986067', 'tblTempUsageDetail_20' ) end [2025-04-25 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:36:24] Production.INFO: ==13464== Releasing lock... [2025-04-25 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:36:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:37:05 [end_date_ymd] => 2025-04-25 09:37:05 [RateCDR] => 1 ) [2025-04-25 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:37:05' and `end` < '2025-04-25 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:37:18] Production.INFO: count ==1705 [2025-04-25 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:37:05 - End Time 2025-04-25 09:37:05 [2025-04-25 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986072', 'tblTempUsageDetail_20' ) start [2025-04-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986072', 'tblTempUsageDetail_20' ) end [2025-04-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986072', 'tblTempVendorCDR_20' ) start [2025-04-25 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986072', 'tblTempVendorCDR_20' ) end [2025-04-25 09:37:19] Production.INFO: ProcessCDR(1,14986072,1,1,2) [2025-04-25 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986072', 'tblTempUsageDetail_20' ) start [2025-04-25 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986072', 'tblTempUsageDetail_20' ) end [2025-04-25 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:37:24] Production.INFO: ==13543== Releasing lock... [2025-04-25 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:37:24] Production.INFO: 41 MB #Memory Used# [2025-04-25 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:38:05 [end_date_ymd] => 2025-04-25 09:38:05 [RateCDR] => 1 ) [2025-04-25 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:38:05' and `end` < '2025-04-25 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:38:18] Production.INFO: count ==1722 [2025-04-25 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:38:05 - End Time 2025-04-25 09:38:05 [2025-04-25 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986077', 'tblTempUsageDetail_20' ) start [2025-04-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986077', 'tblTempUsageDetail_20' ) end [2025-04-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986077', 'tblTempVendorCDR_20' ) start [2025-04-25 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986077', 'tblTempVendorCDR_20' ) end [2025-04-25 09:38:19] Production.INFO: ProcessCDR(1,14986077,1,1,2) [2025-04-25 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986077', 'tblTempUsageDetail_20' ) start [2025-04-25 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986077', 'tblTempUsageDetail_20' ) end [2025-04-25 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:38:24] Production.INFO: ==13617== Releasing lock... [2025-04-25 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:38:24] Production.INFO: 41 MB #Memory Used# [2025-04-25 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:39:04 [end_date_ymd] => 2025-04-25 09:39:04 [RateCDR] => 1 ) [2025-04-25 09: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-04-25 06:39:04' and `end` < '2025-04-25 09: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-04-25 09:39:18] Production.INFO: count ==1736 [2025-04-25 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:39:04 - End Time 2025-04-25 09:39:04 [2025-04-25 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986082', 'tblTempUsageDetail_20' ) start [2025-04-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986082', 'tblTempUsageDetail_20' ) end [2025-04-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986082', 'tblTempVendorCDR_20' ) start [2025-04-25 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986082', 'tblTempVendorCDR_20' ) end [2025-04-25 09:39:18] Production.INFO: ProcessCDR(1,14986082,1,1,2) [2025-04-25 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986082', 'tblTempUsageDetail_20' ) start [2025-04-25 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986082', 'tblTempUsageDetail_20' ) end [2025-04-25 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:39:23] Production.INFO: ==13693== Releasing lock... [2025-04-25 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:40:05 [end_date_ymd] => 2025-04-25 09:40:05 [RateCDR] => 1 ) [2025-04-25 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:40:05' and `end` < '2025-04-25 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:40:19] Production.INFO: count ==1760 [2025-04-25 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:40:05 - End Time 2025-04-25 09:40:05 [2025-04-25 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986087', 'tblTempUsageDetail_20' ) start [2025-04-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986087', 'tblTempUsageDetail_20' ) end [2025-04-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986087', 'tblTempVendorCDR_20' ) start [2025-04-25 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986087', 'tblTempVendorCDR_20' ) end [2025-04-25 09:40:19] Production.INFO: ProcessCDR(1,14986087,1,1,2) [2025-04-25 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986087', 'tblTempUsageDetail_20' ) start [2025-04-25 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986087', 'tblTempUsageDetail_20' ) end [2025-04-25 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:40:24] Production.INFO: ==13767== Releasing lock... [2025-04-25 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:40:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:41:05 [end_date_ymd] => 2025-04-25 09:41:05 [RateCDR] => 1 ) [2025-04-25 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:41:05' and `end` < '2025-04-25 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:41:19] Production.INFO: count ==1886 [2025-04-25 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:41:05 - End Time 2025-04-25 09:41:05 [2025-04-25 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986093', 'tblTempUsageDetail_20' ) start [2025-04-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986093', 'tblTempUsageDetail_20' ) end [2025-04-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986093', 'tblTempVendorCDR_20' ) start [2025-04-25 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986093', 'tblTempVendorCDR_20' ) end [2025-04-25 09:41:19] Production.INFO: ProcessCDR(1,14986093,1,1,2) [2025-04-25 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986093', 'tblTempUsageDetail_20' ) start [2025-04-25 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986093', 'tblTempUsageDetail_20' ) end [2025-04-25 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:41:25] Production.INFO: ==13842== Releasing lock... [2025-04-25 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:41:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:42:05 [end_date_ymd] => 2025-04-25 09:42:05 [RateCDR] => 1 ) [2025-04-25 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:42:05' and `end` < '2025-04-25 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:42:19] Production.INFO: count ==1893 [2025-04-25 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:42:05 - End Time 2025-04-25 09:42:05 [2025-04-25 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986098', 'tblTempUsageDetail_20' ) start [2025-04-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986098', 'tblTempUsageDetail_20' ) end [2025-04-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986098', 'tblTempVendorCDR_20' ) start [2025-04-25 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986098', 'tblTempVendorCDR_20' ) end [2025-04-25 09:42:19] Production.INFO: ProcessCDR(1,14986098,1,1,2) [2025-04-25 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986098', 'tblTempUsageDetail_20' ) start [2025-04-25 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986098', 'tblTempUsageDetail_20' ) end [2025-04-25 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:42:24] Production.INFO: ==13922== Releasing lock... [2025-04-25 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:42:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-25 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:43:05 [end_date_ymd] => 2025-04-25 09:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:43:05' and `end` < '2025-04-25 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-04-25 09:43:19] Production.INFO: count ==1914 [2025-04-25 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:43:05 - End Time 2025-04-25 09:43:05 [2025-04-25 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986103', 'tblTempUsageDetail_20' ) start [2025-04-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986103', 'tblTempUsageDetail_20' ) end [2025-04-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986103', 'tblTempVendorCDR_20' ) start [2025-04-25 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986103', 'tblTempVendorCDR_20' ) end [2025-04-25 09:43:19] Production.INFO: ProcessCDR(1,14986103,1,1,2) [2025-04-25 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986103', 'tblTempUsageDetail_20' ) start [2025-04-25 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986103', 'tblTempUsageDetail_20' ) end [2025-04-25 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:43:25] Production.INFO: ==14004== Releasing lock... [2025-04-25 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:43:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-25 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:44:05 [end_date_ymd] => 2025-04-25 09:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:44:05' and `end` < '2025-04-25 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-04-25 09:44:19] Production.INFO: count ==1928 [2025-04-25 09:44:20] Production.ERROR: pbx CDR StartTime 2025-04-25 06:44:05 - End Time 2025-04-25 09:44:05 [2025-04-25 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986108', 'tblTempUsageDetail_20' ) start [2025-04-25 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986108', 'tblTempUsageDetail_20' ) end [2025-04-25 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986108', 'tblTempVendorCDR_20' ) start [2025-04-25 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986108', 'tblTempVendorCDR_20' ) end [2025-04-25 09:44:20] Production.INFO: ProcessCDR(1,14986108,1,1,2) [2025-04-25 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986108', 'tblTempUsageDetail_20' ) start [2025-04-25 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986108', 'tblTempUsageDetail_20' ) end [2025-04-25 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:44:25] Production.INFO: ==14079== Releasing lock... [2025-04-25 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:44:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-25 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:45:05 [end_date_ymd] => 2025-04-25 09:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:45:05' and `end` < '2025-04-25 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-04-25 09:45:19] Production.INFO: count ==1947 [2025-04-25 09:45:20] Production.ERROR: pbx CDR StartTime 2025-04-25 06:45:05 - End Time 2025-04-25 09:45:05 [2025-04-25 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986113', 'tblTempUsageDetail_20' ) start [2025-04-25 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986113', 'tblTempUsageDetail_20' ) end [2025-04-25 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986113', 'tblTempVendorCDR_20' ) start [2025-04-25 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986113', 'tblTempVendorCDR_20' ) end [2025-04-25 09:45:20] Production.INFO: ProcessCDR(1,14986113,1,1,2) [2025-04-25 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986113', 'tblTempUsageDetail_20' ) start [2025-04-25 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986113', 'tblTempUsageDetail_20' ) end [2025-04-25 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:45:25] Production.INFO: ==14191== Releasing lock... [2025-04-25 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:45:25] Production.INFO: 43 MB #Memory Used# [2025-04-25 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:46:05 [end_date_ymd] => 2025-04-25 09:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:46:05' and `end` < '2025-04-25 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-04-25 09:46:19] Production.INFO: count ==1977 [2025-04-25 09:46:20] Production.ERROR: pbx CDR StartTime 2025-04-25 06:46:05 - End Time 2025-04-25 09:46:05 [2025-04-25 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986118', 'tblTempUsageDetail_20' ) start [2025-04-25 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986118', 'tblTempUsageDetail_20' ) end [2025-04-25 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986118', 'tblTempVendorCDR_20' ) start [2025-04-25 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986118', 'tblTempVendorCDR_20' ) end [2025-04-25 09:46:20] Production.INFO: ProcessCDR(1,14986118,1,1,2) [2025-04-25 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986118', 'tblTempUsageDetail_20' ) start [2025-04-25 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986118', 'tblTempUsageDetail_20' ) end [2025-04-25 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:46:26] Production.INFO: ==14267== Releasing lock... [2025-04-25 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:46:26] Production.INFO: 43 MB #Memory Used# [2025-04-25 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:47:05 [end_date_ymd] => 2025-04-25 09:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:47:05' and `end` < '2025-04-25 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-04-25 09:47:19] Production.INFO: count ==1992 [2025-04-25 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:47:05 - End Time 2025-04-25 09:47:05 [2025-04-25 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986123', 'tblTempUsageDetail_20' ) start [2025-04-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986123', 'tblTempUsageDetail_20' ) end [2025-04-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986123', 'tblTempVendorCDR_20' ) start [2025-04-25 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986123', 'tblTempVendorCDR_20' ) end [2025-04-25 09:47:19] Production.INFO: ProcessCDR(1,14986123,1,1,2) [2025-04-25 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986123', 'tblTempUsageDetail_20' ) start [2025-04-25 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986123', 'tblTempUsageDetail_20' ) end [2025-04-25 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:47:24] Production.INFO: ==14344== Releasing lock... [2025-04-25 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:47:24] Production.INFO: 43 MB #Memory Used# [2025-04-25 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:48:05 [end_date_ymd] => 2025-04-25 09:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:48:05' and `end` < '2025-04-25 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-04-25 09:48:19] Production.INFO: count ==2017 [2025-04-25 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:48:05 - End Time 2025-04-25 09:48:05 [2025-04-25 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986128', 'tblTempUsageDetail_20' ) start [2025-04-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986128', 'tblTempUsageDetail_20' ) end [2025-04-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986128', 'tblTempVendorCDR_20' ) start [2025-04-25 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986128', 'tblTempVendorCDR_20' ) end [2025-04-25 09:48:19] Production.INFO: ProcessCDR(1,14986128,1,1,2) [2025-04-25 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986128', 'tblTempUsageDetail_20' ) start [2025-04-25 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986128', 'tblTempUsageDetail_20' ) end [2025-04-25 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:48:24] Production.INFO: ==14421== Releasing lock... [2025-04-25 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:48:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:49:05 [end_date_ymd] => 2025-04-25 09:49:05 [RateCDR] => 1 ) [2025-04-25 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:49:05' and `end` < '2025-04-25 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:49:18] Production.INFO: count ==2036 [2025-04-25 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:49:05 - End Time 2025-04-25 09:49:05 [2025-04-25 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986133', 'tblTempUsageDetail_20' ) start [2025-04-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986133', 'tblTempUsageDetail_20' ) end [2025-04-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986133', 'tblTempVendorCDR_20' ) start [2025-04-25 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986133', 'tblTempVendorCDR_20' ) end [2025-04-25 09:49:19] Production.INFO: ProcessCDR(1,14986133,1,1,2) [2025-04-25 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986133', 'tblTempUsageDetail_20' ) start [2025-04-25 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986133', 'tblTempUsageDetail_20' ) end [2025-04-25 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:49:24] Production.INFO: ==14514== Releasing lock... [2025-04-25 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:49:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-25 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:50:06 [end_date_ymd] => 2025-04-25 09:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:50:06' and `end` < '2025-04-25 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-04-25 09:50:19] Production.INFO: count ==2056 [2025-04-25 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-25 06:50:06 - End Time 2025-04-25 09:50:06 [2025-04-25 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986139', 'tblTempUsageDetail_20' ) start [2025-04-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986139', 'tblTempUsageDetail_20' ) end [2025-04-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986139', 'tblTempVendorCDR_20' ) start [2025-04-25 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986139', 'tblTempVendorCDR_20' ) end [2025-04-25 09:50:20] Production.INFO: ProcessCDR(1,14986139,1,1,2) [2025-04-25 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986139', 'tblTempUsageDetail_20' ) start [2025-04-25 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986139', 'tblTempUsageDetail_20' ) end [2025-04-25 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:50:25] Production.INFO: ==14593== Releasing lock... [2025-04-25 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:50:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-25 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:51:05 [end_date_ymd] => 2025-04-25 09:51:05 [RateCDR] => 1 ) [2025-04-25 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:51:05' and `end` < '2025-04-25 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:51:18] Production.INFO: count ==2164 [2025-04-25 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:51:05 - End Time 2025-04-25 09:51:05 [2025-04-25 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986144', 'tblTempUsageDetail_20' ) start [2025-04-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986144', 'tblTempUsageDetail_20' ) end [2025-04-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986144', 'tblTempVendorCDR_20' ) start [2025-04-25 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986144', 'tblTempVendorCDR_20' ) end [2025-04-25 09:51:19] Production.INFO: ProcessCDR(1,14986144,1,1,2) [2025-04-25 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986144', 'tblTempUsageDetail_20' ) start [2025-04-25 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986144', 'tblTempUsageDetail_20' ) end [2025-04-25 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:51:24] Production.INFO: ==14674== Releasing lock... [2025-04-25 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:51:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:52:05 [end_date_ymd] => 2025-04-25 09:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:52:05' and `end` < '2025-04-25 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-04-25 09:52:18] Production.INFO: count ==2179 [2025-04-25 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:52:05 - End Time 2025-04-25 09:52:05 [2025-04-25 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986149', 'tblTempUsageDetail_20' ) start [2025-04-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986149', 'tblTempUsageDetail_20' ) end [2025-04-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986149', 'tblTempVendorCDR_20' ) start [2025-04-25 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986149', 'tblTempVendorCDR_20' ) end [2025-04-25 09:52:19] Production.INFO: ProcessCDR(1,14986149,1,1,2) [2025-04-25 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986149', 'tblTempUsageDetail_20' ) start [2025-04-25 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986149', 'tblTempUsageDetail_20' ) end [2025-04-25 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:52:24] Production.INFO: ==14783== Releasing lock... [2025-04-25 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:52:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:53:05 [end_date_ymd] => 2025-04-25 09:53:05 [RateCDR] => 1 ) [2025-04-25 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:53:05' and `end` < '2025-04-25 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:53:18] Production.INFO: count ==2192 [2025-04-25 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:53:05 - End Time 2025-04-25 09:53:05 [2025-04-25 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986154', 'tblTempUsageDetail_20' ) start [2025-04-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986154', 'tblTempUsageDetail_20' ) end [2025-04-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986154', 'tblTempVendorCDR_20' ) start [2025-04-25 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986154', 'tblTempVendorCDR_20' ) end [2025-04-25 09:53:19] Production.INFO: ProcessCDR(1,14986154,1,1,2) [2025-04-25 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986154', 'tblTempUsageDetail_20' ) start [2025-04-25 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986154', 'tblTempUsageDetail_20' ) end [2025-04-25 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:53:23] Production.INFO: ==14859== Releasing lock... [2025-04-25 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:53:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:54:05 [end_date_ymd] => 2025-04-25 09:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:54:05' and `end` < '2025-04-25 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-04-25 09:54:18] Production.INFO: count ==2205 [2025-04-25 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:54:05 - End Time 2025-04-25 09:54:05 [2025-04-25 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986159', 'tblTempUsageDetail_20' ) start [2025-04-25 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986159', 'tblTempUsageDetail_20' ) end [2025-04-25 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986159', 'tblTempVendorCDR_20' ) start [2025-04-25 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986159', 'tblTempVendorCDR_20' ) end [2025-04-25 09:54:19] Production.INFO: ProcessCDR(1,14986159,1,1,2) [2025-04-25 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986159', 'tblTempUsageDetail_20' ) start [2025-04-25 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986159', 'tblTempUsageDetail_20' ) end [2025-04-25 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:54:24] Production.INFO: ==14944== Releasing lock... [2025-04-25 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:54:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:55:04 [end_date_ymd] => 2025-04-25 09:55:04 [RateCDR] => 1 ) [2025-04-25 09:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:55:04' and `end` < '2025-04-25 09:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 09:55:17] Production.INFO: count ==2210 [2025-04-25 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 06:55:04 - End Time 2025-04-25 09:55:04 [2025-04-25 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986162', 'tblTempUsageDetail_20' ) start [2025-04-25 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986162', 'tblTempUsageDetail_20' ) end [2025-04-25 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986162', 'tblTempVendorCDR_20' ) start [2025-04-25 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986162', 'tblTempVendorCDR_20' ) end [2025-04-25 09:55:18] Production.INFO: ProcessCDR(1,14986162,1,1,2) [2025-04-25 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986162', 'tblTempUsageDetail_20' ) start [2025-04-25 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986162', 'tblTempUsageDetail_20' ) end [2025-04-25 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:55:23] Production.INFO: ==15032== Releasing lock... [2025-04-25 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:55:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:56:05 [end_date_ymd] => 2025-04-25 09:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:56:05' and `end` < '2025-04-25 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-04-25 09:56:19] Production.INFO: count ==2229 [2025-04-25 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:56:05 - End Time 2025-04-25 09:56:05 [2025-04-25 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986169', 'tblTempUsageDetail_20' ) start [2025-04-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986169', 'tblTempUsageDetail_20' ) end [2025-04-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986169', 'tblTempVendorCDR_20' ) start [2025-04-25 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986169', 'tblTempVendorCDR_20' ) end [2025-04-25 09:56:19] Production.INFO: ProcessCDR(1,14986169,1,1,2) [2025-04-25 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986169', 'tblTempUsageDetail_20' ) start [2025-04-25 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986169', 'tblTempUsageDetail_20' ) end [2025-04-25 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:56:24] Production.INFO: ==15117== Releasing lock... [2025-04-25 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:56:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:57:05 [end_date_ymd] => 2025-04-25 09:57:05 [RateCDR] => 1 ) [2025-04-25 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 06:57:05' and `end` < '2025-04-25 09: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-04-25 09:57:18] Production.INFO: count ==2240 [2025-04-25 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:57:05 - End Time 2025-04-25 09:57:05 [2025-04-25 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986174', 'tblTempUsageDetail_20' ) start [2025-04-25 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986174', 'tblTempUsageDetail_20' ) end [2025-04-25 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986174', 'tblTempVendorCDR_20' ) start [2025-04-25 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986174', 'tblTempVendorCDR_20' ) end [2025-04-25 09:57:19] Production.INFO: ProcessCDR(1,14986174,1,1,2) [2025-04-25 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986174', 'tblTempUsageDetail_20' ) start [2025-04-25 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986174', 'tblTempUsageDetail_20' ) end [2025-04-25 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:57:24] Production.INFO: ==15195== Releasing lock... [2025-04-25 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:57:24] Production.INFO: 45 MB #Memory Used# [2025-04-25 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:58:05 [end_date_ymd] => 2025-04-25 09:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:58:05' and `end` < '2025-04-25 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-04-25 09:58:18] Production.INFO: count ==2273 [2025-04-25 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:58:05 - End Time 2025-04-25 09:58:05 [2025-04-25 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986179', 'tblTempUsageDetail_20' ) start [2025-04-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986179', 'tblTempUsageDetail_20' ) end [2025-04-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986179', 'tblTempVendorCDR_20' ) start [2025-04-25 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986179', 'tblTempVendorCDR_20' ) end [2025-04-25 09:58:19] Production.INFO: ProcessCDR(1,14986179,1,1,2) [2025-04-25 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986179', 'tblTempUsageDetail_20' ) start [2025-04-25 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986179', 'tblTempUsageDetail_20' ) end [2025-04-25 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:58:25] Production.INFO: ==15265== Releasing lock... [2025-04-25 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:58:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-25 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 06:59:05 [end_date_ymd] => 2025-04-25 09:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 06:59:05' and `end` < '2025-04-25 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-04-25 09:59:19] Production.INFO: count ==2292 [2025-04-25 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-25 06:59:05 - End Time 2025-04-25 09:59:05 [2025-04-25 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986184', 'tblTempUsageDetail_20' ) start [2025-04-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986184', 'tblTempUsageDetail_20' ) end [2025-04-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986184', 'tblTempVendorCDR_20' ) start [2025-04-25 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986184', 'tblTempVendorCDR_20' ) end [2025-04-25 09:59:19] Production.INFO: ProcessCDR(1,14986184,1,1,2) [2025-04-25 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986184', 'tblTempUsageDetail_20' ) start [2025-04-25 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986184', 'tblTempUsageDetail_20' ) end [2025-04-25 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 09:59:25] Production.INFO: ==15337== Releasing lock... [2025-04-25 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 09:59:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:00:05 [end_date_ymd] => 2025-04-25 10:00:05 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:00:05' and `end` < '2025-04-25 10: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-04-25 10:00:18] Production.INFO: count ==2306 [2025-04-25 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:00:05 - End Time 2025-04-25 10:00:05 [2025-04-25 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986190', 'tblTempUsageDetail_20' ) start [2025-04-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986190', 'tblTempUsageDetail_20' ) end [2025-04-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986190', 'tblTempVendorCDR_20' ) start [2025-04-25 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986190', 'tblTempVendorCDR_20' ) end [2025-04-25 10:00:19] Production.INFO: ProcessCDR(1,14986190,1,1,2) [2025-04-25 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986190', 'tblTempUsageDetail_20' ) start [2025-04-25 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986190', 'tblTempUsageDetail_20' ) end [2025-04-25 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:00:24] Production.INFO: ==15450== Releasing lock... [2025-04-25 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:00:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-25 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:01:05 [end_date_ymd] => 2025-04-25 10:01:05 [RateCDR] => 1 ) [2025-04-25 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:01:05' and `end` < '2025-04-25 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:01:19] Production.INFO: count ==2398 [2025-04-25 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:01:05 - End Time 2025-04-25 10:01:05 [2025-04-25 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986195', 'tblTempUsageDetail_20' ) start [2025-04-25 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986195', 'tblTempUsageDetail_20' ) end [2025-04-25 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986195', 'tblTempVendorCDR_20' ) start [2025-04-25 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986195', 'tblTempVendorCDR_20' ) end [2025-04-25 10:01:19] Production.INFO: ProcessCDR(1,14986195,1,1,2) [2025-04-25 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986195', 'tblTempUsageDetail_20' ) start [2025-04-25 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986195', 'tblTempUsageDetail_20' ) end [2025-04-25 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:01:25] Production.INFO: ==15540== Releasing lock... [2025-04-25 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:01:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-25 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:02:05 [end_date_ymd] => 2025-04-25 10:02:05 [RateCDR] => 1 ) [2025-04-25 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:02:05' and `end` < '2025-04-25 10: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-04-25 10:02:18] Production.INFO: count ==2408 [2025-04-25 10:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 07:02:05 - End Time 2025-04-25 10:02:05 [2025-04-25 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986200', 'tblTempUsageDetail_20' ) start [2025-04-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986200', 'tblTempUsageDetail_20' ) end [2025-04-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986200', 'tblTempVendorCDR_20' ) start [2025-04-25 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986200', 'tblTempVendorCDR_20' ) end [2025-04-25 10:02:18] Production.INFO: ProcessCDR(1,14986200,1,1,2) [2025-04-25 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986200', 'tblTempUsageDetail_20' ) start [2025-04-25 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986200', 'tblTempUsageDetail_20' ) end [2025-04-25 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:02:24] Production.INFO: ==15617== Releasing lock... [2025-04-25 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:02:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-25 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:03:05 [end_date_ymd] => 2025-04-25 10:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:03:05' and `end` < '2025-04-25 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-04-25 10:03:18] Production.INFO: count ==2422 [2025-04-25 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:03:05 - End Time 2025-04-25 10:03:05 [2025-04-25 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986205', 'tblTempUsageDetail_20' ) start [2025-04-25 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986205', 'tblTempUsageDetail_20' ) end [2025-04-25 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986205', 'tblTempVendorCDR_20' ) start [2025-04-25 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986205', 'tblTempVendorCDR_20' ) end [2025-04-25 10:03:19] Production.INFO: ProcessCDR(1,14986205,1,1,2) [2025-04-25 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986205', 'tblTempUsageDetail_20' ) start [2025-04-25 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986205', 'tblTempUsageDetail_20' ) end [2025-04-25 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:03:25] Production.INFO: ==15689== Releasing lock... [2025-04-25 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:03:25] Production.INFO: 46 MB #Memory Used# [2025-04-25 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:04:05 [end_date_ymd] => 2025-04-25 10:04:05 [RateCDR] => 1 ) [2025-04-25 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:04:05' and `end` < '2025-04-25 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:04:19] Production.INFO: count ==2447 [2025-04-25 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:04:05 - End Time 2025-04-25 10:04:05 [2025-04-25 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986210', 'tblTempUsageDetail_20' ) start [2025-04-25 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986210', 'tblTempUsageDetail_20' ) end [2025-04-25 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986210', 'tblTempVendorCDR_20' ) start [2025-04-25 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986210', 'tblTempVendorCDR_20' ) end [2025-04-25 10:04:20] Production.INFO: ProcessCDR(1,14986210,1,1,2) [2025-04-25 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986210', 'tblTempUsageDetail_20' ) start [2025-04-25 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986210', 'tblTempUsageDetail_20' ) end [2025-04-25 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:04:25] Production.INFO: ==15759== Releasing lock... [2025-04-25 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:04:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-25 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:05:05 [end_date_ymd] => 2025-04-25 10:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:05:05' and `end` < '2025-04-25 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-04-25 10:05:19] Production.INFO: count ==2485 [2025-04-25 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:05:05 - End Time 2025-04-25 10:05:05 [2025-04-25 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986215', 'tblTempUsageDetail_20' ) start [2025-04-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986215', 'tblTempUsageDetail_20' ) end [2025-04-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986215', 'tblTempVendorCDR_20' ) start [2025-04-25 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986215', 'tblTempVendorCDR_20' ) end [2025-04-25 10:05:20] Production.INFO: ProcessCDR(1,14986215,1,1,2) [2025-04-25 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986215', 'tblTempUsageDetail_20' ) start [2025-04-25 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986215', 'tblTempUsageDetail_20' ) end [2025-04-25 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:05:25] Production.INFO: ==15830== Releasing lock... [2025-04-25 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:05:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-25 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:06:05 [end_date_ymd] => 2025-04-25 10:06:05 [RateCDR] => 1 ) [2025-04-25 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:06:05' and `end` < '2025-04-25 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:06:19] Production.INFO: count ==2509 [2025-04-25 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:06:05 - End Time 2025-04-25 10:06:05 [2025-04-25 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986220', 'tblTempUsageDetail_20' ) start [2025-04-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986220', 'tblTempUsageDetail_20' ) end [2025-04-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986220', 'tblTempVendorCDR_20' ) start [2025-04-25 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986220', 'tblTempVendorCDR_20' ) end [2025-04-25 10:06:20] Production.INFO: ProcessCDR(1,14986220,1,1,2) [2025-04-25 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986220', 'tblTempUsageDetail_20' ) start [2025-04-25 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986220', 'tblTempUsageDetail_20' ) end [2025-04-25 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:06:25] Production.INFO: ==15902== Releasing lock... [2025-04-25 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:06:25] Production.INFO: 47 MB #Memory Used# [2025-04-25 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:07:05 [end_date_ymd] => 2025-04-25 10:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:07:05' and `end` < '2025-04-25 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-04-25 10:07:18] Production.INFO: count ==2540 [2025-04-25 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:07:05 - End Time 2025-04-25 10:07:05 [2025-04-25 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986225', 'tblTempUsageDetail_20' ) start [2025-04-25 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986225', 'tblTempUsageDetail_20' ) end [2025-04-25 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986225', 'tblTempVendorCDR_20' ) start [2025-04-25 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986225', 'tblTempVendorCDR_20' ) end [2025-04-25 10:07:19] Production.INFO: ProcessCDR(1,14986225,1,1,2) [2025-04-25 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986225', 'tblTempUsageDetail_20' ) start [2025-04-25 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986225', 'tblTempUsageDetail_20' ) end [2025-04-25 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:07:25] Production.INFO: ==15976== Releasing lock... [2025-04-25 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:07:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:08:05 [end_date_ymd] => 2025-04-25 10:08:05 [RateCDR] => 1 ) [2025-04-25 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:08:05' and `end` < '2025-04-25 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:08:19] Production.INFO: count ==2563 [2025-04-25 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:08:05 - End Time 2025-04-25 10:08:05 [2025-04-25 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986230', 'tblTempUsageDetail_20' ) start [2025-04-25 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986230', 'tblTempUsageDetail_20' ) end [2025-04-25 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986230', 'tblTempVendorCDR_20' ) start [2025-04-25 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986230', 'tblTempVendorCDR_20' ) end [2025-04-25 10:08:20] Production.INFO: ProcessCDR(1,14986230,1,1,2) [2025-04-25 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986230', 'tblTempUsageDetail_20' ) start [2025-04-25 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986230', 'tblTempUsageDetail_20' ) end [2025-04-25 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:08:25] Production.INFO: ==16049== Releasing lock... [2025-04-25 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:08:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:09:05 [end_date_ymd] => 2025-04-25 10:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:09:05' and `end` < '2025-04-25 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-04-25 10:09:18] Production.INFO: count ==2594 [2025-04-25 10:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:09:05 - End Time 2025-04-25 10:09:05 [2025-04-25 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986235', 'tblTempUsageDetail_20' ) start [2025-04-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986235', 'tblTempUsageDetail_20' ) end [2025-04-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986235', 'tblTempVendorCDR_20' ) start [2025-04-25 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986235', 'tblTempVendorCDR_20' ) end [2025-04-25 10:09:19] Production.INFO: ProcessCDR(1,14986235,1,1,2) [2025-04-25 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986235', 'tblTempUsageDetail_20' ) start [2025-04-25 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986235', 'tblTempUsageDetail_20' ) end [2025-04-25 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:09:25] Production.INFO: ==16127== Releasing lock... [2025-04-25 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:09:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:10:06 [end_date_ymd] => 2025-04-25 10:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:10:06' and `end` < '2025-04-25 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-04-25 10:10:19] Production.INFO: count ==2630 [2025-04-25 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:10:06 - End Time 2025-04-25 10:10:06 [2025-04-25 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986241', 'tblTempUsageDetail_20' ) start [2025-04-25 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986241', 'tblTempUsageDetail_20' ) end [2025-04-25 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986241', 'tblTempVendorCDR_20' ) start [2025-04-25 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986241', 'tblTempVendorCDR_20' ) end [2025-04-25 10:10:20] Production.INFO: ProcessCDR(1,14986241,1,1,2) [2025-04-25 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986241', 'tblTempUsageDetail_20' ) start [2025-04-25 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986241', 'tblTempUsageDetail_20' ) end [2025-04-25 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:10:25] Production.INFO: ==16203== Releasing lock... [2025-04-25 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:10:25] Production.INFO: 47.75 MB #Memory Used# [2025-04-25 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:11:04 [end_date_ymd] => 2025-04-25 10:11:04 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:11:04' and `end` < '2025-04-25 10: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-04-25 10:11:18] Production.INFO: count ==2772 [2025-04-25 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:11:04 - End Time 2025-04-25 10:11:04 [2025-04-25 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986246', 'tblTempUsageDetail_20' ) start [2025-04-25 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986246', 'tblTempUsageDetail_20' ) end [2025-04-25 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986246', 'tblTempVendorCDR_20' ) start [2025-04-25 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986246', 'tblTempVendorCDR_20' ) end [2025-04-25 10:11:19] Production.INFO: ProcessCDR(1,14986246,1,1,2) [2025-04-25 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986246', 'tblTempUsageDetail_20' ) start [2025-04-25 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986246', 'tblTempUsageDetail_20' ) end [2025-04-25 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:11:24] Production.INFO: ==16286== Releasing lock... [2025-04-25 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:11:24] Production.INFO: 49 MB #Memory Used# [2025-04-25 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:12:05 [end_date_ymd] => 2025-04-25 10:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:12:05' and `end` < '2025-04-25 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-04-25 10:12:18] Production.INFO: count ==2815 [2025-04-25 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:12:05 - End Time 2025-04-25 10:12:05 [2025-04-25 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986251', 'tblTempUsageDetail_20' ) start [2025-04-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986251', 'tblTempUsageDetail_20' ) end [2025-04-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986251', 'tblTempVendorCDR_20' ) start [2025-04-25 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986251', 'tblTempVendorCDR_20' ) end [2025-04-25 10:12:19] Production.INFO: ProcessCDR(1,14986251,1,1,2) [2025-04-25 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986251', 'tblTempUsageDetail_20' ) start [2025-04-25 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986251', 'tblTempUsageDetail_20' ) end [2025-04-25 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:12:24] Production.INFO: ==16362== Releasing lock... [2025-04-25 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:12:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:13:06 [end_date_ymd] => 2025-04-25 10:13:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:13:06' and `end` < '2025-04-25 10: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-04-25 10:13:19] Production.INFO: count ==2824 [2025-04-25 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:13:06 - End Time 2025-04-25 10:13:06 [2025-04-25 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986256', 'tblTempUsageDetail_20' ) start [2025-04-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986256', 'tblTempUsageDetail_20' ) end [2025-04-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986256', 'tblTempVendorCDR_20' ) start [2025-04-25 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986256', 'tblTempVendorCDR_20' ) end [2025-04-25 10:13:20] Production.INFO: ProcessCDR(1,14986256,1,1,2) [2025-04-25 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986256', 'tblTempUsageDetail_20' ) start [2025-04-25 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986256', 'tblTempUsageDetail_20' ) end [2025-04-25 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:13:25] Production.INFO: ==16435== Releasing lock... [2025-04-25 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:13:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:14:05 [end_date_ymd] => 2025-04-25 10:14:05 [RateCDR] => 1 ) [2025-04-25 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:14:05' and `end` < '2025-04-25 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:14:18] Production.INFO: count ==2856 [2025-04-25 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:14:05 - End Time 2025-04-25 10:14:05 [2025-04-25 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986261', 'tblTempUsageDetail_20' ) start [2025-04-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986261', 'tblTempUsageDetail_20' ) end [2025-04-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986261', 'tblTempVendorCDR_20' ) start [2025-04-25 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986261', 'tblTempVendorCDR_20' ) end [2025-04-25 10:14:19] Production.INFO: ProcessCDR(1,14986261,1,1,2) [2025-04-25 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986261', 'tblTempUsageDetail_20' ) start [2025-04-25 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986261', 'tblTempUsageDetail_20' ) end [2025-04-25 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:14:24] Production.INFO: ==16505== Releasing lock... [2025-04-25 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:14:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:15:05 [end_date_ymd] => 2025-04-25 10:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:15:05' and `end` < '2025-04-25 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-04-25 10:15:18] Production.INFO: count ==2868 [2025-04-25 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:15:05 - End Time 2025-04-25 10:15:05 [2025-04-25 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986266', 'tblTempUsageDetail_20' ) start [2025-04-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986266', 'tblTempUsageDetail_20' ) end [2025-04-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986266', 'tblTempVendorCDR_20' ) start [2025-04-25 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986266', 'tblTempVendorCDR_20' ) end [2025-04-25 10:15:20] Production.INFO: ProcessCDR(1,14986266,1,1,2) [2025-04-25 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986266', 'tblTempUsageDetail_20' ) start [2025-04-25 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986266', 'tblTempUsageDetail_20' ) end [2025-04-25 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:15:25] Production.INFO: ==16582== Releasing lock... [2025-04-25 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:15:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:16:04 [end_date_ymd] => 2025-04-25 10:16:04 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:16:04' and `end` < '2025-04-25 10: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-04-25 10:16:18] Production.INFO: count ==2886 [2025-04-25 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:16:04 - End Time 2025-04-25 10:16:04 [2025-04-25 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986271', 'tblTempUsageDetail_20' ) start [2025-04-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986271', 'tblTempUsageDetail_20' ) end [2025-04-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986271', 'tblTempVendorCDR_20' ) start [2025-04-25 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986271', 'tblTempVendorCDR_20' ) end [2025-04-25 10:16:19] Production.INFO: ProcessCDR(1,14986271,1,1,2) [2025-04-25 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986271', 'tblTempUsageDetail_20' ) start [2025-04-25 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986271', 'tblTempUsageDetail_20' ) end [2025-04-25 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:16:24] Production.INFO: ==16690== Releasing lock... [2025-04-25 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:16:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-25 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:17:05 [end_date_ymd] => 2025-04-25 10:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:17:05' and `end` < '2025-04-25 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-04-25 10:17:18] Production.INFO: count ==2908 [2025-04-25 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:17:05 - End Time 2025-04-25 10:17:05 [2025-04-25 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986276', 'tblTempUsageDetail_20' ) start [2025-04-25 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986276', 'tblTempUsageDetail_20' ) end [2025-04-25 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986276', 'tblTempVendorCDR_20' ) start [2025-04-25 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986276', 'tblTempVendorCDR_20' ) end [2025-04-25 10:17:19] Production.INFO: ProcessCDR(1,14986276,1,1,2) [2025-04-25 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986276', 'tblTempUsageDetail_20' ) start [2025-04-25 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986276', 'tblTempUsageDetail_20' ) end [2025-04-25 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:17:24] Production.INFO: ==16761== Releasing lock... [2025-04-25 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:17:24] Production.INFO: 50 MB #Memory Used# [2025-04-25 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:18:05 [end_date_ymd] => 2025-04-25 10:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:18:05' and `end` < '2025-04-25 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-04-25 10:18:19] Production.INFO: count ==2921 [2025-04-25 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:18:05 - End Time 2025-04-25 10:18:05 [2025-04-25 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986281', 'tblTempUsageDetail_20' ) start [2025-04-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986281', 'tblTempUsageDetail_20' ) end [2025-04-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986281', 'tblTempVendorCDR_20' ) start [2025-04-25 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986281', 'tblTempVendorCDR_20' ) end [2025-04-25 10:18:20] Production.INFO: ProcessCDR(1,14986281,1,1,2) [2025-04-25 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986281', 'tblTempUsageDetail_20' ) start [2025-04-25 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986281', 'tblTempUsageDetail_20' ) end [2025-04-25 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:18:25] Production.INFO: ==16833== Releasing lock... [2025-04-25 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:18:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-25 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:19:05 [end_date_ymd] => 2025-04-25 10:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:19:05' and `end` < '2025-04-25 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-04-25 10:19:18] Production.INFO: count ==2936 [2025-04-25 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:19:05 - End Time 2025-04-25 10:19:05 [2025-04-25 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986286', 'tblTempUsageDetail_20' ) start [2025-04-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986286', 'tblTempUsageDetail_20' ) end [2025-04-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986286', 'tblTempVendorCDR_20' ) start [2025-04-25 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986286', 'tblTempVendorCDR_20' ) end [2025-04-25 10:19:19] Production.INFO: ProcessCDR(1,14986286,1,1,2) [2025-04-25 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986286', 'tblTempUsageDetail_20' ) start [2025-04-25 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986286', 'tblTempUsageDetail_20' ) end [2025-04-25 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:19:24] Production.INFO: ==16907== Releasing lock... [2025-04-25 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:19:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-25 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:20:05 [end_date_ymd] => 2025-04-25 10:20:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:20:05' and `end` < '2025-04-25 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:20:19] Production.INFO: count ==2959 [2025-04-25 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:20:05 - End Time 2025-04-25 10:20:05 [2025-04-25 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986291', 'tblTempUsageDetail_20' ) start [2025-04-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986291', 'tblTempUsageDetail_20' ) end [2025-04-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986291', 'tblTempVendorCDR_20' ) start [2025-04-25 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986291', 'tblTempVendorCDR_20' ) end [2025-04-25 10:20:20] Production.INFO: ProcessCDR(1,14986291,1,1,2) [2025-04-25 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986291', 'tblTempUsageDetail_20' ) start [2025-04-25 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986291', 'tblTempUsageDetail_20' ) end [2025-04-25 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:20:25] Production.INFO: ==16981== Releasing lock... [2025-04-25 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:20:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:21:04 [end_date_ymd] => 2025-04-25 10:21:04 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:21:04' and `end` < '2025-04-25 10: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-04-25 10:21:17] Production.INFO: count ==3094 [2025-04-25 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:21:04 - End Time 2025-04-25 10:21:04 [2025-04-25 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986297', 'tblTempUsageDetail_20' ) start [2025-04-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986297', 'tblTempUsageDetail_20' ) end [2025-04-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986297', 'tblTempVendorCDR_20' ) start [2025-04-25 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986297', 'tblTempVendorCDR_20' ) end [2025-04-25 10:21:19] Production.INFO: ProcessCDR(1,14986297,1,1,2) [2025-04-25 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986297', 'tblTempUsageDetail_20' ) start [2025-04-25 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986297', 'tblTempUsageDetail_20' ) end [2025-04-25 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:21:24] Production.INFO: ==17055== Releasing lock... [2025-04-25 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:21:24] Production.INFO: 51 MB #Memory Used# [2025-04-25 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:22:05 [end_date_ymd] => 2025-04-25 10:22:05 [RateCDR] => 1 ) [2025-04-25 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:22:05' and `end` < '2025-04-25 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:22:19] Production.INFO: count ==3099 [2025-04-25 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:22:05 - End Time 2025-04-25 10:22:05 [2025-04-25 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986302', 'tblTempUsageDetail_20' ) start [2025-04-25 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986302', 'tblTempUsageDetail_20' ) end [2025-04-25 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986302', 'tblTempVendorCDR_20' ) start [2025-04-25 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986302', 'tblTempVendorCDR_20' ) end [2025-04-25 10:22:20] Production.INFO: ProcessCDR(1,14986302,1,1,2) [2025-04-25 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986302', 'tblTempUsageDetail_20' ) start [2025-04-25 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986302', 'tblTempUsageDetail_20' ) end [2025-04-25 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:22:25] Production.INFO: ==17127== Releasing lock... [2025-04-25 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:22:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-25 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:23:05 [end_date_ymd] => 2025-04-25 10:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:23:05' and `end` < '2025-04-25 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-04-25 10:23:18] Production.INFO: count ==3136 [2025-04-25 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:23:05 - End Time 2025-04-25 10:23:05 [2025-04-25 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986307', 'tblTempUsageDetail_20' ) start [2025-04-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986307', 'tblTempUsageDetail_20' ) end [2025-04-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986307', 'tblTempVendorCDR_20' ) start [2025-04-25 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986307', 'tblTempVendorCDR_20' ) end [2025-04-25 10:23:19] Production.INFO: ProcessCDR(1,14986307,1,1,2) [2025-04-25 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986307', 'tblTempUsageDetail_20' ) start [2025-04-25 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986307', 'tblTempUsageDetail_20' ) end [2025-04-25 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:23:25] Production.INFO: ==17203== Releasing lock... [2025-04-25 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:23:25] Production.INFO: 52 MB #Memory Used# [2025-04-25 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:24:06 [end_date_ymd] => 2025-04-25 10:24:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:24:06' and `end` < '2025-04-25 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-04-25 10:24:19] Production.INFO: count ==3167 [2025-04-25 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:24:06 - End Time 2025-04-25 10:24:06 [2025-04-25 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986312', 'tblTempUsageDetail_20' ) start [2025-04-25 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986312', 'tblTempUsageDetail_20' ) end [2025-04-25 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986312', 'tblTempVendorCDR_20' ) start [2025-04-25 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986312', 'tblTempVendorCDR_20' ) end [2025-04-25 10:24:20] Production.INFO: ProcessCDR(1,14986312,1,1,2) [2025-04-25 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986312', 'tblTempUsageDetail_20' ) start [2025-04-25 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986312', 'tblTempUsageDetail_20' ) end [2025-04-25 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:24:26] Production.INFO: ==17281== Releasing lock... [2025-04-25 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:24:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:25:05 [end_date_ymd] => 2025-04-25 10:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:25:05' and `end` < '2025-04-25 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-04-25 10:25:18] Production.INFO: count ==3184 [2025-04-25 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:25:05 - End Time 2025-04-25 10:25:05 [2025-04-25 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986317', 'tblTempUsageDetail_20' ) start [2025-04-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986317', 'tblTempUsageDetail_20' ) end [2025-04-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986317', 'tblTempVendorCDR_20' ) start [2025-04-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986317', 'tblTempVendorCDR_20' ) end [2025-04-25 10:25:20] Production.INFO: ProcessCDR(1,14986317,1,1,2) [2025-04-25 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986317', 'tblTempUsageDetail_20' ) start [2025-04-25 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986317', 'tblTempUsageDetail_20' ) end [2025-04-25 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:25:25] Production.INFO: ==17357== Releasing lock... [2025-04-25 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:25:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-25 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:26:05 [end_date_ymd] => 2025-04-25 10:26:05 [RateCDR] => 1 ) [2025-04-25 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:26:05' and `end` < '2025-04-25 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:26:19] Production.INFO: count ==3200 [2025-04-25 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:26:05 - End Time 2025-04-25 10:26:05 [2025-04-25 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986322', 'tblTempUsageDetail_20' ) start [2025-04-25 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986322', 'tblTempUsageDetail_20' ) end [2025-04-25 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986322', 'tblTempVendorCDR_20' ) start [2025-04-25 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986322', 'tblTempVendorCDR_20' ) end [2025-04-25 10:26:20] Production.INFO: ProcessCDR(1,14986322,1,1,2) [2025-04-25 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986322', 'tblTempUsageDetail_20' ) start [2025-04-25 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986322', 'tblTempUsageDetail_20' ) end [2025-04-25 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:26:25] Production.INFO: ==17427== Releasing lock... [2025-04-25 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:26:25] Production.INFO: 53 MB #Memory Used# [2025-04-25 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:27:04 [end_date_ymd] => 2025-04-25 10:27:04 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:27:04' and `end` < '2025-04-25 10: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-04-25 10:27:18] Production.INFO: count ==3213 [2025-04-25 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:27:04 - End Time 2025-04-25 10:27:04 [2025-04-25 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986327', 'tblTempUsageDetail_20' ) start [2025-04-25 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986327', 'tblTempUsageDetail_20' ) end [2025-04-25 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986327', 'tblTempVendorCDR_20' ) start [2025-04-25 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986327', 'tblTempVendorCDR_20' ) end [2025-04-25 10:27:19] Production.INFO: ProcessCDR(1,14986327,1,1,2) [2025-04-25 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986327', 'tblTempUsageDetail_20' ) start [2025-04-25 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986327', 'tblTempUsageDetail_20' ) end [2025-04-25 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:27:24] Production.INFO: ==17502== Releasing lock... [2025-04-25 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:27:24] Production.INFO: 53 MB #Memory Used# [2025-04-25 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:28:05 [end_date_ymd] => 2025-04-25 10:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:28:05' and `end` < '2025-04-25 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-04-25 10:28:18] Production.INFO: count ==3242 [2025-04-25 10:28:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:28:05 - End Time 2025-04-25 10:28:05 [2025-04-25 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986332', 'tblTempUsageDetail_20' ) start [2025-04-25 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986332', 'tblTempUsageDetail_20' ) end [2025-04-25 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986332', 'tblTempVendorCDR_20' ) start [2025-04-25 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986332', 'tblTempVendorCDR_20' ) end [2025-04-25 10:28:19] Production.INFO: ProcessCDR(1,14986332,1,1,2) [2025-04-25 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986332', 'tblTempUsageDetail_20' ) start [2025-04-25 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986332', 'tblTempUsageDetail_20' ) end [2025-04-25 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:28:25] Production.INFO: ==17575== Releasing lock... [2025-04-25 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:28:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-25 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:29:06 [end_date_ymd] => 2025-04-25 10:29:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:29:06' and `end` < '2025-04-25 10: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-04-25 10:29:19] Production.INFO: count ==3265 [2025-04-25 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:29:06 - End Time 2025-04-25 10:29:06 [2025-04-25 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986337', 'tblTempUsageDetail_20' ) start [2025-04-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986337', 'tblTempUsageDetail_20' ) end [2025-04-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986337', 'tblTempVendorCDR_20' ) start [2025-04-25 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986337', 'tblTempVendorCDR_20' ) end [2025-04-25 10:29:20] Production.INFO: ProcessCDR(1,14986337,1,1,2) [2025-04-25 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986337', 'tblTempUsageDetail_20' ) start [2025-04-25 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986337', 'tblTempUsageDetail_20' ) end [2025-04-25 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:29:25] Production.INFO: ==17647== Releasing lock... [2025-04-25 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:29:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:30:07 [end_date_ymd] => 2025-04-25 10:30:07 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:30:07' and `end` < '2025-04-25 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-04-25 10:30:20] Production.INFO: count ==3305 [2025-04-25 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-25 07:30:07 - End Time 2025-04-25 10:30:07 [2025-04-25 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986343', 'tblTempUsageDetail_20' ) start [2025-04-25 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986343', 'tblTempUsageDetail_20' ) end [2025-04-25 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986343', 'tblTempVendorCDR_20' ) start [2025-04-25 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986343', 'tblTempVendorCDR_20' ) end [2025-04-25 10:30:21] Production.INFO: ProcessCDR(1,14986343,1,1,2) [2025-04-25 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986343', 'tblTempUsageDetail_20' ) start [2025-04-25 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986343', 'tblTempUsageDetail_20' ) end [2025-04-25 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:30:26] Production.INFO: ==17720== Releasing lock... [2025-04-25 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:30:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:31:06 [end_date_ymd] => 2025-04-25 10:31:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:31:06' and `end` < '2025-04-25 10: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-04-25 10:31:19] Production.INFO: count ==3373 [2025-04-25 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:31:06 - End Time 2025-04-25 10:31:06 [2025-04-25 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986348', 'tblTempUsageDetail_20' ) start [2025-04-25 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986348', 'tblTempUsageDetail_20' ) end [2025-04-25 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986348', 'tblTempVendorCDR_20' ) start [2025-04-25 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986348', 'tblTempVendorCDR_20' ) end [2025-04-25 10:31:21] Production.INFO: ProcessCDR(1,14986348,1,1,2) [2025-04-25 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986348', 'tblTempUsageDetail_20' ) start [2025-04-25 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986348', 'tblTempUsageDetail_20' ) end [2025-04-25 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:31:26] Production.INFO: ==17833== Releasing lock... [2025-04-25 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:31:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-25 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:32:05 [end_date_ymd] => 2025-04-25 10:32:05 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:32:05' and `end` < '2025-04-25 10: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-04-25 10:32:19] Production.INFO: count ==3394 [2025-04-25 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:32:05 - End Time 2025-04-25 10:32:05 [2025-04-25 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986353', 'tblTempUsageDetail_20' ) start [2025-04-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986353', 'tblTempUsageDetail_20' ) end [2025-04-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986353', 'tblTempVendorCDR_20' ) start [2025-04-25 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986353', 'tblTempVendorCDR_20' ) end [2025-04-25 10:32:20] Production.INFO: ProcessCDR(1,14986353,1,1,2) [2025-04-25 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986353', 'tblTempUsageDetail_20' ) start [2025-04-25 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986353', 'tblTempUsageDetail_20' ) end [2025-04-25 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:32:25] Production.INFO: ==17904== Releasing lock... [2025-04-25 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:32:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-25 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:33:05 [end_date_ymd] => 2025-04-25 10:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:33:05' and `end` < '2025-04-25 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-04-25 10:33:19] Production.INFO: count ==3410 [2025-04-25 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:33:05 - End Time 2025-04-25 10:33:05 [2025-04-25 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986358', 'tblTempUsageDetail_20' ) start [2025-04-25 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986358', 'tblTempUsageDetail_20' ) end [2025-04-25 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986358', 'tblTempVendorCDR_20' ) start [2025-04-25 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986358', 'tblTempVendorCDR_20' ) end [2025-04-25 10:33:21] Production.INFO: ProcessCDR(1,14986358,1,1,2) [2025-04-25 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986358', 'tblTempUsageDetail_20' ) start [2025-04-25 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986358', 'tblTempUsageDetail_20' ) end [2025-04-25 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:33:26] Production.INFO: ==17974== Releasing lock... [2025-04-25 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:33:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-25 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:34:05 [end_date_ymd] => 2025-04-25 10:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:34:05' and `end` < '2025-04-25 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-04-25 10:34:19] Production.INFO: count ==3424 [2025-04-25 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:34:05 - End Time 2025-04-25 10:34:05 [2025-04-25 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986363', 'tblTempUsageDetail_20' ) start [2025-04-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986363', 'tblTempUsageDetail_20' ) end [2025-04-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986363', 'tblTempVendorCDR_20' ) start [2025-04-25 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986363', 'tblTempVendorCDR_20' ) end [2025-04-25 10:34:20] Production.INFO: ProcessCDR(1,14986363,1,1,2) [2025-04-25 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986363', 'tblTempUsageDetail_20' ) start [2025-04-25 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986363', 'tblTempUsageDetail_20' ) end [2025-04-25 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:34:24] Production.INFO: ==18045== Releasing lock... [2025-04-25 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:34:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-25 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:35:06 [end_date_ymd] => 2025-04-25 10:35:06 [RateCDR] => 1 ) [2025-04-25 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:35:06' and `end` < '2025-04-25 10: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-04-25 10:35:19] Production.INFO: count ==3435 [2025-04-25 10:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 07:35:06 - End Time 2025-04-25 10:35:06 [2025-04-25 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986368', 'tblTempUsageDetail_20' ) start [2025-04-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986368', 'tblTempUsageDetail_20' ) end [2025-04-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986368', 'tblTempVendorCDR_20' ) start [2025-04-25 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986368', 'tblTempVendorCDR_20' ) end [2025-04-25 10:35:21] Production.INFO: ProcessCDR(1,14986368,1,1,2) [2025-04-25 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986368', 'tblTempUsageDetail_20' ) start [2025-04-25 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986368', 'tblTempUsageDetail_20' ) end [2025-04-25 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:35:26] Production.INFO: ==18118== Releasing lock... [2025-04-25 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:35:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:36:05 [end_date_ymd] => 2025-04-25 10:36:05 [RateCDR] => 1 ) [2025-04-25 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:36:05' and `end` < '2025-04-25 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:36:18] Production.INFO: count ==3455 [2025-04-25 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:36:05 - End Time 2025-04-25 10:36:05 [2025-04-25 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986373', 'tblTempUsageDetail_20' ) start [2025-04-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986373', 'tblTempUsageDetail_20' ) end [2025-04-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986373', 'tblTempVendorCDR_20' ) start [2025-04-25 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986373', 'tblTempVendorCDR_20' ) end [2025-04-25 10:36:20] Production.INFO: ProcessCDR(1,14986373,1,1,2) [2025-04-25 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986373', 'tblTempUsageDetail_20' ) start [2025-04-25 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986373', 'tblTempUsageDetail_20' ) end [2025-04-25 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:36:25] Production.INFO: ==18195== Releasing lock... [2025-04-25 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:36:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:37:05 [end_date_ymd] => 2025-04-25 10:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:37:05' and `end` < '2025-04-25 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-04-25 10:37:19] Production.INFO: count ==3466 [2025-04-25 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:37:05 - End Time 2025-04-25 10:37:05 [2025-04-25 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986378', 'tblTempUsageDetail_20' ) start [2025-04-25 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986378', 'tblTempUsageDetail_20' ) end [2025-04-25 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986378', 'tblTempVendorCDR_20' ) start [2025-04-25 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986378', 'tblTempVendorCDR_20' ) end [2025-04-25 10:37:20] Production.INFO: ProcessCDR(1,14986378,1,1,2) [2025-04-25 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986378', 'tblTempUsageDetail_20' ) start [2025-04-25 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986378', 'tblTempUsageDetail_20' ) end [2025-04-25 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:37:25] Production.INFO: ==18269== Releasing lock... [2025-04-25 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:37:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-25 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:38:05 [end_date_ymd] => 2025-04-25 10:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:38:05' and `end` < '2025-04-25 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-04-25 10:38:19] Production.INFO: count ==3484 [2025-04-25 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:38:05 - End Time 2025-04-25 10:38:05 [2025-04-25 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986383', 'tblTempUsageDetail_20' ) start [2025-04-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986383', 'tblTempUsageDetail_20' ) end [2025-04-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986383', 'tblTempVendorCDR_20' ) start [2025-04-25 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986383', 'tblTempVendorCDR_20' ) end [2025-04-25 10:38:20] Production.INFO: ProcessCDR(1,14986383,1,1,2) [2025-04-25 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986383', 'tblTempUsageDetail_20' ) start [2025-04-25 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986383', 'tblTempUsageDetail_20' ) end [2025-04-25 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:38:25] Production.INFO: ==18339== Releasing lock... [2025-04-25 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:38:25] Production.INFO: 54 MB #Memory Used# [2025-04-25 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:39:06 [end_date_ymd] => 2025-04-25 10:39:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:39:06' and `end` < '2025-04-25 10: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-04-25 10:39:19] Production.INFO: count ==3521 [2025-04-25 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:39:06 - End Time 2025-04-25 10:39:06 [2025-04-25 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986388', 'tblTempUsageDetail_20' ) start [2025-04-25 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986388', 'tblTempUsageDetail_20' ) end [2025-04-25 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986388', 'tblTempVendorCDR_20' ) start [2025-04-25 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986388', 'tblTempVendorCDR_20' ) end [2025-04-25 10:39:21] Production.INFO: ProcessCDR(1,14986388,1,1,2) [2025-04-25 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986388', 'tblTempUsageDetail_20' ) start [2025-04-25 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986388', 'tblTempUsageDetail_20' ) end [2025-04-25 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:39:26] Production.INFO: ==18410== Releasing lock... [2025-04-25 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:39:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-25 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:40:05 [end_date_ymd] => 2025-04-25 10:40:05 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:40:05' and `end` < '2025-04-25 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:40:19] Production.INFO: count ==3541 [2025-04-25 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:40:05 - End Time 2025-04-25 10:40:05 [2025-04-25 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986394', 'tblTempUsageDetail_20' ) start [2025-04-25 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986394', 'tblTempUsageDetail_20' ) end [2025-04-25 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986394', 'tblTempVendorCDR_20' ) start [2025-04-25 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986394', 'tblTempVendorCDR_20' ) end [2025-04-25 10:40:21] Production.INFO: ProcessCDR(1,14986394,1,1,2) [2025-04-25 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986394', 'tblTempUsageDetail_20' ) start [2025-04-25 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986394', 'tblTempUsageDetail_20' ) end [2025-04-25 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:40:26] Production.INFO: ==18488== Releasing lock... [2025-04-25 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:40:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-25 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:41:05 [end_date_ymd] => 2025-04-25 10:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:41:05' and `end` < '2025-04-25 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-04-25 10:41:19] Production.INFO: count ==3666 [2025-04-25 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:41:05 - End Time 2025-04-25 10:41:05 [2025-04-25 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986399', 'tblTempUsageDetail_20' ) start [2025-04-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986399', 'tblTempUsageDetail_20' ) end [2025-04-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986399', 'tblTempVendorCDR_20' ) start [2025-04-25 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986399', 'tblTempVendorCDR_20' ) end [2025-04-25 10:41:20] Production.INFO: ProcessCDR(1,14986399,1,1,2) [2025-04-25 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986399', 'tblTempUsageDetail_20' ) start [2025-04-25 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986399', 'tblTempUsageDetail_20' ) end [2025-04-25 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:41:25] Production.INFO: ==18566== Releasing lock... [2025-04-25 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:41:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-25 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:42:06 [end_date_ymd] => 2025-04-25 10:42:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:42:06' and `end` < '2025-04-25 10: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-04-25 10:42:19] Production.INFO: count ==3683 [2025-04-25 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:42:06 - End Time 2025-04-25 10:42:06 [2025-04-25 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986404', 'tblTempUsageDetail_20' ) start [2025-04-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986404', 'tblTempUsageDetail_20' ) end [2025-04-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986404', 'tblTempVendorCDR_20' ) start [2025-04-25 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986404', 'tblTempVendorCDR_20' ) end [2025-04-25 10:42:20] Production.INFO: ProcessCDR(1,14986404,1,1,2) [2025-04-25 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986404', 'tblTempUsageDetail_20' ) start [2025-04-25 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986404', 'tblTempUsageDetail_20' ) end [2025-04-25 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:42:25] Production.INFO: ==18642== Releasing lock... [2025-04-25 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:42:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-25 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:43:05 [end_date_ymd] => 2025-04-25 10:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:43:05' and `end` < '2025-04-25 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-04-25 10:43:19] Production.INFO: count ==3699 [2025-04-25 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:43:05 - End Time 2025-04-25 10:43:05 [2025-04-25 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986409', 'tblTempUsageDetail_20' ) start [2025-04-25 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986409', 'tblTempUsageDetail_20' ) end [2025-04-25 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986409', 'tblTempVendorCDR_20' ) start [2025-04-25 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986409', 'tblTempVendorCDR_20' ) end [2025-04-25 10:43:20] Production.INFO: ProcessCDR(1,14986409,1,1,2) [2025-04-25 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986409', 'tblTempUsageDetail_20' ) start [2025-04-25 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986409', 'tblTempUsageDetail_20' ) end [2025-04-25 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:43:25] Production.INFO: ==18716== Releasing lock... [2025-04-25 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:43:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-25 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:44:05 [end_date_ymd] => 2025-04-25 10:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:44:05' and `end` < '2025-04-25 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-04-25 10:44:19] Production.INFO: count ==3711 [2025-04-25 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:44:05 - End Time 2025-04-25 10:44:05 [2025-04-25 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986414', 'tblTempUsageDetail_20' ) start [2025-04-25 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986414', 'tblTempUsageDetail_20' ) end [2025-04-25 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986414', 'tblTempVendorCDR_20' ) start [2025-04-25 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986414', 'tblTempVendorCDR_20' ) end [2025-04-25 10:44:20] Production.INFO: ProcessCDR(1,14986414,1,1,2) [2025-04-25 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986414', 'tblTempUsageDetail_20' ) start [2025-04-25 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986414', 'tblTempUsageDetail_20' ) end [2025-04-25 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:44:26] Production.INFO: ==18789== Releasing lock... [2025-04-25 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:44:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-25 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:45:04 [end_date_ymd] => 2025-04-25 10:45:04 [RateCDR] => 1 ) [2025-04-25 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:45:04' and `end` < '2025-04-25 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:45:18] Production.INFO: count ==3732 [2025-04-25 10:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:45:04 - End Time 2025-04-25 10:45:04 [2025-04-25 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986419', 'tblTempUsageDetail_20' ) start [2025-04-25 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986419', 'tblTempUsageDetail_20' ) end [2025-04-25 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986419', 'tblTempVendorCDR_20' ) start [2025-04-25 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986419', 'tblTempVendorCDR_20' ) end [2025-04-25 10:45:19] Production.INFO: ProcessCDR(1,14986419,1,1,2) [2025-04-25 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986419', 'tblTempUsageDetail_20' ) start [2025-04-25 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986419', 'tblTempUsageDetail_20' ) end [2025-04-25 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:45:24] Production.INFO: ==18860== Releasing lock... [2025-04-25 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:45:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-25 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:46:05 [end_date_ymd] => 2025-04-25 10:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:46:05' and `end` < '2025-04-25 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-04-25 10:46:19] Production.INFO: count ==3749 [2025-04-25 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:46:05 - End Time 2025-04-25 10:46:05 [2025-04-25 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986424', 'tblTempUsageDetail_20' ) start [2025-04-25 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986424', 'tblTempUsageDetail_20' ) end [2025-04-25 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986424', 'tblTempVendorCDR_20' ) start [2025-04-25 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986424', 'tblTempVendorCDR_20' ) end [2025-04-25 10:46:20] Production.INFO: ProcessCDR(1,14986424,1,1,2) [2025-04-25 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986424', 'tblTempUsageDetail_20' ) start [2025-04-25 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986424', 'tblTempUsageDetail_20' ) end [2025-04-25 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:46:25] Production.INFO: ==18936== Releasing lock... [2025-04-25 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:46:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-25 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:47:05 [end_date_ymd] => 2025-04-25 10:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:47:05' and `end` < '2025-04-25 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-04-25 10:47:18] Production.INFO: count ==3752 [2025-04-25 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:47:05 - End Time 2025-04-25 10:47:05 [2025-04-25 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986429', 'tblTempUsageDetail_20' ) start [2025-04-25 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986429', 'tblTempUsageDetail_20' ) end [2025-04-25 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986429', 'tblTempVendorCDR_20' ) start [2025-04-25 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986429', 'tblTempVendorCDR_20' ) end [2025-04-25 10:47:20] Production.INFO: ProcessCDR(1,14986429,1,1,2) [2025-04-25 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986429', 'tblTempUsageDetail_20' ) start [2025-04-25 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986429', 'tblTempUsageDetail_20' ) end [2025-04-25 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:47:25] Production.INFO: ==19048== Releasing lock... [2025-04-25 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:47:25] Production.INFO: 56 MB #Memory Used# [2025-04-25 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:48:05 [end_date_ymd] => 2025-04-25 10:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:48:05' and `end` < '2025-04-25 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-04-25 10:48:19] Production.INFO: count ==3759 [2025-04-25 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:48:05 - End Time 2025-04-25 10:48:05 [2025-04-25 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986434', 'tblTempUsageDetail_20' ) start [2025-04-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986434', 'tblTempUsageDetail_20' ) end [2025-04-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986434', 'tblTempVendorCDR_20' ) start [2025-04-25 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986434', 'tblTempVendorCDR_20' ) end [2025-04-25 10:48:20] Production.INFO: ProcessCDR(1,14986434,1,1,2) [2025-04-25 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986434', 'tblTempUsageDetail_20' ) start [2025-04-25 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986434', 'tblTempUsageDetail_20' ) end [2025-04-25 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:48:25] Production.INFO: ==19120== Releasing lock... [2025-04-25 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:48:25] Production.INFO: 56 MB #Memory Used# [2025-04-25 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:49:05 [end_date_ymd] => 2025-04-25 10:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:49:05' and `end` < '2025-04-25 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-04-25 10:49:18] Production.INFO: count ==3772 [2025-04-25 10:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:49:05 - End Time 2025-04-25 10:49:05 [2025-04-25 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986439', 'tblTempUsageDetail_20' ) start [2025-04-25 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986439', 'tblTempUsageDetail_20' ) end [2025-04-25 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986439', 'tblTempVendorCDR_20' ) start [2025-04-25 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986439', 'tblTempVendorCDR_20' ) end [2025-04-25 10:49:20] Production.INFO: ProcessCDR(1,14986439,1,1,2) [2025-04-25 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986439', 'tblTempUsageDetail_20' ) start [2025-04-25 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986439', 'tblTempUsageDetail_20' ) end [2025-04-25 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:49:25] Production.INFO: ==19191== Releasing lock... [2025-04-25 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:49:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-25 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:50:06 [end_date_ymd] => 2025-04-25 10:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:50:06' and `end` < '2025-04-25 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-04-25 10:50:19] Production.INFO: count ==3783 [2025-04-25 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-25 07:50:06 - End Time 2025-04-25 10:50:06 [2025-04-25 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986445', 'tblTempUsageDetail_20' ) start [2025-04-25 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986445', 'tblTempUsageDetail_20' ) end [2025-04-25 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986445', 'tblTempVendorCDR_20' ) start [2025-04-25 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986445', 'tblTempVendorCDR_20' ) end [2025-04-25 10:50:21] Production.INFO: ProcessCDR(1,14986445,1,1,2) [2025-04-25 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986445', 'tblTempUsageDetail_20' ) start [2025-04-25 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986445', 'tblTempUsageDetail_20' ) end [2025-04-25 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:50:26] Production.INFO: ==19273== Releasing lock... [2025-04-25 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:50:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-25 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:51:05 [end_date_ymd] => 2025-04-25 10:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:51:05' and `end` < '2025-04-25 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-04-25 10:51:18] Production.INFO: count ==3877 [2025-04-25 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:51:05 - End Time 2025-04-25 10:51:05 [2025-04-25 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986450', 'tblTempUsageDetail_20' ) start [2025-04-25 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986450', 'tblTempUsageDetail_20' ) end [2025-04-25 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986450', 'tblTempVendorCDR_20' ) start [2025-04-25 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986450', 'tblTempVendorCDR_20' ) end [2025-04-25 10:51:20] Production.INFO: ProcessCDR(1,14986450,1,1,2) [2025-04-25 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986450', 'tblTempUsageDetail_20' ) start [2025-04-25 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986450', 'tblTempUsageDetail_20' ) end [2025-04-25 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:51:25] Production.INFO: ==19348== Releasing lock... [2025-04-25 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:51:25] Production.INFO: 57 MB #Memory Used# [2025-04-25 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:52:04 [end_date_ymd] => 2025-04-25 10:52:04 [RateCDR] => 1 ) [2025-04-25 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 07:52:04' and `end` < '2025-04-25 10:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 10:52:18] Production.INFO: count ==3893 [2025-04-25 10:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:52:04 - End Time 2025-04-25 10:52:04 [2025-04-25 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986455', 'tblTempUsageDetail_20' ) start [2025-04-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986455', 'tblTempUsageDetail_20' ) end [2025-04-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986455', 'tblTempVendorCDR_20' ) start [2025-04-25 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986455', 'tblTempVendorCDR_20' ) end [2025-04-25 10:52:20] Production.INFO: ProcessCDR(1,14986455,1,1,2) [2025-04-25 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986455', 'tblTempUsageDetail_20' ) start [2025-04-25 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986455', 'tblTempUsageDetail_20' ) end [2025-04-25 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:52:25] Production.INFO: ==19419== Releasing lock... [2025-04-25 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:52:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:53:06 [end_date_ymd] => 2025-04-25 10:53:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:53:06' and `end` < '2025-04-25 10: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-04-25 10:53:19] Production.INFO: count ==3911 [2025-04-25 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:53:06 - End Time 2025-04-25 10:53:06 [2025-04-25 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986460', 'tblTempUsageDetail_20' ) start [2025-04-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986460', 'tblTempUsageDetail_20' ) end [2025-04-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986460', 'tblTempVendorCDR_20' ) start [2025-04-25 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986460', 'tblTempVendorCDR_20' ) end [2025-04-25 10:53:21] Production.INFO: ProcessCDR(1,14986460,1,1,2) [2025-04-25 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986460', 'tblTempUsageDetail_20' ) start [2025-04-25 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986460', 'tblTempUsageDetail_20' ) end [2025-04-25 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:53:25] Production.INFO: ==19495== Releasing lock... [2025-04-25 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:53:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:54:05 [end_date_ymd] => 2025-04-25 10:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:54:05' and `end` < '2025-04-25 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-04-25 10:54:18] Production.INFO: count ==3921 [2025-04-25 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:54:05 - End Time 2025-04-25 10:54:05 [2025-04-25 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986465', 'tblTempUsageDetail_20' ) start [2025-04-25 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986465', 'tblTempUsageDetail_20' ) end [2025-04-25 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986465', 'tblTempVendorCDR_20' ) start [2025-04-25 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986465', 'tblTempVendorCDR_20' ) end [2025-04-25 10:54:20] Production.INFO: ProcessCDR(1,14986465,1,1,2) [2025-04-25 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986465', 'tblTempUsageDetail_20' ) start [2025-04-25 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986465', 'tblTempUsageDetail_20' ) end [2025-04-25 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:54:25] Production.INFO: ==19569== Releasing lock... [2025-04-25 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:54:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:55:05 [end_date_ymd] => 2025-04-25 10:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:55:05' and `end` < '2025-04-25 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-04-25 10:55:18] Production.INFO: count ==3930 [2025-04-25 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:55:05 - End Time 2025-04-25 10:55:05 [2025-04-25 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986470', 'tblTempUsageDetail_20' ) start [2025-04-25 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986470', 'tblTempUsageDetail_20' ) end [2025-04-25 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986470', 'tblTempVendorCDR_20' ) start [2025-04-25 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986470', 'tblTempVendorCDR_20' ) end [2025-04-25 10:55:20] Production.INFO: ProcessCDR(1,14986470,1,1,2) [2025-04-25 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986470', 'tblTempUsageDetail_20' ) start [2025-04-25 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986470', 'tblTempUsageDetail_20' ) end [2025-04-25 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:55:25] Production.INFO: ==19641== Releasing lock... [2025-04-25 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:55:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-25 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:56:05 [end_date_ymd] => 2025-04-25 10:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:56:05' and `end` < '2025-04-25 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-04-25 10:56:18] Production.INFO: count ==3950 [2025-04-25 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:56:05 - End Time 2025-04-25 10:56:05 [2025-04-25 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986475', 'tblTempUsageDetail_20' ) start [2025-04-25 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986475', 'tblTempUsageDetail_20' ) end [2025-04-25 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986475', 'tblTempVendorCDR_20' ) start [2025-04-25 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986475', 'tblTempVendorCDR_20' ) end [2025-04-25 10:56:20] Production.INFO: ProcessCDR(1,14986475,1,1,2) [2025-04-25 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986475', 'tblTempUsageDetail_20' ) start [2025-04-25 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986475', 'tblTempUsageDetail_20' ) end [2025-04-25 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:56:25] Production.INFO: ==19712== Releasing lock... [2025-04-25 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:56:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-25 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:57:06 [end_date_ymd] => 2025-04-25 10:57:06 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:57:06' and `end` < '2025-04-25 10: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-04-25 10:57:19] Production.INFO: count ==3969 [2025-04-25 10:57:21] Production.ERROR: pbx CDR StartTime 2025-04-25 07:57:06 - End Time 2025-04-25 10:57:06 [2025-04-25 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986480', 'tblTempUsageDetail_20' ) start [2025-04-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986480', 'tblTempUsageDetail_20' ) end [2025-04-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986480', 'tblTempVendorCDR_20' ) start [2025-04-25 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986480', 'tblTempVendorCDR_20' ) end [2025-04-25 10:57:21] Production.INFO: ProcessCDR(1,14986480,1,1,2) [2025-04-25 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986480', 'tblTempUsageDetail_20' ) start [2025-04-25 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986480', 'tblTempUsageDetail_20' ) end [2025-04-25 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:57:26] Production.INFO: ==19792== Releasing lock... [2025-04-25 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:57:26] Production.INFO: 58 MB #Memory Used# [2025-04-25 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:58:04 [end_date_ymd] => 2025-04-25 10:58:04 [RateCDR] => 1 ) [2025-04-25 10: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-04-25 07:58:04' and `end` < '2025-04-25 10: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-04-25 10:58:18] Production.INFO: count ==3996 [2025-04-25 10:58:19] Production.ERROR: pbx CDR StartTime 2025-04-25 07:58:04 - End Time 2025-04-25 10:58:04 [2025-04-25 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986485', 'tblTempUsageDetail_20' ) start [2025-04-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986485', 'tblTempUsageDetail_20' ) end [2025-04-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986485', 'tblTempVendorCDR_20' ) start [2025-04-25 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986485', 'tblTempVendorCDR_20' ) end [2025-04-25 10:58:19] Production.INFO: ProcessCDR(1,14986485,1,1,2) [2025-04-25 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986485', 'tblTempUsageDetail_20' ) start [2025-04-25 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986485', 'tblTempUsageDetail_20' ) end [2025-04-25 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:58:24] Production.INFO: ==19863== Releasing lock... [2025-04-25 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:58:24] Production.INFO: 58 MB #Memory Used# [2025-04-25 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 07:59:05 [end_date_ymd] => 2025-04-25 10:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 07:59:05' and `end` < '2025-04-25 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-04-25 10:59:18] Production.INFO: count ==4012 [2025-04-25 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-25 07:59:05 - End Time 2025-04-25 10:59:05 [2025-04-25 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986490', 'tblTempUsageDetail_20' ) start [2025-04-25 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986490', 'tblTempUsageDetail_20' ) end [2025-04-25 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986490', 'tblTempVendorCDR_20' ) start [2025-04-25 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986490', 'tblTempVendorCDR_20' ) end [2025-04-25 10:59:20] Production.INFO: ProcessCDR(1,14986490,1,1,2) [2025-04-25 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986490', 'tblTempUsageDetail_20' ) start [2025-04-25 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986490', 'tblTempUsageDetail_20' ) end [2025-04-25 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 10:59:25] Production.INFO: ==19934== Releasing lock... [2025-04-25 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 10:59:25] Production.INFO: 58 MB #Memory Used# [2025-04-25 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:00:06 [end_date_ymd] => 2025-04-25 11:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:00:06' and `end` < '2025-04-25 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-04-25 11:00:20] Production.INFO: count ==4025 [2025-04-25 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:00:06 - End Time 2025-04-25 11:00:06 [2025-04-25 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986495', 'tblTempUsageDetail_20' ) start [2025-04-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986495', 'tblTempUsageDetail_20' ) end [2025-04-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986495', 'tblTempVendorCDR_20' ) start [2025-04-25 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986495', 'tblTempVendorCDR_20' ) end [2025-04-25 11:00:22] Production.INFO: ProcessCDR(1,14986495,1,1,2) [2025-04-25 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986495', 'tblTempUsageDetail_20' ) start [2025-04-25 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986495', 'tblTempUsageDetail_20' ) end [2025-04-25 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:00:26] Production.INFO: ==20011== Releasing lock... [2025-04-25 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:00:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-25 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:01:05 [end_date_ymd] => 2025-04-25 11:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:01:05' and `end` < '2025-04-25 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-04-25 11:01:18] Production.INFO: count ==4154 [2025-04-25 11:01:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:01:05 - End Time 2025-04-25 11:01:05 [2025-04-25 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986501', 'tblTempUsageDetail_20' ) start [2025-04-25 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986501', 'tblTempUsageDetail_20' ) end [2025-04-25 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986501', 'tblTempVendorCDR_20' ) start [2025-04-25 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986501', 'tblTempVendorCDR_20' ) end [2025-04-25 11:01:20] Production.INFO: ProcessCDR(1,14986501,1,1,2) [2025-04-25 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986501', 'tblTempUsageDetail_20' ) start [2025-04-25 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986501', 'tblTempUsageDetail_20' ) end [2025-04-25 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:01:25] Production.INFO: ==20139== Releasing lock... [2025-04-25 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:01:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-25 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:02:04 [end_date_ymd] => 2025-04-25 11:02:04 [RateCDR] => 1 ) [2025-04-25 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:02:04' and `end` < '2025-04-25 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:02:18] Production.INFO: count ==4198 [2025-04-25 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:02:04 - End Time 2025-04-25 11:02:04 [2025-04-25 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986506', 'tblTempUsageDetail_20' ) start [2025-04-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986506', 'tblTempUsageDetail_20' ) end [2025-04-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986506', 'tblTempVendorCDR_20' ) start [2025-04-25 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986506', 'tblTempVendorCDR_20' ) end [2025-04-25 11:02:20] Production.INFO: ProcessCDR(1,14986506,1,1,2) [2025-04-25 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986506', 'tblTempUsageDetail_20' ) start [2025-04-25 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986506', 'tblTempUsageDetail_20' ) end [2025-04-25 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:02:25] Production.INFO: ==20292== Releasing lock... [2025-04-25 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:02:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-25 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:03:05 [end_date_ymd] => 2025-04-25 11:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:03:05' and `end` < '2025-04-25 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-04-25 11:03:19] Production.INFO: count ==4212 [2025-04-25 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:03:05 - End Time 2025-04-25 11:03:05 [2025-04-25 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986511', 'tblTempUsageDetail_20' ) start [2025-04-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986511', 'tblTempUsageDetail_20' ) end [2025-04-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986511', 'tblTempVendorCDR_20' ) start [2025-04-25 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986511', 'tblTempVendorCDR_20' ) end [2025-04-25 11:03:21] Production.INFO: ProcessCDR(1,14986511,1,1,2) [2025-04-25 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986511', 'tblTempUsageDetail_20' ) start [2025-04-25 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986511', 'tblTempUsageDetail_20' ) end [2025-04-25 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:03:26] Production.INFO: ==20371== Releasing lock... [2025-04-25 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:03:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-25 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:04:05 [end_date_ymd] => 2025-04-25 11:04:05 [RateCDR] => 1 ) [2025-04-25 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:04:05' and `end` < '2025-04-25 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:04:19] Production.INFO: count ==4235 [2025-04-25 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:04:05 - End Time 2025-04-25 11:04:05 [2025-04-25 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986516', 'tblTempUsageDetail_20' ) start [2025-04-25 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986516', 'tblTempUsageDetail_20' ) end [2025-04-25 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986516', 'tblTempVendorCDR_20' ) start [2025-04-25 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986516', 'tblTempVendorCDR_20' ) end [2025-04-25 11:04:20] Production.INFO: ProcessCDR(1,14986516,1,1,2) [2025-04-25 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986516', 'tblTempUsageDetail_20' ) start [2025-04-25 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986516', 'tblTempUsageDetail_20' ) end [2025-04-25 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:04:25] Production.INFO: ==20443== Releasing lock... [2025-04-25 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:04:25] Production.INFO: 59.75 MB #Memory Used# [2025-04-25 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:05:06 [end_date_ymd] => 2025-04-25 11:05:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:05:06' and `end` < '2025-04-25 11: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-04-25 11:05:19] Production.INFO: count ==4261 [2025-04-25 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:05:06 - End Time 2025-04-25 11:05:06 [2025-04-25 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986521', 'tblTempUsageDetail_20' ) start [2025-04-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986521', 'tblTempUsageDetail_20' ) end [2025-04-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986521', 'tblTempVendorCDR_20' ) start [2025-04-25 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986521', 'tblTempVendorCDR_20' ) end [2025-04-25 11:05:21] Production.INFO: ProcessCDR(1,14986521,1,1,2) [2025-04-25 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986521', 'tblTempUsageDetail_20' ) start [2025-04-25 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986521', 'tblTempUsageDetail_20' ) end [2025-04-25 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:05:26] Production.INFO: ==20595== Releasing lock... [2025-04-25 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:05:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:06:05 [end_date_ymd] => 2025-04-25 11:06:05 [RateCDR] => 1 ) [2025-04-25 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:06:05' and `end` < '2025-04-25 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:06:19] Production.INFO: count ==4288 [2025-04-25 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:06:05 - End Time 2025-04-25 11:06:05 [2025-04-25 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986526', 'tblTempUsageDetail_20' ) start [2025-04-25 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986526', 'tblTempUsageDetail_20' ) end [2025-04-25 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986526', 'tblTempVendorCDR_20' ) start [2025-04-25 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986526', 'tblTempVendorCDR_20' ) end [2025-04-25 11:06:20] Production.INFO: ProcessCDR(1,14986526,1,1,2) [2025-04-25 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986526', 'tblTempUsageDetail_20' ) start [2025-04-25 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986526', 'tblTempUsageDetail_20' ) end [2025-04-25 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:06:26] Production.INFO: ==20679== Releasing lock... [2025-04-25 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:06:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:07:05 [end_date_ymd] => 2025-04-25 11:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:07:05' and `end` < '2025-04-25 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-04-25 11:07:19] Production.INFO: count ==4288 [2025-04-25 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:07:05 - End Time 2025-04-25 11:07:05 [2025-04-25 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986531', 'tblTempUsageDetail_20' ) start [2025-04-25 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986531', 'tblTempUsageDetail_20' ) end [2025-04-25 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986531', 'tblTempVendorCDR_20' ) start [2025-04-25 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986531', 'tblTempVendorCDR_20' ) end [2025-04-25 11:07:20] Production.INFO: ProcessCDR(1,14986531,1,1,2) [2025-04-25 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986531', 'tblTempUsageDetail_20' ) start [2025-04-25 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986531', 'tblTempUsageDetail_20' ) end [2025-04-25 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:07:25] Production.INFO: ==20751== Releasing lock... [2025-04-25 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:07:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:08:05 [end_date_ymd] => 2025-04-25 11:08:05 [RateCDR] => 1 ) [2025-04-25 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:08:05' and `end` < '2025-04-25 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:08:19] Production.INFO: count ==4304 [2025-04-25 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:08:05 - End Time 2025-04-25 11:08:05 [2025-04-25 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986536', 'tblTempUsageDetail_20' ) start [2025-04-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986536', 'tblTempUsageDetail_20' ) end [2025-04-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986536', 'tblTempVendorCDR_20' ) start [2025-04-25 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986536', 'tblTempVendorCDR_20' ) end [2025-04-25 11:08:21] Production.INFO: ProcessCDR(1,14986536,1,1,2) [2025-04-25 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986536', 'tblTempUsageDetail_20' ) start [2025-04-25 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986536', 'tblTempUsageDetail_20' ) end [2025-04-25 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:08:26] Production.INFO: ==20900== Releasing lock... [2025-04-25 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:08:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:09:04 [end_date_ymd] => 2025-04-25 11:09:04 [RateCDR] => 1 ) [2025-04-25 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:09:04' and `end` < '2025-04-25 11:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:09:18] Production.INFO: count ==4318 [2025-04-25 11:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 08:09:04 - End Time 2025-04-25 11:09:04 [2025-04-25 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986541', 'tblTempUsageDetail_20' ) start [2025-04-25 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986541', 'tblTempUsageDetail_20' ) end [2025-04-25 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986541', 'tblTempVendorCDR_20' ) start [2025-04-25 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986541', 'tblTempVendorCDR_20' ) end [2025-04-25 11:09:20] Production.INFO: ProcessCDR(1,14986541,1,1,2) [2025-04-25 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986541', 'tblTempUsageDetail_20' ) start [2025-04-25 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986541', 'tblTempUsageDetail_20' ) end [2025-04-25 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:09:25] Production.INFO: ==20974== Releasing lock... [2025-04-25 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:09:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:10:06 [end_date_ymd] => 2025-04-25 11:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:10:06' and `end` < '2025-04-25 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-04-25 11:10:19] Production.INFO: count ==4332 [2025-04-25 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:10:06 - End Time 2025-04-25 11:10:06 [2025-04-25 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986546', 'tblTempUsageDetail_20' ) start [2025-04-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986546', 'tblTempUsageDetail_20' ) end [2025-04-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986546', 'tblTempVendorCDR_20' ) start [2025-04-25 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986546', 'tblTempVendorCDR_20' ) end [2025-04-25 11:10:21] Production.INFO: ProcessCDR(1,14986546,1,1,2) [2025-04-25 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986546', 'tblTempUsageDetail_20' ) start [2025-04-25 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986546', 'tblTempUsageDetail_20' ) end [2025-04-25 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:10:27] Production.INFO: ==21050== Releasing lock... [2025-04-25 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:10:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-25 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:11:06 [end_date_ymd] => 2025-04-25 11:11:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:11:06' and `end` < '2025-04-25 11: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-04-25 11:11:19] Production.INFO: count ==4435 [2025-04-25 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:11:06 - End Time 2025-04-25 11:11:06 [2025-04-25 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986552', 'tblTempUsageDetail_20' ) start [2025-04-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986552', 'tblTempUsageDetail_20' ) end [2025-04-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986552', 'tblTempVendorCDR_20' ) start [2025-04-25 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986552', 'tblTempVendorCDR_20' ) end [2025-04-25 11:11:21] Production.INFO: ProcessCDR(1,14986552,1,1,2) [2025-04-25 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986552', 'tblTempUsageDetail_20' ) start [2025-04-25 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986552', 'tblTempUsageDetail_20' ) end [2025-04-25 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:11:26] Production.INFO: ==21124== Releasing lock... [2025-04-25 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:11:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-25 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:12:05 [end_date_ymd] => 2025-04-25 11:12:05 [RateCDR] => 1 ) [2025-04-25 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:12:05' and `end` < '2025-04-25 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:12:19] Production.INFO: count ==4435 [2025-04-25 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:12:05 - End Time 2025-04-25 11:12:05 [2025-04-25 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986557', 'tblTempUsageDetail_20' ) start [2025-04-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986557', 'tblTempUsageDetail_20' ) end [2025-04-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986557', 'tblTempVendorCDR_20' ) start [2025-04-25 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986557', 'tblTempVendorCDR_20' ) end [2025-04-25 11:12:21] Production.INFO: ProcessCDR(1,14986557,1,1,2) [2025-04-25 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986557', 'tblTempUsageDetail_20' ) start [2025-04-25 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986557', 'tblTempUsageDetail_20' ) end [2025-04-25 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:12:27] Production.INFO: ==21275== Releasing lock... [2025-04-25 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:12:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-25 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:13:05 [end_date_ymd] => 2025-04-25 11:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:13:05' and `end` < '2025-04-25 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:13:19] Production.INFO: count ==4445 [2025-04-25 11:13:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:13:05 - End Time 2025-04-25 11:13:05 [2025-04-25 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986562', 'tblTempUsageDetail_20' ) start [2025-04-25 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986562', 'tblTempUsageDetail_20' ) end [2025-04-25 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986562', 'tblTempVendorCDR_20' ) start [2025-04-25 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986562', 'tblTempVendorCDR_20' ) end [2025-04-25 11:13:21] Production.INFO: ProcessCDR(1,14986562,1,1,2) [2025-04-25 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986562', 'tblTempUsageDetail_20' ) start [2025-04-25 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986562', 'tblTempUsageDetail_20' ) end [2025-04-25 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:13:27] Production.INFO: ==21354== Releasing lock... [2025-04-25 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:13:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-25 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:14:05 [end_date_ymd] => 2025-04-25 11:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:14:05' and `end` < '2025-04-25 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-04-25 11:14:18] Production.INFO: count ==4455 [2025-04-25 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:14:05 - End Time 2025-04-25 11:14:05 [2025-04-25 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986567', 'tblTempUsageDetail_20' ) start [2025-04-25 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986567', 'tblTempUsageDetail_20' ) end [2025-04-25 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986567', 'tblTempVendorCDR_20' ) start [2025-04-25 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986567', 'tblTempVendorCDR_20' ) end [2025-04-25 11:14:20] Production.INFO: ProcessCDR(1,14986567,1,1,2) [2025-04-25 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986567', 'tblTempUsageDetail_20' ) start [2025-04-25 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986567', 'tblTempUsageDetail_20' ) end [2025-04-25 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:14:25] Production.INFO: ==21425== Releasing lock... [2025-04-25 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:14:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:15:05 [end_date_ymd] => 2025-04-25 11:15:05 [RateCDR] => 1 ) [2025-04-25 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:15:05' and `end` < '2025-04-25 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:15:19] Production.INFO: count ==4459 [2025-04-25 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:15:05 - End Time 2025-04-25 11:15:05 [2025-04-25 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986572', 'tblTempUsageDetail_20' ) start [2025-04-25 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986572', 'tblTempUsageDetail_20' ) end [2025-04-25 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986572', 'tblTempVendorCDR_20' ) start [2025-04-25 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986572', 'tblTempVendorCDR_20' ) end [2025-04-25 11:15:21] Production.INFO: ProcessCDR(1,14986572,1,1,2) [2025-04-25 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986572', 'tblTempUsageDetail_20' ) start [2025-04-25 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986572', 'tblTempUsageDetail_20' ) end [2025-04-25 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:15:26] Production.INFO: ==21575== Releasing lock... [2025-04-25 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:15:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:16:05 [end_date_ymd] => 2025-04-25 11:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:16:05' and `end` < '2025-04-25 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-04-25 11:16:18] Production.INFO: count ==4458 [2025-04-25 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:16:05 - End Time 2025-04-25 11:16:05 [2025-04-25 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986577', 'tblTempUsageDetail_20' ) start [2025-04-25 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986577', 'tblTempUsageDetail_20' ) end [2025-04-25 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986577', 'tblTempVendorCDR_20' ) start [2025-04-25 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986577', 'tblTempVendorCDR_20' ) end [2025-04-25 11:16:20] Production.INFO: ProcessCDR(1,14986577,1,1,2) [2025-04-25 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986577', 'tblTempUsageDetail_20' ) start [2025-04-25 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986577', 'tblTempUsageDetail_20' ) end [2025-04-25 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:16:25] Production.INFO: ==21648== Releasing lock... [2025-04-25 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:16:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:17:05 [end_date_ymd] => 2025-04-25 11:17:05 [RateCDR] => 1 ) [2025-04-25 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:17:05' and `end` < '2025-04-25 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:17:19] Production.INFO: count ==4469 [2025-04-25 11:17:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:17:05 - End Time 2025-04-25 11:17:05 [2025-04-25 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986582', 'tblTempUsageDetail_20' ) start [2025-04-25 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986582', 'tblTempUsageDetail_20' ) end [2025-04-25 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986582', 'tblTempVendorCDR_20' ) start [2025-04-25 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986582', 'tblTempVendorCDR_20' ) end [2025-04-25 11:17:20] Production.INFO: ProcessCDR(1,14986582,1,1,2) [2025-04-25 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986582', 'tblTempUsageDetail_20' ) start [2025-04-25 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986582', 'tblTempUsageDetail_20' ) end [2025-04-25 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:17:26] Production.INFO: ==21764== Releasing lock... [2025-04-25 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:17:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:18:04 [end_date_ymd] => 2025-04-25 11:18:04 [RateCDR] => 1 ) [2025-04-25 11:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:18:04' and `end` < '2025-04-25 11:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:18:18] Production.INFO: count ==4473 [2025-04-25 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:18:04 - End Time 2025-04-25 11:18:04 [2025-04-25 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986587', 'tblTempUsageDetail_20' ) start [2025-04-25 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986587', 'tblTempUsageDetail_20' ) end [2025-04-25 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986587', 'tblTempVendorCDR_20' ) start [2025-04-25 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986587', 'tblTempVendorCDR_20' ) end [2025-04-25 11:18:20] Production.INFO: ProcessCDR(1,14986587,1,1,2) [2025-04-25 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986587', 'tblTempUsageDetail_20' ) start [2025-04-25 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986587', 'tblTempUsageDetail_20' ) end [2025-04-25 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:18:25] Production.INFO: ==21833== Releasing lock... [2025-04-25 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:18:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:19:05 [end_date_ymd] => 2025-04-25 11:19:05 [RateCDR] => 1 ) [2025-04-25 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:19:05' and `end` < '2025-04-25 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:19:19] Production.INFO: count ==4496 [2025-04-25 11:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:19:05 - End Time 2025-04-25 11:19:05 [2025-04-25 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986592', 'tblTempUsageDetail_20' ) start [2025-04-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986592', 'tblTempUsageDetail_20' ) end [2025-04-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986592', 'tblTempVendorCDR_20' ) start [2025-04-25 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986592', 'tblTempVendorCDR_20' ) end [2025-04-25 11:19:21] Production.INFO: ProcessCDR(1,14986592,1,1,2) [2025-04-25 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986592', 'tblTempUsageDetail_20' ) start [2025-04-25 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986592', 'tblTempUsageDetail_20' ) end [2025-04-25 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:19:26] Production.INFO: ==21907== Releasing lock... [2025-04-25 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:19:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-25 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:20:07 [end_date_ymd] => 2025-04-25 11:20:07 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:20:07' and `end` < '2025-04-25 11: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-04-25 11:20:20] Production.INFO: count ==4519 [2025-04-25 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-25 08:20:07 - End Time 2025-04-25 11:20:07 [2025-04-25 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986598', 'tblTempUsageDetail_20' ) start [2025-04-25 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986598', 'tblTempUsageDetail_20' ) end [2025-04-25 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986598', 'tblTempVendorCDR_20' ) start [2025-04-25 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986598', 'tblTempVendorCDR_20' ) end [2025-04-25 11:20:22] Production.INFO: ProcessCDR(1,14986598,1,1,2) [2025-04-25 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986598', 'tblTempUsageDetail_20' ) start [2025-04-25 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986598', 'tblTempUsageDetail_20' ) end [2025-04-25 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:20:27] Production.INFO: ==21981== Releasing lock... [2025-04-25 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:20:27] Production.INFO: 62 MB #Memory Used# [2025-04-25 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:21:05 [end_date_ymd] => 2025-04-25 11:21:05 [RateCDR] => 1 ) [2025-04-25 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:21:05' and `end` < '2025-04-25 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:21:19] Production.INFO: count ==4599 [2025-04-25 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:21:05 - End Time 2025-04-25 11:21:05 [2025-04-25 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986603', 'tblTempUsageDetail_20' ) start [2025-04-25 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986603', 'tblTempUsageDetail_20' ) end [2025-04-25 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986603', 'tblTempVendorCDR_20' ) start [2025-04-25 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986603', 'tblTempVendorCDR_20' ) end [2025-04-25 11:21:21] Production.INFO: ProcessCDR(1,14986603,1,1,2) [2025-04-25 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986603', 'tblTempUsageDetail_20' ) start [2025-04-25 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986603', 'tblTempUsageDetail_20' ) end [2025-04-25 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:21:26] Production.INFO: ==22058== Releasing lock... [2025-04-25 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:21:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-25 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:22:06 [end_date_ymd] => 2025-04-25 11:22:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:22:06' and `end` < '2025-04-25 11: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-04-25 11:22:20] Production.INFO: count ==4595 [2025-04-25 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:22:06 - End Time 2025-04-25 11:22:06 [2025-04-25 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986608', 'tblTempUsageDetail_20' ) start [2025-04-25 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986608', 'tblTempUsageDetail_20' ) end [2025-04-25 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986608', 'tblTempVendorCDR_20' ) start [2025-04-25 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986608', 'tblTempVendorCDR_20' ) end [2025-04-25 11:22:22] Production.INFO: ProcessCDR(1,14986608,1,1,2) [2025-04-25 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986608', 'tblTempUsageDetail_20' ) start [2025-04-25 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986608', 'tblTempUsageDetail_20' ) end [2025-04-25 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:22:27] Production.INFO: ==22142== Releasing lock... [2025-04-25 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:22:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-25 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:23:06 [end_date_ymd] => 2025-04-25 11:23:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:23:06' and `end` < '2025-04-25 11: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-04-25 11:23:19] Production.INFO: count ==4620 [2025-04-25 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:23:06 - End Time 2025-04-25 11:23:06 [2025-04-25 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986613', 'tblTempUsageDetail_20' ) start [2025-04-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986613', 'tblTempUsageDetail_20' ) end [2025-04-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986613', 'tblTempVendorCDR_20' ) start [2025-04-25 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986613', 'tblTempVendorCDR_20' ) end [2025-04-25 11:23:21] Production.INFO: ProcessCDR(1,14986613,1,1,2) [2025-04-25 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986613', 'tblTempUsageDetail_20' ) start [2025-04-25 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986613', 'tblTempUsageDetail_20' ) end [2025-04-25 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:23:27] Production.INFO: ==22219== Releasing lock... [2025-04-25 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:23:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:24:05 [end_date_ymd] => 2025-04-25 11:24:05 [RateCDR] => 1 ) [2025-04-25 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:24:05' and `end` < '2025-04-25 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:24:18] Production.INFO: count ==4626 [2025-04-25 11:24:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:24:05 - End Time 2025-04-25 11:24:05 [2025-04-25 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986618', 'tblTempUsageDetail_20' ) start [2025-04-25 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986618', 'tblTempUsageDetail_20' ) end [2025-04-25 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986618', 'tblTempVendorCDR_20' ) start [2025-04-25 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986618', 'tblTempVendorCDR_20' ) end [2025-04-25 11:24:20] Production.INFO: ProcessCDR(1,14986618,1,1,2) [2025-04-25 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986618', 'tblTempUsageDetail_20' ) start [2025-04-25 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986618', 'tblTempUsageDetail_20' ) end [2025-04-25 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:24:25] Production.INFO: ==22293== Releasing lock... [2025-04-25 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:24:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:25:05 [end_date_ymd] => 2025-04-25 11:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:25:05' and `end` < '2025-04-25 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-04-25 11:25:18] Production.INFO: count ==4643 [2025-04-25 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:25:05 - End Time 2025-04-25 11:25:05 [2025-04-25 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986623', 'tblTempUsageDetail_20' ) start [2025-04-25 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986623', 'tblTempUsageDetail_20' ) end [2025-04-25 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986623', 'tblTempVendorCDR_20' ) start [2025-04-25 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986623', 'tblTempVendorCDR_20' ) end [2025-04-25 11:25:20] Production.INFO: ProcessCDR(1,14986623,1,1,2) [2025-04-25 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986623', 'tblTempUsageDetail_20' ) start [2025-04-25 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986623', 'tblTempUsageDetail_20' ) end [2025-04-25 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:25:25] Production.INFO: ==22363== Releasing lock... [2025-04-25 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:26:06 [end_date_ymd] => 2025-04-25 11:26:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:26:06' and `end` < '2025-04-25 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-04-25 11:26:19] Production.INFO: count ==4647 [2025-04-25 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:26:06 - End Time 2025-04-25 11:26:06 [2025-04-25 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986628', 'tblTempUsageDetail_20' ) start [2025-04-25 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986628', 'tblTempUsageDetail_20' ) end [2025-04-25 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986628', 'tblTempVendorCDR_20' ) start [2025-04-25 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986628', 'tblTempVendorCDR_20' ) end [2025-04-25 11:26:21] Production.INFO: ProcessCDR(1,14986628,1,1,2) [2025-04-25 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986628', 'tblTempUsageDetail_20' ) start [2025-04-25 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986628', 'tblTempUsageDetail_20' ) end [2025-04-25 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:26:26] Production.INFO: ==22443== Releasing lock... [2025-04-25 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:26:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:27:05 [end_date_ymd] => 2025-04-25 11:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:27:05' and `end` < '2025-04-25 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-04-25 11:27:18] Production.INFO: count ==4665 [2025-04-25 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:27:05 - End Time 2025-04-25 11:27:05 [2025-04-25 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986633', 'tblTempUsageDetail_20' ) start [2025-04-25 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986633', 'tblTempUsageDetail_20' ) end [2025-04-25 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986633', 'tblTempVendorCDR_20' ) start [2025-04-25 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986633', 'tblTempVendorCDR_20' ) end [2025-04-25 11:27:21] Production.INFO: ProcessCDR(1,14986633,1,1,2) [2025-04-25 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986633', 'tblTempUsageDetail_20' ) start [2025-04-25 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986633', 'tblTempUsageDetail_20' ) end [2025-04-25 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:27:26] Production.INFO: ==22518== Releasing lock... [2025-04-25 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:27:26] Production.INFO: 63 MB #Memory Used# [2025-04-25 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:28:06 [end_date_ymd] => 2025-04-25 11:28:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:28:06' and `end` < '2025-04-25 11: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-04-25 11:28:19] Production.INFO: count ==4678 [2025-04-25 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:28:06 - End Time 2025-04-25 11:28:06 [2025-04-25 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986638', 'tblTempUsageDetail_20' ) start [2025-04-25 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986638', 'tblTempUsageDetail_20' ) end [2025-04-25 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986638', 'tblTempVendorCDR_20' ) start [2025-04-25 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986638', 'tblTempVendorCDR_20' ) end [2025-04-25 11:28:21] Production.INFO: ProcessCDR(1,14986638,1,1,2) [2025-04-25 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986638', 'tblTempUsageDetail_20' ) start [2025-04-25 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986638', 'tblTempUsageDetail_20' ) end [2025-04-25 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:28:26] Production.INFO: ==22598== Releasing lock... [2025-04-25 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:28:26] Production.INFO: 63 MB #Memory Used# [2025-04-25 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:29:05 [end_date_ymd] => 2025-04-25 11:29:05 [RateCDR] => 1 ) [2025-04-25 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:29:05' and `end` < '2025-04-25 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:29:18] Production.INFO: count ==4685 [2025-04-25 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:29:05 - End Time 2025-04-25 11:29:05 [2025-04-25 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986643', 'tblTempUsageDetail_20' ) start [2025-04-25 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986643', 'tblTempUsageDetail_20' ) end [2025-04-25 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986643', 'tblTempVendorCDR_20' ) start [2025-04-25 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986643', 'tblTempVendorCDR_20' ) end [2025-04-25 11:29:20] Production.INFO: ProcessCDR(1,14986643,1,1,2) [2025-04-25 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986643', 'tblTempUsageDetail_20' ) start [2025-04-25 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986643', 'tblTempUsageDetail_20' ) end [2025-04-25 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:29:25] Production.INFO: ==22672== Releasing lock... [2025-04-25 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:29:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-25 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:30:06 [end_date_ymd] => 2025-04-25 11:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:30:06' and `end` < '2025-04-25 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-04-25 11:30:20] Production.INFO: count ==4702 [2025-04-25 11:30:22] Production.ERROR: pbx CDR StartTime 2025-04-25 08:30:06 - End Time 2025-04-25 11:30:06 [2025-04-25 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986649', 'tblTempUsageDetail_20' ) start [2025-04-25 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986649', 'tblTempUsageDetail_20' ) end [2025-04-25 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986649', 'tblTempVendorCDR_20' ) start [2025-04-25 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986649', 'tblTempVendorCDR_20' ) end [2025-04-25 11:30:22] Production.INFO: ProcessCDR(1,14986649,1,1,2) [2025-04-25 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986649', 'tblTempUsageDetail_20' ) start [2025-04-25 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986649', 'tblTempUsageDetail_20' ) end [2025-04-25 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:30:27] Production.INFO: ==22750== Releasing lock... [2025-04-25 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:30:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-25 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:31:05 [end_date_ymd] => 2025-04-25 11:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:31:05' and `end` < '2025-04-25 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-04-25 11:31:19] Production.INFO: count ==4816 [2025-04-25 11:31:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:31:05 - End Time 2025-04-25 11:31:05 [2025-04-25 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986654', 'tblTempUsageDetail_20' ) start [2025-04-25 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986654', 'tblTempUsageDetail_20' ) end [2025-04-25 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986654', 'tblTempVendorCDR_20' ) start [2025-04-25 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986654', 'tblTempVendorCDR_20' ) end [2025-04-25 11:31:21] Production.INFO: ProcessCDR(1,14986654,1,1,2) [2025-04-25 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986654', 'tblTempUsageDetail_20' ) start [2025-04-25 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986654', 'tblTempUsageDetail_20' ) end [2025-04-25 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:31:26] Production.INFO: ==22827== Releasing lock... [2025-04-25 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:31:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:32:05 [end_date_ymd] => 2025-04-25 11:32:05 [RateCDR] => 1 ) [2025-04-25 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:32:05' and `end` < '2025-04-25 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:32:19] Production.INFO: count ==4818 [2025-04-25 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:32:05 - End Time 2025-04-25 11:32:05 [2025-04-25 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986659', 'tblTempUsageDetail_20' ) start [2025-04-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986659', 'tblTempUsageDetail_20' ) end [2025-04-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986659', 'tblTempVendorCDR_20' ) start [2025-04-25 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986659', 'tblTempVendorCDR_20' ) end [2025-04-25 11:32:21] Production.INFO: ProcessCDR(1,14986659,1,1,2) [2025-04-25 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986659', 'tblTempUsageDetail_20' ) start [2025-04-25 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986659', 'tblTempUsageDetail_20' ) end [2025-04-25 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:32:26] Production.INFO: ==22909== Releasing lock... [2025-04-25 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:32:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:33:05 [end_date_ymd] => 2025-04-25 11:33:05 [RateCDR] => 1 ) [2025-04-25 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:33:05' and `end` < '2025-04-25 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:33:19] Production.INFO: count ==4828 [2025-04-25 11:33:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:33:05 - End Time 2025-04-25 11:33:05 [2025-04-25 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986664', 'tblTempUsageDetail_20' ) start [2025-04-25 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986664', 'tblTempUsageDetail_20' ) end [2025-04-25 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986664', 'tblTempVendorCDR_20' ) start [2025-04-25 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986664', 'tblTempVendorCDR_20' ) end [2025-04-25 11:33:21] Production.INFO: ProcessCDR(1,14986664,1,1,2) [2025-04-25 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986664', 'tblTempUsageDetail_20' ) start [2025-04-25 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986664', 'tblTempUsageDetail_20' ) end [2025-04-25 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:33:27] Production.INFO: ==23024== Releasing lock... [2025-04-25 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:33:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:34:05 [end_date_ymd] => 2025-04-25 11:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:34:05' and `end` < '2025-04-25 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-04-25 11:34:19] Production.INFO: count ==4821 [2025-04-25 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:34:05 - End Time 2025-04-25 11:34:05 [2025-04-25 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986669', 'tblTempUsageDetail_20' ) start [2025-04-25 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986669', 'tblTempUsageDetail_20' ) end [2025-04-25 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986669', 'tblTempVendorCDR_20' ) start [2025-04-25 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986669', 'tblTempVendorCDR_20' ) end [2025-04-25 11:34:21] Production.INFO: ProcessCDR(1,14986669,1,1,2) [2025-04-25 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986669', 'tblTempUsageDetail_20' ) start [2025-04-25 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986669', 'tblTempUsageDetail_20' ) end [2025-04-25 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:34:26] Production.INFO: ==23098== Releasing lock... [2025-04-25 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:34:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:35:05 [end_date_ymd] => 2025-04-25 11:35:05 [RateCDR] => 1 ) [2025-04-25 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:35:05' and `end` < '2025-04-25 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:35:19] Production.INFO: count ==4839 [2025-04-25 11:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:35:05 - End Time 2025-04-25 11:35:05 [2025-04-25 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986674', 'tblTempUsageDetail_20' ) start [2025-04-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986674', 'tblTempUsageDetail_20' ) end [2025-04-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986674', 'tblTempVendorCDR_20' ) start [2025-04-25 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986674', 'tblTempVendorCDR_20' ) end [2025-04-25 11:35:21] Production.INFO: ProcessCDR(1,14986674,1,1,2) [2025-04-25 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986674', 'tblTempUsageDetail_20' ) start [2025-04-25 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986674', 'tblTempUsageDetail_20' ) end [2025-04-25 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:35:26] Production.INFO: ==23179== Releasing lock... [2025-04-25 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:35:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:36:05 [end_date_ymd] => 2025-04-25 11:36:05 [RateCDR] => 1 ) [2025-04-25 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:36:05' and `end` < '2025-04-25 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:36:18] Production.INFO: count ==4889 [2025-04-25 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:36:05 - End Time 2025-04-25 11:36:05 [2025-04-25 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986679', 'tblTempUsageDetail_20' ) start [2025-04-25 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986679', 'tblTempUsageDetail_20' ) end [2025-04-25 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986679', 'tblTempVendorCDR_20' ) start [2025-04-25 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986679', 'tblTempVendorCDR_20' ) end [2025-04-25 11:36:21] Production.INFO: ProcessCDR(1,14986679,1,1,2) [2025-04-25 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986679', 'tblTempUsageDetail_20' ) start [2025-04-25 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986679', 'tblTempUsageDetail_20' ) end [2025-04-25 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:36:26] Production.INFO: ==23254== Releasing lock... [2025-04-25 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:36:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-25 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:37:05 [end_date_ymd] => 2025-04-25 11:37:05 [RateCDR] => 1 ) [2025-04-25 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:37:05' and `end` < '2025-04-25 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:37:19] Production.INFO: count ==4890 [2025-04-25 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:37:05 - End Time 2025-04-25 11:37:05 [2025-04-25 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986684', 'tblTempUsageDetail_20' ) start [2025-04-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986684', 'tblTempUsageDetail_20' ) end [2025-04-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986684', 'tblTempVendorCDR_20' ) start [2025-04-25 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986684', 'tblTempVendorCDR_20' ) end [2025-04-25 11:37:21] Production.INFO: ProcessCDR(1,14986684,1,1,2) [2025-04-25 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986684', 'tblTempUsageDetail_20' ) start [2025-04-25 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986684', 'tblTempUsageDetail_20' ) end [2025-04-25 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:37:26] Production.INFO: ==23351== Releasing lock... [2025-04-25 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:37:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-25 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:38:05 [end_date_ymd] => 2025-04-25 11:38:05 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:38:05' and `end` < '2025-04-25 11: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-04-25 11:38:18] Production.INFO: count ==4941 [2025-04-25 11:38:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:38:05 - End Time 2025-04-25 11:38:05 [2025-04-25 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986689', 'tblTempUsageDetail_20' ) start [2025-04-25 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986689', 'tblTempUsageDetail_20' ) end [2025-04-25 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986689', 'tblTempVendorCDR_20' ) start [2025-04-25 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986689', 'tblTempVendorCDR_20' ) end [2025-04-25 11:38:21] Production.INFO: ProcessCDR(1,14986689,1,1,2) [2025-04-25 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986689', 'tblTempUsageDetail_20' ) start [2025-04-25 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986689', 'tblTempUsageDetail_20' ) end [2025-04-25 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:38:25] Production.INFO: ==23424== Releasing lock... [2025-04-25 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:38:25] Production.INFO: 65 MB #Memory Used# [2025-04-25 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:39:05 [end_date_ymd] => 2025-04-25 11:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:39:05' and `end` < '2025-04-25 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-04-25 11:39:19] Production.INFO: count ==4937 [2025-04-25 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:39:05 - End Time 2025-04-25 11:39:05 [2025-04-25 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986694', 'tblTempUsageDetail_20' ) start [2025-04-25 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986694', 'tblTempUsageDetail_20' ) end [2025-04-25 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986694', 'tblTempVendorCDR_20' ) start [2025-04-25 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986694', 'tblTempVendorCDR_20' ) end [2025-04-25 11:39:21] Production.INFO: ProcessCDR(1,14986694,1,1,2) [2025-04-25 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986694', 'tblTempUsageDetail_20' ) start [2025-04-25 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986694', 'tblTempUsageDetail_20' ) end [2025-04-25 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:39:26] Production.INFO: ==23500== Releasing lock... [2025-04-25 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:39:26] Production.INFO: 65 MB #Memory Used# [2025-04-25 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:40:07 [end_date_ymd] => 2025-04-25 11:40:07 [RateCDR] => 1 ) [2025-04-25 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:40:07' and `end` < '2025-04-25 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:40:21] Production.INFO: count ==4942 [2025-04-25 11:40:23] Production.ERROR: pbx CDR StartTime 2025-04-25 08:40:07 - End Time 2025-04-25 11:40:07 [2025-04-25 11:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986700', 'tblTempUsageDetail_20' ) start [2025-04-25 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986700', 'tblTempUsageDetail_20' ) end [2025-04-25 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986700', 'tblTempVendorCDR_20' ) start [2025-04-25 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986700', 'tblTempVendorCDR_20' ) end [2025-04-25 11:40:23] Production.INFO: ProcessCDR(1,14986700,1,1,2) [2025-04-25 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986700', 'tblTempUsageDetail_20' ) start [2025-04-25 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986700', 'tblTempUsageDetail_20' ) end [2025-04-25 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:40:28] Production.INFO: ==23576== Releasing lock... [2025-04-25 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:40:28] Production.INFO: 65 MB #Memory Used# [2025-04-25 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:41:05 [end_date_ymd] => 2025-04-25 11:41:05 [RateCDR] => 1 ) [2025-04-25 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:41:05' and `end` < '2025-04-25 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:41:19] Production.INFO: count ==5036 [2025-04-25 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:41:05 - End Time 2025-04-25 11:41:05 [2025-04-25 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986705', 'tblTempUsageDetail_20' ) start [2025-04-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986705', 'tblTempUsageDetail_20' ) end [2025-04-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986705', 'tblTempVendorCDR_20' ) start [2025-04-25 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986705', 'tblTempVendorCDR_20' ) end [2025-04-25 11:41:22] Production.INFO: ProcessCDR(1,14986705,1,1,2) [2025-04-25 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986705', 'tblTempUsageDetail_20' ) start [2025-04-25 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986705', 'tblTempUsageDetail_20' ) end [2025-04-25 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:41:27] Production.INFO: ==23656== Releasing lock... [2025-04-25 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:41:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-25 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:42:06 [end_date_ymd] => 2025-04-25 11:42:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:42:06' and `end` < '2025-04-25 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-04-25 11:42:20] Production.INFO: count ==5073 [2025-04-25 11:42:22] Production.ERROR: pbx CDR StartTime 2025-04-25 08:42:06 - End Time 2025-04-25 11:42:06 [2025-04-25 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986710', 'tblTempUsageDetail_20' ) start [2025-04-25 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986710', 'tblTempUsageDetail_20' ) end [2025-04-25 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986710', 'tblTempVendorCDR_20' ) start [2025-04-25 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986710', 'tblTempVendorCDR_20' ) end [2025-04-25 11:42:22] Production.INFO: ProcessCDR(1,14986710,1,1,2) [2025-04-25 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986710', 'tblTempUsageDetail_20' ) start [2025-04-25 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986710', 'tblTempUsageDetail_20' ) end [2025-04-25 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:42:28] Production.INFO: ==23730== Releasing lock... [2025-04-25 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:42:28] Production.INFO: 66 MB #Memory Used# [2025-04-25 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:43:05 [end_date_ymd] => 2025-04-25 11:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:43:05' and `end` < '2025-04-25 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-04-25 11:43:19] Production.INFO: count ==5090 [2025-04-25 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:43:05 - End Time 2025-04-25 11:43:05 [2025-04-25 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986715', 'tblTempUsageDetail_20' ) start [2025-04-25 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986715', 'tblTempUsageDetail_20' ) end [2025-04-25 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986715', 'tblTempVendorCDR_20' ) start [2025-04-25 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986715', 'tblTempVendorCDR_20' ) end [2025-04-25 11:43:21] Production.INFO: ProcessCDR(1,14986715,1,1,2) [2025-04-25 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986715', 'tblTempUsageDetail_20' ) start [2025-04-25 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986715', 'tblTempUsageDetail_20' ) end [2025-04-25 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:43:26] Production.INFO: ==23808== Releasing lock... [2025-04-25 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:43:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-25 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:44:05 [end_date_ymd] => 2025-04-25 11:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:44:05' and `end` < '2025-04-25 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-04-25 11:44:19] Production.INFO: count ==5106 [2025-04-25 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:44:05 - End Time 2025-04-25 11:44:05 [2025-04-25 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986720', 'tblTempUsageDetail_20' ) start [2025-04-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986720', 'tblTempUsageDetail_20' ) end [2025-04-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986720', 'tblTempVendorCDR_20' ) start [2025-04-25 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986720', 'tblTempVendorCDR_20' ) end [2025-04-25 11:44:21] Production.INFO: ProcessCDR(1,14986720,1,1,2) [2025-04-25 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986720', 'tblTempUsageDetail_20' ) start [2025-04-25 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986720', 'tblTempUsageDetail_20' ) end [2025-04-25 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:44:26] Production.INFO: ==23888== Releasing lock... [2025-04-25 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:44:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-25 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:45:05 [end_date_ymd] => 2025-04-25 11:45:05 [RateCDR] => 1 ) [2025-04-25 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:45:05' and `end` < '2025-04-25 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:45:19] Production.INFO: count ==5185 [2025-04-25 11:45:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:45:05 - End Time 2025-04-25 11:45:05 [2025-04-25 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986725', 'tblTempUsageDetail_20' ) start [2025-04-25 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986725', 'tblTempUsageDetail_20' ) end [2025-04-25 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986725', 'tblTempVendorCDR_20' ) start [2025-04-25 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986725', 'tblTempVendorCDR_20' ) end [2025-04-25 11:45:21] Production.INFO: ProcessCDR(1,14986725,1,1,2) [2025-04-25 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986725', 'tblTempUsageDetail_20' ) start [2025-04-25 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986725', 'tblTempUsageDetail_20' ) end [2025-04-25 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:45:27] Production.INFO: ==23968== Releasing lock... [2025-04-25 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:45:27] Production.INFO: 67 MB #Memory Used# [2025-04-25 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:46:06 [end_date_ymd] => 2025-04-25 11:46:06 [RateCDR] => 1 ) [2025-04-25 11:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:46:06' and `end` < '2025-04-25 11:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:46:20] Production.INFO: count ==5197 [2025-04-25 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-25 08:46:06 - End Time 2025-04-25 11:46:06 [2025-04-25 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986730', 'tblTempUsageDetail_20' ) start [2025-04-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986730', 'tblTempUsageDetail_20' ) end [2025-04-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986730', 'tblTempVendorCDR_20' ) start [2025-04-25 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986730', 'tblTempVendorCDR_20' ) end [2025-04-25 11:46:22] Production.INFO: ProcessCDR(1,14986730,1,1,2) [2025-04-25 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986730', 'tblTempUsageDetail_20' ) start [2025-04-25 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986730', 'tblTempUsageDetail_20' ) end [2025-04-25 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:46:27] Production.INFO: ==24046== Releasing lock... [2025-04-25 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:46:27] Production.INFO: 67 MB #Memory Used# [2025-04-25 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:47:05 [end_date_ymd] => 2025-04-25 11:47:05 [RateCDR] => 1 ) [2025-04-25 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:47:05' and `end` < '2025-04-25 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:47:19] Production.INFO: count ==5210 [2025-04-25 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:47:05 - End Time 2025-04-25 11:47:05 [2025-04-25 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986735', 'tblTempUsageDetail_20' ) start [2025-04-25 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986735', 'tblTempUsageDetail_20' ) end [2025-04-25 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986735', 'tblTempVendorCDR_20' ) start [2025-04-25 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986735', 'tblTempVendorCDR_20' ) end [2025-04-25 11:47:21] Production.INFO: ProcessCDR(1,14986735,1,1,2) [2025-04-25 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986735', 'tblTempUsageDetail_20' ) start [2025-04-25 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986735', 'tblTempUsageDetail_20' ) end [2025-04-25 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:47:26] Production.INFO: ==24120== Releasing lock... [2025-04-25 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:47:26] Production.INFO: 67 MB #Memory Used# [2025-04-25 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:48:05 [end_date_ymd] => 2025-04-25 11:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:48:05' and `end` < '2025-04-25 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-04-25 11:48:19] Production.INFO: count ==5212 [2025-04-25 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:48:05 - End Time 2025-04-25 11:48:05 [2025-04-25 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986740', 'tblTempUsageDetail_20' ) start [2025-04-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986740', 'tblTempUsageDetail_20' ) end [2025-04-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986740', 'tblTempVendorCDR_20' ) start [2025-04-25 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986740', 'tblTempVendorCDR_20' ) end [2025-04-25 11:48:21] Production.INFO: ProcessCDR(1,14986740,1,1,2) [2025-04-25 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986740', 'tblTempUsageDetail_20' ) start [2025-04-25 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986740', 'tblTempUsageDetail_20' ) end [2025-04-25 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:48:27] Production.INFO: ==24251== Releasing lock... [2025-04-25 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:48:27] Production.INFO: 67 MB #Memory Used# [2025-04-25 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:49:05 [end_date_ymd] => 2025-04-25 11:49:05 [RateCDR] => 1 ) [2025-04-25 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:49:05' and `end` < '2025-04-25 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:49:18] Production.INFO: count ==5227 [2025-04-25 11:49:20] Production.ERROR: pbx CDR StartTime 2025-04-25 08:49:05 - End Time 2025-04-25 11:49:05 [2025-04-25 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986745', 'tblTempUsageDetail_20' ) start [2025-04-25 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986745', 'tblTempUsageDetail_20' ) end [2025-04-25 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986745', 'tblTempVendorCDR_20' ) start [2025-04-25 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986745', 'tblTempVendorCDR_20' ) end [2025-04-25 11:49:21] Production.INFO: ProcessCDR(1,14986745,1,1,2) [2025-04-25 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986745', 'tblTempUsageDetail_20' ) start [2025-04-25 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986745', 'tblTempUsageDetail_20' ) end [2025-04-25 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:49:27] Production.INFO: ==24324== Releasing lock... [2025-04-25 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:49:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-25 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:50:06 [end_date_ymd] => 2025-04-25 11:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:50:06' and `end` < '2025-04-25 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-04-25 11:50:20] Production.INFO: count ==5245 [2025-04-25 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-25 08:50:06 - End Time 2025-04-25 11:50:06 [2025-04-25 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986751', 'tblTempUsageDetail_20' ) start [2025-04-25 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986751', 'tblTempUsageDetail_20' ) end [2025-04-25 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986751', 'tblTempVendorCDR_20' ) start [2025-04-25 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986751', 'tblTempVendorCDR_20' ) end [2025-04-25 11:50:22] Production.INFO: ProcessCDR(1,14986751,1,1,2) [2025-04-25 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986751', 'tblTempUsageDetail_20' ) start [2025-04-25 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986751', 'tblTempUsageDetail_20' ) end [2025-04-25 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:50:27] Production.INFO: ==24401== Releasing lock... [2025-04-25 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:50:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-25 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:51:05 [end_date_ymd] => 2025-04-25 11:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:51:05' and `end` < '2025-04-25 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-04-25 11:51:18] Production.INFO: count ==5325 [2025-04-25 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:51:05 - End Time 2025-04-25 11:51:05 [2025-04-25 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986756', 'tblTempUsageDetail_20' ) start [2025-04-25 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986756', 'tblTempUsageDetail_20' ) end [2025-04-25 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986756', 'tblTempVendorCDR_20' ) start [2025-04-25 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986756', 'tblTempVendorCDR_20' ) end [2025-04-25 11:51:21] Production.INFO: ProcessCDR(1,14986756,1,1,2) [2025-04-25 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986756', 'tblTempUsageDetail_20' ) start [2025-04-25 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986756', 'tblTempUsageDetail_20' ) end [2025-04-25 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:51:26] Production.INFO: ==24477== Releasing lock... [2025-04-25 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:51:26] Production.INFO: 68 MB #Memory Used# [2025-04-25 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:52:05 [end_date_ymd] => 2025-04-25 11:52:05 [RateCDR] => 1 ) [2025-04-25 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 08:52:05' and `end` < '2025-04-25 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 11:52:19] Production.INFO: count ==5346 [2025-04-25 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:52:05 - End Time 2025-04-25 11:52:05 [2025-04-25 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986761', 'tblTempUsageDetail_20' ) start [2025-04-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986761', 'tblTempUsageDetail_20' ) end [2025-04-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986761', 'tblTempVendorCDR_20' ) start [2025-04-25 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986761', 'tblTempVendorCDR_20' ) end [2025-04-25 11:52:22] Production.INFO: ProcessCDR(1,14986761,1,1,2) [2025-04-25 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986761', 'tblTempUsageDetail_20' ) start [2025-04-25 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986761', 'tblTempUsageDetail_20' ) end [2025-04-25 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:52:27] Production.INFO: ==24552== Releasing lock... [2025-04-25 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:52:27] Production.INFO: 68 MB #Memory Used# [2025-04-25 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:53:05 [end_date_ymd] => 2025-04-25 11:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:53:05' and `end` < '2025-04-25 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-04-25 11:53:19] Production.INFO: count ==5354 [2025-04-25 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:53:05 - End Time 2025-04-25 11:53:05 [2025-04-25 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986766', 'tblTempUsageDetail_20' ) start [2025-04-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986766', 'tblTempUsageDetail_20' ) end [2025-04-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986766', 'tblTempVendorCDR_20' ) start [2025-04-25 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986766', 'tblTempVendorCDR_20' ) end [2025-04-25 11:53:21] Production.INFO: ProcessCDR(1,14986766,1,1,2) [2025-04-25 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986766', 'tblTempUsageDetail_20' ) start [2025-04-25 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986766', 'tblTempUsageDetail_20' ) end [2025-04-25 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:53:26] Production.INFO: ==24626== Releasing lock... [2025-04-25 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:53:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:54:06 [end_date_ymd] => 2025-04-25 11:54:06 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:54:06' and `end` < '2025-04-25 11: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-04-25 11:54:19] Production.INFO: count ==5372 [2025-04-25 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:54:06 - End Time 2025-04-25 11:54:06 [2025-04-25 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986771', 'tblTempUsageDetail_20' ) start [2025-04-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986771', 'tblTempUsageDetail_20' ) end [2025-04-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986771', 'tblTempVendorCDR_20' ) start [2025-04-25 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986771', 'tblTempVendorCDR_20' ) end [2025-04-25 11:54:22] Production.INFO: ProcessCDR(1,14986771,1,1,2) [2025-04-25 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986771', 'tblTempUsageDetail_20' ) start [2025-04-25 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986771', 'tblTempUsageDetail_20' ) end [2025-04-25 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:54:27] Production.INFO: ==24701== Releasing lock... [2025-04-25 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:54:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:55:05 [end_date_ymd] => 2025-04-25 11:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:55:05' and `end` < '2025-04-25 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-04-25 11:55:19] Production.INFO: count ==5377 [2025-04-25 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:55:05 - End Time 2025-04-25 11:55:05 [2025-04-25 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986776', 'tblTempUsageDetail_20' ) start [2025-04-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986776', 'tblTempUsageDetail_20' ) end [2025-04-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986776', 'tblTempVendorCDR_20' ) start [2025-04-25 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986776', 'tblTempVendorCDR_20' ) end [2025-04-25 11:55:21] Production.INFO: ProcessCDR(1,14986776,1,1,2) [2025-04-25 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986776', 'tblTempUsageDetail_20' ) start [2025-04-25 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986776', 'tblTempUsageDetail_20' ) end [2025-04-25 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:55:26] Production.INFO: ==24773== Releasing lock... [2025-04-25 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:55:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:56:05 [end_date_ymd] => 2025-04-25 11:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:56:05' and `end` < '2025-04-25 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-04-25 11:56:19] Production.INFO: count ==5398 [2025-04-25 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:56:05 - End Time 2025-04-25 11:56:05 [2025-04-25 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986781', 'tblTempUsageDetail_20' ) start [2025-04-25 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986781', 'tblTempUsageDetail_20' ) end [2025-04-25 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986781', 'tblTempVendorCDR_20' ) start [2025-04-25 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986781', 'tblTempVendorCDR_20' ) end [2025-04-25 11:56:22] Production.INFO: ProcessCDR(1,14986781,1,1,2) [2025-04-25 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986781', 'tblTempUsageDetail_20' ) start [2025-04-25 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986781', 'tblTempUsageDetail_20' ) end [2025-04-25 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:56:27] Production.INFO: ==24845== Releasing lock... [2025-04-25 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:56:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:57:05 [end_date_ymd] => 2025-04-25 11:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:57:05' and `end` < '2025-04-25 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-04-25 11:57:19] Production.INFO: count ==5395 [2025-04-25 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:57:05 - End Time 2025-04-25 11:57:05 [2025-04-25 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986786', 'tblTempUsageDetail_20' ) start [2025-04-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986786', 'tblTempUsageDetail_20' ) end [2025-04-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986786', 'tblTempVendorCDR_20' ) start [2025-04-25 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986786', 'tblTempVendorCDR_20' ) end [2025-04-25 11:57:21] Production.INFO: ProcessCDR(1,14986786,1,1,2) [2025-04-25 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986786', 'tblTempUsageDetail_20' ) start [2025-04-25 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986786', 'tblTempUsageDetail_20' ) end [2025-04-25 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:57:26] Production.INFO: ==24916== Releasing lock... [2025-04-25 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:57:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:58:05 [end_date_ymd] => 2025-04-25 11:58:05 [RateCDR] => 1 ) [2025-04-25 11: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-04-25 08:58:05' and `end` < '2025-04-25 11: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-04-25 11:58:19] Production.INFO: count ==5455 [2025-04-25 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:58:05 - End Time 2025-04-25 11:58:05 [2025-04-25 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986791', 'tblTempUsageDetail_20' ) start [2025-04-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986791', 'tblTempUsageDetail_20' ) end [2025-04-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986791', 'tblTempVendorCDR_20' ) start [2025-04-25 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986791', 'tblTempVendorCDR_20' ) end [2025-04-25 11:58:22] Production.INFO: ProcessCDR(1,14986791,1,1,2) [2025-04-25 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986791', 'tblTempUsageDetail_20' ) start [2025-04-25 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986791', 'tblTempUsageDetail_20' ) end [2025-04-25 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:58:27] Production.INFO: ==25010== Releasing lock... [2025-04-25 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:58:27] Production.INFO: 69 MB #Memory Used# [2025-04-25 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 08:59:05 [end_date_ymd] => 2025-04-25 11:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 08:59:05' and `end` < '2025-04-25 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-04-25 11:59:19] Production.INFO: count ==5466 [2025-04-25 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-25 08:59:05 - End Time 2025-04-25 11:59:05 [2025-04-25 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986796', 'tblTempUsageDetail_20' ) start [2025-04-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986796', 'tblTempUsageDetail_20' ) end [2025-04-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986796', 'tblTempVendorCDR_20' ) start [2025-04-25 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986796', 'tblTempVendorCDR_20' ) end [2025-04-25 11:59:21] Production.INFO: ProcessCDR(1,14986796,1,1,2) [2025-04-25 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986796', 'tblTempUsageDetail_20' ) start [2025-04-25 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986796', 'tblTempUsageDetail_20' ) end [2025-04-25 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 11:59:26] Production.INFO: ==25083== Releasing lock... [2025-04-25 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 11:59:26] Production.INFO: 69 MB #Memory Used# [2025-04-25 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:00:06 [end_date_ymd] => 2025-04-25 12:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:00:06' and `end` < '2025-04-25 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-04-25 12:00:20] Production.INFO: count ==5470 [2025-04-25 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:00:06 - End Time 2025-04-25 12:00:06 [2025-04-25 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986802', 'tblTempUsageDetail_20' ) start [2025-04-25 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986802', 'tblTempUsageDetail_20' ) end [2025-04-25 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986802', 'tblTempVendorCDR_20' ) start [2025-04-25 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986802', 'tblTempVendorCDR_20' ) end [2025-04-25 12:00:22] Production.INFO: ProcessCDR(1,14986802,1,1,2) [2025-04-25 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986802', 'tblTempUsageDetail_20' ) start [2025-04-25 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986802', 'tblTempUsageDetail_20' ) end [2025-04-25 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:00:28] Production.INFO: ==25158== Releasing lock... [2025-04-25 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:00:28] Production.INFO: 69 MB #Memory Used# [2025-04-25 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:01:05 [end_date_ymd] => 2025-04-25 12:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:01:05' and `end` < '2025-04-25 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-04-25 12:01:19] Production.INFO: count ==5529 [2025-04-25 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:01:05 - End Time 2025-04-25 12:01:05 [2025-04-25 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986807', 'tblTempUsageDetail_20' ) start [2025-04-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986807', 'tblTempUsageDetail_20' ) end [2025-04-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986807', 'tblTempVendorCDR_20' ) start [2025-04-25 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986807', 'tblTempVendorCDR_20' ) end [2025-04-25 12:01:21] Production.INFO: ProcessCDR(1,14986807,1,1,2) [2025-04-25 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986807', 'tblTempUsageDetail_20' ) start [2025-04-25 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986807', 'tblTempUsageDetail_20' ) end [2025-04-25 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:01:26] Production.INFO: ==25244== Releasing lock... [2025-04-25 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:01:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-25 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:02:05 [end_date_ymd] => 2025-04-25 12:02:05 [RateCDR] => 1 ) [2025-04-25 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:02:05' and `end` < '2025-04-25 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:02:19] Production.INFO: count ==5524 [2025-04-25 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:02:05 - End Time 2025-04-25 12:02:05 [2025-04-25 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986812', 'tblTempUsageDetail_20' ) start [2025-04-25 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986812', 'tblTempUsageDetail_20' ) end [2025-04-25 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986812', 'tblTempVendorCDR_20' ) start [2025-04-25 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986812', 'tblTempVendorCDR_20' ) end [2025-04-25 12:02:21] Production.INFO: ProcessCDR(1,14986812,1,1,2) [2025-04-25 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986812', 'tblTempUsageDetail_20' ) start [2025-04-25 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986812', 'tblTempUsageDetail_20' ) end [2025-04-25 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:02:27] Production.INFO: ==25320== Releasing lock... [2025-04-25 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:02:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-25 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:03:05 [end_date_ymd] => 2025-04-25 12:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:03:05' and `end` < '2025-04-25 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-04-25 12:03:19] Production.INFO: count ==5579 [2025-04-25 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:03:05 - End Time 2025-04-25 12:03:05 [2025-04-25 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986817', 'tblTempUsageDetail_20' ) start [2025-04-25 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986817', 'tblTempUsageDetail_20' ) end [2025-04-25 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986817', 'tblTempVendorCDR_20' ) start [2025-04-25 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986817', 'tblTempVendorCDR_20' ) end [2025-04-25 12:03:21] Production.INFO: ProcessCDR(1,14986817,1,1,2) [2025-04-25 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986817', 'tblTempUsageDetail_20' ) start [2025-04-25 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986817', 'tblTempUsageDetail_20' ) end [2025-04-25 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:03:27] Production.INFO: ==25395== Releasing lock... [2025-04-25 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:03:27] Production.INFO: 70 MB #Memory Used# [2025-04-25 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:04:05 [end_date_ymd] => 2025-04-25 12:04:05 [RateCDR] => 1 ) [2025-04-25 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:04:05' and `end` < '2025-04-25 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:04:19] Production.INFO: count ==5580 [2025-04-25 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:04:05 - End Time 2025-04-25 12:04:05 [2025-04-25 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986822', 'tblTempUsageDetail_20' ) start [2025-04-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986822', 'tblTempUsageDetail_20' ) end [2025-04-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986822', 'tblTempVendorCDR_20' ) start [2025-04-25 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986822', 'tblTempVendorCDR_20' ) end [2025-04-25 12:04:21] Production.INFO: ProcessCDR(1,14986822,1,1,2) [2025-04-25 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986822', 'tblTempUsageDetail_20' ) start [2025-04-25 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986822', 'tblTempUsageDetail_20' ) end [2025-04-25 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:04:27] Production.INFO: ==25509== Releasing lock... [2025-04-25 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:04:27] Production.INFO: 70 MB #Memory Used# [2025-04-25 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:05:05 [end_date_ymd] => 2025-04-25 12:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:05:05' and `end` < '2025-04-25 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-04-25 12:05:19] Production.INFO: count ==5581 [2025-04-25 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:05:05 - End Time 2025-04-25 12:05:05 [2025-04-25 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986827', 'tblTempUsageDetail_20' ) start [2025-04-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986827', 'tblTempUsageDetail_20' ) end [2025-04-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986827', 'tblTempVendorCDR_20' ) start [2025-04-25 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986827', 'tblTempVendorCDR_20' ) end [2025-04-25 12:05:21] Production.INFO: ProcessCDR(1,14986827,1,1,2) [2025-04-25 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986827', 'tblTempUsageDetail_20' ) start [2025-04-25 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986827', 'tblTempUsageDetail_20' ) end [2025-04-25 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:05:26] Production.INFO: ==25579== Releasing lock... [2025-04-25 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:05:26] Production.INFO: 70 MB #Memory Used# [2025-04-25 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:06:05 [end_date_ymd] => 2025-04-25 12:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:06:05' and `end` < '2025-04-25 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-04-25 12:06:19] Production.INFO: count ==5618 [2025-04-25 12:06:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:06:05 - End Time 2025-04-25 12:06:05 [2025-04-25 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986832', 'tblTempUsageDetail_20' ) start [2025-04-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986832', 'tblTempUsageDetail_20' ) end [2025-04-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986832', 'tblTempVendorCDR_20' ) start [2025-04-25 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986832', 'tblTempVendorCDR_20' ) end [2025-04-25 12:06:22] Production.INFO: ProcessCDR(1,14986832,1,1,2) [2025-04-25 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986832', 'tblTempUsageDetail_20' ) start [2025-04-25 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986832', 'tblTempUsageDetail_20' ) end [2025-04-25 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:06:27] Production.INFO: ==25653== Releasing lock... [2025-04-25 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:06:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-25 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:07:05 [end_date_ymd] => 2025-04-25 12:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:07:05' and `end` < '2025-04-25 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-04-25 12:07:19] Production.INFO: count ==5630 [2025-04-25 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:07:05 - End Time 2025-04-25 12:07:05 [2025-04-25 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986837', 'tblTempUsageDetail_20' ) start [2025-04-25 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986837', 'tblTempUsageDetail_20' ) end [2025-04-25 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986837', 'tblTempVendorCDR_20' ) start [2025-04-25 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986837', 'tblTempVendorCDR_20' ) end [2025-04-25 12:07:21] Production.INFO: ProcessCDR(1,14986837,1,1,2) [2025-04-25 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986837', 'tblTempUsageDetail_20' ) start [2025-04-25 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986837', 'tblTempUsageDetail_20' ) end [2025-04-25 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:07:26] Production.INFO: ==25726== Releasing lock... [2025-04-25 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:07:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-25 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:08:05 [end_date_ymd] => 2025-04-25 12:08:05 [RateCDR] => 1 ) [2025-04-25 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:08:05' and `end` < '2025-04-25 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:08:19] Production.INFO: count ==5640 [2025-04-25 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:08:05 - End Time 2025-04-25 12:08:05 [2025-04-25 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986842', 'tblTempUsageDetail_20' ) start [2025-04-25 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986842', 'tblTempUsageDetail_20' ) end [2025-04-25 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986842', 'tblTempVendorCDR_20' ) start [2025-04-25 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986842', 'tblTempVendorCDR_20' ) end [2025-04-25 12:08:21] Production.INFO: ProcessCDR(1,14986842,1,1,2) [2025-04-25 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986842', 'tblTempUsageDetail_20' ) start [2025-04-25 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986842', 'tblTempUsageDetail_20' ) end [2025-04-25 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:08:26] Production.INFO: ==25804== Releasing lock... [2025-04-25 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:08:26] Production.INFO: 70.25 MB #Memory Used# [2025-04-25 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:09:05 [end_date_ymd] => 2025-04-25 12:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:09:05' and `end` < '2025-04-25 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-04-25 12:09:19] Production.INFO: count ==5651 [2025-04-25 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:09:05 - End Time 2025-04-25 12:09:05 [2025-04-25 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986847', 'tblTempUsageDetail_20' ) start [2025-04-25 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986847', 'tblTempUsageDetail_20' ) end [2025-04-25 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986847', 'tblTempVendorCDR_20' ) start [2025-04-25 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986847', 'tblTempVendorCDR_20' ) end [2025-04-25 12:09:21] Production.INFO: ProcessCDR(1,14986847,1,1,2) [2025-04-25 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986847', 'tblTempUsageDetail_20' ) start [2025-04-25 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986847', 'tblTempUsageDetail_20' ) end [2025-04-25 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:09:27] Production.INFO: ==25878== Releasing lock... [2025-04-25 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:09:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-25 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:10:06 [end_date_ymd] => 2025-04-25 12:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:10:06' and `end` < '2025-04-25 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-04-25 12:10:19] Production.INFO: count ==5654 [2025-04-25 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:10:06 - End Time 2025-04-25 12:10:06 [2025-04-25 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986853', 'tblTempUsageDetail_20' ) start [2025-04-25 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986853', 'tblTempUsageDetail_20' ) end [2025-04-25 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986853', 'tblTempVendorCDR_20' ) start [2025-04-25 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986853', 'tblTempVendorCDR_20' ) end [2025-04-25 12:10:22] Production.INFO: ProcessCDR(1,14986853,1,1,2) [2025-04-25 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986853', 'tblTempUsageDetail_20' ) start [2025-04-25 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986853', 'tblTempUsageDetail_20' ) end [2025-04-25 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:10:26] Production.INFO: ==25952== Releasing lock... [2025-04-25 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:10:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-25 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:11:05 [end_date_ymd] => 2025-04-25 12:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:11:05' and `end` < '2025-04-25 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-04-25 12:11:19] Production.INFO: count ==5693 [2025-04-25 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:11:05 - End Time 2025-04-25 12:11:05 [2025-04-25 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986858', 'tblTempUsageDetail_20' ) start [2025-04-25 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986858', 'tblTempUsageDetail_20' ) end [2025-04-25 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986858', 'tblTempVendorCDR_20' ) start [2025-04-25 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986858', 'tblTempVendorCDR_20' ) end [2025-04-25 12:11:22] Production.INFO: ProcessCDR(1,14986858,1,1,2) [2025-04-25 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986858', 'tblTempUsageDetail_20' ) start [2025-04-25 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986858', 'tblTempUsageDetail_20' ) end [2025-04-25 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:11:27] Production.INFO: ==26031== Releasing lock... [2025-04-25 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:11:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:12:05 [end_date_ymd] => 2025-04-25 12:12:05 [RateCDR] => 1 ) [2025-04-25 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:12:05' and `end` < '2025-04-25 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:12:19] Production.INFO: count ==5671 [2025-04-25 12:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:12:05 - End Time 2025-04-25 12:12:05 [2025-04-25 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986863', 'tblTempUsageDetail_20' ) start [2025-04-25 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986863', 'tblTempUsageDetail_20' ) end [2025-04-25 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986863', 'tblTempVendorCDR_20' ) start [2025-04-25 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986863', 'tblTempVendorCDR_20' ) end [2025-04-25 12:12:21] Production.INFO: ProcessCDR(1,14986863,1,1,2) [2025-04-25 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986863', 'tblTempUsageDetail_20' ) start [2025-04-25 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986863', 'tblTempUsageDetail_20' ) end [2025-04-25 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:12:26] Production.INFO: ==26102== Releasing lock... [2025-04-25 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:12:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-25 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:13:05 [end_date_ymd] => 2025-04-25 12:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:13:05' and `end` < '2025-04-25 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-04-25 12:13:19] Production.INFO: count ==5710 [2025-04-25 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:13:05 - End Time 2025-04-25 12:13:05 [2025-04-25 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986868', 'tblTempUsageDetail_20' ) start [2025-04-25 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986868', 'tblTempUsageDetail_20' ) end [2025-04-25 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986868', 'tblTempVendorCDR_20' ) start [2025-04-25 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986868', 'tblTempVendorCDR_20' ) end [2025-04-25 12:13:21] Production.INFO: ProcessCDR(1,14986868,1,1,2) [2025-04-25 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986868', 'tblTempUsageDetail_20' ) start [2025-04-25 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986868', 'tblTempUsageDetail_20' ) end [2025-04-25 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:13:27] Production.INFO: ==26174== Releasing lock... [2025-04-25 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:13:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:14:06 [end_date_ymd] => 2025-04-25 12:14:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:14:06' and `end` < '2025-04-25 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-04-25 12:14:20] Production.INFO: count ==5713 [2025-04-25 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:14:06 - End Time 2025-04-25 12:14:06 [2025-04-25 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986873', 'tblTempUsageDetail_20' ) start [2025-04-25 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986873', 'tblTempUsageDetail_20' ) end [2025-04-25 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986873', 'tblTempVendorCDR_20' ) start [2025-04-25 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986873', 'tblTempVendorCDR_20' ) end [2025-04-25 12:14:22] Production.INFO: ProcessCDR(1,14986873,1,1,2) [2025-04-25 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986873', 'tblTempUsageDetail_20' ) start [2025-04-25 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986873', 'tblTempUsageDetail_20' ) end [2025-04-25 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:14:27] Production.INFO: ==26254== Releasing lock... [2025-04-25 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:14:27] Production.INFO: 71 MB #Memory Used# [2025-04-25 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:15:05 [end_date_ymd] => 2025-04-25 12:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:15:05' and `end` < '2025-04-25 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-04-25 12:15:19] Production.INFO: count ==5698 [2025-04-25 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:15:05 - End Time 2025-04-25 12:15:05 [2025-04-25 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986878', 'tblTempUsageDetail_20' ) start [2025-04-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986878', 'tblTempUsageDetail_20' ) end [2025-04-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986878', 'tblTempVendorCDR_20' ) start [2025-04-25 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986878', 'tblTempVendorCDR_20' ) end [2025-04-25 12:15:22] Production.INFO: ProcessCDR(1,14986878,1,1,2) [2025-04-25 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986878', 'tblTempUsageDetail_20' ) start [2025-04-25 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986878', 'tblTempUsageDetail_20' ) end [2025-04-25 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:15:27] Production.INFO: ==26324== Releasing lock... [2025-04-25 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:15:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:16:06 [end_date_ymd] => 2025-04-25 12:16:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:16:06' and `end` < '2025-04-25 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-04-25 12:16:20] Production.INFO: count ==5695 [2025-04-25 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:16:06 - End Time 2025-04-25 12:16:06 [2025-04-25 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986883', 'tblTempUsageDetail_20' ) start [2025-04-25 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986883', 'tblTempUsageDetail_20' ) end [2025-04-25 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986883', 'tblTempVendorCDR_20' ) start [2025-04-25 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986883', 'tblTempVendorCDR_20' ) end [2025-04-25 12:16:23] Production.INFO: ProcessCDR(1,14986883,1,1,2) [2025-04-25 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986883', 'tblTempUsageDetail_20' ) start [2025-04-25 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986883', 'tblTempUsageDetail_20' ) end [2025-04-25 12:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:16:28] Production.INFO: ==26404== Releasing lock... [2025-04-25 12:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:16:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:17:05 [end_date_ymd] => 2025-04-25 12:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:17:05' and `end` < '2025-04-25 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-04-25 12:17:19] Production.INFO: count ==5693 [2025-04-25 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:17:05 - End Time 2025-04-25 12:17:05 [2025-04-25 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986888', 'tblTempUsageDetail_20' ) start [2025-04-25 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986888', 'tblTempUsageDetail_20' ) end [2025-04-25 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986888', 'tblTempVendorCDR_20' ) start [2025-04-25 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986888', 'tblTempVendorCDR_20' ) end [2025-04-25 12:17:22] Production.INFO: ProcessCDR(1,14986888,1,1,2) [2025-04-25 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986888', 'tblTempUsageDetail_20' ) start [2025-04-25 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986888', 'tblTempUsageDetail_20' ) end [2025-04-25 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:17:26] Production.INFO: ==26479== Releasing lock... [2025-04-25 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:17:26] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:18:06 [end_date_ymd] => 2025-04-25 12:18:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:18:06' and `end` < '2025-04-25 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-04-25 12:18:20] Production.INFO: count ==5689 [2025-04-25 12:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:18:06 - End Time 2025-04-25 12:18:06 [2025-04-25 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986893', 'tblTempUsageDetail_20' ) start [2025-04-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986893', 'tblTempUsageDetail_20' ) end [2025-04-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986893', 'tblTempVendorCDR_20' ) start [2025-04-25 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986893', 'tblTempVendorCDR_20' ) end [2025-04-25 12:18:22] Production.INFO: ProcessCDR(1,14986893,1,1,2) [2025-04-25 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986893', 'tblTempUsageDetail_20' ) start [2025-04-25 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986893', 'tblTempUsageDetail_20' ) end [2025-04-25 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:18:27] Production.INFO: ==26554== Releasing lock... [2025-04-25 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:18:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:19:05 [end_date_ymd] => 2025-04-25 12:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:19:05' and `end` < '2025-04-25 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-04-25 12:19:19] Production.INFO: count ==5707 [2025-04-25 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:19:05 - End Time 2025-04-25 12:19:05 [2025-04-25 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986898', 'tblTempUsageDetail_20' ) start [2025-04-25 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986898', 'tblTempUsageDetail_20' ) end [2025-04-25 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986898', 'tblTempVendorCDR_20' ) start [2025-04-25 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986898', 'tblTempVendorCDR_20' ) end [2025-04-25 12:19:22] Production.INFO: ProcessCDR(1,14986898,1,1,2) [2025-04-25 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986898', 'tblTempUsageDetail_20' ) start [2025-04-25 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986898', 'tblTempUsageDetail_20' ) end [2025-04-25 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:19:27] Production.INFO: ==26670== Releasing lock... [2025-04-25 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:19:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:20:06 [end_date_ymd] => 2025-04-25 12:20:06 [RateCDR] => 1 ) [2025-04-25 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:20:06' and `end` < '2025-04-25 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:20:20] Production.INFO: count ==5703 [2025-04-25 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:20:06 - End Time 2025-04-25 12:20:06 [2025-04-25 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986903', 'tblTempUsageDetail_20' ) start [2025-04-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986903', 'tblTempUsageDetail_20' ) end [2025-04-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986903', 'tblTempVendorCDR_20' ) start [2025-04-25 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986903', 'tblTempVendorCDR_20' ) end [2025-04-25 12:20:22] Production.INFO: ProcessCDR(1,14986903,1,1,2) [2025-04-25 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986903', 'tblTempUsageDetail_20' ) start [2025-04-25 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986903', 'tblTempUsageDetail_20' ) end [2025-04-25 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:20:27] Production.INFO: ==26745== Releasing lock... [2025-04-25 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:20:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:21:05 [end_date_ymd] => 2025-04-25 12:21:05 [RateCDR] => 1 ) [2025-04-25 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:21:05' and `end` < '2025-04-25 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:21:19] Production.INFO: count ==5740 [2025-04-25 12:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:21:05 - End Time 2025-04-25 12:21:05 [2025-04-25 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986909', 'tblTempUsageDetail_20' ) start [2025-04-25 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986909', 'tblTempUsageDetail_20' ) end [2025-04-25 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986909', 'tblTempVendorCDR_20' ) start [2025-04-25 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986909', 'tblTempVendorCDR_20' ) end [2025-04-25 12:21:22] Production.INFO: ProcessCDR(1,14986909,1,1,2) [2025-04-25 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986909', 'tblTempUsageDetail_20' ) start [2025-04-25 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986909', 'tblTempUsageDetail_20' ) end [2025-04-25 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:21:27] Production.INFO: ==26823== Releasing lock... [2025-04-25 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:21:27] Production.INFO: 71 MB #Memory Used# [2025-04-25 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:22:06 [end_date_ymd] => 2025-04-25 12:22:06 [RateCDR] => 1 ) [2025-04-25 12: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-04-25 09:22:06' and `end` < '2025-04-25 12: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-04-25 12:22:19] Production.INFO: count ==5735 [2025-04-25 12:22:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:22:06 - End Time 2025-04-25 12:22:06 [2025-04-25 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986914', 'tblTempUsageDetail_20' ) start [2025-04-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986914', 'tblTempUsageDetail_20' ) end [2025-04-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986914', 'tblTempVendorCDR_20' ) start [2025-04-25 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986914', 'tblTempVendorCDR_20' ) end [2025-04-25 12:22:22] Production.INFO: ProcessCDR(1,14986914,1,1,2) [2025-04-25 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986914', 'tblTempUsageDetail_20' ) start [2025-04-25 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986914', 'tblTempUsageDetail_20' ) end [2025-04-25 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:22:27] Production.INFO: ==26896== Releasing lock... [2025-04-25 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:22:27] Production.INFO: 71 MB #Memory Used# [2025-04-25 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:23:04 [end_date_ymd] => 2025-04-25 12:23:04 [RateCDR] => 1 ) [2025-04-25 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:23:04' and `end` < '2025-04-25 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:23:18] Production.INFO: count ==5737 [2025-04-25 12:23:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:23:04 - End Time 2025-04-25 12:23:04 [2025-04-25 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986919', 'tblTempUsageDetail_20' ) start [2025-04-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986919', 'tblTempUsageDetail_20' ) end [2025-04-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986919', 'tblTempVendorCDR_20' ) start [2025-04-25 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986919', 'tblTempVendorCDR_20' ) end [2025-04-25 12:23:21] Production.INFO: ProcessCDR(1,14986919,1,1,2) [2025-04-25 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986919', 'tblTempUsageDetail_20' ) start [2025-04-25 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986919', 'tblTempUsageDetail_20' ) end [2025-04-25 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:23:26] Production.INFO: ==26967== Releasing lock... [2025-04-25 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:23:26] Production.INFO: 71 MB #Memory Used# [2025-04-25 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:24:05 [end_date_ymd] => 2025-04-25 12:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:24:05' and `end` < '2025-04-25 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-04-25 12:24:19] Production.INFO: count ==5748 [2025-04-25 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:24:05 - End Time 2025-04-25 12:24:05 [2025-04-25 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986924', 'tblTempUsageDetail_20' ) start [2025-04-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986924', 'tblTempUsageDetail_20' ) end [2025-04-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986924', 'tblTempVendorCDR_20' ) start [2025-04-25 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986924', 'tblTempVendorCDR_20' ) end [2025-04-25 12:24:22] Production.INFO: ProcessCDR(1,14986924,1,1,2) [2025-04-25 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986924', 'tblTempUsageDetail_20' ) start [2025-04-25 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986924', 'tblTempUsageDetail_20' ) end [2025-04-25 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:24:27] Production.INFO: ==27043== Releasing lock... [2025-04-25 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:24:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:25:05 [end_date_ymd] => 2025-04-25 12:25:05 [RateCDR] => 1 ) [2025-04-25 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:25:05' and `end` < '2025-04-25 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:25:19] Production.INFO: count ==5765 [2025-04-25 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:25:05 - End Time 2025-04-25 12:25:05 [2025-04-25 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986929', 'tblTempUsageDetail_20' ) start [2025-04-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986929', 'tblTempUsageDetail_20' ) end [2025-04-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986929', 'tblTempVendorCDR_20' ) start [2025-04-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986929', 'tblTempVendorCDR_20' ) end [2025-04-25 12:25:21] Production.INFO: ProcessCDR(1,14986929,1,1,2) [2025-04-25 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986929', 'tblTempUsageDetail_20' ) start [2025-04-25 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986929', 'tblTempUsageDetail_20' ) end [2025-04-25 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:25:27] Production.INFO: ==27122== Releasing lock... [2025-04-25 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:25:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:26:05 [end_date_ymd] => 2025-04-25 12:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:26:05' and `end` < '2025-04-25 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-04-25 12:26:19] Production.INFO: count ==5770 [2025-04-25 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:26:05 - End Time 2025-04-25 12:26:05 [2025-04-25 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986934', 'tblTempUsageDetail_20' ) start [2025-04-25 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986934', 'tblTempUsageDetail_20' ) end [2025-04-25 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986934', 'tblTempVendorCDR_20' ) start [2025-04-25 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986934', 'tblTempVendorCDR_20' ) end [2025-04-25 12:26:22] Production.INFO: ProcessCDR(1,14986934,1,1,2) [2025-04-25 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986934', 'tblTempUsageDetail_20' ) start [2025-04-25 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986934', 'tblTempUsageDetail_20' ) end [2025-04-25 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:26:27] Production.INFO: ==27195== Releasing lock... [2025-04-25 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:26:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:27:05 [end_date_ymd] => 2025-04-25 12:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:27:05' and `end` < '2025-04-25 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-04-25 12:27:18] Production.INFO: count ==5763 [2025-04-25 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:27:05 - End Time 2025-04-25 12:27:05 [2025-04-25 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986939', 'tblTempUsageDetail_20' ) start [2025-04-25 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986939', 'tblTempUsageDetail_20' ) end [2025-04-25 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986939', 'tblTempVendorCDR_20' ) start [2025-04-25 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986939', 'tblTempVendorCDR_20' ) end [2025-04-25 12:27:21] Production.INFO: ProcessCDR(1,14986939,1,1,2) [2025-04-25 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986939', 'tblTempUsageDetail_20' ) start [2025-04-25 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986939', 'tblTempUsageDetail_20' ) end [2025-04-25 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:27:26] Production.INFO: ==27264== Releasing lock... [2025-04-25 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:27:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:28:05 [end_date_ymd] => 2025-04-25 12:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:28:05' and `end` < '2025-04-25 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-04-25 12:28:19] Production.INFO: count ==5758 [2025-04-25 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:28:05 - End Time 2025-04-25 12:28:05 [2025-04-25 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986944', 'tblTempUsageDetail_20' ) start [2025-04-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986944', 'tblTempUsageDetail_20' ) end [2025-04-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986944', 'tblTempVendorCDR_20' ) start [2025-04-25 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986944', 'tblTempVendorCDR_20' ) end [2025-04-25 12:28:21] Production.INFO: ProcessCDR(1,14986944,1,1,2) [2025-04-25 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986944', 'tblTempUsageDetail_20' ) start [2025-04-25 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986944', 'tblTempUsageDetail_20' ) end [2025-04-25 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:28:26] Production.INFO: ==27347== Releasing lock... [2025-04-25 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:28:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:29:05 [end_date_ymd] => 2025-04-25 12:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:29:05' and `end` < '2025-04-25 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-04-25 12:29:19] Production.INFO: count ==5760 [2025-04-25 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:29:05 - End Time 2025-04-25 12:29:05 [2025-04-25 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986949', 'tblTempUsageDetail_20' ) start [2025-04-25 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986949', 'tblTempUsageDetail_20' ) end [2025-04-25 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986949', 'tblTempVendorCDR_20' ) start [2025-04-25 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986949', 'tblTempVendorCDR_20' ) end [2025-04-25 12:29:22] Production.INFO: ProcessCDR(1,14986949,1,1,2) [2025-04-25 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986949', 'tblTempUsageDetail_20' ) start [2025-04-25 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986949', 'tblTempUsageDetail_20' ) end [2025-04-25 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:29:27] Production.INFO: ==27431== Releasing lock... [2025-04-25 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:29:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:30:06 [end_date_ymd] => 2025-04-25 12:30:06 [RateCDR] => 1 ) [2025-04-25 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:30:06' and `end` < '2025-04-25 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:30:19] Production.INFO: count ==5741 [2025-04-25 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:30:06 - End Time 2025-04-25 12:30:06 [2025-04-25 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986955', 'tblTempUsageDetail_20' ) start [2025-04-25 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986955', 'tblTempUsageDetail_20' ) end [2025-04-25 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986955', 'tblTempVendorCDR_20' ) start [2025-04-25 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986955', 'tblTempVendorCDR_20' ) end [2025-04-25 12:30:22] Production.INFO: ProcessCDR(1,14986955,1,1,2) [2025-04-25 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986955', 'tblTempUsageDetail_20' ) start [2025-04-25 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986955', 'tblTempUsageDetail_20' ) end [2025-04-25 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:30:28] Production.INFO: ==27503== Releasing lock... [2025-04-25 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:30:28] Production.INFO: 71 MB #Memory Used# [2025-04-25 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:31:05 [end_date_ymd] => 2025-04-25 12:31:05 [RateCDR] => 1 ) [2025-04-25 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:31:05' and `end` < '2025-04-25 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:31:19] Production.INFO: count ==5746 [2025-04-25 12:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:31:05 - End Time 2025-04-25 12:31:05 [2025-04-25 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986960', 'tblTempUsageDetail_20' ) start [2025-04-25 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986960', 'tblTempUsageDetail_20' ) end [2025-04-25 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986960', 'tblTempVendorCDR_20' ) start [2025-04-25 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986960', 'tblTempVendorCDR_20' ) end [2025-04-25 12:31:22] Production.INFO: ProcessCDR(1,14986960,1,1,2) [2025-04-25 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986960', 'tblTempUsageDetail_20' ) start [2025-04-25 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986960', 'tblTempUsageDetail_20' ) end [2025-04-25 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:31:27] Production.INFO: ==27576== Releasing lock... [2025-04-25 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:31:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:32:05 [end_date_ymd] => 2025-04-25 12:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:32:05' and `end` < '2025-04-25 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-04-25 12:32:19] Production.INFO: count ==5767 [2025-04-25 12:32:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:32:05 - End Time 2025-04-25 12:32:05 [2025-04-25 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986965', 'tblTempUsageDetail_20' ) start [2025-04-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986965', 'tblTempUsageDetail_20' ) end [2025-04-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986965', 'tblTempVendorCDR_20' ) start [2025-04-25 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986965', 'tblTempVendorCDR_20' ) end [2025-04-25 12:32:22] Production.INFO: ProcessCDR(1,14986965,1,1,2) [2025-04-25 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986965', 'tblTempUsageDetail_20' ) start [2025-04-25 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986965', 'tblTempUsageDetail_20' ) end [2025-04-25 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:32:26] Production.INFO: ==27647== Releasing lock... [2025-04-25 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:32:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:33:06 [end_date_ymd] => 2025-04-25 12:33:06 [RateCDR] => 1 ) [2025-04-25 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:33:06' and `end` < '2025-04-25 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:33:19] Production.INFO: count ==5774 [2025-04-25 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:33:06 - End Time 2025-04-25 12:33:06 [2025-04-25 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986970', 'tblTempUsageDetail_20' ) start [2025-04-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986970', 'tblTempUsageDetail_20' ) end [2025-04-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986970', 'tblTempVendorCDR_20' ) start [2025-04-25 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986970', 'tblTempVendorCDR_20' ) end [2025-04-25 12:33:22] Production.INFO: ProcessCDR(1,14986970,1,1,2) [2025-04-25 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986970', 'tblTempUsageDetail_20' ) start [2025-04-25 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986970', 'tblTempUsageDetail_20' ) end [2025-04-25 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:33:28] Production.INFO: ==27723== Releasing lock... [2025-04-25 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:33:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:34:04 [end_date_ymd] => 2025-04-25 12:34:04 [RateCDR] => 1 ) [2025-04-25 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:34:04' and `end` < '2025-04-25 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:34:19] Production.INFO: count ==5838 [2025-04-25 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:34:04 - End Time 2025-04-25 12:34:04 [2025-04-25 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986975', 'tblTempUsageDetail_20' ) start [2025-04-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986975', 'tblTempUsageDetail_20' ) end [2025-04-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986975', 'tblTempVendorCDR_20' ) start [2025-04-25 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986975', 'tblTempVendorCDR_20' ) end [2025-04-25 12:34:21] Production.INFO: ProcessCDR(1,14986975,1,1,2) [2025-04-25 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986975', 'tblTempUsageDetail_20' ) start [2025-04-25 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986975', 'tblTempUsageDetail_20' ) end [2025-04-25 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:34:26] Production.INFO: ==27797== Releasing lock... [2025-04-25 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:34:26] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:35:05 [end_date_ymd] => 2025-04-25 12:35:05 [RateCDR] => 1 ) [2025-04-25 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:35:05' and `end` < '2025-04-25 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:35:19] Production.INFO: count ==5856 [2025-04-25 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:35:05 - End Time 2025-04-25 12:35:05 [2025-04-25 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986980', 'tblTempUsageDetail_20' ) start [2025-04-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986980', 'tblTempUsageDetail_20' ) end [2025-04-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986980', 'tblTempVendorCDR_20' ) start [2025-04-25 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986980', 'tblTempVendorCDR_20' ) end [2025-04-25 12:35:22] Production.INFO: ProcessCDR(1,14986980,1,1,2) [2025-04-25 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986980', 'tblTempUsageDetail_20' ) start [2025-04-25 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986980', 'tblTempUsageDetail_20' ) end [2025-04-25 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:35:27] Production.INFO: ==27908== Releasing lock... [2025-04-25 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:35:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:36:05 [end_date_ymd] => 2025-04-25 12:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:36:05' and `end` < '2025-04-25 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-04-25 12:36:19] Production.INFO: count ==5858 [2025-04-25 12:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:36:05 - End Time 2025-04-25 12:36:05 [2025-04-25 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986985', 'tblTempUsageDetail_20' ) start [2025-04-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986985', 'tblTempUsageDetail_20' ) end [2025-04-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986985', 'tblTempVendorCDR_20' ) start [2025-04-25 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986985', 'tblTempVendorCDR_20' ) end [2025-04-25 12:36:22] Production.INFO: ProcessCDR(1,14986985,1,1,2) [2025-04-25 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986985', 'tblTempUsageDetail_20' ) start [2025-04-25 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986985', 'tblTempUsageDetail_20' ) end [2025-04-25 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:36:27] Production.INFO: ==27979== Releasing lock... [2025-04-25 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:36:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:37:05 [end_date_ymd] => 2025-04-25 12:37:05 [RateCDR] => 1 ) [2025-04-25 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:37:05' and `end` < '2025-04-25 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:37:19] Production.INFO: count ==5852 [2025-04-25 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:37:05 - End Time 2025-04-25 12:37:05 [2025-04-25 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986990', 'tblTempUsageDetail_20' ) start [2025-04-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986990', 'tblTempUsageDetail_20' ) end [2025-04-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986990', 'tblTempVendorCDR_20' ) start [2025-04-25 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986990', 'tblTempVendorCDR_20' ) end [2025-04-25 12:37:22] Production.INFO: ProcessCDR(1,14986990,1,1,2) [2025-04-25 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986990', 'tblTempUsageDetail_20' ) start [2025-04-25 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986990', 'tblTempUsageDetail_20' ) end [2025-04-25 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:37:27] Production.INFO: ==28051== Releasing lock... [2025-04-25 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:37:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:38:06 [end_date_ymd] => 2025-04-25 12:38:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:38:06' and `end` < '2025-04-25 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-04-25 12:38:20] Production.INFO: count ==5847 [2025-04-25 12:38:23] Production.ERROR: pbx CDR StartTime 2025-04-25 09:38:06 - End Time 2025-04-25 12:38:06 [2025-04-25 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986995', 'tblTempUsageDetail_20' ) start [2025-04-25 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14986995', 'tblTempUsageDetail_20' ) end [2025-04-25 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986995', 'tblTempVendorCDR_20' ) start [2025-04-25 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14986995', 'tblTempVendorCDR_20' ) end [2025-04-25 12:38:23] Production.INFO: ProcessCDR(1,14986995,1,1,2) [2025-04-25 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14986995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14986995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14986995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14986995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986995', 'tblTempUsageDetail_20' ) start [2025-04-25 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14986995', 'tblTempUsageDetail_20' ) end [2025-04-25 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:38:28] Production.INFO: ==28125== Releasing lock... [2025-04-25 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:38:28] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:39:05 [end_date_ymd] => 2025-04-25 12:39:05 [RateCDR] => 1 ) [2025-04-25 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:39:05' and `end` < '2025-04-25 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:39:19] Production.INFO: count ==5876 [2025-04-25 12:39:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:39:05 - End Time 2025-04-25 12:39:05 [2025-04-25 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987000', 'tblTempUsageDetail_20' ) start [2025-04-25 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987000', 'tblTempUsageDetail_20' ) end [2025-04-25 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987000', 'tblTempVendorCDR_20' ) start [2025-04-25 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987000', 'tblTempVendorCDR_20' ) end [2025-04-25 12:39:22] Production.INFO: ProcessCDR(1,14987000,1,1,2) [2025-04-25 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987000', 'tblTempUsageDetail_20' ) start [2025-04-25 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987000', 'tblTempUsageDetail_20' ) end [2025-04-25 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:39:27] Production.INFO: ==28203== Releasing lock... [2025-04-25 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:39:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:40:06 [end_date_ymd] => 2025-04-25 12:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:40:06' and `end` < '2025-04-25 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-04-25 12:40:20] Production.INFO: count ==5880 [2025-04-25 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:40:06 - End Time 2025-04-25 12:40:06 [2025-04-25 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987006', 'tblTempUsageDetail_20' ) start [2025-04-25 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987006', 'tblTempUsageDetail_20' ) end [2025-04-25 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987006', 'tblTempVendorCDR_20' ) start [2025-04-25 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987006', 'tblTempVendorCDR_20' ) end [2025-04-25 12:40:23] Production.INFO: ProcessCDR(1,14987006,1,1,2) [2025-04-25 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987006', 'tblTempUsageDetail_20' ) start [2025-04-25 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987006', 'tblTempUsageDetail_20' ) end [2025-04-25 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:40:28] Production.INFO: ==28276== Releasing lock... [2025-04-25 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:40:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:41:05 [end_date_ymd] => 2025-04-25 12:41:05 [RateCDR] => 1 ) [2025-04-25 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:41:05' and `end` < '2025-04-25 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:41:19] Production.INFO: count ==5874 [2025-04-25 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:41:05 - End Time 2025-04-25 12:41:05 [2025-04-25 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987011', 'tblTempUsageDetail_20' ) start [2025-04-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987011', 'tblTempUsageDetail_20' ) end [2025-04-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987011', 'tblTempVendorCDR_20' ) start [2025-04-25 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987011', 'tblTempVendorCDR_20' ) end [2025-04-25 12:41:21] Production.INFO: ProcessCDR(1,14987011,1,1,2) [2025-04-25 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987011', 'tblTempUsageDetail_20' ) start [2025-04-25 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987011', 'tblTempUsageDetail_20' ) end [2025-04-25 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:41:26] Production.INFO: ==28350== Releasing lock... [2025-04-25 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:41:26] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:42:05 [end_date_ymd] => 2025-04-25 12:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:42:05' and `end` < '2025-04-25 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-04-25 12:42:19] Production.INFO: count ==5883 [2025-04-25 12:42:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:42:05 - End Time 2025-04-25 12:42:05 [2025-04-25 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987016', 'tblTempUsageDetail_20' ) start [2025-04-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987016', 'tblTempUsageDetail_20' ) end [2025-04-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987016', 'tblTempVendorCDR_20' ) start [2025-04-25 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987016', 'tblTempVendorCDR_20' ) end [2025-04-25 12:42:22] Production.INFO: ProcessCDR(1,14987016,1,1,2) [2025-04-25 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987016', 'tblTempUsageDetail_20' ) start [2025-04-25 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987016', 'tblTempUsageDetail_20' ) end [2025-04-25 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:42:28] Production.INFO: ==28421== Releasing lock... [2025-04-25 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:42:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:43:05 [end_date_ymd] => 2025-04-25 12:43:05 [RateCDR] => 1 ) [2025-04-25 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:43:05' and `end` < '2025-04-25 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:43:19] Production.INFO: count ==5882 [2025-04-25 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:43:05 - End Time 2025-04-25 12:43:05 [2025-04-25 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987021', 'tblTempUsageDetail_20' ) start [2025-04-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987021', 'tblTempUsageDetail_20' ) end [2025-04-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987021', 'tblTempVendorCDR_20' ) start [2025-04-25 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987021', 'tblTempVendorCDR_20' ) end [2025-04-25 12:43:22] Production.INFO: ProcessCDR(1,14987021,1,1,2) [2025-04-25 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987021', 'tblTempUsageDetail_20' ) start [2025-04-25 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987021', 'tblTempUsageDetail_20' ) end [2025-04-25 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:43:27] Production.INFO: ==28491== Releasing lock... [2025-04-25 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:43:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:44:05 [end_date_ymd] => 2025-04-25 12:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:44:05' and `end` < '2025-04-25 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-04-25 12:44:19] Production.INFO: count ==5876 [2025-04-25 12:44:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:44:05 - End Time 2025-04-25 12:44:05 [2025-04-25 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987026', 'tblTempUsageDetail_20' ) start [2025-04-25 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987026', 'tblTempUsageDetail_20' ) end [2025-04-25 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987026', 'tblTempVendorCDR_20' ) start [2025-04-25 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987026', 'tblTempVendorCDR_20' ) end [2025-04-25 12:44:22] Production.INFO: ProcessCDR(1,14987026,1,1,2) [2025-04-25 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987026', 'tblTempUsageDetail_20' ) start [2025-04-25 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987026', 'tblTempUsageDetail_20' ) end [2025-04-25 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:44:27] Production.INFO: ==28565== Releasing lock... [2025-04-25 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:44:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:45:05 [end_date_ymd] => 2025-04-25 12:45:05 [RateCDR] => 1 ) [2025-04-25 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:45:05' and `end` < '2025-04-25 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:45:19] Production.INFO: count ==5892 [2025-04-25 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:45:05 - End Time 2025-04-25 12:45:05 [2025-04-25 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987031', 'tblTempUsageDetail_20' ) start [2025-04-25 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987031', 'tblTempUsageDetail_20' ) end [2025-04-25 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987031', 'tblTempVendorCDR_20' ) start [2025-04-25 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987031', 'tblTempVendorCDR_20' ) end [2025-04-25 12:45:22] Production.INFO: ProcessCDR(1,14987031,1,1,2) [2025-04-25 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987031', 'tblTempUsageDetail_20' ) start [2025-04-25 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987031', 'tblTempUsageDetail_20' ) end [2025-04-25 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:45:27] Production.INFO: ==28640== Releasing lock... [2025-04-25 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:45:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:46:06 [end_date_ymd] => 2025-04-25 12:46:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:46:06' and `end` < '2025-04-25 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-04-25 12:46:20] Production.INFO: count ==5879 [2025-04-25 12:46:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:46:06 - End Time 2025-04-25 12:46:06 [2025-04-25 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987036', 'tblTempUsageDetail_20' ) start [2025-04-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987036', 'tblTempUsageDetail_20' ) end [2025-04-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987036', 'tblTempVendorCDR_20' ) start [2025-04-25 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987036', 'tblTempVendorCDR_20' ) end [2025-04-25 12:46:23] Production.INFO: ProcessCDR(1,14987036,1,1,2) [2025-04-25 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987036', 'tblTempUsageDetail_20' ) start [2025-04-25 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987036', 'tblTempUsageDetail_20' ) end [2025-04-25 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:46:27] Production.INFO: ==28712== Releasing lock... [2025-04-25 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:46:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:47:05 [end_date_ymd] => 2025-04-25 12:47:05 [RateCDR] => 1 ) [2025-04-25 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:47:05' and `end` < '2025-04-25 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:47:19] Production.INFO: count ==5886 [2025-04-25 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:47:05 - End Time 2025-04-25 12:47:05 [2025-04-25 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987041', 'tblTempUsageDetail_20' ) start [2025-04-25 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987041', 'tblTempUsageDetail_20' ) end [2025-04-25 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987041', 'tblTempVendorCDR_20' ) start [2025-04-25 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987041', 'tblTempVendorCDR_20' ) end [2025-04-25 12:47:22] Production.INFO: ProcessCDR(1,14987041,1,1,2) [2025-04-25 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987041', 'tblTempUsageDetail_20' ) start [2025-04-25 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987041', 'tblTempUsageDetail_20' ) end [2025-04-25 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:47:27] Production.INFO: ==28781== Releasing lock... [2025-04-25 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:47:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:48:05 [end_date_ymd] => 2025-04-25 12:48:05 [RateCDR] => 1 ) [2025-04-25 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:48:05' and `end` < '2025-04-25 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:48:19] Production.INFO: count ==5877 [2025-04-25 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:48:05 - End Time 2025-04-25 12:48:05 [2025-04-25 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987046', 'tblTempUsageDetail_20' ) start [2025-04-25 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987046', 'tblTempUsageDetail_20' ) end [2025-04-25 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987046', 'tblTempVendorCDR_20' ) start [2025-04-25 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987046', 'tblTempVendorCDR_20' ) end [2025-04-25 12:48:22] Production.INFO: ProcessCDR(1,14987046,1,1,2) [2025-04-25 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987046', 'tblTempUsageDetail_20' ) start [2025-04-25 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987046', 'tblTempUsageDetail_20' ) end [2025-04-25 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:48:27] Production.INFO: ==28860== Releasing lock... [2025-04-25 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:48:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:49:04 [end_date_ymd] => 2025-04-25 12:49:04 [RateCDR] => 1 ) [2025-04-25 12: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-04-25 09:49:04' and `end` < '2025-04-25 12: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-04-25 12:49:18] Production.INFO: count ==5861 [2025-04-25 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:49:04 - End Time 2025-04-25 12:49:04 [2025-04-25 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987051', 'tblTempUsageDetail_20' ) start [2025-04-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987051', 'tblTempUsageDetail_20' ) end [2025-04-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987051', 'tblTempVendorCDR_20' ) start [2025-04-25 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987051', 'tblTempVendorCDR_20' ) end [2025-04-25 12:49:21] Production.INFO: ProcessCDR(1,14987051,1,1,2) [2025-04-25 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987051', 'tblTempUsageDetail_20' ) start [2025-04-25 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987051', 'tblTempUsageDetail_20' ) end [2025-04-25 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:49:26] Production.INFO: ==28938== Releasing lock... [2025-04-25 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:49:26] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:50:06 [end_date_ymd] => 2025-04-25 12:50:06 [RateCDR] => 1 ) [2025-04-25 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:50:06' and `end` < '2025-04-25 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:50:20] Production.INFO: count ==5850 [2025-04-25 12:50:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:50:06 - End Time 2025-04-25 12:50:06 [2025-04-25 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987056', 'tblTempUsageDetail_20' ) start [2025-04-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987056', 'tblTempUsageDetail_20' ) end [2025-04-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987056', 'tblTempVendorCDR_20' ) start [2025-04-25 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987056', 'tblTempVendorCDR_20' ) end [2025-04-25 12:50:22] Production.INFO: ProcessCDR(1,14987056,1,1,2) [2025-04-25 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987056', 'tblTempUsageDetail_20' ) start [2025-04-25 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987056', 'tblTempUsageDetail_20' ) end [2025-04-25 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:50:27] Production.INFO: ==29052== Releasing lock... [2025-04-25 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:50:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:51:05 [end_date_ymd] => 2025-04-25 12:51:05 [RateCDR] => 1 ) [2025-04-25 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:51:05' and `end` < '2025-04-25 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-04-25 12:51:19] Production.INFO: count ==5867 [2025-04-25 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:51:05 - End Time 2025-04-25 12:51:05 [2025-04-25 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987062', 'tblTempUsageDetail_20' ) start [2025-04-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987062', 'tblTempUsageDetail_20' ) end [2025-04-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987062', 'tblTempVendorCDR_20' ) start [2025-04-25 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987062', 'tblTempVendorCDR_20' ) end [2025-04-25 12:51:22] Production.INFO: ProcessCDR(1,14987062,1,1,2) [2025-04-25 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987062', 'tblTempUsageDetail_20' ) start [2025-04-25 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987062', 'tblTempUsageDetail_20' ) end [2025-04-25 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:51:27] Production.INFO: ==29130== Releasing lock... [2025-04-25 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:51:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:52:05 [end_date_ymd] => 2025-04-25 12:52:05 [RateCDR] => 1 ) [2025-04-25 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:52:05' and `end` < '2025-04-25 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:52:19] Production.INFO: count ==5878 [2025-04-25 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:52:05 - End Time 2025-04-25 12:52:05 [2025-04-25 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987067', 'tblTempUsageDetail_20' ) start [2025-04-25 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987067', 'tblTempUsageDetail_20' ) end [2025-04-25 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987067', 'tblTempVendorCDR_20' ) start [2025-04-25 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987067', 'tblTempVendorCDR_20' ) end [2025-04-25 12:52:22] Production.INFO: ProcessCDR(1,14987067,1,1,2) [2025-04-25 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987067', 'tblTempUsageDetail_20' ) start [2025-04-25 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987067', 'tblTempUsageDetail_20' ) end [2025-04-25 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:52:27] Production.INFO: ==29209== Releasing lock... [2025-04-25 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:52:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:53:05 [end_date_ymd] => 2025-04-25 12:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:53:05' and `end` < '2025-04-25 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-04-25 12:53:19] Production.INFO: count ==5882 [2025-04-25 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:53:05 - End Time 2025-04-25 12:53:05 [2025-04-25 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987072', 'tblTempUsageDetail_20' ) start [2025-04-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987072', 'tblTempUsageDetail_20' ) end [2025-04-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987072', 'tblTempVendorCDR_20' ) start [2025-04-25 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987072', 'tblTempVendorCDR_20' ) end [2025-04-25 12:53:22] Production.INFO: ProcessCDR(1,14987072,1,1,2) [2025-04-25 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987072', 'tblTempUsageDetail_20' ) start [2025-04-25 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987072', 'tblTempUsageDetail_20' ) end [2025-04-25 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:53:27] Production.INFO: ==29280== Releasing lock... [2025-04-25 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:54:05 [end_date_ymd] => 2025-04-25 12:54:05 [RateCDR] => 1 ) [2025-04-25 12: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-04-25 09:54:05' and `end` < '2025-04-25 12: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-04-25 12:54:19] Production.INFO: count ==5887 [2025-04-25 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:54:05 - End Time 2025-04-25 12:54:05 [2025-04-25 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987077', 'tblTempUsageDetail_20' ) start [2025-04-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987077', 'tblTempUsageDetail_20' ) end [2025-04-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987077', 'tblTempVendorCDR_20' ) start [2025-04-25 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987077', 'tblTempVendorCDR_20' ) end [2025-04-25 12:54:22] Production.INFO: ProcessCDR(1,14987077,1,1,2) [2025-04-25 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987077', 'tblTempUsageDetail_20' ) start [2025-04-25 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987077', 'tblTempUsageDetail_20' ) end [2025-04-25 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:54:27] Production.INFO: ==29353== Releasing lock... [2025-04-25 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:54:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:55:05 [end_date_ymd] => 2025-04-25 12:55:05 [RateCDR] => 1 ) [2025-04-25 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:55:05' and `end` < '2025-04-25 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:55:19] Production.INFO: count ==5888 [2025-04-25 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:55:05 - End Time 2025-04-25 12:55:05 [2025-04-25 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987082', 'tblTempUsageDetail_20' ) start [2025-04-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987082', 'tblTempUsageDetail_20' ) end [2025-04-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987082', 'tblTempVendorCDR_20' ) start [2025-04-25 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987082', 'tblTempVendorCDR_20' ) end [2025-04-25 12:55:22] Production.INFO: ProcessCDR(1,14987082,1,1,2) [2025-04-25 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987082', 'tblTempUsageDetail_20' ) start [2025-04-25 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987082', 'tblTempUsageDetail_20' ) end [2025-04-25 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:55:27] Production.INFO: ==29425== Releasing lock... [2025-04-25 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:55:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:56:05 [end_date_ymd] => 2025-04-25 12:56:05 [RateCDR] => 1 ) [2025-04-25 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:56:05' and `end` < '2025-04-25 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:56:19] Production.INFO: count ==5896 [2025-04-25 12:56:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:56:05 - End Time 2025-04-25 12:56:05 [2025-04-25 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987087', 'tblTempUsageDetail_20' ) start [2025-04-25 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987087', 'tblTempUsageDetail_20' ) end [2025-04-25 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987087', 'tblTempVendorCDR_20' ) start [2025-04-25 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987087', 'tblTempVendorCDR_20' ) end [2025-04-25 12:56:22] Production.INFO: ProcessCDR(1,14987087,1,1,2) [2025-04-25 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987087', 'tblTempUsageDetail_20' ) start [2025-04-25 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987087', 'tblTempUsageDetail_20' ) end [2025-04-25 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:56:27] Production.INFO: ==29500== Releasing lock... [2025-04-25 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:56:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:57:05 [end_date_ymd] => 2025-04-25 12:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:57:05' and `end` < '2025-04-25 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-04-25 12:57:19] Production.INFO: count ==5896 [2025-04-25 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:57:05 - End Time 2025-04-25 12:57:05 [2025-04-25 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987092', 'tblTempUsageDetail_20' ) start [2025-04-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987092', 'tblTempUsageDetail_20' ) end [2025-04-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987092', 'tblTempVendorCDR_20' ) start [2025-04-25 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987092', 'tblTempVendorCDR_20' ) end [2025-04-25 12:57:22] Production.INFO: ProcessCDR(1,14987092,1,1,2) [2025-04-25 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987092', 'tblTempUsageDetail_20' ) start [2025-04-25 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987092', 'tblTempUsageDetail_20' ) end [2025-04-25 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:57:27] Production.INFO: ==29572== Releasing lock... [2025-04-25 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:57:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:58:05 [end_date_ymd] => 2025-04-25 12:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 09:58:05' and `end` < '2025-04-25 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-04-25 12:58:19] Production.INFO: count ==5908 [2025-04-25 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-25 09:58:05 - End Time 2025-04-25 12:58:05 [2025-04-25 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987097', 'tblTempUsageDetail_20' ) start [2025-04-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987097', 'tblTempUsageDetail_20' ) end [2025-04-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987097', 'tblTempVendorCDR_20' ) start [2025-04-25 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987097', 'tblTempVendorCDR_20' ) end [2025-04-25 12:58:22] Production.INFO: ProcessCDR(1,14987097,1,1,2) [2025-04-25 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987097', 'tblTempUsageDetail_20' ) start [2025-04-25 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987097', 'tblTempUsageDetail_20' ) end [2025-04-25 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:58:27] Production.INFO: ==29641== Releasing lock... [2025-04-25 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:58:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 09:59:05 [end_date_ymd] => 2025-04-25 12:59:05 [RateCDR] => 1 ) [2025-04-25 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 09:59:05' and `end` < '2025-04-25 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 12:59:19] Production.INFO: count ==5907 [2025-04-25 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-25 09:59:05 - End Time 2025-04-25 12:59:05 [2025-04-25 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987102', 'tblTempUsageDetail_20' ) start [2025-04-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987102', 'tblTempUsageDetail_20' ) end [2025-04-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987102', 'tblTempVendorCDR_20' ) start [2025-04-25 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987102', 'tblTempVendorCDR_20' ) end [2025-04-25 12:59:22] Production.INFO: ProcessCDR(1,14987102,1,1,2) [2025-04-25 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987102', 'tblTempUsageDetail_20' ) start [2025-04-25 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987102', 'tblTempUsageDetail_20' ) end [2025-04-25 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 12:59:27] Production.INFO: ==29712== Releasing lock... [2025-04-25 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 12:59:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:00:06 [end_date_ymd] => 2025-04-25 13:00:06 [RateCDR] => 1 ) [2025-04-25 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:00:06' and `end` < '2025-04-25 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:00:20] Production.INFO: count ==5910 [2025-04-25 13:00:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:00:06 - End Time 2025-04-25 13:00:06 [2025-04-25 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987107', 'tblTempUsageDetail_20' ) start [2025-04-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987107', 'tblTempUsageDetail_20' ) end [2025-04-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987107', 'tblTempVendorCDR_20' ) start [2025-04-25 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987107', 'tblTempVendorCDR_20' ) end [2025-04-25 13:00:23] Production.INFO: ProcessCDR(1,14987107,1,1,2) [2025-04-25 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987107', 'tblTempUsageDetail_20' ) start [2025-04-25 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987107', 'tblTempUsageDetail_20' ) end [2025-04-25 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:00:28] Production.INFO: ==29786== Releasing lock... [2025-04-25 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:00:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:01:05 [end_date_ymd] => 2025-04-25 13:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:01:05' and `end` < '2025-04-25 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-04-25 13:01:19] Production.INFO: count ==5939 [2025-04-25 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:01:05 - End Time 2025-04-25 13:01:05 [2025-04-25 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987113', 'tblTempUsageDetail_20' ) start [2025-04-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987113', 'tblTempUsageDetail_20' ) end [2025-04-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987113', 'tblTempVendorCDR_20' ) start [2025-04-25 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987113', 'tblTempVendorCDR_20' ) end [2025-04-25 13:01:22] Production.INFO: ProcessCDR(1,14987113,1,1,2) [2025-04-25 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987113', 'tblTempUsageDetail_20' ) start [2025-04-25 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987113', 'tblTempUsageDetail_20' ) end [2025-04-25 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:01:27] Production.INFO: ==29874== Releasing lock... [2025-04-25 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:01:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:02:05 [end_date_ymd] => 2025-04-25 13:02:05 [RateCDR] => 1 ) [2025-04-25 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:02:05' and `end` < '2025-04-25 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:02:19] Production.INFO: count ==5937 [2025-04-25 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:02:05 - End Time 2025-04-25 13:02:05 [2025-04-25 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987118', 'tblTempUsageDetail_20' ) start [2025-04-25 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987118', 'tblTempUsageDetail_20' ) end [2025-04-25 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987118', 'tblTempVendorCDR_20' ) start [2025-04-25 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987118', 'tblTempVendorCDR_20' ) end [2025-04-25 13:02:22] Production.INFO: ProcessCDR(1,14987118,1,1,2) [2025-04-25 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987118', 'tblTempUsageDetail_20' ) start [2025-04-25 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987118', 'tblTempUsageDetail_20' ) end [2025-04-25 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:02:27] Production.INFO: ==29948== Releasing lock... [2025-04-25 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:02:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:03:04 [end_date_ymd] => 2025-04-25 13:03:04 [RateCDR] => 1 ) [2025-04-25 13:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:03:04' and `end` < '2025-04-25 13:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:03:19] Production.INFO: count ==5943 [2025-04-25 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:03:04 - End Time 2025-04-25 13:03:04 [2025-04-25 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987123', 'tblTempUsageDetail_20' ) start [2025-04-25 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987123', 'tblTempUsageDetail_20' ) end [2025-04-25 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987123', 'tblTempVendorCDR_20' ) start [2025-04-25 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987123', 'tblTempVendorCDR_20' ) end [2025-04-25 13:03:21] Production.INFO: ProcessCDR(1,14987123,1,1,2) [2025-04-25 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987123', 'tblTempUsageDetail_20' ) start [2025-04-25 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987123', 'tblTempUsageDetail_20' ) end [2025-04-25 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:03:26] Production.INFO: ==30018== Releasing lock... [2025-04-25 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:03:26] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:04:05 [end_date_ymd] => 2025-04-25 13:04:05 [RateCDR] => 1 ) [2025-04-25 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:04:05' and `end` < '2025-04-25 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:04:19] Production.INFO: count ==5937 [2025-04-25 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:04:05 - End Time 2025-04-25 13:04:05 [2025-04-25 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987128', 'tblTempUsageDetail_20' ) start [2025-04-25 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987128', 'tblTempUsageDetail_20' ) end [2025-04-25 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987128', 'tblTempVendorCDR_20' ) start [2025-04-25 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987128', 'tblTempVendorCDR_20' ) end [2025-04-25 13:04:22] Production.INFO: ProcessCDR(1,14987128,1,1,2) [2025-04-25 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987128', 'tblTempUsageDetail_20' ) start [2025-04-25 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987128', 'tblTempUsageDetail_20' ) end [2025-04-25 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:04:27] Production.INFO: ==30089== Releasing lock... [2025-04-25 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:04:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:05:05 [end_date_ymd] => 2025-04-25 13:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:05:05' and `end` < '2025-04-25 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-04-25 13:05:19] Production.INFO: count ==5907 [2025-04-25 13:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:05:05 - End Time 2025-04-25 13:05:05 [2025-04-25 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987133', 'tblTempUsageDetail_20' ) start [2025-04-25 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987133', 'tblTempUsageDetail_20' ) end [2025-04-25 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987133', 'tblTempVendorCDR_20' ) start [2025-04-25 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987133', 'tblTempVendorCDR_20' ) end [2025-04-25 13:05:22] Production.INFO: ProcessCDR(1,14987133,1,1,2) [2025-04-25 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987133', 'tblTempUsageDetail_20' ) start [2025-04-25 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987133', 'tblTempUsageDetail_20' ) end [2025-04-25 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:05:27] Production.INFO: ==30159== Releasing lock... [2025-04-25 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:05:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:06:05 [end_date_ymd] => 2025-04-25 13:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:06:05' and `end` < '2025-04-25 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-04-25 13:06:19] Production.INFO: count ==5896 [2025-04-25 13:06:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:06:05 - End Time 2025-04-25 13:06:05 [2025-04-25 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987138', 'tblTempUsageDetail_20' ) start [2025-04-25 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987138', 'tblTempUsageDetail_20' ) end [2025-04-25 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987138', 'tblTempVendorCDR_20' ) start [2025-04-25 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987138', 'tblTempVendorCDR_20' ) end [2025-04-25 13:06:22] Production.INFO: ProcessCDR(1,14987138,1,1,2) [2025-04-25 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987138', 'tblTempUsageDetail_20' ) start [2025-04-25 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987138', 'tblTempUsageDetail_20' ) end [2025-04-25 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:06:28] Production.INFO: ==30281== Releasing lock... [2025-04-25 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:06:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:07:06 [end_date_ymd] => 2025-04-25 13:07:06 [RateCDR] => 1 ) [2025-04-25 13: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-04-25 10:07:06' and `end` < '2025-04-25 13: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-04-25 13:07:20] Production.INFO: count ==5929 [2025-04-25 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:07:06 - End Time 2025-04-25 13:07:06 [2025-04-25 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987143', 'tblTempUsageDetail_20' ) start [2025-04-25 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987143', 'tblTempUsageDetail_20' ) end [2025-04-25 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987143', 'tblTempVendorCDR_20' ) start [2025-04-25 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987143', 'tblTempVendorCDR_20' ) end [2025-04-25 13:07:23] Production.INFO: ProcessCDR(1,14987143,1,1,2) [2025-04-25 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987143', 'tblTempUsageDetail_20' ) start [2025-04-25 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987143', 'tblTempUsageDetail_20' ) end [2025-04-25 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:07:28] Production.INFO: ==30356== Releasing lock... [2025-04-25 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:07:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:08:05 [end_date_ymd] => 2025-04-25 13:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:08:05' and `end` < '2025-04-25 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-04-25 13:08:19] Production.INFO: count ==5917 [2025-04-25 13:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:08:05 - End Time 2025-04-25 13:08:05 [2025-04-25 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987148', 'tblTempUsageDetail_20' ) start [2025-04-25 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987148', 'tblTempUsageDetail_20' ) end [2025-04-25 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987148', 'tblTempVendorCDR_20' ) start [2025-04-25 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987148', 'tblTempVendorCDR_20' ) end [2025-04-25 13:08:22] Production.INFO: ProcessCDR(1,14987148,1,1,2) [2025-04-25 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987148', 'tblTempUsageDetail_20' ) start [2025-04-25 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987148', 'tblTempUsageDetail_20' ) end [2025-04-25 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:08:26] Production.INFO: ==30429== Releasing lock... [2025-04-25 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:08:26] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:09:05 [end_date_ymd] => 2025-04-25 13:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:09:05' and `end` < '2025-04-25 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-04-25 13:09:19] Production.INFO: count ==5922 [2025-04-25 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:09:05 - End Time 2025-04-25 13:09:05 [2025-04-25 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987153', 'tblTempUsageDetail_20' ) start [2025-04-25 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987153', 'tblTempUsageDetail_20' ) end [2025-04-25 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987153', 'tblTempVendorCDR_20' ) start [2025-04-25 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987153', 'tblTempVendorCDR_20' ) end [2025-04-25 13:09:22] Production.INFO: ProcessCDR(1,14987153,1,1,2) [2025-04-25 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987153', 'tblTempUsageDetail_20' ) start [2025-04-25 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987153', 'tblTempUsageDetail_20' ) end [2025-04-25 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:09:27] Production.INFO: ==30500== Releasing lock... [2025-04-25 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:09:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:10:05 [end_date_ymd] => 2025-04-25 13:10:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:10:05' and `end` < '2025-04-25 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:10:19] Production.INFO: count ==5900 [2025-04-25 13:10:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:10:05 - End Time 2025-04-25 13:10:05 [2025-04-25 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987159', 'tblTempUsageDetail_20' ) start [2025-04-25 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987159', 'tblTempUsageDetail_20' ) end [2025-04-25 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987159', 'tblTempVendorCDR_20' ) start [2025-04-25 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987159', 'tblTempVendorCDR_20' ) end [2025-04-25 13:10:22] Production.INFO: ProcessCDR(1,14987159,1,1,2) [2025-04-25 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987159', 'tblTempUsageDetail_20' ) start [2025-04-25 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987159', 'tblTempUsageDetail_20' ) end [2025-04-25 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:10:27] Production.INFO: ==30575== Releasing lock... [2025-04-25 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:10:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:11:05 [end_date_ymd] => 2025-04-25 13:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:11:05' and `end` < '2025-04-25 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-04-25 13:11:19] Production.INFO: count ==5848 [2025-04-25 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:11:05 - End Time 2025-04-25 13:11:05 [2025-04-25 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987164', 'tblTempUsageDetail_20' ) start [2025-04-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987164', 'tblTempUsageDetail_20' ) end [2025-04-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987164', 'tblTempVendorCDR_20' ) start [2025-04-25 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987164', 'tblTempVendorCDR_20' ) end [2025-04-25 13:11:22] Production.INFO: ProcessCDR(1,14987164,1,1,2) [2025-04-25 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987164', 'tblTempUsageDetail_20' ) start [2025-04-25 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987164', 'tblTempUsageDetail_20' ) end [2025-04-25 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:11:27] Production.INFO: ==30648== Releasing lock... [2025-04-25 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:11:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:12:04 [end_date_ymd] => 2025-04-25 13:12:04 [RateCDR] => 1 ) [2025-04-25 13:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:12:04' and `end` < '2025-04-25 13:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:12:18] Production.INFO: count ==5837 [2025-04-25 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:12:04 - End Time 2025-04-25 13:12:04 [2025-04-25 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987169', 'tblTempUsageDetail_20' ) start [2025-04-25 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987169', 'tblTempUsageDetail_20' ) end [2025-04-25 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987169', 'tblTempVendorCDR_20' ) start [2025-04-25 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987169', 'tblTempVendorCDR_20' ) end [2025-04-25 13:12:21] Production.INFO: ProcessCDR(1,14987169,1,1,2) [2025-04-25 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987169', 'tblTempUsageDetail_20' ) start [2025-04-25 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987169', 'tblTempUsageDetail_20' ) end [2025-04-25 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:12:26] Production.INFO: ==30720== Releasing lock... [2025-04-25 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:12:26] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:13:05 [end_date_ymd] => 2025-04-25 13:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:13:05' and `end` < '2025-04-25 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-04-25 13:13:19] Production.INFO: count ==5835 [2025-04-25 13:13:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:13:05 - End Time 2025-04-25 13:13:05 [2025-04-25 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987174', 'tblTempUsageDetail_20' ) start [2025-04-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987174', 'tblTempUsageDetail_20' ) end [2025-04-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987174', 'tblTempVendorCDR_20' ) start [2025-04-25 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987174', 'tblTempVendorCDR_20' ) end [2025-04-25 13:13:22] Production.INFO: ProcessCDR(1,14987174,1,1,2) [2025-04-25 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987174', 'tblTempUsageDetail_20' ) start [2025-04-25 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987174', 'tblTempUsageDetail_20' ) end [2025-04-25 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:13:27] Production.INFO: ==30793== Releasing lock... [2025-04-25 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:13:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:14:05 [end_date_ymd] => 2025-04-25 13:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:14:05' and `end` < '2025-04-25 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-04-25 13:14:19] Production.INFO: count ==5813 [2025-04-25 13:14:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:14:05 - End Time 2025-04-25 13:14:05 [2025-04-25 13:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987179', 'tblTempUsageDetail_20' ) start [2025-04-25 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987179', 'tblTempUsageDetail_20' ) end [2025-04-25 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987179', 'tblTempVendorCDR_20' ) start [2025-04-25 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987179', 'tblTempVendorCDR_20' ) end [2025-04-25 13:14:22] Production.INFO: ProcessCDR(1,14987179,1,1,2) [2025-04-25 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987179', 'tblTempUsageDetail_20' ) start [2025-04-25 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987179', 'tblTempUsageDetail_20' ) end [2025-04-25 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:14:27] Production.INFO: ==30865== Releasing lock... [2025-04-25 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:14:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:15:05 [end_date_ymd] => 2025-04-25 13:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:15:05' and `end` < '2025-04-25 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-04-25 13:15:20] Production.INFO: count ==5804 [2025-04-25 13:15:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:15:05 - End Time 2025-04-25 13:15:05 [2025-04-25 13:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987184', 'tblTempUsageDetail_20' ) start [2025-04-25 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987184', 'tblTempUsageDetail_20' ) end [2025-04-25 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987184', 'tblTempVendorCDR_20' ) start [2025-04-25 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987184', 'tblTempVendorCDR_20' ) end [2025-04-25 13:15:23] Production.INFO: ProcessCDR(1,14987184,1,1,2) [2025-04-25 13:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987184', 'tblTempUsageDetail_20' ) start [2025-04-25 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987184', 'tblTempUsageDetail_20' ) end [2025-04-25 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:15:28] Production.INFO: ==30935== Releasing lock... [2025-04-25 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:15:28] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:16:04 [end_date_ymd] => 2025-04-25 13:16:04 [RateCDR] => 1 ) [2025-04-25 13: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-04-25 10:16:04' and `end` < '2025-04-25 13: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-04-25 13:16:18] Production.INFO: count ==5792 [2025-04-25 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:16:04 - End Time 2025-04-25 13:16:04 [2025-04-25 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987189', 'tblTempUsageDetail_20' ) start [2025-04-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987189', 'tblTempUsageDetail_20' ) end [2025-04-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987189', 'tblTempVendorCDR_20' ) start [2025-04-25 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987189', 'tblTempVendorCDR_20' ) end [2025-04-25 13:16:21] Production.INFO: ProcessCDR(1,14987189,1,1,2) [2025-04-25 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987189', 'tblTempUsageDetail_20' ) start [2025-04-25 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987189', 'tblTempUsageDetail_20' ) end [2025-04-25 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:16:26] Production.INFO: ==31006== Releasing lock... [2025-04-25 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:16:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:17:05 [end_date_ymd] => 2025-04-25 13:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:17:05' and `end` < '2025-04-25 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-04-25 13:17:19] Production.INFO: count ==5785 [2025-04-25 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:17:05 - End Time 2025-04-25 13:17:05 [2025-04-25 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987194', 'tblTempUsageDetail_20' ) start [2025-04-25 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987194', 'tblTempUsageDetail_20' ) end [2025-04-25 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987194', 'tblTempVendorCDR_20' ) start [2025-04-25 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987194', 'tblTempVendorCDR_20' ) end [2025-04-25 13:17:22] Production.INFO: ProcessCDR(1,14987194,1,1,2) [2025-04-25 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987194', 'tblTempUsageDetail_20' ) start [2025-04-25 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987194', 'tblTempUsageDetail_20' ) end [2025-04-25 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:17:27] Production.INFO: ==31080== Releasing lock... [2025-04-25 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:17:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:18:05 [end_date_ymd] => 2025-04-25 13:18:05 [RateCDR] => 1 ) [2025-04-25 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:18:05' and `end` < '2025-04-25 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:18:19] Production.INFO: count ==5811 [2025-04-25 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:18:05 - End Time 2025-04-25 13:18:05 [2025-04-25 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987199', 'tblTempUsageDetail_20' ) start [2025-04-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987199', 'tblTempUsageDetail_20' ) end [2025-04-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987199', 'tblTempVendorCDR_20' ) start [2025-04-25 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987199', 'tblTempVendorCDR_20' ) end [2025-04-25 13:18:21] Production.INFO: ProcessCDR(1,14987199,1,1,2) [2025-04-25 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987199', 'tblTempUsageDetail_20' ) start [2025-04-25 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987199', 'tblTempUsageDetail_20' ) end [2025-04-25 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:18:26] Production.INFO: ==31162== Releasing lock... [2025-04-25 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:18:26] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:19:05 [end_date_ymd] => 2025-04-25 13:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:19:05' and `end` < '2025-04-25 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-04-25 13:19:19] Production.INFO: count ==5824 [2025-04-25 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:19:05 - End Time 2025-04-25 13:19:05 [2025-04-25 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987204', 'tblTempUsageDetail_20' ) start [2025-04-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987204', 'tblTempUsageDetail_20' ) end [2025-04-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987204', 'tblTempVendorCDR_20' ) start [2025-04-25 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987204', 'tblTempVendorCDR_20' ) end [2025-04-25 13:19:22] Production.INFO: ProcessCDR(1,14987204,1,1,2) [2025-04-25 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987204', 'tblTempUsageDetail_20' ) start [2025-04-25 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987204', 'tblTempUsageDetail_20' ) end [2025-04-25 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:19:27] Production.INFO: ==31232== Releasing lock... [2025-04-25 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:19:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:20:06 [end_date_ymd] => 2025-04-25 13:20:06 [RateCDR] => 1 ) [2025-04-25 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:20:06' and `end` < '2025-04-25 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:20:21] Production.INFO: count ==5828 [2025-04-25 13:20:23] Production.ERROR: pbx CDR StartTime 2025-04-25 10:20:06 - End Time 2025-04-25 13:20:06 [2025-04-25 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987210', 'tblTempUsageDetail_20' ) start [2025-04-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987210', 'tblTempUsageDetail_20' ) end [2025-04-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987210', 'tblTempVendorCDR_20' ) start [2025-04-25 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987210', 'tblTempVendorCDR_20' ) end [2025-04-25 13:20:23] Production.INFO: ProcessCDR(1,14987210,1,1,2) [2025-04-25 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987210', 'tblTempUsageDetail_20' ) start [2025-04-25 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987210', 'tblTempUsageDetail_20' ) end [2025-04-25 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:20:28] Production.INFO: ==31315== Releasing lock... [2025-04-25 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:20:28] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:21:05 [end_date_ymd] => 2025-04-25 13:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:21:05' and `end` < '2025-04-25 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-04-25 13:21:19] Production.INFO: count ==5834 [2025-04-25 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:21:05 - End Time 2025-04-25 13:21:05 [2025-04-25 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987215', 'tblTempUsageDetail_20' ) start [2025-04-25 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987215', 'tblTempUsageDetail_20' ) end [2025-04-25 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987215', 'tblTempVendorCDR_20' ) start [2025-04-25 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987215', 'tblTempVendorCDR_20' ) end [2025-04-25 13:21:22] Production.INFO: ProcessCDR(1,14987215,1,1,2) [2025-04-25 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987215', 'tblTempUsageDetail_20' ) start [2025-04-25 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987215', 'tblTempUsageDetail_20' ) end [2025-04-25 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:21:27] Production.INFO: ==31433== Releasing lock... [2025-04-25 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:21:27] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:22:05 [end_date_ymd] => 2025-04-25 13:22:05 [RateCDR] => 1 ) [2025-04-25 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:22:05' and `end` < '2025-04-25 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:22:19] Production.INFO: count ==5827 [2025-04-25 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:22:05 - End Time 2025-04-25 13:22:05 [2025-04-25 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987220', 'tblTempUsageDetail_20' ) start [2025-04-25 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987220', 'tblTempUsageDetail_20' ) end [2025-04-25 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987220', 'tblTempVendorCDR_20' ) start [2025-04-25 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987220', 'tblTempVendorCDR_20' ) end [2025-04-25 13:22:21] Production.INFO: ProcessCDR(1,14987220,1,1,2) [2025-04-25 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987220', 'tblTempUsageDetail_20' ) start [2025-04-25 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987220', 'tblTempUsageDetail_20' ) end [2025-04-25 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:22:26] Production.INFO: ==31512== Releasing lock... [2025-04-25 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:22:26] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:23:04 [end_date_ymd] => 2025-04-25 13:23:04 [RateCDR] => 1 ) [2025-04-25 13: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-04-25 10:23:04' and `end` < '2025-04-25 13: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-04-25 13:23:18] Production.INFO: count ==5782 [2025-04-25 13:23:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:23:04 - End Time 2025-04-25 13:23:04 [2025-04-25 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987225', 'tblTempUsageDetail_20' ) start [2025-04-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987225', 'tblTempUsageDetail_20' ) end [2025-04-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987225', 'tblTempVendorCDR_20' ) start [2025-04-25 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987225', 'tblTempVendorCDR_20' ) end [2025-04-25 13:23:21] Production.INFO: ProcessCDR(1,14987225,1,1,2) [2025-04-25 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987225', 'tblTempUsageDetail_20' ) start [2025-04-25 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987225', 'tblTempUsageDetail_20' ) end [2025-04-25 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:23:26] Production.INFO: ==31581== Releasing lock... [2025-04-25 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:23:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:24:05 [end_date_ymd] => 2025-04-25 13:24:05 [RateCDR] => 1 ) [2025-04-25 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:24:05' and `end` < '2025-04-25 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:24:19] Production.INFO: count ==5773 [2025-04-25 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:24:05 - End Time 2025-04-25 13:24:05 [2025-04-25 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987230', 'tblTempUsageDetail_20' ) start [2025-04-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987230', 'tblTempUsageDetail_20' ) end [2025-04-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987230', 'tblTempVendorCDR_20' ) start [2025-04-25 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987230', 'tblTempVendorCDR_20' ) end [2025-04-25 13:24:22] Production.INFO: ProcessCDR(1,14987230,1,1,2) [2025-04-25 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987230', 'tblTempUsageDetail_20' ) start [2025-04-25 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987230', 'tblTempUsageDetail_20' ) end [2025-04-25 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:24:27] Production.INFO: ==31652== Releasing lock... [2025-04-25 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:24:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:25:06 [end_date_ymd] => 2025-04-25 13:25:06 [RateCDR] => 1 ) [2025-04-25 13: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-04-25 10:25:06' and `end` < '2025-04-25 13: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-04-25 13:25:20] Production.INFO: count ==5757 [2025-04-25 13:25:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:25:06 - End Time 2025-04-25 13:25:06 [2025-04-25 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987235', 'tblTempUsageDetail_20' ) start [2025-04-25 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987235', 'tblTempUsageDetail_20' ) end [2025-04-25 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987235', 'tblTempVendorCDR_20' ) start [2025-04-25 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987235', 'tblTempVendorCDR_20' ) end [2025-04-25 13:25:23] Production.INFO: ProcessCDR(1,14987235,1,1,2) [2025-04-25 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987235', 'tblTempUsageDetail_20' ) start [2025-04-25 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987235', 'tblTempUsageDetail_20' ) end [2025-04-25 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:25:28] Production.INFO: ==31724== Releasing lock... [2025-04-25 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:25:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:26:05 [end_date_ymd] => 2025-04-25 13:26:05 [RateCDR] => 1 ) [2025-04-25 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:26:05' and `end` < '2025-04-25 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:26:19] Production.INFO: count ==5761 [2025-04-25 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:26:05 - End Time 2025-04-25 13:26:05 [2025-04-25 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987240', 'tblTempUsageDetail_20' ) start [2025-04-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987240', 'tblTempUsageDetail_20' ) end [2025-04-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987240', 'tblTempVendorCDR_20' ) start [2025-04-25 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987240', 'tblTempVendorCDR_20' ) end [2025-04-25 13:26:22] Production.INFO: ProcessCDR(1,14987240,1,1,2) [2025-04-25 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987240', 'tblTempUsageDetail_20' ) start [2025-04-25 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987240', 'tblTempUsageDetail_20' ) end [2025-04-25 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:26:27] Production.INFO: ==31796== Releasing lock... [2025-04-25 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:26:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:27:05 [end_date_ymd] => 2025-04-25 13:27:05 [RateCDR] => 1 ) [2025-04-25 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:27:05' and `end` < '2025-04-25 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:27:20] Production.INFO: count ==5770 [2025-04-25 13:27:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:27:05 - End Time 2025-04-25 13:27:05 [2025-04-25 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987245', 'tblTempUsageDetail_20' ) start [2025-04-25 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987245', 'tblTempUsageDetail_20' ) end [2025-04-25 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987245', 'tblTempVendorCDR_20' ) start [2025-04-25 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987245', 'tblTempVendorCDR_20' ) end [2025-04-25 13:27:23] Production.INFO: ProcessCDR(1,14987245,1,1,2) [2025-04-25 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987245', 'tblTempUsageDetail_20' ) start [2025-04-25 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987245', 'tblTempUsageDetail_20' ) end [2025-04-25 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:27:28] Production.INFO: ==31871== Releasing lock... [2025-04-25 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:27:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:28:05 [end_date_ymd] => 2025-04-25 13:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:28:05' and `end` < '2025-04-25 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-04-25 13:28:20] Production.INFO: count ==5767 [2025-04-25 13:28:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:28:05 - End Time 2025-04-25 13:28:05 [2025-04-25 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987250', 'tblTempUsageDetail_20' ) start [2025-04-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987250', 'tblTempUsageDetail_20' ) end [2025-04-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987250', 'tblTempVendorCDR_20' ) start [2025-04-25 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987250', 'tblTempVendorCDR_20' ) end [2025-04-25 13:28:22] Production.INFO: ProcessCDR(1,14987250,1,1,2) [2025-04-25 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987250', 'tblTempUsageDetail_20' ) start [2025-04-25 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987250', 'tblTempUsageDetail_20' ) end [2025-04-25 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:28:28] Production.INFO: ==31942== Releasing lock... [2025-04-25 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:28:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:29:06 [end_date_ymd] => 2025-04-25 13:29:06 [RateCDR] => 1 ) [2025-04-25 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:29:06' and `end` < '2025-04-25 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:29:20] Production.INFO: count ==5771 [2025-04-25 13:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:29:06 - End Time 2025-04-25 13:29:06 [2025-04-25 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987255', 'tblTempUsageDetail_20' ) start [2025-04-25 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987255', 'tblTempUsageDetail_20' ) end [2025-04-25 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987255', 'tblTempVendorCDR_20' ) start [2025-04-25 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987255', 'tblTempVendorCDR_20' ) end [2025-04-25 13:29:23] Production.INFO: ProcessCDR(1,14987255,1,1,2) [2025-04-25 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987255', 'tblTempUsageDetail_20' ) start [2025-04-25 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987255', 'tblTempUsageDetail_20' ) end [2025-04-25 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:29:28] Production.INFO: ==32014== Releasing lock... [2025-04-25 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:29:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:30:05 [end_date_ymd] => 2025-04-25 13:30:05 [RateCDR] => 1 ) [2025-04-25 13: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-04-25 10:30:05' and `end` < '2025-04-25 13: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-04-25 13:30:19] Production.INFO: count ==5788 [2025-04-25 13:30:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:30:05 - End Time 2025-04-25 13:30:05 [2025-04-25 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987260', 'tblTempUsageDetail_20' ) start [2025-04-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987260', 'tblTempUsageDetail_20' ) end [2025-04-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987260', 'tblTempVendorCDR_20' ) start [2025-04-25 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987260', 'tblTempVendorCDR_20' ) end [2025-04-25 13:30:22] Production.INFO: ProcessCDR(1,14987260,1,1,2) [2025-04-25 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987260', 'tblTempUsageDetail_20' ) start [2025-04-25 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987260', 'tblTempUsageDetail_20' ) end [2025-04-25 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:30:27] Production.INFO: ==32088== Releasing lock... [2025-04-25 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:30:27] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:31:05 [end_date_ymd] => 2025-04-25 13:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:31:05' and `end` < '2025-04-25 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-04-25 13:31:20] Production.INFO: count ==5852 [2025-04-25 13:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:31:05 - End Time 2025-04-25 13:31:05 [2025-04-25 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987266', 'tblTempUsageDetail_20' ) start [2025-04-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987266', 'tblTempUsageDetail_20' ) end [2025-04-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987266', 'tblTempVendorCDR_20' ) start [2025-04-25 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987266', 'tblTempVendorCDR_20' ) end [2025-04-25 13:31:22] Production.INFO: ProcessCDR(1,14987266,1,1,2) [2025-04-25 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987266', 'tblTempUsageDetail_20' ) start [2025-04-25 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987266', 'tblTempUsageDetail_20' ) end [2025-04-25 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:31:27] Production.INFO: ==32161== Releasing lock... [2025-04-25 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:31:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:32:05 [end_date_ymd] => 2025-04-25 13:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:32:05' and `end` < '2025-04-25 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-04-25 13:32:19] Production.INFO: count ==5895 [2025-04-25 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:32:05 - End Time 2025-04-25 13:32:05 [2025-04-25 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987271', 'tblTempUsageDetail_20' ) start [2025-04-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987271', 'tblTempUsageDetail_20' ) end [2025-04-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987271', 'tblTempVendorCDR_20' ) start [2025-04-25 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987271', 'tblTempVendorCDR_20' ) end [2025-04-25 13:32:21] Production.INFO: ProcessCDR(1,14987271,1,1,2) [2025-04-25 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987271', 'tblTempUsageDetail_20' ) start [2025-04-25 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987271', 'tblTempUsageDetail_20' ) end [2025-04-25 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:32:26] Production.INFO: ==32233== Releasing lock... [2025-04-25 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:32:26] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:33:05 [end_date_ymd] => 2025-04-25 13:33:05 [RateCDR] => 1 ) [2025-04-25 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:33:05' and `end` < '2025-04-25 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:33:19] Production.INFO: count ==5901 [2025-04-25 13:33:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:33:05 - End Time 2025-04-25 13:33:05 [2025-04-25 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987276', 'tblTempUsageDetail_20' ) start [2025-04-25 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987276', 'tblTempUsageDetail_20' ) end [2025-04-25 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987276', 'tblTempVendorCDR_20' ) start [2025-04-25 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987276', 'tblTempVendorCDR_20' ) end [2025-04-25 13:33:22] Production.INFO: ProcessCDR(1,14987276,1,1,2) [2025-04-25 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987276', 'tblTempUsageDetail_20' ) start [2025-04-25 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987276', 'tblTempUsageDetail_20' ) end [2025-04-25 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:33:27] Production.INFO: ==32310== Releasing lock... [2025-04-25 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:33:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:34:05 [end_date_ymd] => 2025-04-25 13:34:05 [RateCDR] => 1 ) [2025-04-25 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:34:05' and `end` < '2025-04-25 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-04-25 13:34:19] Production.INFO: count ==5917 [2025-04-25 13:34:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:34:05 - End Time 2025-04-25 13:34:05 [2025-04-25 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987281', 'tblTempUsageDetail_20' ) start [2025-04-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987281', 'tblTempUsageDetail_20' ) end [2025-04-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987281', 'tblTempVendorCDR_20' ) start [2025-04-25 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987281', 'tblTempVendorCDR_20' ) end [2025-04-25 13:34:22] Production.INFO: ProcessCDR(1,14987281,1,1,2) [2025-04-25 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987281', 'tblTempUsageDetail_20' ) start [2025-04-25 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987281', 'tblTempUsageDetail_20' ) end [2025-04-25 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:34:27] Production.INFO: ==32380== Releasing lock... [2025-04-25 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:34:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:35:05 [end_date_ymd] => 2025-04-25 13:35:05 [RateCDR] => 1 ) [2025-04-25 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:35:05' and `end` < '2025-04-25 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:35:19] Production.INFO: count ==5925 [2025-04-25 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:35:05 - End Time 2025-04-25 13:35:05 [2025-04-25 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987286', 'tblTempUsageDetail_20' ) start [2025-04-25 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987286', 'tblTempUsageDetail_20' ) end [2025-04-25 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987286', 'tblTempVendorCDR_20' ) start [2025-04-25 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987286', 'tblTempVendorCDR_20' ) end [2025-04-25 13:35:22] Production.INFO: ProcessCDR(1,14987286,1,1,2) [2025-04-25 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987286', 'tblTempUsageDetail_20' ) start [2025-04-25 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987286', 'tblTempUsageDetail_20' ) end [2025-04-25 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:35:27] Production.INFO: ==32450== Releasing lock... [2025-04-25 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:35:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:36:05 [end_date_ymd] => 2025-04-25 13:36:05 [RateCDR] => 1 ) [2025-04-25 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:36:05' and `end` < '2025-04-25 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-04-25 13:36:20] Production.INFO: count ==5930 [2025-04-25 13:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:36:05 - End Time 2025-04-25 13:36:05 [2025-04-25 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987291', 'tblTempUsageDetail_20' ) start [2025-04-25 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987291', 'tblTempUsageDetail_20' ) end [2025-04-25 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987291', 'tblTempVendorCDR_20' ) start [2025-04-25 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987291', 'tblTempVendorCDR_20' ) end [2025-04-25 13:36:23] Production.INFO: ProcessCDR(1,14987291,1,1,2) [2025-04-25 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987291', 'tblTempUsageDetail_20' ) start [2025-04-25 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987291', 'tblTempUsageDetail_20' ) end [2025-04-25 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:36:27] Production.INFO: ==32563== Releasing lock... [2025-04-25 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:36:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:37:05 [end_date_ymd] => 2025-04-25 13:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:37:05' and `end` < '2025-04-25 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-04-25 13:37:19] Production.INFO: count ==5938 [2025-04-25 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:37:05 - End Time 2025-04-25 13:37:05 [2025-04-25 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987296', 'tblTempUsageDetail_20' ) start [2025-04-25 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987296', 'tblTempUsageDetail_20' ) end [2025-04-25 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987296', 'tblTempVendorCDR_20' ) start [2025-04-25 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987296', 'tblTempVendorCDR_20' ) end [2025-04-25 13:37:22] Production.INFO: ProcessCDR(1,14987296,1,1,2) [2025-04-25 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987296', 'tblTempUsageDetail_20' ) start [2025-04-25 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987296', 'tblTempUsageDetail_20' ) end [2025-04-25 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:37:27] Production.INFO: ==32635== Releasing lock... [2025-04-25 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:37:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:38:05 [end_date_ymd] => 2025-04-25 13:38:05 [RateCDR] => 1 ) [2025-04-25 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:38:05' and `end` < '2025-04-25 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:38:20] Production.INFO: count ==5954 [2025-04-25 13:38:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:38:05 - End Time 2025-04-25 13:38:05 [2025-04-25 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987301', 'tblTempUsageDetail_20' ) start [2025-04-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987301', 'tblTempUsageDetail_20' ) end [2025-04-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987301', 'tblTempVendorCDR_20' ) start [2025-04-25 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987301', 'tblTempVendorCDR_20' ) end [2025-04-25 13:38:22] Production.INFO: ProcessCDR(1,14987301,1,1,2) [2025-04-25 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987301', 'tblTempUsageDetail_20' ) start [2025-04-25 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987301', 'tblTempUsageDetail_20' ) end [2025-04-25 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:38:27] Production.INFO: ==32710== Releasing lock... [2025-04-25 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:38:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:39:04 [end_date_ymd] => 2025-04-25 13:39:04 [RateCDR] => 1 ) [2025-04-25 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:39:04' and `end` < '2025-04-25 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:39:18] Production.INFO: count ==5949 [2025-04-25 13:39:20] Production.ERROR: pbx CDR StartTime 2025-04-25 10:39:04 - End Time 2025-04-25 13:39:04 [2025-04-25 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987306', 'tblTempUsageDetail_20' ) start [2025-04-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987306', 'tblTempUsageDetail_20' ) end [2025-04-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987306', 'tblTempVendorCDR_20' ) start [2025-04-25 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987306', 'tblTempVendorCDR_20' ) end [2025-04-25 13:39:21] Production.INFO: ProcessCDR(1,14987306,1,1,2) [2025-04-25 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987306', 'tblTempUsageDetail_20' ) start [2025-04-25 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987306', 'tblTempUsageDetail_20' ) end [2025-04-25 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:39:26] Production.INFO: ==327== Releasing lock... [2025-04-25 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:39:26] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:40:06 [end_date_ymd] => 2025-04-25 13:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:40:06' and `end` < '2025-04-25 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-04-25 13:40:20] Production.INFO: count ==5959 [2025-04-25 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:40:06 - End Time 2025-04-25 13:40:06 [2025-04-25 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987312', 'tblTempUsageDetail_20' ) start [2025-04-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987312', 'tblTempUsageDetail_20' ) end [2025-04-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987312', 'tblTempVendorCDR_20' ) start [2025-04-25 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987312', 'tblTempVendorCDR_20' ) end [2025-04-25 13:40:23] Production.INFO: ProcessCDR(1,14987312,1,1,2) [2025-04-25 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987312', 'tblTempUsageDetail_20' ) start [2025-04-25 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987312', 'tblTempUsageDetail_20' ) end [2025-04-25 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:40:28] Production.INFO: ==412== Releasing lock... [2025-04-25 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:40:28] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:41:05 [end_date_ymd] => 2025-04-25 13:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:41:05' and `end` < '2025-04-25 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-04-25 13:41:19] Production.INFO: count ==5975 [2025-04-25 13:41:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:41:05 - End Time 2025-04-25 13:41:05 [2025-04-25 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987317', 'tblTempUsageDetail_20' ) start [2025-04-25 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987317', 'tblTempUsageDetail_20' ) end [2025-04-25 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987317', 'tblTempVendorCDR_20' ) start [2025-04-25 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987317', 'tblTempVendorCDR_20' ) end [2025-04-25 13:41:22] Production.INFO: ProcessCDR(1,14987317,1,1,2) [2025-04-25 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987317', 'tblTempUsageDetail_20' ) start [2025-04-25 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987317', 'tblTempUsageDetail_20' ) end [2025-04-25 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:41:27] Production.INFO: ==487== Releasing lock... [2025-04-25 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:41:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:42:05 [end_date_ymd] => 2025-04-25 13:42:05 [RateCDR] => 1 ) [2025-04-25 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:42:05' and `end` < '2025-04-25 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:42:19] Production.INFO: count ==5998 [2025-04-25 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:42:05 - End Time 2025-04-25 13:42:05 [2025-04-25 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987322', 'tblTempUsageDetail_20' ) start [2025-04-25 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987322', 'tblTempUsageDetail_20' ) end [2025-04-25 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987322', 'tblTempVendorCDR_20' ) start [2025-04-25 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987322', 'tblTempVendorCDR_20' ) end [2025-04-25 13:42:22] Production.INFO: ProcessCDR(1,14987322,1,1,2) [2025-04-25 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987322', 'tblTempUsageDetail_20' ) start [2025-04-25 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987322', 'tblTempUsageDetail_20' ) end [2025-04-25 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:42:26] Production.INFO: ==559== Releasing lock... [2025-04-25 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:42:26] Production.INFO: 73 MB #Memory Used# [2025-04-25 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:43:05 [end_date_ymd] => 2025-04-25 13:43:05 [RateCDR] => 1 ) [2025-04-25 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:43:05' and `end` < '2025-04-25 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:43:19] Production.INFO: count ==5996 [2025-04-25 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:43:05 - End Time 2025-04-25 13:43:05 [2025-04-25 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987327', 'tblTempUsageDetail_20' ) start [2025-04-25 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987327', 'tblTempUsageDetail_20' ) end [2025-04-25 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987327', 'tblTempVendorCDR_20' ) start [2025-04-25 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987327', 'tblTempVendorCDR_20' ) end [2025-04-25 13:43:22] Production.INFO: ProcessCDR(1,14987327,1,1,2) [2025-04-25 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987327', 'tblTempUsageDetail_20' ) start [2025-04-25 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987327', 'tblTempUsageDetail_20' ) end [2025-04-25 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:43:27] Production.INFO: ==639== Releasing lock... [2025-04-25 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:43:27] Production.INFO: 73 MB #Memory Used# [2025-04-25 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:44:04 [end_date_ymd] => 2025-04-25 13:44:04 [RateCDR] => 1 ) [2025-04-25 13:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:44:04' and `end` < '2025-04-25 13:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:44:18] Production.INFO: count ==5997 [2025-04-25 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:44:04 - End Time 2025-04-25 13:44:04 [2025-04-25 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987332', 'tblTempUsageDetail_20' ) start [2025-04-25 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987332', 'tblTempUsageDetail_20' ) end [2025-04-25 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987332', 'tblTempVendorCDR_20' ) start [2025-04-25 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987332', 'tblTempVendorCDR_20' ) end [2025-04-25 13:44:21] Production.INFO: ProcessCDR(1,14987332,1,1,2) [2025-04-25 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987332', 'tblTempUsageDetail_20' ) start [2025-04-25 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987332', 'tblTempUsageDetail_20' ) end [2025-04-25 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:44:26] Production.INFO: ==736== Releasing lock... [2025-04-25 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:44:26] Production.INFO: 73 MB #Memory Used# [2025-04-25 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:45:05 [end_date_ymd] => 2025-04-25 13:45:05 [RateCDR] => 1 ) [2025-04-25 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:45:05' and `end` < '2025-04-25 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:45:19] Production.INFO: count ==6013 [2025-04-25 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:45:05 - End Time 2025-04-25 13:45:05 [2025-04-25 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987337', 'tblTempUsageDetail_20' ) start [2025-04-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987337', 'tblTempUsageDetail_20' ) end [2025-04-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987337', 'tblTempVendorCDR_20' ) start [2025-04-25 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987337', 'tblTempVendorCDR_20' ) end [2025-04-25 13:45:22] Production.INFO: ProcessCDR(1,14987337,1,1,2) [2025-04-25 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987337', 'tblTempUsageDetail_20' ) start [2025-04-25 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987337', 'tblTempUsageDetail_20' ) end [2025-04-25 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:45:27] Production.INFO: ==811== Releasing lock... [2025-04-25 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:45:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-25 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:46:06 [end_date_ymd] => 2025-04-25 13:46:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:46:06' and `end` < '2025-04-25 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-04-25 13:46:20] Production.INFO: count ==6000 [2025-04-25 13:46:23] Production.ERROR: pbx CDR StartTime 2025-04-25 10:46:06 - End Time 2025-04-25 13:46:06 [2025-04-25 13:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987342', 'tblTempUsageDetail_20' ) start [2025-04-25 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987342', 'tblTempUsageDetail_20' ) end [2025-04-25 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987342', 'tblTempVendorCDR_20' ) start [2025-04-25 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987342', 'tblTempVendorCDR_20' ) end [2025-04-25 13:46:23] Production.INFO: ProcessCDR(1,14987342,1,1,2) [2025-04-25 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987342', 'tblTempUsageDetail_20' ) start [2025-04-25 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987342', 'tblTempUsageDetail_20' ) end [2025-04-25 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:46:28] Production.INFO: ==883== Releasing lock... [2025-04-25 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:46:28] Production.INFO: 73 MB #Memory Used# [2025-04-25 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:47:05 [end_date_ymd] => 2025-04-25 13:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:47:05' and `end` < '2025-04-25 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-04-25 13:47:20] Production.INFO: count ==6036 [2025-04-25 13:47:23] Production.ERROR: pbx CDR StartTime 2025-04-25 10:47:05 - End Time 2025-04-25 13:47:05 [2025-04-25 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987347', 'tblTempUsageDetail_20' ) start [2025-04-25 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987347', 'tblTempUsageDetail_20' ) end [2025-04-25 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987347', 'tblTempVendorCDR_20' ) start [2025-04-25 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987347', 'tblTempVendorCDR_20' ) end [2025-04-25 13:47:23] Production.INFO: ProcessCDR(1,14987347,1,1,2) [2025-04-25 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987347', 'tblTempUsageDetail_20' ) start [2025-04-25 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987347', 'tblTempUsageDetail_20' ) end [2025-04-25 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:47:28] Production.INFO: ==962== Releasing lock... [2025-04-25 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:47:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-25 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:48:06 [end_date_ymd] => 2025-04-25 13:48:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:48:06' and `end` < '2025-04-25 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-04-25 13:48:20] Production.INFO: count ==6051 [2025-04-25 13:48:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:48:06 - End Time 2025-04-25 13:48:06 [2025-04-25 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987352', 'tblTempUsageDetail_20' ) start [2025-04-25 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987352', 'tblTempUsageDetail_20' ) end [2025-04-25 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987352', 'tblTempVendorCDR_20' ) start [2025-04-25 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987352', 'tblTempVendorCDR_20' ) end [2025-04-25 13:48:23] Production.INFO: ProcessCDR(1,14987352,1,1,2) [2025-04-25 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987352', 'tblTempUsageDetail_20' ) start [2025-04-25 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987352', 'tblTempUsageDetail_20' ) end [2025-04-25 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:48:28] Production.INFO: ==1036== Releasing lock... [2025-04-25 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:48:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-25 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:49:05 [end_date_ymd] => 2025-04-25 13:49:05 [RateCDR] => 1 ) [2025-04-25 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:49:05' and `end` < '2025-04-25 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:49:19] Production.INFO: count ==6062 [2025-04-25 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:49:05 - End Time 2025-04-25 13:49:05 [2025-04-25 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987357', 'tblTempUsageDetail_20' ) start [2025-04-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987357', 'tblTempUsageDetail_20' ) end [2025-04-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987357', 'tblTempVendorCDR_20' ) start [2025-04-25 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987357', 'tblTempVendorCDR_20' ) end [2025-04-25 13:49:22] Production.INFO: ProcessCDR(1,14987357,1,1,2) [2025-04-25 13:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987357', 'tblTempUsageDetail_20' ) start [2025-04-25 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987357', 'tblTempUsageDetail_20' ) end [2025-04-25 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:49:27] Production.INFO: ==1106== Releasing lock... [2025-04-25 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:49:27] Production.INFO: 73.5 MB #Memory Used# [2025-04-25 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:50:06 [end_date_ymd] => 2025-04-25 13:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:50:06' and `end` < '2025-04-25 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-04-25 13:50:20] Production.INFO: count ==6079 [2025-04-25 13:50:23] Production.ERROR: pbx CDR StartTime 2025-04-25 10:50:06 - End Time 2025-04-25 13:50:06 [2025-04-25 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987363', 'tblTempUsageDetail_20' ) start [2025-04-25 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987363', 'tblTempUsageDetail_20' ) end [2025-04-25 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987363', 'tblTempVendorCDR_20' ) start [2025-04-25 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987363', 'tblTempVendorCDR_20' ) end [2025-04-25 13:50:23] Production.INFO: ProcessCDR(1,14987363,1,1,2) [2025-04-25 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987363', 'tblTempUsageDetail_20' ) start [2025-04-25 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987363', 'tblTempUsageDetail_20' ) end [2025-04-25 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:50:28] Production.INFO: ==1188== Releasing lock... [2025-04-25 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:50:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-25 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:51:05 [end_date_ymd] => 2025-04-25 13:51:05 [RateCDR] => 1 ) [2025-04-25 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:51:05' and `end` < '2025-04-25 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:51:19] Production.INFO: count ==6091 [2025-04-25 13:51:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:51:05 - End Time 2025-04-25 13:51:05 [2025-04-25 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987368', 'tblTempUsageDetail_20' ) start [2025-04-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987368', 'tblTempUsageDetail_20' ) end [2025-04-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987368', 'tblTempVendorCDR_20' ) start [2025-04-25 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987368', 'tblTempVendorCDR_20' ) end [2025-04-25 13:51:22] Production.INFO: ProcessCDR(1,14987368,1,1,2) [2025-04-25 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987368', 'tblTempUsageDetail_20' ) start [2025-04-25 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987368', 'tblTempUsageDetail_20' ) end [2025-04-25 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:51:27] Production.INFO: ==1274== Releasing lock... [2025-04-25 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:51:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-25 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:52:05 [end_date_ymd] => 2025-04-25 13:52:05 [RateCDR] => 1 ) [2025-04-25 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:52:05' and `end` < '2025-04-25 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:52:19] Production.INFO: count ==6134 [2025-04-25 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:52:05 - End Time 2025-04-25 13:52:05 [2025-04-25 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987373', 'tblTempUsageDetail_20' ) start [2025-04-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987373', 'tblTempUsageDetail_20' ) end [2025-04-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987373', 'tblTempVendorCDR_20' ) start [2025-04-25 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987373', 'tblTempVendorCDR_20' ) end [2025-04-25 13:52:22] Production.INFO: ProcessCDR(1,14987373,1,1,2) [2025-04-25 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987373', 'tblTempUsageDetail_20' ) start [2025-04-25 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987373', 'tblTempUsageDetail_20' ) end [2025-04-25 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:52:27] Production.INFO: ==1382== Releasing lock... [2025-04-25 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:52:27] Production.INFO: 74 MB #Memory Used# [2025-04-25 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:53:05 [end_date_ymd] => 2025-04-25 13:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:53:05' and `end` < '2025-04-25 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-04-25 13:53:19] Production.INFO: count ==6154 [2025-04-25 13:53:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:53:05 - End Time 2025-04-25 13:53:05 [2025-04-25 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987378', 'tblTempUsageDetail_20' ) start [2025-04-25 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987378', 'tblTempUsageDetail_20' ) end [2025-04-25 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987378', 'tblTempVendorCDR_20' ) start [2025-04-25 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987378', 'tblTempVendorCDR_20' ) end [2025-04-25 13:53:22] Production.INFO: ProcessCDR(1,14987378,1,1,2) [2025-04-25 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987378', 'tblTempUsageDetail_20' ) start [2025-04-25 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987378', 'tblTempUsageDetail_20' ) end [2025-04-25 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:53:27] Production.INFO: ==1453== Releasing lock... [2025-04-25 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:53:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:54:05 [end_date_ymd] => 2025-04-25 13:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:54:05' and `end` < '2025-04-25 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-04-25 13:54:19] Production.INFO: count ==6158 [2025-04-25 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 10:54:05 - End Time 2025-04-25 13:54:05 [2025-04-25 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987383', 'tblTempUsageDetail_20' ) start [2025-04-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987383', 'tblTempUsageDetail_20' ) end [2025-04-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987383', 'tblTempVendorCDR_20' ) start [2025-04-25 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987383', 'tblTempVendorCDR_20' ) end [2025-04-25 13:54:22] Production.INFO: ProcessCDR(1,14987383,1,1,2) [2025-04-25 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987383', 'tblTempUsageDetail_20' ) start [2025-04-25 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987383', 'tblTempUsageDetail_20' ) end [2025-04-25 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:54:27] Production.INFO: ==1558== Releasing lock... [2025-04-25 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:54:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:55:05 [end_date_ymd] => 2025-04-25 13:55:05 [RateCDR] => 1 ) [2025-04-25 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:55:05' and `end` < '2025-04-25 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:55:19] Production.INFO: count ==6173 [2025-04-25 13:55:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:55:05 - End Time 2025-04-25 13:55:05 [2025-04-25 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987388', 'tblTempUsageDetail_20' ) start [2025-04-25 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987388', 'tblTempUsageDetail_20' ) end [2025-04-25 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987388', 'tblTempVendorCDR_20' ) start [2025-04-25 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987388', 'tblTempVendorCDR_20' ) end [2025-04-25 13:55:22] Production.INFO: ProcessCDR(1,14987388,1,1,2) [2025-04-25 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987388', 'tblTempUsageDetail_20' ) start [2025-04-25 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987388', 'tblTempUsageDetail_20' ) end [2025-04-25 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:55:27] Production.INFO: ==1634== Releasing lock... [2025-04-25 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:55:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:56:05 [end_date_ymd] => 2025-04-25 13:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:56:05' and `end` < '2025-04-25 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-04-25 13:56:19] Production.INFO: count ==6183 [2025-04-25 13:56:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:56:05 - End Time 2025-04-25 13:56:05 [2025-04-25 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987393', 'tblTempUsageDetail_20' ) start [2025-04-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987393', 'tblTempUsageDetail_20' ) end [2025-04-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987393', 'tblTempVendorCDR_20' ) start [2025-04-25 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987393', 'tblTempVendorCDR_20' ) end [2025-04-25 13:56:22] Production.INFO: ProcessCDR(1,14987393,1,1,2) [2025-04-25 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987393', 'tblTempUsageDetail_20' ) start [2025-04-25 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987393', 'tblTempUsageDetail_20' ) end [2025-04-25 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:56:27] Production.INFO: ==1706== Releasing lock... [2025-04-25 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:56:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:57:06 [end_date_ymd] => 2025-04-25 13:57:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:57:06' and `end` < '2025-04-25 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-04-25 13:57:20] Production.INFO: count ==6207 [2025-04-25 13:57:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:57:06 - End Time 2025-04-25 13:57:06 [2025-04-25 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987398', 'tblTempUsageDetail_20' ) start [2025-04-25 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987398', 'tblTempUsageDetail_20' ) end [2025-04-25 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987398', 'tblTempVendorCDR_20' ) start [2025-04-25 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987398', 'tblTempVendorCDR_20' ) end [2025-04-25 13:57:23] Production.INFO: ProcessCDR(1,14987398,1,1,2) [2025-04-25 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987398', 'tblTempUsageDetail_20' ) start [2025-04-25 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987398', 'tblTempUsageDetail_20' ) end [2025-04-25 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:57:28] Production.INFO: ==1780== Releasing lock... [2025-04-25 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:57:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:58:05 [end_date_ymd] => 2025-04-25 13:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 10:58:05' and `end` < '2025-04-25 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-04-25 13:58:20] Production.INFO: count ==6189 [2025-04-25 13:58:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:58:05 - End Time 2025-04-25 13:58:05 [2025-04-25 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987403', 'tblTempUsageDetail_20' ) start [2025-04-25 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987403', 'tblTempUsageDetail_20' ) end [2025-04-25 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987403', 'tblTempVendorCDR_20' ) start [2025-04-25 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987403', 'tblTempVendorCDR_20' ) end [2025-04-25 13:58:23] Production.INFO: ProcessCDR(1,14987403,1,1,2) [2025-04-25 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987403', 'tblTempUsageDetail_20' ) start [2025-04-25 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987403', 'tblTempUsageDetail_20' ) end [2025-04-25 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:58:27] Production.INFO: ==1855== Releasing lock... [2025-04-25 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:58:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 10:59:05 [end_date_ymd] => 2025-04-25 13:59:05 [RateCDR] => 1 ) [2025-04-25 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 10:59:05' and `end` < '2025-04-25 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 13:59:19] Production.INFO: count ==6184 [2025-04-25 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-25 10:59:05 - End Time 2025-04-25 13:59:05 [2025-04-25 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987408', 'tblTempUsageDetail_20' ) start [2025-04-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987408', 'tblTempUsageDetail_20' ) end [2025-04-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987408', 'tblTempVendorCDR_20' ) start [2025-04-25 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987408', 'tblTempVendorCDR_20' ) end [2025-04-25 13:59:22] Production.INFO: ProcessCDR(1,14987408,1,1,2) [2025-04-25 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987408', 'tblTempUsageDetail_20' ) start [2025-04-25 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987408', 'tblTempUsageDetail_20' ) end [2025-04-25 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 13:59:27] Production.INFO: ==1924== Releasing lock... [2025-04-25 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 13:59:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:00:06 [end_date_ymd] => 2025-04-25 14:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:00:06' and `end` < '2025-04-25 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-04-25 14:00:21] Production.INFO: count ==6181 [2025-04-25 14:00:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:00:06 - End Time 2025-04-25 14:00:06 [2025-04-25 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987414', 'tblTempUsageDetail_20' ) start [2025-04-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987414', 'tblTempUsageDetail_20' ) end [2025-04-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987414', 'tblTempVendorCDR_20' ) start [2025-04-25 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987414', 'tblTempVendorCDR_20' ) end [2025-04-25 14:00:24] Production.INFO: ProcessCDR(1,14987414,1,1,2) [2025-04-25 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987414', 'tblTempUsageDetail_20' ) start [2025-04-25 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987414', 'tblTempUsageDetail_20' ) end [2025-04-25 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:00:29] Production.INFO: ==2007== Releasing lock... [2025-04-25 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:00:29] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:01:05 [end_date_ymd] => 2025-04-25 14:01:05 [RateCDR] => 1 ) [2025-04-25 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:01:05' and `end` < '2025-04-25 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:01:19] Production.INFO: count ==6175 [2025-04-25 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:01:05 - End Time 2025-04-25 14:01:05 [2025-04-25 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987419', 'tblTempUsageDetail_20' ) start [2025-04-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987419', 'tblTempUsageDetail_20' ) end [2025-04-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987419', 'tblTempVendorCDR_20' ) start [2025-04-25 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987419', 'tblTempVendorCDR_20' ) end [2025-04-25 14:01:22] Production.INFO: ProcessCDR(1,14987419,1,1,2) [2025-04-25 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987419', 'tblTempUsageDetail_20' ) start [2025-04-25 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987419', 'tblTempUsageDetail_20' ) end [2025-04-25 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:01:27] Production.INFO: ==2096== Releasing lock... [2025-04-25 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:01:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:02:06 [end_date_ymd] => 2025-04-25 14:02:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:02:06' and `end` < '2025-04-25 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-04-25 14:02:20] Production.INFO: count ==6190 [2025-04-25 14:02:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:02:06 - End Time 2025-04-25 14:02:06 [2025-04-25 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987424', 'tblTempUsageDetail_20' ) start [2025-04-25 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987424', 'tblTempUsageDetail_20' ) end [2025-04-25 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987424', 'tblTempVendorCDR_20' ) start [2025-04-25 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987424', 'tblTempVendorCDR_20' ) end [2025-04-25 14:02:23] Production.INFO: ProcessCDR(1,14987424,1,1,2) [2025-04-25 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987424', 'tblTempUsageDetail_20' ) start [2025-04-25 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987424', 'tblTempUsageDetail_20' ) end [2025-04-25 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:02:28] Production.INFO: ==2167== Releasing lock... [2025-04-25 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:02:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:03:05 [end_date_ymd] => 2025-04-25 14:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:03:05' and `end` < '2025-04-25 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-04-25 14:03:19] Production.INFO: count ==6201 [2025-04-25 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:03:05 - End Time 2025-04-25 14:03:05 [2025-04-25 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987429', 'tblTempUsageDetail_20' ) start [2025-04-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987429', 'tblTempUsageDetail_20' ) end [2025-04-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987429', 'tblTempVendorCDR_20' ) start [2025-04-25 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987429', 'tblTempVendorCDR_20' ) end [2025-04-25 14:03:22] Production.INFO: ProcessCDR(1,14987429,1,1,2) [2025-04-25 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987429', 'tblTempUsageDetail_20' ) start [2025-04-25 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987429', 'tblTempUsageDetail_20' ) end [2025-04-25 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:03:28] Production.INFO: ==2239== Releasing lock... [2025-04-25 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:03:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:04:06 [end_date_ymd] => 2025-04-25 14:04:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:04:06' and `end` < '2025-04-25 14: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-04-25 14:04:20] Production.INFO: count ==6194 [2025-04-25 14:04:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:04:06 - End Time 2025-04-25 14:04:06 [2025-04-25 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987434', 'tblTempUsageDetail_20' ) start [2025-04-25 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987434', 'tblTempUsageDetail_20' ) end [2025-04-25 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987434', 'tblTempVendorCDR_20' ) start [2025-04-25 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987434', 'tblTempVendorCDR_20' ) end [2025-04-25 14:04:23] Production.INFO: ProcessCDR(1,14987434,1,1,2) [2025-04-25 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987434', 'tblTempUsageDetail_20' ) start [2025-04-25 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987434', 'tblTempUsageDetail_20' ) end [2025-04-25 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:04:28] Production.INFO: ==2310== Releasing lock... [2025-04-25 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:04:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:05:05 [end_date_ymd] => 2025-04-25 14:05:05 [RateCDR] => 1 ) [2025-04-25 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:05:05' and `end` < '2025-04-25 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:05:19] Production.INFO: count ==6189 [2025-04-25 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:05:05 - End Time 2025-04-25 14:05:05 [2025-04-25 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987439', 'tblTempUsageDetail_20' ) start [2025-04-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987439', 'tblTempUsageDetail_20' ) end [2025-04-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987439', 'tblTempVendorCDR_20' ) start [2025-04-25 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987439', 'tblTempVendorCDR_20' ) end [2025-04-25 14:05:22] Production.INFO: ProcessCDR(1,14987439,1,1,2) [2025-04-25 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987439', 'tblTempUsageDetail_20' ) start [2025-04-25 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987439', 'tblTempUsageDetail_20' ) end [2025-04-25 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:05:27] Production.INFO: ==2379== Releasing lock... [2025-04-25 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:05:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:06:05 [end_date_ymd] => 2025-04-25 14:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:06:05' and `end` < '2025-04-25 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-04-25 14:06:19] Production.INFO: count ==6180 [2025-04-25 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:06:05 - End Time 2025-04-25 14:06:05 [2025-04-25 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987444', 'tblTempUsageDetail_20' ) start [2025-04-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987444', 'tblTempUsageDetail_20' ) end [2025-04-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987444', 'tblTempVendorCDR_20' ) start [2025-04-25 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987444', 'tblTempVendorCDR_20' ) end [2025-04-25 14:06:22] Production.INFO: ProcessCDR(1,14987444,1,1,2) [2025-04-25 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987444', 'tblTempUsageDetail_20' ) start [2025-04-25 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987444', 'tblTempUsageDetail_20' ) end [2025-04-25 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:06:27] Production.INFO: ==2453== Releasing lock... [2025-04-25 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:06:27] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:07:05 [end_date_ymd] => 2025-04-25 14:07:05 [RateCDR] => 1 ) [2025-04-25 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:07:05' and `end` < '2025-04-25 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:07:19] Production.INFO: count ==6177 [2025-04-25 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:07:05 - End Time 2025-04-25 14:07:05 [2025-04-25 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987449', 'tblTempUsageDetail_20' ) start [2025-04-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987449', 'tblTempUsageDetail_20' ) end [2025-04-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987449', 'tblTempVendorCDR_20' ) start [2025-04-25 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987449', 'tblTempVendorCDR_20' ) end [2025-04-25 14:07:22] Production.INFO: ProcessCDR(1,14987449,1,1,2) [2025-04-25 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987449', 'tblTempUsageDetail_20' ) start [2025-04-25 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987449', 'tblTempUsageDetail_20' ) end [2025-04-25 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:07:27] Production.INFO: ==2565== Releasing lock... [2025-04-25 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:07:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:08:05 [end_date_ymd] => 2025-04-25 14:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:08:05' and `end` < '2025-04-25 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-04-25 14:08:19] Production.INFO: count ==6195 [2025-04-25 14:08:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:08:05 - End Time 2025-04-25 14:08:05 [2025-04-25 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987454', 'tblTempUsageDetail_20' ) start [2025-04-25 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987454', 'tblTempUsageDetail_20' ) end [2025-04-25 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987454', 'tblTempVendorCDR_20' ) start [2025-04-25 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987454', 'tblTempVendorCDR_20' ) end [2025-04-25 14:08:23] Production.INFO: ProcessCDR(1,14987454,1,1,2) [2025-04-25 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987454', 'tblTempUsageDetail_20' ) start [2025-04-25 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987454', 'tblTempUsageDetail_20' ) end [2025-04-25 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:08:28] Production.INFO: ==2637== Releasing lock... [2025-04-25 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:08:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:09:05 [end_date_ymd] => 2025-04-25 14:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:09:05' and `end` < '2025-04-25 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-04-25 14:09:19] Production.INFO: count ==6187 [2025-04-25 14:09:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:09:05 - End Time 2025-04-25 14:09:05 [2025-04-25 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987459', 'tblTempUsageDetail_20' ) start [2025-04-25 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987459', 'tblTempUsageDetail_20' ) end [2025-04-25 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987459', 'tblTempVendorCDR_20' ) start [2025-04-25 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987459', 'tblTempVendorCDR_20' ) end [2025-04-25 14:09:23] Production.INFO: ProcessCDR(1,14987459,1,1,2) [2025-04-25 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987459', 'tblTempUsageDetail_20' ) start [2025-04-25 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987459', 'tblTempUsageDetail_20' ) end [2025-04-25 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:09:28] Production.INFO: ==2709== Releasing lock... [2025-04-25 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:09:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:10:06 [end_date_ymd] => 2025-04-25 14:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:10:06' and `end` < '2025-04-25 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-04-25 14:10:22] Production.INFO: count ==6187 [2025-04-25 14:10:25] Production.ERROR: pbx CDR StartTime 2025-04-25 11:10:06 - End Time 2025-04-25 14:10:06 [2025-04-25 14:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987465', 'tblTempUsageDetail_20' ) start [2025-04-25 14:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987465', 'tblTempUsageDetail_20' ) end [2025-04-25 14:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987465', 'tblTempVendorCDR_20' ) start [2025-04-25 14:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987465', 'tblTempVendorCDR_20' ) end [2025-04-25 14:10:25] Production.INFO: ProcessCDR(1,14987465,1,1,2) [2025-04-25 14:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987465', 'tblTempUsageDetail_20' ) start [2025-04-25 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987465', 'tblTempUsageDetail_20' ) end [2025-04-25 14:10:31] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:10:31] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:10:31] Production.INFO: ==2782== Releasing lock... [2025-04-25 14:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:10:31] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:11:05 [end_date_ymd] => 2025-04-25 14:11:05 [RateCDR] => 1 ) [2025-04-25 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:11:05' and `end` < '2025-04-25 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:11:20] Production.INFO: count ==6202 [2025-04-25 14:11:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:11:05 - End Time 2025-04-25 14:11:05 [2025-04-25 14:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987470', 'tblTempUsageDetail_20' ) start [2025-04-25 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987470', 'tblTempUsageDetail_20' ) end [2025-04-25 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987470', 'tblTempVendorCDR_20' ) start [2025-04-25 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987470', 'tblTempVendorCDR_20' ) end [2025-04-25 14:11:23] Production.INFO: ProcessCDR(1,14987470,1,1,2) [2025-04-25 14:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987470', 'tblTempUsageDetail_20' ) start [2025-04-25 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987470', 'tblTempUsageDetail_20' ) end [2025-04-25 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:11:28] Production.INFO: ==2859== Releasing lock... [2025-04-25 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:11:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-25 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:12:05 [end_date_ymd] => 2025-04-25 14:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:12:05' and `end` < '2025-04-25 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-04-25 14:12:19] Production.INFO: count ==6241 [2025-04-25 14:12:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:12:05 - End Time 2025-04-25 14:12:05 [2025-04-25 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987475', 'tblTempUsageDetail_20' ) start [2025-04-25 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987475', 'tblTempUsageDetail_20' ) end [2025-04-25 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987475', 'tblTempVendorCDR_20' ) start [2025-04-25 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987475', 'tblTempVendorCDR_20' ) end [2025-04-25 14:12:22] Production.INFO: ProcessCDR(1,14987475,1,1,2) [2025-04-25 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987475', 'tblTempUsageDetail_20' ) start [2025-04-25 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987475', 'tblTempUsageDetail_20' ) end [2025-04-25 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:12:26] Production.INFO: ==2930== Releasing lock... [2025-04-25 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:12:26] Production.INFO: 74.75 MB #Memory Used# [2025-04-25 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:13:04 [end_date_ymd] => 2025-04-25 14:13:04 [RateCDR] => 1 ) [2025-04-25 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:13:04' and `end` < '2025-04-25 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:13:18] Production.INFO: count ==6241 [2025-04-25 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:13:04 - End Time 2025-04-25 14:13:04 [2025-04-25 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987480', 'tblTempUsageDetail_20' ) start [2025-04-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987480', 'tblTempUsageDetail_20' ) end [2025-04-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987480', 'tblTempVendorCDR_20' ) start [2025-04-25 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987480', 'tblTempVendorCDR_20' ) end [2025-04-25 14:13:22] Production.INFO: ProcessCDR(1,14987480,1,1,2) [2025-04-25 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987480', 'tblTempUsageDetail_20' ) start [2025-04-25 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987480', 'tblTempUsageDetail_20' ) end [2025-04-25 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:13:27] Production.INFO: ==3031== Releasing lock... [2025-04-25 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:13:27] Production.INFO: 74.75 MB #Memory Used# [2025-04-25 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:14:05 [end_date_ymd] => 2025-04-25 14:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:14:05' and `end` < '2025-04-25 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-04-25 14:14:20] Production.INFO: count ==6256 [2025-04-25 14:14:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:14:05 - End Time 2025-04-25 14:14:05 [2025-04-25 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987485', 'tblTempUsageDetail_20' ) start [2025-04-25 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987485', 'tblTempUsageDetail_20' ) end [2025-04-25 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987485', 'tblTempVendorCDR_20' ) start [2025-04-25 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987485', 'tblTempVendorCDR_20' ) end [2025-04-25 14:14:23] Production.INFO: ProcessCDR(1,14987485,1,1,2) [2025-04-25 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987485', 'tblTempUsageDetail_20' ) start [2025-04-25 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987485', 'tblTempUsageDetail_20' ) end [2025-04-25 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:14:28] Production.INFO: ==3122== Releasing lock... [2025-04-25 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:14:28] Production.INFO: 75 MB #Memory Used# [2025-04-25 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:15:04 [end_date_ymd] => 2025-04-25 14:15:04 [RateCDR] => 1 ) [2025-04-25 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:15:04' and `end` < '2025-04-25 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:15:19] Production.INFO: count ==6248 [2025-04-25 14:15:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:15:04 - End Time 2025-04-25 14:15:04 [2025-04-25 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987490', 'tblTempUsageDetail_20' ) start [2025-04-25 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987490', 'tblTempUsageDetail_20' ) end [2025-04-25 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987490', 'tblTempVendorCDR_20' ) start [2025-04-25 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987490', 'tblTempVendorCDR_20' ) end [2025-04-25 14:15:22] Production.INFO: ProcessCDR(1,14987490,1,1,2) [2025-04-25 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987490', 'tblTempUsageDetail_20' ) start [2025-04-25 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987490', 'tblTempUsageDetail_20' ) end [2025-04-25 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:15:28] Production.INFO: ==3200== Releasing lock... [2025-04-25 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:15:28] Production.INFO: 75 MB #Memory Used# [2025-04-25 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:16:05 [end_date_ymd] => 2025-04-25 14:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:16:05' and `end` < '2025-04-25 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-04-25 14:16:19] Production.INFO: count ==6241 [2025-04-25 14:16:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:16:05 - End Time 2025-04-25 14:16:05 [2025-04-25 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987495', 'tblTempUsageDetail_20' ) start [2025-04-25 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987495', 'tblTempUsageDetail_20' ) end [2025-04-25 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987495', 'tblTempVendorCDR_20' ) start [2025-04-25 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987495', 'tblTempVendorCDR_20' ) end [2025-04-25 14:16:23] Production.INFO: ProcessCDR(1,14987495,1,1,2) [2025-04-25 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987495', 'tblTempUsageDetail_20' ) start [2025-04-25 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987495', 'tblTempUsageDetail_20' ) end [2025-04-25 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:16:26] Production.INFO: ==3280== Releasing lock... [2025-04-25 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:16:26] Production.INFO: 74.75 MB #Memory Used# [2025-04-25 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:17:05 [end_date_ymd] => 2025-04-25 14:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:17:05' and `end` < '2025-04-25 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-04-25 14:17:20] Production.INFO: count ==6236 [2025-04-25 14:17:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:17:05 - End Time 2025-04-25 14:17:05 [2025-04-25 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987500', 'tblTempUsageDetail_20' ) start [2025-04-25 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987500', 'tblTempUsageDetail_20' ) end [2025-04-25 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987500', 'tblTempVendorCDR_20' ) start [2025-04-25 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987500', 'tblTempVendorCDR_20' ) end [2025-04-25 14:17:23] Production.INFO: ProcessCDR(1,14987500,1,1,2) [2025-04-25 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987500', 'tblTempUsageDetail_20' ) start [2025-04-25 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987500', 'tblTempUsageDetail_20' ) end [2025-04-25 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:17:28] Production.INFO: ==3353== Releasing lock... [2025-04-25 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:17:28] Production.INFO: 74.75 MB #Memory Used# [2025-04-25 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:18:06 [end_date_ymd] => 2025-04-25 14:18:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:18:06' and `end` < '2025-04-25 14: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-04-25 14:18:20] Production.INFO: count ==6275 [2025-04-25 14:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:18:06 - End Time 2025-04-25 14:18:06 [2025-04-25 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987505', 'tblTempUsageDetail_20' ) start [2025-04-25 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987505', 'tblTempUsageDetail_20' ) end [2025-04-25 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987505', 'tblTempVendorCDR_20' ) start [2025-04-25 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987505', 'tblTempVendorCDR_20' ) end [2025-04-25 14:18:23] Production.INFO: ProcessCDR(1,14987505,1,1,2) [2025-04-25 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987505', 'tblTempUsageDetail_20' ) start [2025-04-25 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987505', 'tblTempUsageDetail_20' ) end [2025-04-25 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:18:28] Production.INFO: ==3435== Releasing lock... [2025-04-25 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:18:28] Production.INFO: 75 MB #Memory Used# [2025-04-25 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:19:06 [end_date_ymd] => 2025-04-25 14:19:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:19:06' and `end` < '2025-04-25 14: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-04-25 14:19:20] Production.INFO: count ==6299 [2025-04-25 14:19:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:19:06 - End Time 2025-04-25 14:19:06 [2025-04-25 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987510', 'tblTempUsageDetail_20' ) start [2025-04-25 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987510', 'tblTempUsageDetail_20' ) end [2025-04-25 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987510', 'tblTempVendorCDR_20' ) start [2025-04-25 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987510', 'tblTempVendorCDR_20' ) end [2025-04-25 14:19:24] Production.INFO: ProcessCDR(1,14987510,1,1,2) [2025-04-25 14:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987510', 'tblTempUsageDetail_20' ) start [2025-04-25 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987510', 'tblTempUsageDetail_20' ) end [2025-04-25 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:19:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:19:29] Production.INFO: ==3515== Releasing lock... [2025-04-25 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:19:29] Production.INFO: 75.25 MB #Memory Used# [2025-04-25 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:20:06 [end_date_ymd] => 2025-04-25 14:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:20:06' and `end` < '2025-04-25 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-04-25 14:20:20] Production.INFO: count ==6311 [2025-04-25 14:20:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:20:06 - End Time 2025-04-25 14:20:06 [2025-04-25 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987516', 'tblTempUsageDetail_20' ) start [2025-04-25 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987516', 'tblTempUsageDetail_20' ) end [2025-04-25 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987516', 'tblTempVendorCDR_20' ) start [2025-04-25 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987516', 'tblTempVendorCDR_20' ) end [2025-04-25 14:20:24] Production.INFO: ProcessCDR(1,14987516,1,1,2) [2025-04-25 14:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987516', 'tblTempUsageDetail_20' ) start [2025-04-25 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987516', 'tblTempUsageDetail_20' ) end [2025-04-25 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:20:30] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:20:30] Production.INFO: ==3592== Releasing lock... [2025-04-25 14:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:20:30] Production.INFO: 75.5 MB #Memory Used# [2025-04-25 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:21:06 [end_date_ymd] => 2025-04-25 14:21:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:21:06' and `end` < '2025-04-25 14: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-04-25 14:21:20] Production.INFO: count ==6348 [2025-04-25 14:21:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:21:06 - End Time 2025-04-25 14:21:06 [2025-04-25 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987521', 'tblTempUsageDetail_20' ) start [2025-04-25 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987521', 'tblTempUsageDetail_20' ) end [2025-04-25 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987521', 'tblTempVendorCDR_20' ) start [2025-04-25 14:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987521', 'tblTempVendorCDR_20' ) end [2025-04-25 14:21:23] Production.INFO: ProcessCDR(1,14987521,1,1,2) [2025-04-25 14:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987521', 'tblTempUsageDetail_20' ) start [2025-04-25 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987521', 'tblTempUsageDetail_20' ) end [2025-04-25 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:21:28] Production.INFO: ==3680== Releasing lock... [2025-04-25 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:21:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:22:05 [end_date_ymd] => 2025-04-25 14:22:05 [RateCDR] => 1 ) [2025-04-25 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:22:05' and `end` < '2025-04-25 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:22:19] Production.INFO: count ==6365 [2025-04-25 14:22:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:22:05 - End Time 2025-04-25 14:22:05 [2025-04-25 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987526', 'tblTempUsageDetail_20' ) start [2025-04-25 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987526', 'tblTempUsageDetail_20' ) end [2025-04-25 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987526', 'tblTempVendorCDR_20' ) start [2025-04-25 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987526', 'tblTempVendorCDR_20' ) end [2025-04-25 14:22:22] Production.INFO: ProcessCDR(1,14987526,1,1,2) [2025-04-25 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987526', 'tblTempUsageDetail_20' ) start [2025-04-25 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987526', 'tblTempUsageDetail_20' ) end [2025-04-25 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:22:28] Production.INFO: ==3758== Releasing lock... [2025-04-25 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:22:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:23:05 [end_date_ymd] => 2025-04-25 14:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:23:05' and `end` < '2025-04-25 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-04-25 14:23:20] Production.INFO: count ==6366 [2025-04-25 14:23:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:23:05 - End Time 2025-04-25 14:23:05 [2025-04-25 14:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987531', 'tblTempUsageDetail_20' ) start [2025-04-25 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987531', 'tblTempUsageDetail_20' ) end [2025-04-25 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987531', 'tblTempVendorCDR_20' ) start [2025-04-25 14:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987531', 'tblTempVendorCDR_20' ) end [2025-04-25 14:23:23] Production.INFO: ProcessCDR(1,14987531,1,1,2) [2025-04-25 14:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987531', 'tblTempUsageDetail_20' ) start [2025-04-25 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987531', 'tblTempUsageDetail_20' ) end [2025-04-25 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:23:28] Production.INFO: ==3874== Releasing lock... [2025-04-25 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:23:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:24:06 [end_date_ymd] => 2025-04-25 14:24:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:24:06' and `end` < '2025-04-25 14: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-04-25 14:24:20] Production.INFO: count ==6388 [2025-04-25 14:24:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:24:06 - End Time 2025-04-25 14:24:06 [2025-04-25 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987536', 'tblTempUsageDetail_20' ) start [2025-04-25 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987536', 'tblTempUsageDetail_20' ) end [2025-04-25 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987536', 'tblTempVendorCDR_20' ) start [2025-04-25 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987536', 'tblTempVendorCDR_20' ) end [2025-04-25 14:24:24] Production.INFO: ProcessCDR(1,14987536,1,1,2) [2025-04-25 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987536', 'tblTempUsageDetail_20' ) start [2025-04-25 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987536', 'tblTempUsageDetail_20' ) end [2025-04-25 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:24:29] Production.INFO: ==3960== Releasing lock... [2025-04-25 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:24:29] Production.INFO: 76 MB #Memory Used# [2025-04-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:25:05 [end_date_ymd] => 2025-04-25 14:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:25:05' and `end` < '2025-04-25 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-04-25 14:25:19] Production.INFO: count ==6444 [2025-04-25 14:25:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:25:05 - End Time 2025-04-25 14:25:05 [2025-04-25 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987541', 'tblTempUsageDetail_20' ) start [2025-04-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987541', 'tblTempUsageDetail_20' ) end [2025-04-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987541', 'tblTempVendorCDR_20' ) start [2025-04-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987541', 'tblTempVendorCDR_20' ) end [2025-04-25 14:25:22] Production.INFO: ProcessCDR(1,14987541,1,1,2) [2025-04-25 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987541', 'tblTempUsageDetail_20' ) start [2025-04-25 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987541', 'tblTempUsageDetail_20' ) end [2025-04-25 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:25:28] Production.INFO: ==4037== Releasing lock... [2025-04-25 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:25:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:26:06 [end_date_ymd] => 2025-04-25 14:26:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:26:06' and `end` < '2025-04-25 14: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-04-25 14:26:20] Production.INFO: count ==6439 [2025-04-25 14:26:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:26:06 - End Time 2025-04-25 14:26:06 [2025-04-25 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987546', 'tblTempUsageDetail_20' ) start [2025-04-25 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987546', 'tblTempUsageDetail_20' ) end [2025-04-25 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987546', 'tblTempVendorCDR_20' ) start [2025-04-25 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987546', 'tblTempVendorCDR_20' ) end [2025-04-25 14:26:23] Production.INFO: ProcessCDR(1,14987546,1,1,2) [2025-04-25 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987546', 'tblTempUsageDetail_20' ) start [2025-04-25 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987546', 'tblTempUsageDetail_20' ) end [2025-04-25 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:26:28] Production.INFO: ==4127== Releasing lock... [2025-04-25 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:26:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:27:05 [end_date_ymd] => 2025-04-25 14:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:27:05' and `end` < '2025-04-25 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-04-25 14:27:19] Production.INFO: count ==6434 [2025-04-25 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:27:05 - End Time 2025-04-25 14:27:05 [2025-04-25 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987551', 'tblTempUsageDetail_20' ) start [2025-04-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987551', 'tblTempUsageDetail_20' ) end [2025-04-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987551', 'tblTempVendorCDR_20' ) start [2025-04-25 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987551', 'tblTempVendorCDR_20' ) end [2025-04-25 14:27:22] Production.INFO: ProcessCDR(1,14987551,1,1,2) [2025-04-25 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987551', 'tblTempUsageDetail_20' ) start [2025-04-25 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987551', 'tblTempUsageDetail_20' ) end [2025-04-25 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:27:27] Production.INFO: ==4207== Releasing lock... [2025-04-25 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:27:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:28:05 [end_date_ymd] => 2025-04-25 14:28:05 [RateCDR] => 1 ) [2025-04-25 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:28:05' and `end` < '2025-04-25 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:28:19] Production.INFO: count ==6423 [2025-04-25 14:28:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:28:05 - End Time 2025-04-25 14:28:05 [2025-04-25 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987556', 'tblTempUsageDetail_20' ) start [2025-04-25 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987556', 'tblTempUsageDetail_20' ) end [2025-04-25 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987556', 'tblTempVendorCDR_20' ) start [2025-04-25 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987556', 'tblTempVendorCDR_20' ) end [2025-04-25 14:28:23] Production.INFO: ProcessCDR(1,14987556,1,1,2) [2025-04-25 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987556', 'tblTempUsageDetail_20' ) start [2025-04-25 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987556', 'tblTempUsageDetail_20' ) end [2025-04-25 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:28:28] Production.INFO: ==4308== Releasing lock... [2025-04-25 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:28:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:29:05 [end_date_ymd] => 2025-04-25 14:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:29:05' and `end` < '2025-04-25 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-04-25 14:29:19] Production.INFO: count ==6427 [2025-04-25 14:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:29:05 - End Time 2025-04-25 14:29:05 [2025-04-25 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987561', 'tblTempUsageDetail_20' ) start [2025-04-25 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987561', 'tblTempUsageDetail_20' ) end [2025-04-25 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987561', 'tblTempVendorCDR_20' ) start [2025-04-25 14:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987561', 'tblTempVendorCDR_20' ) end [2025-04-25 14:29:23] Production.INFO: ProcessCDR(1,14987561,1,1,2) [2025-04-25 14:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987561', 'tblTempUsageDetail_20' ) start [2025-04-25 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987561', 'tblTempUsageDetail_20' ) end [2025-04-25 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:29:28] Production.INFO: ==4389== Releasing lock... [2025-04-25 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:29:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:30:06 [end_date_ymd] => 2025-04-25 14:30:06 [RateCDR] => 1 ) [2025-04-25 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:30:06' and `end` < '2025-04-25 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:30:20] Production.INFO: count ==6420 [2025-04-25 14:30:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:30:06 - End Time 2025-04-25 14:30:06 [2025-04-25 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987567', 'tblTempUsageDetail_20' ) start [2025-04-25 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987567', 'tblTempUsageDetail_20' ) end [2025-04-25 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987567', 'tblTempVendorCDR_20' ) start [2025-04-25 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987567', 'tblTempVendorCDR_20' ) end [2025-04-25 14:30:24] Production.INFO: ProcessCDR(1,14987567,1,1,2) [2025-04-25 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987567', 'tblTempUsageDetail_20' ) start [2025-04-25 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987567', 'tblTempUsageDetail_20' ) end [2025-04-25 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:30:29] Production.INFO: ==4470== Releasing lock... [2025-04-25 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:30:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:31:05 [end_date_ymd] => 2025-04-25 14:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:31:05' and `end` < '2025-04-25 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-04-25 14:31:19] Production.INFO: count ==6438 [2025-04-25 14:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:31:05 - End Time 2025-04-25 14:31:05 [2025-04-25 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987572', 'tblTempUsageDetail_20' ) start [2025-04-25 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987572', 'tblTempUsageDetail_20' ) end [2025-04-25 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987572', 'tblTempVendorCDR_20' ) start [2025-04-25 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987572', 'tblTempVendorCDR_20' ) end [2025-04-25 14:31:22] Production.INFO: ProcessCDR(1,14987572,1,1,2) [2025-04-25 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987572', 'tblTempUsageDetail_20' ) start [2025-04-25 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987572', 'tblTempUsageDetail_20' ) end [2025-04-25 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:31:27] Production.INFO: ==4553== Releasing lock... [2025-04-25 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:31:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:32:05 [end_date_ymd] => 2025-04-25 14:32:05 [RateCDR] => 1 ) [2025-04-25 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:32:05' and `end` < '2025-04-25 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:32:19] Production.INFO: count ==6450 [2025-04-25 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:32:05 - End Time 2025-04-25 14:32:05 [2025-04-25 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987577', 'tblTempUsageDetail_20' ) start [2025-04-25 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987577', 'tblTempUsageDetail_20' ) end [2025-04-25 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987577', 'tblTempVendorCDR_20' ) start [2025-04-25 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987577', 'tblTempVendorCDR_20' ) end [2025-04-25 14:32:22] Production.INFO: ProcessCDR(1,14987577,1,1,2) [2025-04-25 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987577', 'tblTempUsageDetail_20' ) start [2025-04-25 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987577', 'tblTempUsageDetail_20' ) end [2025-04-25 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:32:27] Production.INFO: ==4647== Releasing lock... [2025-04-25 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:32:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:33:06 [end_date_ymd] => 2025-04-25 14:33:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:33:06' and `end` < '2025-04-25 14: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-04-25 14:33:20] Production.INFO: count ==6435 [2025-04-25 14:33:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:33:06 - End Time 2025-04-25 14:33:06 [2025-04-25 14:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987582', 'tblTempUsageDetail_20' ) start [2025-04-25 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987582', 'tblTempUsageDetail_20' ) end [2025-04-25 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987582', 'tblTempVendorCDR_20' ) start [2025-04-25 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987582', 'tblTempVendorCDR_20' ) end [2025-04-25 14:33:24] Production.INFO: ProcessCDR(1,14987582,1,1,2) [2025-04-25 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987582', 'tblTempUsageDetail_20' ) start [2025-04-25 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987582', 'tblTempUsageDetail_20' ) end [2025-04-25 14:33:30] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:33:30] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:33:30] Production.INFO: ==4727== Releasing lock... [2025-04-25 14:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:33:30] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:34:05 [end_date_ymd] => 2025-04-25 14:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:34:05' and `end` < '2025-04-25 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-04-25 14:34:19] Production.INFO: count ==6490 [2025-04-25 14:34:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:34:05 - End Time 2025-04-25 14:34:05 [2025-04-25 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987587', 'tblTempUsageDetail_20' ) start [2025-04-25 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987587', 'tblTempUsageDetail_20' ) end [2025-04-25 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987587', 'tblTempVendorCDR_20' ) start [2025-04-25 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987587', 'tblTempVendorCDR_20' ) end [2025-04-25 14:34:23] Production.INFO: ProcessCDR(1,14987587,1,1,2) [2025-04-25 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987587', 'tblTempUsageDetail_20' ) start [2025-04-25 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987587', 'tblTempUsageDetail_20' ) end [2025-04-25 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:34:28] Production.INFO: ==4807== Releasing lock... [2025-04-25 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:34:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:35:05 [end_date_ymd] => 2025-04-25 14:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:35:05' and `end` < '2025-04-25 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-04-25 14:35:19] Production.INFO: count ==6451 [2025-04-25 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:35:05 - End Time 2025-04-25 14:35:05 [2025-04-25 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987592', 'tblTempUsageDetail_20' ) start [2025-04-25 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987592', 'tblTempUsageDetail_20' ) end [2025-04-25 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987592', 'tblTempVendorCDR_20' ) start [2025-04-25 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987592', 'tblTempVendorCDR_20' ) end [2025-04-25 14:35:22] Production.INFO: ProcessCDR(1,14987592,1,1,2) [2025-04-25 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987592', 'tblTempUsageDetail_20' ) start [2025-04-25 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987592', 'tblTempUsageDetail_20' ) end [2025-04-25 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:35:27] Production.INFO: ==4882== Releasing lock... [2025-04-25 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:35:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:36:05 [end_date_ymd] => 2025-04-25 14:36:05 [RateCDR] => 1 ) [2025-04-25 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:36:05' and `end` < '2025-04-25 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:36:19] Production.INFO: count ==6433 [2025-04-25 14:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:36:05 - End Time 2025-04-25 14:36:05 [2025-04-25 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987597', 'tblTempUsageDetail_20' ) start [2025-04-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987597', 'tblTempUsageDetail_20' ) end [2025-04-25 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987597', 'tblTempVendorCDR_20' ) start [2025-04-25 14:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987597', 'tblTempVendorCDR_20' ) end [2025-04-25 14:36:23] Production.INFO: ProcessCDR(1,14987597,1,1,2) [2025-04-25 14:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987597', 'tblTempUsageDetail_20' ) start [2025-04-25 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987597', 'tblTempUsageDetail_20' ) end [2025-04-25 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:36:27] Production.INFO: ==4971== Releasing lock... [2025-04-25 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:36:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:37:05 [end_date_ymd] => 2025-04-25 14:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:37:05' and `end` < '2025-04-25 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-04-25 14:37:20] Production.INFO: count ==6428 [2025-04-25 14:37:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:37:05 - End Time 2025-04-25 14:37:05 [2025-04-25 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987602', 'tblTempUsageDetail_20' ) start [2025-04-25 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987602', 'tblTempUsageDetail_20' ) end [2025-04-25 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987602', 'tblTempVendorCDR_20' ) start [2025-04-25 14:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987602', 'tblTempVendorCDR_20' ) end [2025-04-25 14:37:23] Production.INFO: ProcessCDR(1,14987602,1,1,2) [2025-04-25 14:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987602', 'tblTempUsageDetail_20' ) start [2025-04-25 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987602', 'tblTempUsageDetail_20' ) end [2025-04-25 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:37:28] Production.INFO: ==5056== Releasing lock... [2025-04-25 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:37:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:38:05 [end_date_ymd] => 2025-04-25 14:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:38:05' and `end` < '2025-04-25 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-04-25 14:38:19] Production.INFO: count ==6432 [2025-04-25 14:38:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:38:05 - End Time 2025-04-25 14:38:05 [2025-04-25 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987607', 'tblTempUsageDetail_20' ) start [2025-04-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987607', 'tblTempUsageDetail_20' ) end [2025-04-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987607', 'tblTempVendorCDR_20' ) start [2025-04-25 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987607', 'tblTempVendorCDR_20' ) end [2025-04-25 14:38:22] Production.INFO: ProcessCDR(1,14987607,1,1,2) [2025-04-25 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987607', 'tblTempUsageDetail_20' ) start [2025-04-25 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987607', 'tblTempUsageDetail_20' ) end [2025-04-25 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:38:28] Production.INFO: ==5177== Releasing lock... [2025-04-25 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:38:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:39:05 [end_date_ymd] => 2025-04-25 14:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:39:05' and `end` < '2025-04-25 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-04-25 14:39:20] Production.INFO: count ==6424 [2025-04-25 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:39:05 - End Time 2025-04-25 14:39:05 [2025-04-25 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987612', 'tblTempUsageDetail_20' ) start [2025-04-25 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987612', 'tblTempUsageDetail_20' ) end [2025-04-25 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987612', 'tblTempVendorCDR_20' ) start [2025-04-25 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987612', 'tblTempVendorCDR_20' ) end [2025-04-25 14:39:23] Production.INFO: ProcessCDR(1,14987612,1,1,2) [2025-04-25 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987612', 'tblTempUsageDetail_20' ) start [2025-04-25 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987612', 'tblTempUsageDetail_20' ) end [2025-04-25 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:39:28] Production.INFO: ==5262== Releasing lock... [2025-04-25 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:39:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:40:06 [end_date_ymd] => 2025-04-25 14:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:40:06' and `end` < '2025-04-25 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-04-25 14:40:20] Production.INFO: count ==6469 [2025-04-25 14:40:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:40:06 - End Time 2025-04-25 14:40:06 [2025-04-25 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987618', 'tblTempUsageDetail_20' ) start [2025-04-25 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987618', 'tblTempUsageDetail_20' ) end [2025-04-25 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987618', 'tblTempVendorCDR_20' ) start [2025-04-25 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987618', 'tblTempVendorCDR_20' ) end [2025-04-25 14:40:23] Production.INFO: ProcessCDR(1,14987618,1,1,2) [2025-04-25 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987618', 'tblTempUsageDetail_20' ) start [2025-04-25 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987618', 'tblTempUsageDetail_20' ) end [2025-04-25 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:40:29] Production.INFO: ==5342== Releasing lock... [2025-04-25 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:40:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:41:05 [end_date_ymd] => 2025-04-25 14:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:41:05' and `end` < '2025-04-25 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-04-25 14:41:19] Production.INFO: count ==6456 [2025-04-25 14:41:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:41:05 - End Time 2025-04-25 14:41:05 [2025-04-25 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987623', 'tblTempUsageDetail_20' ) start [2025-04-25 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987623', 'tblTempUsageDetail_20' ) end [2025-04-25 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987623', 'tblTempVendorCDR_20' ) start [2025-04-25 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987623', 'tblTempVendorCDR_20' ) end [2025-04-25 14:41:23] Production.INFO: ProcessCDR(1,14987623,1,1,2) [2025-04-25 14:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987623', 'tblTempUsageDetail_20' ) start [2025-04-25 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987623', 'tblTempUsageDetail_20' ) end [2025-04-25 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:41:28] Production.INFO: ==5433== Releasing lock... [2025-04-25 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:41:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:42:04 [end_date_ymd] => 2025-04-25 14:42:04 [RateCDR] => 1 ) [2025-04-25 14:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:42:04' and `end` < '2025-04-25 14:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:42:19] Production.INFO: count ==6434 [2025-04-25 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:42:04 - End Time 2025-04-25 14:42:04 [2025-04-25 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987628', 'tblTempUsageDetail_20' ) start [2025-04-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987628', 'tblTempUsageDetail_20' ) end [2025-04-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987628', 'tblTempVendorCDR_20' ) start [2025-04-25 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987628', 'tblTempVendorCDR_20' ) end [2025-04-25 14:42:22] Production.INFO: ProcessCDR(1,14987628,1,1,2) [2025-04-25 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987628', 'tblTempUsageDetail_20' ) start [2025-04-25 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987628', 'tblTempUsageDetail_20' ) end [2025-04-25 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:42:27] Production.INFO: ==5519== Releasing lock... [2025-04-25 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:42:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:43:06 [end_date_ymd] => 2025-04-25 14:43:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:43:06' and `end` < '2025-04-25 14: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-04-25 14:43:20] Production.INFO: count ==6425 [2025-04-25 14:43:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:43:06 - End Time 2025-04-25 14:43:06 [2025-04-25 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987633', 'tblTempUsageDetail_20' ) start [2025-04-25 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987633', 'tblTempUsageDetail_20' ) end [2025-04-25 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987633', 'tblTempVendorCDR_20' ) start [2025-04-25 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987633', 'tblTempVendorCDR_20' ) end [2025-04-25 14:43:23] Production.INFO: ProcessCDR(1,14987633,1,1,2) [2025-04-25 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987633', 'tblTempUsageDetail_20' ) start [2025-04-25 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987633', 'tblTempUsageDetail_20' ) end [2025-04-25 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:43:28] Production.INFO: ==5599== Releasing lock... [2025-04-25 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:43:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:44:06 [end_date_ymd] => 2025-04-25 14:44:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:44:06' and `end` < '2025-04-25 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-04-25 14:44:20] Production.INFO: count ==6432 [2025-04-25 14:44:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:44:06 - End Time 2025-04-25 14:44:06 [2025-04-25 14:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987638', 'tblTempUsageDetail_20' ) start [2025-04-25 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987638', 'tblTempUsageDetail_20' ) end [2025-04-25 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987638', 'tblTempVendorCDR_20' ) start [2025-04-25 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987638', 'tblTempVendorCDR_20' ) end [2025-04-25 14:44:24] Production.INFO: ProcessCDR(1,14987638,1,1,2) [2025-04-25 14:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987638', 'tblTempUsageDetail_20' ) start [2025-04-25 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987638', 'tblTempUsageDetail_20' ) end [2025-04-25 14:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:44:29] Production.INFO: ==5678== Releasing lock... [2025-04-25 14:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:44:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:45:05 [end_date_ymd] => 2025-04-25 14:45:05 [RateCDR] => 1 ) [2025-04-25 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:45:05' and `end` < '2025-04-25 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:45:19] Production.INFO: count ==6432 [2025-04-25 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:45:05 - End Time 2025-04-25 14:45:05 [2025-04-25 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987643', 'tblTempUsageDetail_20' ) start [2025-04-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987643', 'tblTempUsageDetail_20' ) end [2025-04-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987643', 'tblTempVendorCDR_20' ) start [2025-04-25 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987643', 'tblTempVendorCDR_20' ) end [2025-04-25 14:45:22] Production.INFO: ProcessCDR(1,14987643,1,1,2) [2025-04-25 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987643', 'tblTempUsageDetail_20' ) start [2025-04-25 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987643', 'tblTempUsageDetail_20' ) end [2025-04-25 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:45:27] Production.INFO: ==5763== Releasing lock... [2025-04-25 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:45:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:46:06 [end_date_ymd] => 2025-04-25 14:46:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:46:06' and `end` < '2025-04-25 14: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-04-25 14:46:20] Production.INFO: count ==6441 [2025-04-25 14:46:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:46:06 - End Time 2025-04-25 14:46:06 [2025-04-25 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987648', 'tblTempUsageDetail_20' ) start [2025-04-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987648', 'tblTempUsageDetail_20' ) end [2025-04-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987648', 'tblTempVendorCDR_20' ) start [2025-04-25 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987648', 'tblTempVendorCDR_20' ) end [2025-04-25 14:46:23] Production.INFO: ProcessCDR(1,14987648,1,1,2) [2025-04-25 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987648', 'tblTempUsageDetail_20' ) start [2025-04-25 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987648', 'tblTempUsageDetail_20' ) end [2025-04-25 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:46:27] Production.INFO: ==5841== Releasing lock... [2025-04-25 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:46:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:47:05 [end_date_ymd] => 2025-04-25 14:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:47:05' and `end` < '2025-04-25 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-04-25 14:47:19] Production.INFO: count ==6450 [2025-04-25 14:47:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:47:05 - End Time 2025-04-25 14:47:05 [2025-04-25 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987653', 'tblTempUsageDetail_20' ) start [2025-04-25 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987653', 'tblTempUsageDetail_20' ) end [2025-04-25 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987653', 'tblTempVendorCDR_20' ) start [2025-04-25 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987653', 'tblTempVendorCDR_20' ) end [2025-04-25 14:47:23] Production.INFO: ProcessCDR(1,14987653,1,1,2) [2025-04-25 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987653', 'tblTempUsageDetail_20' ) start [2025-04-25 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987653', 'tblTempUsageDetail_20' ) end [2025-04-25 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:47:27] Production.INFO: ==5930== Releasing lock... [2025-04-25 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:47:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:48:05 [end_date_ymd] => 2025-04-25 14:48:05 [RateCDR] => 1 ) [2025-04-25 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:48:05' and `end` < '2025-04-25 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:48:19] Production.INFO: count ==6442 [2025-04-25 14:48:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:48:05 - End Time 2025-04-25 14:48:05 [2025-04-25 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987658', 'tblTempUsageDetail_20' ) start [2025-04-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987658', 'tblTempUsageDetail_20' ) end [2025-04-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987658', 'tblTempVendorCDR_20' ) start [2025-04-25 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987658', 'tblTempVendorCDR_20' ) end [2025-04-25 14:48:23] Production.INFO: ProcessCDR(1,14987658,1,1,2) [2025-04-25 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987658', 'tblTempUsageDetail_20' ) start [2025-04-25 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987658', 'tblTempUsageDetail_20' ) end [2025-04-25 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:48:28] Production.INFO: ==6004== Releasing lock... [2025-04-25 14:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:48:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:49:04 [end_date_ymd] => 2025-04-25 14:49:04 [RateCDR] => 1 ) [2025-04-25 14:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:49:04' and `end` < '2025-04-25 14:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:49:18] Production.INFO: count ==6440 [2025-04-25 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:49:04 - End Time 2025-04-25 14:49:04 [2025-04-25 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987663', 'tblTempUsageDetail_20' ) start [2025-04-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987663', 'tblTempUsageDetail_20' ) end [2025-04-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987663', 'tblTempVendorCDR_20' ) start [2025-04-25 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987663', 'tblTempVendorCDR_20' ) end [2025-04-25 14:49:22] Production.INFO: ProcessCDR(1,14987663,1,1,2) [2025-04-25 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987663', 'tblTempUsageDetail_20' ) start [2025-04-25 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987663', 'tblTempUsageDetail_20' ) end [2025-04-25 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:49:27] Production.INFO: ==6089== Releasing lock... [2025-04-25 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:49:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:50:06 [end_date_ymd] => 2025-04-25 14:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:50:06' and `end` < '2025-04-25 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-04-25 14:50:20] Production.INFO: count ==6422 [2025-04-25 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:50:06 - End Time 2025-04-25 14:50:06 [2025-04-25 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987668', 'tblTempUsageDetail_20' ) start [2025-04-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987668', 'tblTempUsageDetail_20' ) end [2025-04-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987668', 'tblTempVendorCDR_20' ) start [2025-04-25 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987668', 'tblTempVendorCDR_20' ) end [2025-04-25 14:50:23] Production.INFO: ProcessCDR(1,14987668,1,1,2) [2025-04-25 14:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987668', 'tblTempUsageDetail_20' ) start [2025-04-25 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987668', 'tblTempUsageDetail_20' ) end [2025-04-25 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:50:28] Production.INFO: ==6171== Releasing lock... [2025-04-25 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:50:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:51:05 [end_date_ymd] => 2025-04-25 14:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:51:05' and `end` < '2025-04-25 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-04-25 14:51:19] Production.INFO: count ==6431 [2025-04-25 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-25 11:51:05 - End Time 2025-04-25 14:51:05 [2025-04-25 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987674', 'tblTempUsageDetail_20' ) start [2025-04-25 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987674', 'tblTempUsageDetail_20' ) end [2025-04-25 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987674', 'tblTempVendorCDR_20' ) start [2025-04-25 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987674', 'tblTempVendorCDR_20' ) end [2025-04-25 14:51:22] Production.INFO: ProcessCDR(1,14987674,1,1,2) [2025-04-25 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987674', 'tblTempUsageDetail_20' ) start [2025-04-25 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987674', 'tblTempUsageDetail_20' ) end [2025-04-25 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:51:27] Production.INFO: ==6253== Releasing lock... [2025-04-25 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:51:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:52:05 [end_date_ymd] => 2025-04-25 14:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:52:05' and `end` < '2025-04-25 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-04-25 14:52:19] Production.INFO: count ==6448 [2025-04-25 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:52:05 - End Time 2025-04-25 14:52:05 [2025-04-25 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987679', 'tblTempUsageDetail_20' ) start [2025-04-25 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987679', 'tblTempUsageDetail_20' ) end [2025-04-25 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987679', 'tblTempVendorCDR_20' ) start [2025-04-25 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987679', 'tblTempVendorCDR_20' ) end [2025-04-25 14:52:23] Production.INFO: ProcessCDR(1,14987679,1,1,2) [2025-04-25 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987679', 'tblTempUsageDetail_20' ) start [2025-04-25 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987679', 'tblTempUsageDetail_20' ) end [2025-04-25 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:52:28] Production.INFO: ==6344== Releasing lock... [2025-04-25 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:52:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:53:06 [end_date_ymd] => 2025-04-25 14:53:06 [RateCDR] => 1 ) [2025-04-25 14: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-04-25 11:53:06' and `end` < '2025-04-25 14: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-04-25 14:53:20] Production.INFO: count ==6455 [2025-04-25 14:53:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:53:06 - End Time 2025-04-25 14:53:06 [2025-04-25 14:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987684', 'tblTempUsageDetail_20' ) start [2025-04-25 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987684', 'tblTempUsageDetail_20' ) end [2025-04-25 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987684', 'tblTempVendorCDR_20' ) start [2025-04-25 14:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987684', 'tblTempVendorCDR_20' ) end [2025-04-25 14:53:23] Production.INFO: ProcessCDR(1,14987684,1,1,2) [2025-04-25 14:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987684', 'tblTempUsageDetail_20' ) start [2025-04-25 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987684', 'tblTempUsageDetail_20' ) end [2025-04-25 14:53:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:53:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:53:29] Production.INFO: ==6421== Releasing lock... [2025-04-25 14:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:53:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:54:05 [end_date_ymd] => 2025-04-25 14:54:05 [RateCDR] => 1 ) [2025-04-25 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:54:05' and `end` < '2025-04-25 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:54:19] Production.INFO: count ==6435 [2025-04-25 14:54:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:54:05 - End Time 2025-04-25 14:54:05 [2025-04-25 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987689', 'tblTempUsageDetail_20' ) start [2025-04-25 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987689', 'tblTempUsageDetail_20' ) end [2025-04-25 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987689', 'tblTempVendorCDR_20' ) start [2025-04-25 14:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987689', 'tblTempVendorCDR_20' ) end [2025-04-25 14:54:23] Production.INFO: ProcessCDR(1,14987689,1,1,2) [2025-04-25 14:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987689', 'tblTempUsageDetail_20' ) start [2025-04-25 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987689', 'tblTempUsageDetail_20' ) end [2025-04-25 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:54:28] Production.INFO: ==6543== Releasing lock... [2025-04-25 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:54:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:55:06 [end_date_ymd] => 2025-04-25 14:55:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:55:06' and `end` < '2025-04-25 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-04-25 14:55:20] Production.INFO: count ==6433 [2025-04-25 14:55:23] Production.ERROR: pbx CDR StartTime 2025-04-25 11:55:06 - End Time 2025-04-25 14:55:06 [2025-04-25 14:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987694', 'tblTempUsageDetail_20' ) start [2025-04-25 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987694', 'tblTempUsageDetail_20' ) end [2025-04-25 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987694', 'tblTempVendorCDR_20' ) start [2025-04-25 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987694', 'tblTempVendorCDR_20' ) end [2025-04-25 14:55:23] Production.INFO: ProcessCDR(1,14987694,1,1,2) [2025-04-25 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987694', 'tblTempUsageDetail_20' ) start [2025-04-25 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987694', 'tblTempUsageDetail_20' ) end [2025-04-25 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:55:29] Production.INFO: ==6629== Releasing lock... [2025-04-25 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:55:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:56:05 [end_date_ymd] => 2025-04-25 14:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:56:05' and `end` < '2025-04-25 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-04-25 14:56:19] Production.INFO: count ==6427 [2025-04-25 14:56:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:56:05 - End Time 2025-04-25 14:56:05 [2025-04-25 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987699', 'tblTempUsageDetail_20' ) start [2025-04-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987699', 'tblTempUsageDetail_20' ) end [2025-04-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987699', 'tblTempVendorCDR_20' ) start [2025-04-25 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987699', 'tblTempVendorCDR_20' ) end [2025-04-25 14:56:23] Production.INFO: ProcessCDR(1,14987699,1,1,2) [2025-04-25 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987699', 'tblTempUsageDetail_20' ) start [2025-04-25 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987699', 'tblTempUsageDetail_20' ) end [2025-04-25 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:56:28] Production.INFO: ==6704== Releasing lock... [2025-04-25 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:56:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:57:05 [end_date_ymd] => 2025-04-25 14:57:05 [RateCDR] => 1 ) [2025-04-25 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:57:05' and `end` < '2025-04-25 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:57:19] Production.INFO: count ==6432 [2025-04-25 14:57:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:57:05 - End Time 2025-04-25 14:57:05 [2025-04-25 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987704', 'tblTempUsageDetail_20' ) start [2025-04-25 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987704', 'tblTempUsageDetail_20' ) end [2025-04-25 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987704', 'tblTempVendorCDR_20' ) start [2025-04-25 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987704', 'tblTempVendorCDR_20' ) end [2025-04-25 14:57:23] Production.INFO: ProcessCDR(1,14987704,1,1,2) [2025-04-25 14:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987704', 'tblTempUsageDetail_20' ) start [2025-04-25 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987704', 'tblTempUsageDetail_20' ) end [2025-04-25 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:57:27] Production.INFO: ==6774== Releasing lock... [2025-04-25 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:57:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:58:05 [end_date_ymd] => 2025-04-25 14:58:05 [RateCDR] => 1 ) [2025-04-25 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 11:58:05' and `end` < '2025-04-25 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 14:58:19] Production.INFO: count ==6443 [2025-04-25 14:58:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:58:05 - End Time 2025-04-25 14:58:05 [2025-04-25 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987709', 'tblTempUsageDetail_20' ) start [2025-04-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987709', 'tblTempUsageDetail_20' ) end [2025-04-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987709', 'tblTempVendorCDR_20' ) start [2025-04-25 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987709', 'tblTempVendorCDR_20' ) end [2025-04-25 14:58:22] Production.INFO: ProcessCDR(1,14987709,1,1,2) [2025-04-25 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987709', 'tblTempUsageDetail_20' ) start [2025-04-25 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987709', 'tblTempUsageDetail_20' ) end [2025-04-25 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:58:27] Production.INFO: ==6849== Releasing lock... [2025-04-25 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:58:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 11:59:05 [end_date_ymd] => 2025-04-25 14:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 11:59:05' and `end` < '2025-04-25 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-04-25 14:59:20] Production.INFO: count ==6454 [2025-04-25 14:59:22] Production.ERROR: pbx CDR StartTime 2025-04-25 11:59:05 - End Time 2025-04-25 14:59:05 [2025-04-25 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987714', 'tblTempUsageDetail_20' ) start [2025-04-25 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987714', 'tblTempUsageDetail_20' ) end [2025-04-25 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987714', 'tblTempVendorCDR_20' ) start [2025-04-25 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987714', 'tblTempVendorCDR_20' ) end [2025-04-25 14:59:23] Production.INFO: ProcessCDR(1,14987714,1,1,2) [2025-04-25 14:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987714', 'tblTempUsageDetail_20' ) start [2025-04-25 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987714', 'tblTempUsageDetail_20' ) end [2025-04-25 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 14:59:28] Production.INFO: ==6919== Releasing lock... [2025-04-25 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 14:59:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:00:05 [end_date_ymd] => 2025-04-25 15:00:05 [RateCDR] => 1 ) [2025-04-25 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:00:05' and `end` < '2025-04-25 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:00:19] Production.INFO: count ==6442 [2025-04-25 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:00:05 - End Time 2025-04-25 15:00:05 [2025-04-25 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987719', 'tblTempUsageDetail_20' ) start [2025-04-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987719', 'tblTempUsageDetail_20' ) end [2025-04-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987719', 'tblTempVendorCDR_20' ) start [2025-04-25 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987719', 'tblTempVendorCDR_20' ) end [2025-04-25 15:00:23] Production.INFO: ProcessCDR(1,14987719,1,1,2) [2025-04-25 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987719', 'tblTempUsageDetail_20' ) start [2025-04-25 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987719', 'tblTempUsageDetail_20' ) end [2025-04-25 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:00:28] Production.INFO: ==6999== Releasing lock... [2025-04-25 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:00:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:01:05 [end_date_ymd] => 2025-04-25 15:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:01:05' and `end` < '2025-04-25 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-04-25 15:01:19] Production.INFO: count ==6442 [2025-04-25 15:01:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:01:05 - End Time 2025-04-25 15:01:05 [2025-04-25 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987725', 'tblTempUsageDetail_20' ) start [2025-04-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987725', 'tblTempUsageDetail_20' ) end [2025-04-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987725', 'tblTempVendorCDR_20' ) start [2025-04-25 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987725', 'tblTempVendorCDR_20' ) end [2025-04-25 15:01:22] Production.INFO: ProcessCDR(1,14987725,1,1,2) [2025-04-25 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987725', 'tblTempUsageDetail_20' ) start [2025-04-25 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987725', 'tblTempUsageDetail_20' ) end [2025-04-25 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:01:27] Production.INFO: ==7180== Releasing lock... [2025-04-25 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:01:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:02:06 [end_date_ymd] => 2025-04-25 15:02:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:02:06' and `end` < '2025-04-25 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-04-25 15:02:20] Production.INFO: count ==6439 [2025-04-25 15:02:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:02:06 - End Time 2025-04-25 15:02:06 [2025-04-25 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987730', 'tblTempUsageDetail_20' ) start [2025-04-25 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987730', 'tblTempUsageDetail_20' ) end [2025-04-25 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987730', 'tblTempVendorCDR_20' ) start [2025-04-25 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987730', 'tblTempVendorCDR_20' ) end [2025-04-25 15:02:23] Production.INFO: ProcessCDR(1,14987730,1,1,2) [2025-04-25 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987730', 'tblTempUsageDetail_20' ) start [2025-04-25 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987730', 'tblTempUsageDetail_20' ) end [2025-04-25 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:02:28] Production.INFO: ==7258== Releasing lock... [2025-04-25 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:02:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:03:05 [end_date_ymd] => 2025-04-25 15:03:05 [RateCDR] => 1 ) [2025-04-25 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:03:05' and `end` < '2025-04-25 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:03:19] Production.INFO: count ==6445 [2025-04-25 15:03:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:03:05 - End Time 2025-04-25 15:03:05 [2025-04-25 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987735', 'tblTempUsageDetail_20' ) start [2025-04-25 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987735', 'tblTempUsageDetail_20' ) end [2025-04-25 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987735', 'tblTempVendorCDR_20' ) start [2025-04-25 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987735', 'tblTempVendorCDR_20' ) end [2025-04-25 15:03:23] Production.INFO: ProcessCDR(1,14987735,1,1,2) [2025-04-25 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987735', 'tblTempUsageDetail_20' ) start [2025-04-25 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987735', 'tblTempUsageDetail_20' ) end [2025-04-25 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:03:28] Production.INFO: ==7334== Releasing lock... [2025-04-25 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:03:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:04:05 [end_date_ymd] => 2025-04-25 15:04:05 [RateCDR] => 1 ) [2025-04-25 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:04:05' and `end` < '2025-04-25 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:04:19] Production.INFO: count ==6448 [2025-04-25 15:04:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:04:05 - End Time 2025-04-25 15:04:05 [2025-04-25 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987740', 'tblTempUsageDetail_20' ) start [2025-04-25 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987740', 'tblTempUsageDetail_20' ) end [2025-04-25 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987740', 'tblTempVendorCDR_20' ) start [2025-04-25 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987740', 'tblTempVendorCDR_20' ) end [2025-04-25 15:04:23] Production.INFO: ProcessCDR(1,14987740,1,1,2) [2025-04-25 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987740', 'tblTempUsageDetail_20' ) start [2025-04-25 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987740', 'tblTempUsageDetail_20' ) end [2025-04-25 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:04:28] Production.INFO: ==7413== Releasing lock... [2025-04-25 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:04:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:05:05 [end_date_ymd] => 2025-04-25 15:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:05:05' and `end` < '2025-04-25 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-04-25 15:05:19] Production.INFO: count ==6436 [2025-04-25 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:05:05 - End Time 2025-04-25 15:05:05 [2025-04-25 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987745', 'tblTempUsageDetail_20' ) start [2025-04-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987745', 'tblTempUsageDetail_20' ) end [2025-04-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987745', 'tblTempVendorCDR_20' ) start [2025-04-25 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987745', 'tblTempVendorCDR_20' ) end [2025-04-25 15:05:22] Production.INFO: ProcessCDR(1,14987745,1,1,2) [2025-04-25 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987745', 'tblTempUsageDetail_20' ) start [2025-04-25 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987745', 'tblTempUsageDetail_20' ) end [2025-04-25 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:05:27] Production.INFO: ==7573== Releasing lock... [2025-04-25 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:05:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:06:05 [end_date_ymd] => 2025-04-25 15:06:05 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:06:05' and `end` < '2025-04-25 15: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-04-25 15:06:20] Production.INFO: count ==6416 [2025-04-25 15:06:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:06:05 - End Time 2025-04-25 15:06:05 [2025-04-25 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987750', 'tblTempUsageDetail_20' ) start [2025-04-25 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987750', 'tblTempUsageDetail_20' ) end [2025-04-25 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987750', 'tblTempVendorCDR_20' ) start [2025-04-25 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987750', 'tblTempVendorCDR_20' ) end [2025-04-25 15:06:23] Production.INFO: ProcessCDR(1,14987750,1,1,2) [2025-04-25 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987750', 'tblTempUsageDetail_20' ) start [2025-04-25 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987750', 'tblTempUsageDetail_20' ) end [2025-04-25 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:06:28] Production.INFO: ==7657== Releasing lock... [2025-04-25 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:06:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:07:05 [end_date_ymd] => 2025-04-25 15:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:07:05' and `end` < '2025-04-25 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-04-25 15:07:19] Production.INFO: count ==6417 [2025-04-25 15:07:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:07:05 - End Time 2025-04-25 15:07:05 [2025-04-25 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987755', 'tblTempUsageDetail_20' ) start [2025-04-25 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987755', 'tblTempUsageDetail_20' ) end [2025-04-25 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987755', 'tblTempVendorCDR_20' ) start [2025-04-25 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987755', 'tblTempVendorCDR_20' ) end [2025-04-25 15:07:22] Production.INFO: ProcessCDR(1,14987755,1,1,2) [2025-04-25 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987755', 'tblTempUsageDetail_20' ) start [2025-04-25 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987755', 'tblTempUsageDetail_20' ) end [2025-04-25 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:07:27] Production.INFO: ==7735== Releasing lock... [2025-04-25 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:07:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:08:05 [end_date_ymd] => 2025-04-25 15:08:05 [RateCDR] => 1 ) [2025-04-25 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:08:05' and `end` < '2025-04-25 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:08:19] Production.INFO: count ==6408 [2025-04-25 15:08:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:08:05 - End Time 2025-04-25 15:08:05 [2025-04-25 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987760', 'tblTempUsageDetail_20' ) start [2025-04-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987760', 'tblTempUsageDetail_20' ) end [2025-04-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987760', 'tblTempVendorCDR_20' ) start [2025-04-25 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987760', 'tblTempVendorCDR_20' ) end [2025-04-25 15:08:22] Production.INFO: ProcessCDR(1,14987760,1,1,2) [2025-04-25 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987760', 'tblTempUsageDetail_20' ) start [2025-04-25 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987760', 'tblTempUsageDetail_20' ) end [2025-04-25 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:08:27] Production.INFO: ==7901== Releasing lock... [2025-04-25 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:08:27] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:09:05 [end_date_ymd] => 2025-04-25 15:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:09:05' and `end` < '2025-04-25 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-04-25 15:09:19] Production.INFO: count ==6417 [2025-04-25 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:09:05 - End Time 2025-04-25 15:09:05 [2025-04-25 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987765', 'tblTempUsageDetail_20' ) start [2025-04-25 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987765', 'tblTempUsageDetail_20' ) end [2025-04-25 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987765', 'tblTempVendorCDR_20' ) start [2025-04-25 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987765', 'tblTempVendorCDR_20' ) end [2025-04-25 15:09:23] Production.INFO: ProcessCDR(1,14987765,1,1,2) [2025-04-25 15:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987765', 'tblTempUsageDetail_20' ) start [2025-04-25 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987765', 'tblTempUsageDetail_20' ) end [2025-04-25 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:09:28] Production.INFO: ==8025== Releasing lock... [2025-04-25 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:09:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:10:06 [end_date_ymd] => 2025-04-25 15:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:10:06' and `end` < '2025-04-25 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-04-25 15:10:20] Production.INFO: count ==6416 [2025-04-25 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:10:06 - End Time 2025-04-25 15:10:06 [2025-04-25 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987771', 'tblTempUsageDetail_20' ) start [2025-04-25 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987771', 'tblTempUsageDetail_20' ) end [2025-04-25 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987771', 'tblTempVendorCDR_20' ) start [2025-04-25 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987771', 'tblTempVendorCDR_20' ) end [2025-04-25 15:10:23] Production.INFO: ProcessCDR(1,14987771,1,1,2) [2025-04-25 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987771', 'tblTempUsageDetail_20' ) start [2025-04-25 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987771', 'tblTempUsageDetail_20' ) end [2025-04-25 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:10:28] Production.INFO: ==8116== Releasing lock... [2025-04-25 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:10:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:11:06 [end_date_ymd] => 2025-04-25 15:11:06 [RateCDR] => 1 ) [2025-04-25 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:11:06' and `end` < '2025-04-25 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:11:20] Production.INFO: count ==6461 [2025-04-25 15:11:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:11:06 - End Time 2025-04-25 15:11:06 [2025-04-25 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987776', 'tblTempUsageDetail_20' ) start [2025-04-25 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987776', 'tblTempUsageDetail_20' ) end [2025-04-25 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987776', 'tblTempVendorCDR_20' ) start [2025-04-25 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987776', 'tblTempVendorCDR_20' ) end [2025-04-25 15:11:23] Production.INFO: ProcessCDR(1,14987776,1,1,2) [2025-04-25 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987776', 'tblTempUsageDetail_20' ) start [2025-04-25 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987776', 'tblTempUsageDetail_20' ) end [2025-04-25 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:11:28] Production.INFO: ==8208== Releasing lock... [2025-04-25 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:11:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:12:05 [end_date_ymd] => 2025-04-25 15:12:05 [RateCDR] => 1 ) [2025-04-25 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:12:05' and `end` < '2025-04-25 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:12:19] Production.INFO: count ==6494 [2025-04-25 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:12:05 - End Time 2025-04-25 15:12:05 [2025-04-25 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987781', 'tblTempUsageDetail_20' ) start [2025-04-25 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987781', 'tblTempUsageDetail_20' ) end [2025-04-25 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987781', 'tblTempVendorCDR_20' ) start [2025-04-25 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987781', 'tblTempVendorCDR_20' ) end [2025-04-25 15:12:22] Production.INFO: ProcessCDR(1,14987781,1,1,2) [2025-04-25 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987781', 'tblTempUsageDetail_20' ) start [2025-04-25 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987781', 'tblTempUsageDetail_20' ) end [2025-04-25 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:12:27] Production.INFO: ==8368== Releasing lock... [2025-04-25 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:12:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:13:05 [end_date_ymd] => 2025-04-25 15:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:13:05' and `end` < '2025-04-25 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-04-25 15:13:19] Production.INFO: count ==6494 [2025-04-25 15:13:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:13:05 - End Time 2025-04-25 15:13:05 [2025-04-25 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987786', 'tblTempUsageDetail_20' ) start [2025-04-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987786', 'tblTempUsageDetail_20' ) end [2025-04-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987786', 'tblTempVendorCDR_20' ) start [2025-04-25 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987786', 'tblTempVendorCDR_20' ) end [2025-04-25 15:13:22] Production.INFO: ProcessCDR(1,14987786,1,1,2) [2025-04-25 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987786', 'tblTempUsageDetail_20' ) start [2025-04-25 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987786', 'tblTempUsageDetail_20' ) end [2025-04-25 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:13:27] Production.INFO: ==8454== Releasing lock... [2025-04-25 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:13:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:14:05 [end_date_ymd] => 2025-04-25 15:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:14:05' and `end` < '2025-04-25 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-04-25 15:14:19] Production.INFO: count ==6484 [2025-04-25 15:14:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:14:05 - End Time 2025-04-25 15:14:05 [2025-04-25 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987791', 'tblTempUsageDetail_20' ) start [2025-04-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987791', 'tblTempUsageDetail_20' ) end [2025-04-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987791', 'tblTempVendorCDR_20' ) start [2025-04-25 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987791', 'tblTempVendorCDR_20' ) end [2025-04-25 15:14:22] Production.INFO: ProcessCDR(1,14987791,1,1,2) [2025-04-25 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987791', 'tblTempUsageDetail_20' ) start [2025-04-25 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987791', 'tblTempUsageDetail_20' ) end [2025-04-25 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:14:27] Production.INFO: ==8544== Releasing lock... [2025-04-25 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:14:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:15:05 [end_date_ymd] => 2025-04-25 15:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:15:05' and `end` < '2025-04-25 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-04-25 15:15:19] Production.INFO: count ==6468 [2025-04-25 15:15:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:15:05 - End Time 2025-04-25 15:15:05 [2025-04-25 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987796', 'tblTempUsageDetail_20' ) start [2025-04-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987796', 'tblTempUsageDetail_20' ) end [2025-04-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987796', 'tblTempVendorCDR_20' ) start [2025-04-25 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987796', 'tblTempVendorCDR_20' ) end [2025-04-25 15:15:22] Production.INFO: ProcessCDR(1,14987796,1,1,2) [2025-04-25 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987796', 'tblTempUsageDetail_20' ) start [2025-04-25 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987796', 'tblTempUsageDetail_20' ) end [2025-04-25 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:15:27] Production.INFO: ==8711== Releasing lock... [2025-04-25 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:15:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:16:05 [end_date_ymd] => 2025-04-25 15:16:05 [RateCDR] => 1 ) [2025-04-25 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:16:05' and `end` < '2025-04-25 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:16:19] Production.INFO: count ==6458 [2025-04-25 15:16:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:16:05 - End Time 2025-04-25 15:16:05 [2025-04-25 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987801', 'tblTempUsageDetail_20' ) start [2025-04-25 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987801', 'tblTempUsageDetail_20' ) end [2025-04-25 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987801', 'tblTempVendorCDR_20' ) start [2025-04-25 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987801', 'tblTempVendorCDR_20' ) end [2025-04-25 15:16:23] Production.INFO: ProcessCDR(1,14987801,1,1,2) [2025-04-25 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987801', 'tblTempUsageDetail_20' ) start [2025-04-25 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987801', 'tblTempUsageDetail_20' ) end [2025-04-25 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:16:28] Production.INFO: ==8799== Releasing lock... [2025-04-25 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:16:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:17:05 [end_date_ymd] => 2025-04-25 15:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:17:05' and `end` < '2025-04-25 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-04-25 15:17:19] Production.INFO: count ==6452 [2025-04-25 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:17:05 - End Time 2025-04-25 15:17:05 [2025-04-25 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987806', 'tblTempUsageDetail_20' ) start [2025-04-25 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987806', 'tblTempUsageDetail_20' ) end [2025-04-25 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987806', 'tblTempVendorCDR_20' ) start [2025-04-25 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987806', 'tblTempVendorCDR_20' ) end [2025-04-25 15:17:22] Production.INFO: ProcessCDR(1,14987806,1,1,2) [2025-04-25 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987806', 'tblTempUsageDetail_20' ) start [2025-04-25 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987806', 'tblTempUsageDetail_20' ) end [2025-04-25 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:17:27] Production.INFO: ==8898== Releasing lock... [2025-04-25 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:17:27] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:18:06 [end_date_ymd] => 2025-04-25 15:18:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:18:06' and `end` < '2025-04-25 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-04-25 15:18:20] Production.INFO: count ==6443 [2025-04-25 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:18:06 - End Time 2025-04-25 15:18:06 [2025-04-25 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987811', 'tblTempUsageDetail_20' ) start [2025-04-25 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987811', 'tblTempUsageDetail_20' ) end [2025-04-25 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987811', 'tblTempVendorCDR_20' ) start [2025-04-25 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987811', 'tblTempVendorCDR_20' ) end [2025-04-25 15:18:23] Production.INFO: ProcessCDR(1,14987811,1,1,2) [2025-04-25 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987811', 'tblTempUsageDetail_20' ) start [2025-04-25 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987811', 'tblTempUsageDetail_20' ) end [2025-04-25 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:18:28] Production.INFO: ==8982== Releasing lock... [2025-04-25 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:18:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:19:04 [end_date_ymd] => 2025-04-25 15:19:04 [RateCDR] => 1 ) [2025-04-25 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:19:04' and `end` < '2025-04-25 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:19:18] Production.INFO: count ==6430 [2025-04-25 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:19:04 - End Time 2025-04-25 15:19:04 [2025-04-25 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987816', 'tblTempUsageDetail_20' ) start [2025-04-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987816', 'tblTempUsageDetail_20' ) end [2025-04-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987816', 'tblTempVendorCDR_20' ) start [2025-04-25 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987816', 'tblTempVendorCDR_20' ) end [2025-04-25 15:19:22] Production.INFO: ProcessCDR(1,14987816,1,1,2) [2025-04-25 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987816', 'tblTempUsageDetail_20' ) start [2025-04-25 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987816', 'tblTempUsageDetail_20' ) end [2025-04-25 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:19:27] Production.INFO: ==9073== Releasing lock... [2025-04-25 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:19:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:20:06 [end_date_ymd] => 2025-04-25 15:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:20:06' and `end` < '2025-04-25 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-04-25 15:20:20] Production.INFO: count ==6430 [2025-04-25 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:20:06 - End Time 2025-04-25 15:20:06 [2025-04-25 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987822', 'tblTempUsageDetail_20' ) start [2025-04-25 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987822', 'tblTempUsageDetail_20' ) end [2025-04-25 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987822', 'tblTempVendorCDR_20' ) start [2025-04-25 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987822', 'tblTempVendorCDR_20' ) end [2025-04-25 15:20:23] Production.INFO: ProcessCDR(1,14987822,1,1,2) [2025-04-25 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987822', 'tblTempUsageDetail_20' ) start [2025-04-25 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987822', 'tblTempUsageDetail_20' ) end [2025-04-25 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:20:28] Production.INFO: ==9163== Releasing lock... [2025-04-25 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:20:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:21:04 [end_date_ymd] => 2025-04-25 15:21:04 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:21:04' and `end` < '2025-04-25 15: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-04-25 15:21:18] Production.INFO: count ==6402 [2025-04-25 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:21:04 - End Time 2025-04-25 15:21:04 [2025-04-25 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987827', 'tblTempUsageDetail_20' ) start [2025-04-25 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987827', 'tblTempUsageDetail_20' ) end [2025-04-25 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987827', 'tblTempVendorCDR_20' ) start [2025-04-25 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987827', 'tblTempVendorCDR_20' ) end [2025-04-25 15:21:21] Production.INFO: ProcessCDR(1,14987827,1,1,2) [2025-04-25 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987827', 'tblTempUsageDetail_20' ) start [2025-04-25 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987827', 'tblTempUsageDetail_20' ) end [2025-04-25 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:21:26] Production.INFO: ==9247== Releasing lock... [2025-04-25 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:21:26] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:22:05 [end_date_ymd] => 2025-04-25 15:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:22:05' and `end` < '2025-04-25 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-04-25 15:22:19] Production.INFO: count ==6408 [2025-04-25 15:22:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:22:05 - End Time 2025-04-25 15:22:05 [2025-04-25 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987832', 'tblTempUsageDetail_20' ) start [2025-04-25 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987832', 'tblTempUsageDetail_20' ) end [2025-04-25 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987832', 'tblTempVendorCDR_20' ) start [2025-04-25 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987832', 'tblTempVendorCDR_20' ) end [2025-04-25 15:22:23] Production.INFO: ProcessCDR(1,14987832,1,1,2) [2025-04-25 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987832', 'tblTempUsageDetail_20' ) start [2025-04-25 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987832', 'tblTempUsageDetail_20' ) end [2025-04-25 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:22:28] Production.INFO: ==9347== Releasing lock... [2025-04-25 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:22:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:23:05 [end_date_ymd] => 2025-04-25 15:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:23:05' and `end` < '2025-04-25 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-04-25 15:23:19] Production.INFO: count ==6399 [2025-04-25 15:23:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:23:05 - End Time 2025-04-25 15:23:05 [2025-04-25 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987837', 'tblTempUsageDetail_20' ) start [2025-04-25 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987837', 'tblTempUsageDetail_20' ) end [2025-04-25 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987837', 'tblTempVendorCDR_20' ) start [2025-04-25 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987837', 'tblTempVendorCDR_20' ) end [2025-04-25 15:23:23] Production.INFO: ProcessCDR(1,14987837,1,1,2) [2025-04-25 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987837', 'tblTempUsageDetail_20' ) start [2025-04-25 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987837', 'tblTempUsageDetail_20' ) end [2025-04-25 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:23:28] Production.INFO: ==9438== Releasing lock... [2025-04-25 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:23:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:24:05 [end_date_ymd] => 2025-04-25 15:24:05 [RateCDR] => 1 ) [2025-04-25 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:24:05' and `end` < '2025-04-25 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:24:19] Production.INFO: count ==6385 [2025-04-25 15:24:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:24:05 - End Time 2025-04-25 15:24:05 [2025-04-25 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987842', 'tblTempUsageDetail_20' ) start [2025-04-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987842', 'tblTempUsageDetail_20' ) end [2025-04-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987842', 'tblTempVendorCDR_20' ) start [2025-04-25 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987842', 'tblTempVendorCDR_20' ) end [2025-04-25 15:24:22] Production.INFO: ProcessCDR(1,14987842,1,1,2) [2025-04-25 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987842', 'tblTempUsageDetail_20' ) start [2025-04-25 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987842', 'tblTempUsageDetail_20' ) end [2025-04-25 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:24:27] Production.INFO: ==9525== Releasing lock... [2025-04-25 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:24:27] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:25:05 [end_date_ymd] => 2025-04-25 15:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:25:05' and `end` < '2025-04-25 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-04-25 15:25:19] Production.INFO: count ==6385 [2025-04-25 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:25:05 - End Time 2025-04-25 15:25:05 [2025-04-25 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987847', 'tblTempUsageDetail_20' ) start [2025-04-25 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987847', 'tblTempUsageDetail_20' ) end [2025-04-25 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987847', 'tblTempVendorCDR_20' ) start [2025-04-25 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987847', 'tblTempVendorCDR_20' ) end [2025-04-25 15:25:22] Production.INFO: ProcessCDR(1,14987847,1,1,2) [2025-04-25 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987847', 'tblTempUsageDetail_20' ) start [2025-04-25 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987847', 'tblTempUsageDetail_20' ) end [2025-04-25 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:25:27] Production.INFO: ==9653== Releasing lock... [2025-04-25 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:25:27] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:26:05 [end_date_ymd] => 2025-04-25 15:26:05 [RateCDR] => 1 ) [2025-04-25 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:26:05' and `end` < '2025-04-25 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:26:19] Production.INFO: count ==6386 [2025-04-25 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:26:05 - End Time 2025-04-25 15:26:05 [2025-04-25 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987852', 'tblTempUsageDetail_20' ) start [2025-04-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987852', 'tblTempUsageDetail_20' ) end [2025-04-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987852', 'tblTempVendorCDR_20' ) start [2025-04-25 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987852', 'tblTempVendorCDR_20' ) end [2025-04-25 15:26:22] Production.INFO: ProcessCDR(1,14987852,1,1,2) [2025-04-25 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987852', 'tblTempUsageDetail_20' ) start [2025-04-25 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987852', 'tblTempUsageDetail_20' ) end [2025-04-25 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:26:27] Production.INFO: ==9742== Releasing lock... [2025-04-25 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:26:27] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:27:05 [end_date_ymd] => 2025-04-25 15:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:27:05' and `end` < '2025-04-25 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-04-25 15:27:19] Production.INFO: count ==6380 [2025-04-25 15:27:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:27:05 - End Time 2025-04-25 15:27:05 [2025-04-25 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987857', 'tblTempUsageDetail_20' ) start [2025-04-25 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987857', 'tblTempUsageDetail_20' ) end [2025-04-25 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987857', 'tblTempVendorCDR_20' ) start [2025-04-25 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987857', 'tblTempVendorCDR_20' ) end [2025-04-25 15:27:22] Production.INFO: ProcessCDR(1,14987857,1,1,2) [2025-04-25 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987857', 'tblTempUsageDetail_20' ) start [2025-04-25 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987857', 'tblTempUsageDetail_20' ) end [2025-04-25 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:27:28] Production.INFO: ==9826== Releasing lock... [2025-04-25 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:27:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:28:05 [end_date_ymd] => 2025-04-25 15:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:28:05' and `end` < '2025-04-25 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-04-25 15:28:19] Production.INFO: count ==6375 [2025-04-25 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:28:05 - End Time 2025-04-25 15:28:05 [2025-04-25 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987862', 'tblTempUsageDetail_20' ) start [2025-04-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987862', 'tblTempUsageDetail_20' ) end [2025-04-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987862', 'tblTempVendorCDR_20' ) start [2025-04-25 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987862', 'tblTempVendorCDR_20' ) end [2025-04-25 15:28:22] Production.INFO: ProcessCDR(1,14987862,1,1,2) [2025-04-25 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987862', 'tblTempUsageDetail_20' ) start [2025-04-25 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987862', 'tblTempUsageDetail_20' ) end [2025-04-25 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:28:27] Production.INFO: ==9914== Releasing lock... [2025-04-25 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:28:27] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:29:05 [end_date_ymd] => 2025-04-25 15:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:29:05' and `end` < '2025-04-25 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-04-25 15:29:19] Production.INFO: count ==6329 [2025-04-25 15:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:29:05 - End Time 2025-04-25 15:29:05 [2025-04-25 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987867', 'tblTempUsageDetail_20' ) start [2025-04-25 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987867', 'tblTempUsageDetail_20' ) end [2025-04-25 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987867', 'tblTempVendorCDR_20' ) start [2025-04-25 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987867', 'tblTempVendorCDR_20' ) end [2025-04-25 15:29:23] Production.INFO: ProcessCDR(1,14987867,1,1,2) [2025-04-25 15:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987867', 'tblTempUsageDetail_20' ) start [2025-04-25 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987867', 'tblTempUsageDetail_20' ) end [2025-04-25 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:29:27] Production.INFO: ==9998== Releasing lock... [2025-04-25 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:29:27] Production.INFO: 75.5 MB #Memory Used# [2025-04-25 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:30:06 [end_date_ymd] => 2025-04-25 15:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:30:06' and `end` < '2025-04-25 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-04-25 15:30:20] Production.INFO: count ==6357 [2025-04-25 15:30:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:30:06 - End Time 2025-04-25 15:30:06 [2025-04-25 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987873', 'tblTempUsageDetail_20' ) start [2025-04-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987873', 'tblTempUsageDetail_20' ) end [2025-04-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987873', 'tblTempVendorCDR_20' ) start [2025-04-25 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987873', 'tblTempVendorCDR_20' ) end [2025-04-25 15:30:23] Production.INFO: ProcessCDR(1,14987873,1,1,2) [2025-04-25 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987873', 'tblTempUsageDetail_20' ) start [2025-04-25 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987873', 'tblTempUsageDetail_20' ) end [2025-04-25 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:30:28] Production.INFO: ==10088== Releasing lock... [2025-04-25 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:30:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:31:05 [end_date_ymd] => 2025-04-25 15:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:31:05' and `end` < '2025-04-25 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-04-25 15:31:19] Production.INFO: count ==6373 [2025-04-25 15:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:31:05 - End Time 2025-04-25 15:31:05 [2025-04-25 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987878', 'tblTempUsageDetail_20' ) start [2025-04-25 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987878', 'tblTempUsageDetail_20' ) end [2025-04-25 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987878', 'tblTempVendorCDR_20' ) start [2025-04-25 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987878', 'tblTempVendorCDR_20' ) end [2025-04-25 15:31:22] Production.INFO: ProcessCDR(1,14987878,1,1,2) [2025-04-25 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987878', 'tblTempUsageDetail_20' ) start [2025-04-25 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987878', 'tblTempUsageDetail_20' ) end [2025-04-25 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:31:28] Production.INFO: ==10179== Releasing lock... [2025-04-25 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:31:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:32:06 [end_date_ymd] => 2025-04-25 15:32:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:32:06' and `end` < '2025-04-25 15: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-04-25 15:32:20] Production.INFO: count ==6386 [2025-04-25 15:32:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:32:06 - End Time 2025-04-25 15:32:06 [2025-04-25 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987883', 'tblTempUsageDetail_20' ) start [2025-04-25 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987883', 'tblTempUsageDetail_20' ) end [2025-04-25 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987883', 'tblTempVendorCDR_20' ) start [2025-04-25 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987883', 'tblTempVendorCDR_20' ) end [2025-04-25 15:32:23] Production.INFO: ProcessCDR(1,14987883,1,1,2) [2025-04-25 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987883', 'tblTempUsageDetail_20' ) start [2025-04-25 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987883', 'tblTempUsageDetail_20' ) end [2025-04-25 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:32:28] Production.INFO: ==10265== Releasing lock... [2025-04-25 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:32:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:33:05 [end_date_ymd] => 2025-04-25 15:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:33:05' and `end` < '2025-04-25 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-04-25 15:33:19] Production.INFO: count ==6386 [2025-04-25 15:33:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:33:05 - End Time 2025-04-25 15:33:05 [2025-04-25 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987888', 'tblTempUsageDetail_20' ) start [2025-04-25 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987888', 'tblTempUsageDetail_20' ) end [2025-04-25 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987888', 'tblTempVendorCDR_20' ) start [2025-04-25 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987888', 'tblTempVendorCDR_20' ) end [2025-04-25 15:33:22] Production.INFO: ProcessCDR(1,14987888,1,1,2) [2025-04-25 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987888', 'tblTempUsageDetail_20' ) start [2025-04-25 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987888', 'tblTempUsageDetail_20' ) end [2025-04-25 15:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:33:28] Production.INFO: ==10355== Releasing lock... [2025-04-25 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:33:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:34:05 [end_date_ymd] => 2025-04-25 15:34:05 [RateCDR] => 1 ) [2025-04-25 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:34:05' and `end` < '2025-04-25 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:34:19] Production.INFO: count ==6384 [2025-04-25 15:34:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:34:05 - End Time 2025-04-25 15:34:05 [2025-04-25 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987893', 'tblTempUsageDetail_20' ) start [2025-04-25 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987893', 'tblTempUsageDetail_20' ) end [2025-04-25 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987893', 'tblTempVendorCDR_20' ) start [2025-04-25 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987893', 'tblTempVendorCDR_20' ) end [2025-04-25 15:34:22] Production.INFO: ProcessCDR(1,14987893,1,1,2) [2025-04-25 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987893', 'tblTempUsageDetail_20' ) start [2025-04-25 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987893', 'tblTempUsageDetail_20' ) end [2025-04-25 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:34:27] Production.INFO: ==10442== Releasing lock... [2025-04-25 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:34:27] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:35:05 [end_date_ymd] => 2025-04-25 15:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:35:05' and `end` < '2025-04-25 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-04-25 15:35:19] Production.INFO: count ==6389 [2025-04-25 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 12:35:05 - End Time 2025-04-25 15:35:05 [2025-04-25 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987898', 'tblTempUsageDetail_20' ) start [2025-04-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987898', 'tblTempUsageDetail_20' ) end [2025-04-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987898', 'tblTempVendorCDR_20' ) start [2025-04-25 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987898', 'tblTempVendorCDR_20' ) end [2025-04-25 15:35:22] Production.INFO: ProcessCDR(1,14987898,1,1,2) [2025-04-25 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987898', 'tblTempUsageDetail_20' ) start [2025-04-25 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987898', 'tblTempUsageDetail_20' ) end [2025-04-25 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:35:28] Production.INFO: ==10539== Releasing lock... [2025-04-25 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:35:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:36:05 [end_date_ymd] => 2025-04-25 15:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:36:05' and `end` < '2025-04-25 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-04-25 15:36:19] Production.INFO: count ==6383 [2025-04-25 15:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:36:05 - End Time 2025-04-25 15:36:05 [2025-04-25 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987903', 'tblTempUsageDetail_20' ) start [2025-04-25 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987903', 'tblTempUsageDetail_20' ) end [2025-04-25 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987903', 'tblTempVendorCDR_20' ) start [2025-04-25 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987903', 'tblTempVendorCDR_20' ) end [2025-04-25 15:36:23] Production.INFO: ProcessCDR(1,14987903,1,1,2) [2025-04-25 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987903', 'tblTempUsageDetail_20' ) start [2025-04-25 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987903', 'tblTempUsageDetail_20' ) end [2025-04-25 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:36:28] Production.INFO: ==10633== Releasing lock... [2025-04-25 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:36:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:37:05 [end_date_ymd] => 2025-04-25 15:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:37:05' and `end` < '2025-04-25 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-04-25 15:37:20] Production.INFO: count ==6392 [2025-04-25 15:37:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:37:05 - End Time 2025-04-25 15:37:05 [2025-04-25 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987908', 'tblTempUsageDetail_20' ) start [2025-04-25 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987908', 'tblTempUsageDetail_20' ) end [2025-04-25 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987908', 'tblTempVendorCDR_20' ) start [2025-04-25 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987908', 'tblTempVendorCDR_20' ) end [2025-04-25 15:37:23] Production.INFO: ProcessCDR(1,14987908,1,1,2) [2025-04-25 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987908', 'tblTempUsageDetail_20' ) start [2025-04-25 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987908', 'tblTempUsageDetail_20' ) end [2025-04-25 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:37:28] Production.INFO: ==10705== Releasing lock... [2025-04-25 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:37:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:38:05 [end_date_ymd] => 2025-04-25 15:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:38:05' and `end` < '2025-04-25 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-04-25 15:38:20] Production.INFO: count ==6393 [2025-04-25 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:38:05 - End Time 2025-04-25 15:38:05 [2025-04-25 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987913', 'tblTempUsageDetail_20' ) start [2025-04-25 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987913', 'tblTempUsageDetail_20' ) end [2025-04-25 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987913', 'tblTempVendorCDR_20' ) start [2025-04-25 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987913', 'tblTempVendorCDR_20' ) end [2025-04-25 15:38:23] Production.INFO: ProcessCDR(1,14987913,1,1,2) [2025-04-25 15:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987913', 'tblTempUsageDetail_20' ) start [2025-04-25 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987913', 'tblTempUsageDetail_20' ) end [2025-04-25 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:38:28] Production.INFO: ==10787== Releasing lock... [2025-04-25 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:38:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:39:05 [end_date_ymd] => 2025-04-25 15:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:39:05' and `end` < '2025-04-25 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-04-25 15:39:20] Production.INFO: count ==6380 [2025-04-25 15:39:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:39:05 - End Time 2025-04-25 15:39:05 [2025-04-25 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987918', 'tblTempUsageDetail_20' ) start [2025-04-25 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987918', 'tblTempUsageDetail_20' ) end [2025-04-25 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987918', 'tblTempVendorCDR_20' ) start [2025-04-25 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987918', 'tblTempVendorCDR_20' ) end [2025-04-25 15:39:23] Production.INFO: ProcessCDR(1,14987918,1,1,2) [2025-04-25 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987918', 'tblTempUsageDetail_20' ) start [2025-04-25 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987918', 'tblTempUsageDetail_20' ) end [2025-04-25 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:39:28] Production.INFO: ==10859== Releasing lock... [2025-04-25 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:39:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:40:06 [end_date_ymd] => 2025-04-25 15:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:40:06' and `end` < '2025-04-25 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-04-25 15:40:20] Production.INFO: count ==6404 [2025-04-25 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:40:06 - End Time 2025-04-25 15:40:06 [2025-04-25 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987924', 'tblTempUsageDetail_20' ) start [2025-04-25 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987924', 'tblTempUsageDetail_20' ) end [2025-04-25 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987924', 'tblTempVendorCDR_20' ) start [2025-04-25 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987924', 'tblTempVendorCDR_20' ) end [2025-04-25 15:40:23] Production.INFO: ProcessCDR(1,14987924,1,1,2) [2025-04-25 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987924', 'tblTempUsageDetail_20' ) start [2025-04-25 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987924', 'tblTempUsageDetail_20' ) end [2025-04-25 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:40:28] Production.INFO: ==10971== Releasing lock... [2025-04-25 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:40:28] Production.INFO: 76 MB #Memory Used# [2025-04-25 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:41:05 [end_date_ymd] => 2025-04-25 15:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:41:05' and `end` < '2025-04-25 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-04-25 15:41:20] Production.INFO: count ==6422 [2025-04-25 15:41:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:41:05 - End Time 2025-04-25 15:41:05 [2025-04-25 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987929', 'tblTempUsageDetail_20' ) start [2025-04-25 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987929', 'tblTempUsageDetail_20' ) end [2025-04-25 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987929', 'tblTempVendorCDR_20' ) start [2025-04-25 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987929', 'tblTempVendorCDR_20' ) end [2025-04-25 15:41:23] Production.INFO: ProcessCDR(1,14987929,1,1,2) [2025-04-25 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987929', 'tblTempUsageDetail_20' ) start [2025-04-25 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987929', 'tblTempUsageDetail_20' ) end [2025-04-25 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:41:28] Production.INFO: ==11049== Releasing lock... [2025-04-25 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:41:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:42:06 [end_date_ymd] => 2025-04-25 15:42:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:42:06' and `end` < '2025-04-25 15: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-04-25 15:42:20] Production.INFO: count ==6444 [2025-04-25 15:42:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:42:06 - End Time 2025-04-25 15:42:06 [2025-04-25 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987934', 'tblTempUsageDetail_20' ) start [2025-04-25 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987934', 'tblTempUsageDetail_20' ) end [2025-04-25 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987934', 'tblTempVendorCDR_20' ) start [2025-04-25 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987934', 'tblTempVendorCDR_20' ) end [2025-04-25 15:42:23] Production.INFO: ProcessCDR(1,14987934,1,1,2) [2025-04-25 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987934', 'tblTempUsageDetail_20' ) start [2025-04-25 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987934', 'tblTempUsageDetail_20' ) end [2025-04-25 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:42:28] Production.INFO: ==11123== Releasing lock... [2025-04-25 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:42:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:43:05 [end_date_ymd] => 2025-04-25 15:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:43:05' and `end` < '2025-04-25 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-04-25 15:43:20] Production.INFO: count ==6440 [2025-04-25 15:43:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:43:05 - End Time 2025-04-25 15:43:05 [2025-04-25 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987939', 'tblTempUsageDetail_20' ) start [2025-04-25 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987939', 'tblTempUsageDetail_20' ) end [2025-04-25 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987939', 'tblTempVendorCDR_20' ) start [2025-04-25 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987939', 'tblTempVendorCDR_20' ) end [2025-04-25 15:43:23] Production.INFO: ProcessCDR(1,14987939,1,1,2) [2025-04-25 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987939', 'tblTempUsageDetail_20' ) start [2025-04-25 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987939', 'tblTempUsageDetail_20' ) end [2025-04-25 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:43:28] Production.INFO: ==11194== Releasing lock... [2025-04-25 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:43:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:44:05 [end_date_ymd] => 2025-04-25 15:44:05 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:44:05' and `end` < '2025-04-25 15: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-04-25 15:44:20] Production.INFO: count ==6439 [2025-04-25 15:44:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:44:05 - End Time 2025-04-25 15:44:05 [2025-04-25 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987944', 'tblTempUsageDetail_20' ) start [2025-04-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987944', 'tblTempUsageDetail_20' ) end [2025-04-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987944', 'tblTempVendorCDR_20' ) start [2025-04-25 15:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987944', 'tblTempVendorCDR_20' ) end [2025-04-25 15:44:23] Production.INFO: ProcessCDR(1,14987944,1,1,2) [2025-04-25 15:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987944', 'tblTempUsageDetail_20' ) start [2025-04-25 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987944', 'tblTempUsageDetail_20' ) end [2025-04-25 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:44:28] Production.INFO: ==11269== Releasing lock... [2025-04-25 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:44:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:45:05 [end_date_ymd] => 2025-04-25 15:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:45:05' and `end` < '2025-04-25 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-04-25 15:45:19] Production.INFO: count ==6431 [2025-04-25 15:45:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:45:05 - End Time 2025-04-25 15:45:05 [2025-04-25 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987949', 'tblTempUsageDetail_20' ) start [2025-04-25 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987949', 'tblTempUsageDetail_20' ) end [2025-04-25 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987949', 'tblTempVendorCDR_20' ) start [2025-04-25 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987949', 'tblTempVendorCDR_20' ) end [2025-04-25 15:45:22] Production.INFO: ProcessCDR(1,14987949,1,1,2) [2025-04-25 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987949', 'tblTempUsageDetail_20' ) start [2025-04-25 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987949', 'tblTempUsageDetail_20' ) end [2025-04-25 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:45:28] Production.INFO: ==11338== Releasing lock... [2025-04-25 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:45:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:46:05 [end_date_ymd] => 2025-04-25 15:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:46:05' and `end` < '2025-04-25 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-04-25 15:46:19] Production.INFO: count ==6441 [2025-04-25 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:46:05 - End Time 2025-04-25 15:46:05 [2025-04-25 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987954', 'tblTempUsageDetail_20' ) start [2025-04-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987954', 'tblTempUsageDetail_20' ) end [2025-04-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987954', 'tblTempVendorCDR_20' ) start [2025-04-25 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987954', 'tblTempVendorCDR_20' ) end [2025-04-25 15:46:22] Production.INFO: ProcessCDR(1,14987954,1,1,2) [2025-04-25 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987954', 'tblTempUsageDetail_20' ) start [2025-04-25 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987954', 'tblTempUsageDetail_20' ) end [2025-04-25 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:46:27] Production.INFO: ==11413== Releasing lock... [2025-04-25 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:46:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:47:05 [end_date_ymd] => 2025-04-25 15:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:47:05' and `end` < '2025-04-25 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-04-25 15:47:20] Production.INFO: count ==6452 [2025-04-25 15:47:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:47:05 - End Time 2025-04-25 15:47:05 [2025-04-25 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987959', 'tblTempUsageDetail_20' ) start [2025-04-25 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987959', 'tblTempUsageDetail_20' ) end [2025-04-25 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987959', 'tblTempVendorCDR_20' ) start [2025-04-25 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987959', 'tblTempVendorCDR_20' ) end [2025-04-25 15:47:23] Production.INFO: ProcessCDR(1,14987959,1,1,2) [2025-04-25 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987959', 'tblTempUsageDetail_20' ) start [2025-04-25 15:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987959', 'tblTempUsageDetail_20' ) end [2025-04-25 15:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:47:28] Production.INFO: ==11486== Releasing lock... [2025-04-25 15:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:47:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:48:05 [end_date_ymd] => 2025-04-25 15:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:48:05' and `end` < '2025-04-25 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-04-25 15:48:19] Production.INFO: count ==6461 [2025-04-25 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:48:05 - End Time 2025-04-25 15:48:05 [2025-04-25 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987964', 'tblTempUsageDetail_20' ) start [2025-04-25 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987964', 'tblTempUsageDetail_20' ) end [2025-04-25 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987964', 'tblTempVendorCDR_20' ) start [2025-04-25 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987964', 'tblTempVendorCDR_20' ) end [2025-04-25 15:48:23] Production.INFO: ProcessCDR(1,14987964,1,1,2) [2025-04-25 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987964', 'tblTempUsageDetail_20' ) start [2025-04-25 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987964', 'tblTempUsageDetail_20' ) end [2025-04-25 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:48:28] Production.INFO: ==11557== Releasing lock... [2025-04-25 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:48:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:49:06 [end_date_ymd] => 2025-04-25 15:49:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:49:06' and `end` < '2025-04-25 15: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-04-25 15:49:20] Production.INFO: count ==6488 [2025-04-25 15:49:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:49:06 - End Time 2025-04-25 15:49:06 [2025-04-25 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987969', 'tblTempUsageDetail_20' ) start [2025-04-25 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987969', 'tblTempUsageDetail_20' ) end [2025-04-25 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987969', 'tblTempVendorCDR_20' ) start [2025-04-25 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987969', 'tblTempVendorCDR_20' ) end [2025-04-25 15:49:23] Production.INFO: ProcessCDR(1,14987969,1,1,2) [2025-04-25 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987969', 'tblTempUsageDetail_20' ) start [2025-04-25 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987969', 'tblTempUsageDetail_20' ) end [2025-04-25 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:49:28] Production.INFO: ==11638== Releasing lock... [2025-04-25 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:49:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:50:05 [end_date_ymd] => 2025-04-25 15:50:05 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:50:05' and `end` < '2025-04-25 15: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-04-25 15:50:19] Production.INFO: count ==6491 [2025-04-25 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:50:05 - End Time 2025-04-25 15:50:05 [2025-04-25 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987974', 'tblTempUsageDetail_20' ) start [2025-04-25 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987974', 'tblTempUsageDetail_20' ) end [2025-04-25 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987974', 'tblTempVendorCDR_20' ) start [2025-04-25 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987974', 'tblTempVendorCDR_20' ) end [2025-04-25 15:50:22] Production.INFO: ProcessCDR(1,14987974,1,1,2) [2025-04-25 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987974', 'tblTempUsageDetail_20' ) start [2025-04-25 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987974', 'tblTempUsageDetail_20' ) end [2025-04-25 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:50:27] Production.INFO: ==11710== Releasing lock... [2025-04-25 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:50:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:51:05 [end_date_ymd] => 2025-04-25 15:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:51:05' and `end` < '2025-04-25 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-04-25 15:51:19] Production.INFO: count ==6522 [2025-04-25 15:51:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:51:05 - End Time 2025-04-25 15:51:05 [2025-04-25 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987980', 'tblTempUsageDetail_20' ) start [2025-04-25 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987980', 'tblTempUsageDetail_20' ) end [2025-04-25 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987980', 'tblTempVendorCDR_20' ) start [2025-04-25 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987980', 'tblTempVendorCDR_20' ) end [2025-04-25 15:51:23] Production.INFO: ProcessCDR(1,14987980,1,1,2) [2025-04-25 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987980', 'tblTempUsageDetail_20' ) start [2025-04-25 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987980', 'tblTempUsageDetail_20' ) end [2025-04-25 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:51:27] Production.INFO: ==11785== Releasing lock... [2025-04-25 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:51:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:52:05 [end_date_ymd] => 2025-04-25 15:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:52:05' and `end` < '2025-04-25 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-04-25 15:52:19] Production.INFO: count ==6520 [2025-04-25 15:52:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:52:05 - End Time 2025-04-25 15:52:05 [2025-04-25 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987985', 'tblTempUsageDetail_20' ) start [2025-04-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987985', 'tblTempUsageDetail_20' ) end [2025-04-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987985', 'tblTempVendorCDR_20' ) start [2025-04-25 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987985', 'tblTempVendorCDR_20' ) end [2025-04-25 15:52:22] Production.INFO: ProcessCDR(1,14987985,1,1,2) [2025-04-25 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987985', 'tblTempUsageDetail_20' ) start [2025-04-25 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987985', 'tblTempUsageDetail_20' ) end [2025-04-25 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:52:26] Production.INFO: ==11866== Releasing lock... [2025-04-25 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:52:26] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:53:06 [end_date_ymd] => 2025-04-25 15:53:06 [RateCDR] => 1 ) [2025-04-25 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 12:53:06' and `end` < '2025-04-25 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 15:53:20] Production.INFO: count ==6527 [2025-04-25 15:53:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:53:06 - End Time 2025-04-25 15:53:06 [2025-04-25 15:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987990', 'tblTempUsageDetail_20' ) start [2025-04-25 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987990', 'tblTempUsageDetail_20' ) end [2025-04-25 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987990', 'tblTempVendorCDR_20' ) start [2025-04-25 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987990', 'tblTempVendorCDR_20' ) end [2025-04-25 15:53:23] Production.INFO: ProcessCDR(1,14987990,1,1,2) [2025-04-25 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987990', 'tblTempUsageDetail_20' ) start [2025-04-25 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987990', 'tblTempUsageDetail_20' ) end [2025-04-25 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:53:28] Production.INFO: ==11942== Releasing lock... [2025-04-25 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:53:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:54:06 [end_date_ymd] => 2025-04-25 15:54:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:54:06' and `end` < '2025-04-25 15: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-04-25 15:54:21] Production.INFO: count ==6533 [2025-04-25 15:54:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:54:06 - End Time 2025-04-25 15:54:06 [2025-04-25 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987995', 'tblTempUsageDetail_20' ) start [2025-04-25 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14987995', 'tblTempUsageDetail_20' ) end [2025-04-25 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987995', 'tblTempVendorCDR_20' ) start [2025-04-25 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14987995', 'tblTempVendorCDR_20' ) end [2025-04-25 15:54:24] Production.INFO: ProcessCDR(1,14987995,1,1,2) [2025-04-25 15:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14987995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14987995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14987995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14987995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987995', 'tblTempUsageDetail_20' ) start [2025-04-25 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14987995', 'tblTempUsageDetail_20' ) end [2025-04-25 15:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:54:29] Production.INFO: ==12027== Releasing lock... [2025-04-25 15:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:54:29] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:55:05 [end_date_ymd] => 2025-04-25 15:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:55:05' and `end` < '2025-04-25 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-04-25 15:55:19] Production.INFO: count ==6525 [2025-04-25 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:55:05 - End Time 2025-04-25 15:55:05 [2025-04-25 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988000', 'tblTempUsageDetail_20' ) start [2025-04-25 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988000', 'tblTempUsageDetail_20' ) end [2025-04-25 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988000', 'tblTempVendorCDR_20' ) start [2025-04-25 15:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988000', 'tblTempVendorCDR_20' ) end [2025-04-25 15:55:23] Production.INFO: ProcessCDR(1,14988000,1,1,2) [2025-04-25 15:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988000', 'tblTempUsageDetail_20' ) start [2025-04-25 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988000', 'tblTempUsageDetail_20' ) end [2025-04-25 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:55:28] Production.INFO: ==12249== Releasing lock... [2025-04-25 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:55:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:56:06 [end_date_ymd] => 2025-04-25 15:56:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:56:06' and `end` < '2025-04-25 15: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-04-25 15:56:20] Production.INFO: count ==6518 [2025-04-25 15:56:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:56:06 - End Time 2025-04-25 15:56:06 [2025-04-25 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988005', 'tblTempUsageDetail_20' ) start [2025-04-25 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988005', 'tblTempUsageDetail_20' ) end [2025-04-25 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988005', 'tblTempVendorCDR_20' ) start [2025-04-25 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988005', 'tblTempVendorCDR_20' ) end [2025-04-25 15:56:23] Production.INFO: ProcessCDR(1,14988005,1,1,2) [2025-04-25 15:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988005', 'tblTempUsageDetail_20' ) start [2025-04-25 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988005', 'tblTempUsageDetail_20' ) end [2025-04-25 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:56:28] Production.INFO: ==12359== Releasing lock... [2025-04-25 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:56:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:57:05 [end_date_ymd] => 2025-04-25 15:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:57:05' and `end` < '2025-04-25 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-04-25 15:57:19] Production.INFO: count ==6520 [2025-04-25 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:57:05 - End Time 2025-04-25 15:57:05 [2025-04-25 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988010', 'tblTempUsageDetail_20' ) start [2025-04-25 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988010', 'tblTempUsageDetail_20' ) end [2025-04-25 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988010', 'tblTempVendorCDR_20' ) start [2025-04-25 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988010', 'tblTempVendorCDR_20' ) end [2025-04-25 15:57:23] Production.INFO: ProcessCDR(1,14988010,1,1,2) [2025-04-25 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988010', 'tblTempUsageDetail_20' ) start [2025-04-25 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988010', 'tblTempUsageDetail_20' ) end [2025-04-25 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:57:28] Production.INFO: ==12438== Releasing lock... [2025-04-25 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:57:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:58:05 [end_date_ymd] => 2025-04-25 15:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 12:58:05' and `end` < '2025-04-25 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-04-25 15:58:19] Production.INFO: count ==6502 [2025-04-25 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-25 12:58:05 - End Time 2025-04-25 15:58:05 [2025-04-25 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988014', 'tblTempUsageDetail_20' ) start [2025-04-25 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988014', 'tblTempUsageDetail_20' ) end [2025-04-25 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988014', 'tblTempVendorCDR_20' ) start [2025-04-25 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988014', 'tblTempVendorCDR_20' ) end [2025-04-25 15:58:23] Production.INFO: ProcessCDR(1,14988014,1,1,2) [2025-04-25 15:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988014', 'tblTempUsageDetail_20' ) start [2025-04-25 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988014', 'tblTempUsageDetail_20' ) end [2025-04-25 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:58:28] Production.INFO: ==12511== Releasing lock... [2025-04-25 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:58:28] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 12:59:06 [end_date_ymd] => 2025-04-25 15:59:06 [RateCDR] => 1 ) [2025-04-25 15: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-04-25 12:59:06' and `end` < '2025-04-25 15: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-04-25 15:59:20] Production.INFO: count ==6512 [2025-04-25 15:59:23] Production.ERROR: pbx CDR StartTime 2025-04-25 12:59:06 - End Time 2025-04-25 15:59:06 [2025-04-25 15:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988020', 'tblTempUsageDetail_20' ) start [2025-04-25 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988020', 'tblTempUsageDetail_20' ) end [2025-04-25 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988020', 'tblTempVendorCDR_20' ) start [2025-04-25 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988020', 'tblTempVendorCDR_20' ) end [2025-04-25 15:59:24] Production.INFO: ProcessCDR(1,14988020,1,1,2) [2025-04-25 15:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 15:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988020', 'tblTempUsageDetail_20' ) start [2025-04-25 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988020', 'tblTempUsageDetail_20' ) end [2025-04-25 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 15:59:28] Production.INFO: ==12584== Releasing lock... [2025-04-25 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 15:59:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:00:06 [end_date_ymd] => 2025-04-25 16:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:00:06' and `end` < '2025-04-25 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-04-25 16:00:20] Production.INFO: count ==6528 [2025-04-25 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:00:06 - End Time 2025-04-25 16:00:06 [2025-04-25 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988026', 'tblTempUsageDetail_20' ) start [2025-04-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988026', 'tblTempUsageDetail_20' ) end [2025-04-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988026', 'tblTempVendorCDR_20' ) start [2025-04-25 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988026', 'tblTempVendorCDR_20' ) end [2025-04-25 16:00:24] Production.INFO: ProcessCDR(1,14988026,1,1,2) [2025-04-25 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988026', 'tblTempUsageDetail_20' ) start [2025-04-25 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988026', 'tblTempUsageDetail_20' ) end [2025-04-25 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:00:29] Production.INFO: ==12654== Releasing lock... [2025-04-25 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:00:29] Production.INFO: 77 MB #Memory Used# [2025-04-25 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:01:05 [end_date_ymd] => 2025-04-25 16:01:05 [RateCDR] => 1 ) [2025-04-25 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:01:05' and `end` < '2025-04-25 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:01:20] Production.INFO: count ==6539 [2025-04-25 16:01:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:01:05 - End Time 2025-04-25 16:01:05 [2025-04-25 16:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988031', 'tblTempUsageDetail_20' ) start [2025-04-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988031', 'tblTempUsageDetail_20' ) end [2025-04-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988031', 'tblTempVendorCDR_20' ) start [2025-04-25 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988031', 'tblTempVendorCDR_20' ) end [2025-04-25 16:01:23] Production.INFO: ProcessCDR(1,14988031,1,1,2) [2025-04-25 16:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988031', 'tblTempUsageDetail_20' ) start [2025-04-25 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988031', 'tblTempUsageDetail_20' ) end [2025-04-25 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:01:28] Production.INFO: ==12743== Releasing lock... [2025-04-25 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:01:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:02:05 [end_date_ymd] => 2025-04-25 16:02:05 [RateCDR] => 1 ) [2025-04-25 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:02:05' and `end` < '2025-04-25 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:02:19] Production.INFO: count ==6552 [2025-04-25 16:02:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:02:05 - End Time 2025-04-25 16:02:05 [2025-04-25 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988036', 'tblTempUsageDetail_20' ) start [2025-04-25 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988036', 'tblTempUsageDetail_20' ) end [2025-04-25 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988036', 'tblTempVendorCDR_20' ) start [2025-04-25 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988036', 'tblTempVendorCDR_20' ) end [2025-04-25 16:02:23] Production.INFO: ProcessCDR(1,14988036,1,1,2) [2025-04-25 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988036', 'tblTempUsageDetail_20' ) start [2025-04-25 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988036', 'tblTempUsageDetail_20' ) end [2025-04-25 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:02:28] Production.INFO: ==12811== Releasing lock... [2025-04-25 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:02:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:03:06 [end_date_ymd] => 2025-04-25 16:03:06 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:03:06' and `end` < '2025-04-25 16: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-04-25 16:03:20] Production.INFO: count ==6554 [2025-04-25 16:03:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:03:06 - End Time 2025-04-25 16:03:06 [2025-04-25 16:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988041', 'tblTempUsageDetail_20' ) start [2025-04-25 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988041', 'tblTempUsageDetail_20' ) end [2025-04-25 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988041', 'tblTempVendorCDR_20' ) start [2025-04-25 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988041', 'tblTempVendorCDR_20' ) end [2025-04-25 16:03:24] Production.INFO: ProcessCDR(1,14988041,1,1,2) [2025-04-25 16:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988041', 'tblTempUsageDetail_20' ) start [2025-04-25 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988041', 'tblTempUsageDetail_20' ) end [2025-04-25 16:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:03:30] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:03:30] Production.INFO: ==12888== Releasing lock... [2025-04-25 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:03:30] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:04:05 [end_date_ymd] => 2025-04-25 16:04:05 [RateCDR] => 1 ) [2025-04-25 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:04:05' and `end` < '2025-04-25 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:04:19] Production.INFO: count ==6551 [2025-04-25 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:04:05 - End Time 2025-04-25 16:04:05 [2025-04-25 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988046', 'tblTempUsageDetail_20' ) start [2025-04-25 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988046', 'tblTempUsageDetail_20' ) end [2025-04-25 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988046', 'tblTempVendorCDR_20' ) start [2025-04-25 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988046', 'tblTempVendorCDR_20' ) end [2025-04-25 16:04:23] Production.INFO: ProcessCDR(1,14988046,1,1,2) [2025-04-25 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988046', 'tblTempUsageDetail_20' ) start [2025-04-25 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988046', 'tblTempUsageDetail_20' ) end [2025-04-25 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:04:28] Production.INFO: ==12962== Releasing lock... [2025-04-25 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:04:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:05:05 [end_date_ymd] => 2025-04-25 16:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:05:05' and `end` < '2025-04-25 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-04-25 16:05:20] Production.INFO: count ==6561 [2025-04-25 16:05:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:05:05 - End Time 2025-04-25 16:05:05 [2025-04-25 16:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988051', 'tblTempUsageDetail_20' ) start [2025-04-25 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988051', 'tblTempUsageDetail_20' ) end [2025-04-25 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988051', 'tblTempVendorCDR_20' ) start [2025-04-25 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988051', 'tblTempVendorCDR_20' ) end [2025-04-25 16:05:24] Production.INFO: ProcessCDR(1,14988051,1,1,2) [2025-04-25 16:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988051', 'tblTempUsageDetail_20' ) start [2025-04-25 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988051', 'tblTempUsageDetail_20' ) end [2025-04-25 16:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:05:29] Production.INFO: ==13038== Releasing lock... [2025-04-25 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:05:29] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:06:05 [end_date_ymd] => 2025-04-25 16:06:05 [RateCDR] => 1 ) [2025-04-25 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:06:05' and `end` < '2025-04-25 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:06:21] Production.INFO: count ==6551 [2025-04-25 16:06:24] Production.ERROR: pbx CDR StartTime 2025-04-25 13:06:05 - End Time 2025-04-25 16:06:05 [2025-04-25 16:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988056', 'tblTempUsageDetail_20' ) start [2025-04-25 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988056', 'tblTempUsageDetail_20' ) end [2025-04-25 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988056', 'tblTempVendorCDR_20' ) start [2025-04-25 16:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988056', 'tblTempVendorCDR_20' ) end [2025-04-25 16:06:25] Production.INFO: ProcessCDR(1,14988056,1,1,2) [2025-04-25 16:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988056', 'tblTempUsageDetail_20' ) start [2025-04-25 16:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988056', 'tblTempUsageDetail_20' ) end [2025-04-25 16:06:30] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:06:30] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:06:30] Production.INFO: ==13126== Releasing lock... [2025-04-25 16:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:06:30] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:07:05 [end_date_ymd] => 2025-04-25 16:07:05 [RateCDR] => 1 ) [2025-04-25 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:07:05' and `end` < '2025-04-25 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:07:20] Production.INFO: count ==6551 [2025-04-25 16:07:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:07:05 - End Time 2025-04-25 16:07:05 [2025-04-25 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988061', 'tblTempUsageDetail_20' ) start [2025-04-25 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988061', 'tblTempUsageDetail_20' ) end [2025-04-25 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988061', 'tblTempVendorCDR_20' ) start [2025-04-25 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988061', 'tblTempVendorCDR_20' ) end [2025-04-25 16:07:24] Production.INFO: ProcessCDR(1,14988061,1,1,2) [2025-04-25 16:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988061', 'tblTempUsageDetail_20' ) start [2025-04-25 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988061', 'tblTempUsageDetail_20' ) end [2025-04-25 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:07:28] Production.INFO: ==13195== Releasing lock... [2025-04-25 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:07:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:08:05 [end_date_ymd] => 2025-04-25 16:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:08:05' and `end` < '2025-04-25 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-04-25 16:08:19] Production.INFO: count ==6565 [2025-04-25 16:08:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:08:05 - End Time 2025-04-25 16:08:05 [2025-04-25 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988066', 'tblTempUsageDetail_20' ) start [2025-04-25 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988066', 'tblTempUsageDetail_20' ) end [2025-04-25 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988066', 'tblTempVendorCDR_20' ) start [2025-04-25 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988066', 'tblTempVendorCDR_20' ) end [2025-04-25 16:08:23] Production.INFO: ProcessCDR(1,14988066,1,1,2) [2025-04-25 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988066', 'tblTempUsageDetail_20' ) start [2025-04-25 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988066', 'tblTempUsageDetail_20' ) end [2025-04-25 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:08:28] Production.INFO: ==13271== Releasing lock... [2025-04-25 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:08:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:09:05 [end_date_ymd] => 2025-04-25 16:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:09:05' and `end` < '2025-04-25 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-04-25 16:09:19] Production.INFO: count ==6573 [2025-04-25 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:09:05 - End Time 2025-04-25 16:09:05 [2025-04-25 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988071', 'tblTempUsageDetail_20' ) start [2025-04-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988071', 'tblTempUsageDetail_20' ) end [2025-04-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988071', 'tblTempVendorCDR_20' ) start [2025-04-25 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988071', 'tblTempVendorCDR_20' ) end [2025-04-25 16:09:22] Production.INFO: ProcessCDR(1,14988071,1,1,2) [2025-04-25 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988071', 'tblTempUsageDetail_20' ) start [2025-04-25 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988071', 'tblTempUsageDetail_20' ) end [2025-04-25 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:09:27] Production.INFO: ==13344== Releasing lock... [2025-04-25 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:09:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:10:06 [end_date_ymd] => 2025-04-25 16:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:10:06' and `end` < '2025-04-25 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-04-25 16:10:20] Production.INFO: count ==6580 [2025-04-25 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:10:06 - End Time 2025-04-25 16:10:06 [2025-04-25 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988076', 'tblTempUsageDetail_20' ) start [2025-04-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988076', 'tblTempUsageDetail_20' ) end [2025-04-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988076', 'tblTempVendorCDR_20' ) start [2025-04-25 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988076', 'tblTempVendorCDR_20' ) end [2025-04-25 16:10:23] Production.INFO: ProcessCDR(1,14988076,1,1,2) [2025-04-25 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988076', 'tblTempUsageDetail_20' ) start [2025-04-25 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988076', 'tblTempUsageDetail_20' ) end [2025-04-25 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:10:28] Production.INFO: ==13419== Releasing lock... [2025-04-25 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:10:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:11:05 [end_date_ymd] => 2025-04-25 16:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:11:05' and `end` < '2025-04-25 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-04-25 16:11:19] Production.INFO: count ==6632 [2025-04-25 16:11:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:11:05 - End Time 2025-04-25 16:11:05 [2025-04-25 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988082', 'tblTempUsageDetail_20' ) start [2025-04-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988082', 'tblTempUsageDetail_20' ) end [2025-04-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988082', 'tblTempVendorCDR_20' ) start [2025-04-25 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988082', 'tblTempVendorCDR_20' ) end [2025-04-25 16:11:22] Production.INFO: ProcessCDR(1,14988082,1,1,2) [2025-04-25 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988082', 'tblTempUsageDetail_20' ) start [2025-04-25 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988082', 'tblTempUsageDetail_20' ) end [2025-04-25 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:11:27] Production.INFO: ==13531== Releasing lock... [2025-04-25 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:11:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:12:06 [end_date_ymd] => 2025-04-25 16:12:06 [RateCDR] => 1 ) [2025-04-25 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:12:06' and `end` < '2025-04-25 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:12:20] Production.INFO: count ==6651 [2025-04-25 16:12:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:12:06 - End Time 2025-04-25 16:12:06 [2025-04-25 16:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988087', 'tblTempUsageDetail_20' ) start [2025-04-25 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988087', 'tblTempUsageDetail_20' ) end [2025-04-25 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988087', 'tblTempVendorCDR_20' ) start [2025-04-25 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988087', 'tblTempVendorCDR_20' ) end [2025-04-25 16:12:23] Production.INFO: ProcessCDR(1,14988087,1,1,2) [2025-04-25 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988087', 'tblTempUsageDetail_20' ) start [2025-04-25 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988087', 'tblTempUsageDetail_20' ) end [2025-04-25 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:12:29] Production.INFO: ==13604== Releasing lock... [2025-04-25 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:12:29] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:13:05 [end_date_ymd] => 2025-04-25 16:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:13:05' and `end` < '2025-04-25 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-04-25 16:13:19] Production.INFO: count ==6647 [2025-04-25 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:13:05 - End Time 2025-04-25 16:13:05 [2025-04-25 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988092', 'tblTempUsageDetail_20' ) start [2025-04-25 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988092', 'tblTempUsageDetail_20' ) end [2025-04-25 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988092', 'tblTempVendorCDR_20' ) start [2025-04-25 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988092', 'tblTempVendorCDR_20' ) end [2025-04-25 16:13:23] Production.INFO: ProcessCDR(1,14988092,1,1,2) [2025-04-25 16:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988092', 'tblTempUsageDetail_20' ) start [2025-04-25 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988092', 'tblTempUsageDetail_20' ) end [2025-04-25 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:13:28] Production.INFO: ==13677== Releasing lock... [2025-04-25 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:13:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:14:06 [end_date_ymd] => 2025-04-25 16:14:06 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:14:06' and `end` < '2025-04-25 16: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-04-25 16:14:20] Production.INFO: count ==6630 [2025-04-25 16:14:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:14:06 - End Time 2025-04-25 16:14:06 [2025-04-25 16:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988097', 'tblTempUsageDetail_20' ) start [2025-04-25 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988097', 'tblTempUsageDetail_20' ) end [2025-04-25 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988097', 'tblTempVendorCDR_20' ) start [2025-04-25 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988097', 'tblTempVendorCDR_20' ) end [2025-04-25 16:14:24] Production.INFO: ProcessCDR(1,14988097,1,1,2) [2025-04-25 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988097', 'tblTempUsageDetail_20' ) start [2025-04-25 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988097', 'tblTempUsageDetail_20' ) end [2025-04-25 16:14:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:14:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:14:29] Production.INFO: ==13748== Releasing lock... [2025-04-25 16:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:14:29] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:15:05 [end_date_ymd] => 2025-04-25 16:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:15:05' and `end` < '2025-04-25 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-04-25 16:15:19] Production.INFO: count ==6647 [2025-04-25 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:15:05 - End Time 2025-04-25 16:15:05 [2025-04-25 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988102', 'tblTempUsageDetail_20' ) start [2025-04-25 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988102', 'tblTempUsageDetail_20' ) end [2025-04-25 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988102', 'tblTempVendorCDR_20' ) start [2025-04-25 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988102', 'tblTempVendorCDR_20' ) end [2025-04-25 16:15:23] Production.INFO: ProcessCDR(1,14988102,1,1,2) [2025-04-25 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988102', 'tblTempUsageDetail_20' ) start [2025-04-25 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988102', 'tblTempUsageDetail_20' ) end [2025-04-25 16:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:15:29] Production.INFO: ==13847== Releasing lock... [2025-04-25 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:15:29] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:16:06 [end_date_ymd] => 2025-04-25 16:16:06 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:16:06' and `end` < '2025-04-25 16: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-04-25 16:16:20] Production.INFO: count ==6637 [2025-04-25 16:16:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:16:06 - End Time 2025-04-25 16:16:06 [2025-04-25 16:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988107', 'tblTempUsageDetail_20' ) start [2025-04-25 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988107', 'tblTempUsageDetail_20' ) end [2025-04-25 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988107', 'tblTempVendorCDR_20' ) start [2025-04-25 16:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988107', 'tblTempVendorCDR_20' ) end [2025-04-25 16:16:24] Production.INFO: ProcessCDR(1,14988107,1,1,2) [2025-04-25 16:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988107', 'tblTempUsageDetail_20' ) start [2025-04-25 16:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988107', 'tblTempUsageDetail_20' ) end [2025-04-25 16:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:16:29] Production.INFO: ==13918== Releasing lock... [2025-04-25 16:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:16:29] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:17:05 [end_date_ymd] => 2025-04-25 16:17:05 [RateCDR] => 1 ) [2025-04-25 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:17:05' and `end` < '2025-04-25 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:17:19] Production.INFO: count ==6630 [2025-04-25 16:17:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:17:05 - End Time 2025-04-25 16:17:05 [2025-04-25 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988112', 'tblTempUsageDetail_20' ) start [2025-04-25 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988112', 'tblTempUsageDetail_20' ) end [2025-04-25 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988112', 'tblTempVendorCDR_20' ) start [2025-04-25 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988112', 'tblTempVendorCDR_20' ) end [2025-04-25 16:17:22] Production.INFO: ProcessCDR(1,14988112,1,1,2) [2025-04-25 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988112', 'tblTempUsageDetail_20' ) start [2025-04-25 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988112', 'tblTempUsageDetail_20' ) end [2025-04-25 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:17:27] Production.INFO: ==13994== Releasing lock... [2025-04-25 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:17:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:18:05 [end_date_ymd] => 2025-04-25 16:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:18:05' and `end` < '2025-04-25 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-04-25 16:18:19] Production.INFO: count ==6626 [2025-04-25 16:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:18:05 - End Time 2025-04-25 16:18:05 [2025-04-25 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988117', 'tblTempUsageDetail_20' ) start [2025-04-25 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988117', 'tblTempUsageDetail_20' ) end [2025-04-25 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988117', 'tblTempVendorCDR_20' ) start [2025-04-25 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988117', 'tblTempVendorCDR_20' ) end [2025-04-25 16:18:23] Production.INFO: ProcessCDR(1,14988117,1,1,2) [2025-04-25 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988117', 'tblTempUsageDetail_20' ) start [2025-04-25 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988117', 'tblTempUsageDetail_20' ) end [2025-04-25 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:18:28] Production.INFO: ==14067== Releasing lock... [2025-04-25 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:18:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:19:05 [end_date_ymd] => 2025-04-25 16:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:19:05' and `end` < '2025-04-25 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-04-25 16:19:19] Production.INFO: count ==6644 [2025-04-25 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:19:05 - End Time 2025-04-25 16:19:05 [2025-04-25 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988122', 'tblTempUsageDetail_20' ) start [2025-04-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988122', 'tblTempUsageDetail_20' ) end [2025-04-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988122', 'tblTempVendorCDR_20' ) start [2025-04-25 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988122', 'tblTempVendorCDR_20' ) end [2025-04-25 16:19:22] Production.INFO: ProcessCDR(1,14988122,1,1,2) [2025-04-25 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988122', 'tblTempUsageDetail_20' ) start [2025-04-25 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988122', 'tblTempUsageDetail_20' ) end [2025-04-25 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:19:27] Production.INFO: ==14142== Releasing lock... [2025-04-25 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:19:27] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:20:06 [end_date_ymd] => 2025-04-25 16:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:20:06' and `end` < '2025-04-25 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-04-25 16:20:20] Production.INFO: count ==6639 [2025-04-25 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:20:06 - End Time 2025-04-25 16:20:06 [2025-04-25 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988127', 'tblTempUsageDetail_20' ) start [2025-04-25 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988127', 'tblTempUsageDetail_20' ) end [2025-04-25 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988127', 'tblTempVendorCDR_20' ) start [2025-04-25 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988127', 'tblTempVendorCDR_20' ) end [2025-04-25 16:20:23] Production.INFO: ProcessCDR(1,14988127,1,1,2) [2025-04-25 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988127', 'tblTempUsageDetail_20' ) start [2025-04-25 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988127', 'tblTempUsageDetail_20' ) end [2025-04-25 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:20:28] Production.INFO: ==14217== Releasing lock... [2025-04-25 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:20:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:21:04 [end_date_ymd] => 2025-04-25 16:21:04 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:21:04' and `end` < '2025-04-25 16: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-04-25 16:21:19] Production.INFO: count ==6652 [2025-04-25 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:21:04 - End Time 2025-04-25 16:21:04 [2025-04-25 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988133', 'tblTempUsageDetail_20' ) start [2025-04-25 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988133', 'tblTempUsageDetail_20' ) end [2025-04-25 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988133', 'tblTempVendorCDR_20' ) start [2025-04-25 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988133', 'tblTempVendorCDR_20' ) end [2025-04-25 16:21:22] Production.INFO: ProcessCDR(1,14988133,1,1,2) [2025-04-25 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988133', 'tblTempUsageDetail_20' ) start [2025-04-25 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988133', 'tblTempUsageDetail_20' ) end [2025-04-25 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:21:27] Production.INFO: ==14293== Releasing lock... [2025-04-25 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:21:27] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:22:05 [end_date_ymd] => 2025-04-25 16:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:22:05' and `end` < '2025-04-25 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-04-25 16:22:19] Production.INFO: count ==6677 [2025-04-25 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:22:05 - End Time 2025-04-25 16:22:05 [2025-04-25 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988138', 'tblTempUsageDetail_20' ) start [2025-04-25 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988138', 'tblTempUsageDetail_20' ) end [2025-04-25 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988138', 'tblTempVendorCDR_20' ) start [2025-04-25 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988138', 'tblTempVendorCDR_20' ) end [2025-04-25 16:22:22] Production.INFO: ProcessCDR(1,14988138,1,1,2) [2025-04-25 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988138', 'tblTempUsageDetail_20' ) start [2025-04-25 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988138', 'tblTempUsageDetail_20' ) end [2025-04-25 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:22:27] Production.INFO: ==14366== Releasing lock... [2025-04-25 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:22:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:23:05 [end_date_ymd] => 2025-04-25 16:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:23:05' and `end` < '2025-04-25 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-04-25 16:23:19] Production.INFO: count ==6692 [2025-04-25 16:23:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:23:05 - End Time 2025-04-25 16:23:05 [2025-04-25 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988143', 'tblTempUsageDetail_20' ) start [2025-04-25 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988143', 'tblTempUsageDetail_20' ) end [2025-04-25 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988143', 'tblTempVendorCDR_20' ) start [2025-04-25 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988143', 'tblTempVendorCDR_20' ) end [2025-04-25 16:23:22] Production.INFO: ProcessCDR(1,14988143,1,1,2) [2025-04-25 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988143', 'tblTempUsageDetail_20' ) start [2025-04-25 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988143', 'tblTempUsageDetail_20' ) end [2025-04-25 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:23:27] Production.INFO: ==14440== Releasing lock... [2025-04-25 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:23:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:24:05 [end_date_ymd] => 2025-04-25 16:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:24:05' and `end` < '2025-04-25 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-04-25 16:24:19] Production.INFO: count ==6693 [2025-04-25 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:24:05 - End Time 2025-04-25 16:24:05 [2025-04-25 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988148', 'tblTempUsageDetail_20' ) start [2025-04-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988148', 'tblTempUsageDetail_20' ) end [2025-04-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988148', 'tblTempVendorCDR_20' ) start [2025-04-25 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988148', 'tblTempVendorCDR_20' ) end [2025-04-25 16:24:22] Production.INFO: ProcessCDR(1,14988148,1,1,2) [2025-04-25 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988148', 'tblTempUsageDetail_20' ) start [2025-04-25 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988148', 'tblTempUsageDetail_20' ) end [2025-04-25 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:24:27] Production.INFO: ==14518== Releasing lock... [2025-04-25 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:24:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:25:05 [end_date_ymd] => 2025-04-25 16:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:25:05' and `end` < '2025-04-25 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-04-25 16:25:19] Production.INFO: count ==6698 [2025-04-25 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:25:05 - End Time 2025-04-25 16:25:05 [2025-04-25 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988153', 'tblTempUsageDetail_20' ) start [2025-04-25 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988153', 'tblTempUsageDetail_20' ) end [2025-04-25 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988153', 'tblTempVendorCDR_20' ) start [2025-04-25 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988153', 'tblTempVendorCDR_20' ) end [2025-04-25 16:25:23] Production.INFO: ProcessCDR(1,14988153,1,1,2) [2025-04-25 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988153', 'tblTempUsageDetail_20' ) start [2025-04-25 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988153', 'tblTempUsageDetail_20' ) end [2025-04-25 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:25:28] Production.INFO: ==14591== Releasing lock... [2025-04-25 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:25:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:26:05 [end_date_ymd] => 2025-04-25 16:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:26:05' and `end` < '2025-04-25 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-04-25 16:26:19] Production.INFO: count ==6716 [2025-04-25 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:26:05 - End Time 2025-04-25 16:26:05 [2025-04-25 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988158', 'tblTempUsageDetail_20' ) start [2025-04-25 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988158', 'tblTempUsageDetail_20' ) end [2025-04-25 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988158', 'tblTempVendorCDR_20' ) start [2025-04-25 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988158', 'tblTempVendorCDR_20' ) end [2025-04-25 16:26:23] Production.INFO: ProcessCDR(1,14988158,1,1,2) [2025-04-25 16:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988158', 'tblTempUsageDetail_20' ) start [2025-04-25 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988158', 'tblTempUsageDetail_20' ) end [2025-04-25 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:26:28] Production.INFO: ==14706== Releasing lock... [2025-04-25 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:26:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-25 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:27:05 [end_date_ymd] => 2025-04-25 16:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:27:05' and `end` < '2025-04-25 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-04-25 16:27:19] Production.INFO: count ==6739 [2025-04-25 16:27:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:27:05 - End Time 2025-04-25 16:27:05 [2025-04-25 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988163', 'tblTempUsageDetail_20' ) start [2025-04-25 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988163', 'tblTempUsageDetail_20' ) end [2025-04-25 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988163', 'tblTempVendorCDR_20' ) start [2025-04-25 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988163', 'tblTempVendorCDR_20' ) end [2025-04-25 16:27:23] Production.INFO: ProcessCDR(1,14988163,1,1,2) [2025-04-25 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988163', 'tblTempUsageDetail_20' ) start [2025-04-25 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988163', 'tblTempUsageDetail_20' ) end [2025-04-25 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:27:28] Production.INFO: ==14777== Releasing lock... [2025-04-25 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:27:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-25 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:28:05 [end_date_ymd] => 2025-04-25 16:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:28:05' and `end` < '2025-04-25 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-04-25 16:28:19] Production.INFO: count ==6746 [2025-04-25 16:28:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:28:05 - End Time 2025-04-25 16:28:05 [2025-04-25 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988168', 'tblTempUsageDetail_20' ) start [2025-04-25 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988168', 'tblTempUsageDetail_20' ) end [2025-04-25 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988168', 'tblTempVendorCDR_20' ) start [2025-04-25 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988168', 'tblTempVendorCDR_20' ) end [2025-04-25 16:28:23] Production.INFO: ProcessCDR(1,14988168,1,1,2) [2025-04-25 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988168', 'tblTempUsageDetail_20' ) start [2025-04-25 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988168', 'tblTempUsageDetail_20' ) end [2025-04-25 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:28:28] Production.INFO: ==14856== Releasing lock... [2025-04-25 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:28:28] Production.INFO: 78.75 MB #Memory Used# [2025-04-25 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:29:05 [end_date_ymd] => 2025-04-25 16:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:29:05' and `end` < '2025-04-25 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-04-25 16:29:19] Production.INFO: count ==6716 [2025-04-25 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:29:05 - End Time 2025-04-25 16:29:05 [2025-04-25 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988173', 'tblTempUsageDetail_20' ) start [2025-04-25 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988173', 'tblTempUsageDetail_20' ) end [2025-04-25 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988173', 'tblTempVendorCDR_20' ) start [2025-04-25 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988173', 'tblTempVendorCDR_20' ) end [2025-04-25 16:29:23] Production.INFO: ProcessCDR(1,14988173,1,1,2) [2025-04-25 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988173', 'tblTempUsageDetail_20' ) start [2025-04-25 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988173', 'tblTempUsageDetail_20' ) end [2025-04-25 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:29:28] Production.INFO: ==14926== Releasing lock... [2025-04-25 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:29:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-25 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:30:05 [end_date_ymd] => 2025-04-25 16:30:05 [RateCDR] => 1 ) [2025-04-25 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:30:05' and `end` < '2025-04-25 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:30:20] Production.INFO: count ==6722 [2025-04-25 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:30:05 - End Time 2025-04-25 16:30:05 [2025-04-25 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988178', 'tblTempUsageDetail_20' ) start [2025-04-25 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988178', 'tblTempUsageDetail_20' ) end [2025-04-25 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988178', 'tblTempVendorCDR_20' ) start [2025-04-25 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988178', 'tblTempVendorCDR_20' ) end [2025-04-25 16:30:23] Production.INFO: ProcessCDR(1,14988178,1,1,2) [2025-04-25 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988178', 'tblTempUsageDetail_20' ) start [2025-04-25 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988178', 'tblTempUsageDetail_20' ) end [2025-04-25 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:30:28] Production.INFO: ==15006== Releasing lock... [2025-04-25 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:30:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-25 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:31:05 [end_date_ymd] => 2025-04-25 16:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:31:05' and `end` < '2025-04-25 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-04-25 16:31:19] Production.INFO: count ==6699 [2025-04-25 16:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:31:05 - End Time 2025-04-25 16:31:05 [2025-04-25 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988184', 'tblTempUsageDetail_20' ) start [2025-04-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988184', 'tblTempUsageDetail_20' ) end [2025-04-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988184', 'tblTempVendorCDR_20' ) start [2025-04-25 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988184', 'tblTempVendorCDR_20' ) end [2025-04-25 16:31:22] Production.INFO: ProcessCDR(1,14988184,1,1,2) [2025-04-25 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988184', 'tblTempUsageDetail_20' ) start [2025-04-25 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988184', 'tblTempUsageDetail_20' ) end [2025-04-25 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:31:27] Production.INFO: ==15083== Releasing lock... [2025-04-25 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:31:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:32:05 [end_date_ymd] => 2025-04-25 16:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:32:05' and `end` < '2025-04-25 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-04-25 16:32:20] Production.INFO: count ==6685 [2025-04-25 16:32:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:32:05 - End Time 2025-04-25 16:32:05 [2025-04-25 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988189', 'tblTempUsageDetail_20' ) start [2025-04-25 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988189', 'tblTempUsageDetail_20' ) end [2025-04-25 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988189', 'tblTempVendorCDR_20' ) start [2025-04-25 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988189', 'tblTempVendorCDR_20' ) end [2025-04-25 16:32:23] Production.INFO: ProcessCDR(1,14988189,1,1,2) [2025-04-25 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988189', 'tblTempUsageDetail_20' ) start [2025-04-25 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988189', 'tblTempUsageDetail_20' ) end [2025-04-25 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:32:28] Production.INFO: ==15154== Releasing lock... [2025-04-25 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:32:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:33:05 [end_date_ymd] => 2025-04-25 16:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:33:05' and `end` < '2025-04-25 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-04-25 16:33:19] Production.INFO: count ==6680 [2025-04-25 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:33:05 - End Time 2025-04-25 16:33:05 [2025-04-25 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988194', 'tblTempUsageDetail_20' ) start [2025-04-25 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988194', 'tblTempUsageDetail_20' ) end [2025-04-25 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988194', 'tblTempVendorCDR_20' ) start [2025-04-25 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988194', 'tblTempVendorCDR_20' ) end [2025-04-25 16:33:23] Production.INFO: ProcessCDR(1,14988194,1,1,2) [2025-04-25 16:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988194', 'tblTempUsageDetail_20' ) start [2025-04-25 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988194', 'tblTempUsageDetail_20' ) end [2025-04-25 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:33:28] Production.INFO: ==15231== Releasing lock... [2025-04-25 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:33:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:34:05 [end_date_ymd] => 2025-04-25 16:34:05 [RateCDR] => 1 ) [2025-04-25 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:34:05' and `end` < '2025-04-25 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:34:20] Production.INFO: count ==6678 [2025-04-25 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:34:05 - End Time 2025-04-25 16:34:05 [2025-04-25 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988199', 'tblTempUsageDetail_20' ) start [2025-04-25 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988199', 'tblTempUsageDetail_20' ) end [2025-04-25 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988199', 'tblTempVendorCDR_20' ) start [2025-04-25 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988199', 'tblTempVendorCDR_20' ) end [2025-04-25 16:34:23] Production.INFO: ProcessCDR(1,14988199,1,1,2) [2025-04-25 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988199', 'tblTempUsageDetail_20' ) start [2025-04-25 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988199', 'tblTempUsageDetail_20' ) end [2025-04-25 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:34:28] Production.INFO: ==15302== Releasing lock... [2025-04-25 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:34:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:35:05 [end_date_ymd] => 2025-04-25 16:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:35:05' and `end` < '2025-04-25 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-04-25 16:35:19] Production.INFO: count ==6677 [2025-04-25 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:35:05 - End Time 2025-04-25 16:35:05 [2025-04-25 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988204', 'tblTempUsageDetail_20' ) start [2025-04-25 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988204', 'tblTempUsageDetail_20' ) end [2025-04-25 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988204', 'tblTempVendorCDR_20' ) start [2025-04-25 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988204', 'tblTempVendorCDR_20' ) end [2025-04-25 16:35:22] Production.INFO: ProcessCDR(1,14988204,1,1,2) [2025-04-25 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988204', 'tblTempUsageDetail_20' ) start [2025-04-25 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988204', 'tblTempUsageDetail_20' ) end [2025-04-25 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:35:27] Production.INFO: ==15377== Releasing lock... [2025-04-25 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:35:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-25 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:36:05 [end_date_ymd] => 2025-04-25 16:36:05 [RateCDR] => 1 ) [2025-04-25 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:36:05' and `end` < '2025-04-25 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:36:19] Production.INFO: count ==6674 [2025-04-25 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:36:05 - End Time 2025-04-25 16:36:05 [2025-04-25 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988209', 'tblTempUsageDetail_20' ) start [2025-04-25 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988209', 'tblTempUsageDetail_20' ) end [2025-04-25 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988209', 'tblTempVendorCDR_20' ) start [2025-04-25 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988209', 'tblTempVendorCDR_20' ) end [2025-04-25 16:36:23] Production.INFO: ProcessCDR(1,14988209,1,1,2) [2025-04-25 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988209', 'tblTempUsageDetail_20' ) start [2025-04-25 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988209', 'tblTempUsageDetail_20' ) end [2025-04-25 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:36:28] Production.INFO: ==15451== Releasing lock... [2025-04-25 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:36:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:37:05 [end_date_ymd] => 2025-04-25 16:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:37:05' and `end` < '2025-04-25 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-04-25 16:37:19] Production.INFO: count ==6669 [2025-04-25 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:37:05 - End Time 2025-04-25 16:37:05 [2025-04-25 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988214', 'tblTempUsageDetail_20' ) start [2025-04-25 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988214', 'tblTempUsageDetail_20' ) end [2025-04-25 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988214', 'tblTempVendorCDR_20' ) start [2025-04-25 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988214', 'tblTempVendorCDR_20' ) end [2025-04-25 16:37:22] Production.INFO: ProcessCDR(1,14988214,1,1,2) [2025-04-25 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988214', 'tblTempUsageDetail_20' ) start [2025-04-25 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988214', 'tblTempUsageDetail_20' ) end [2025-04-25 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:37:27] Production.INFO: ==15537== Releasing lock... [2025-04-25 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:37:27] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:38:05 [end_date_ymd] => 2025-04-25 16:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:38:05' and `end` < '2025-04-25 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-04-25 16:38:20] Production.INFO: count ==6671 [2025-04-25 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:38:05 - End Time 2025-04-25 16:38:05 [2025-04-25 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988219', 'tblTempUsageDetail_20' ) start [2025-04-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988219', 'tblTempUsageDetail_20' ) end [2025-04-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988219', 'tblTempVendorCDR_20' ) start [2025-04-25 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988219', 'tblTempVendorCDR_20' ) end [2025-04-25 16:38:23] Production.INFO: ProcessCDR(1,14988219,1,1,2) [2025-04-25 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988219', 'tblTempUsageDetail_20' ) start [2025-04-25 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988219', 'tblTempUsageDetail_20' ) end [2025-04-25 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:38:28] Production.INFO: ==15610== Releasing lock... [2025-04-25 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:38:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:39:05 [end_date_ymd] => 2025-04-25 16:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:39:05' and `end` < '2025-04-25 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-04-25 16:39:20] Production.INFO: count ==6648 [2025-04-25 16:39:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:39:05 - End Time 2025-04-25 16:39:05 [2025-04-25 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988224', 'tblTempUsageDetail_20' ) start [2025-04-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988224', 'tblTempUsageDetail_20' ) end [2025-04-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988224', 'tblTempVendorCDR_20' ) start [2025-04-25 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988224', 'tblTempVendorCDR_20' ) end [2025-04-25 16:39:23] Production.INFO: ProcessCDR(1,14988224,1,1,2) [2025-04-25 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988224', 'tblTempUsageDetail_20' ) start [2025-04-25 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988224', 'tblTempUsageDetail_20' ) end [2025-04-25 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:39:28] Production.INFO: ==15687== Releasing lock... [2025-04-25 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:39:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:40:06 [end_date_ymd] => 2025-04-25 16:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:40:06' and `end` < '2025-04-25 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-04-25 16:40:20] Production.INFO: count ==6646 [2025-04-25 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:40:06 - End Time 2025-04-25 16:40:06 [2025-04-25 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988230', 'tblTempUsageDetail_20' ) start [2025-04-25 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988230', 'tblTempUsageDetail_20' ) end [2025-04-25 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988230', 'tblTempVendorCDR_20' ) start [2025-04-25 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988230', 'tblTempVendorCDR_20' ) end [2025-04-25 16:40:24] Production.INFO: ProcessCDR(1,14988230,1,1,2) [2025-04-25 16:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988230', 'tblTempUsageDetail_20' ) start [2025-04-25 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988230', 'tblTempUsageDetail_20' ) end [2025-04-25 16:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:40:29] Production.INFO: ==15759== Releasing lock... [2025-04-25 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:40:29] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:41:05 [end_date_ymd] => 2025-04-25 16:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:41:05' and `end` < '2025-04-25 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-04-25 16:41:20] Production.INFO: count ==6654 [2025-04-25 16:41:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:41:05 - End Time 2025-04-25 16:41:05 [2025-04-25 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988235', 'tblTempUsageDetail_20' ) start [2025-04-25 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988235', 'tblTempUsageDetail_20' ) end [2025-04-25 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988235', 'tblTempVendorCDR_20' ) start [2025-04-25 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988235', 'tblTempVendorCDR_20' ) end [2025-04-25 16:41:23] Production.INFO: ProcessCDR(1,14988235,1,1,2) [2025-04-25 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988235', 'tblTempUsageDetail_20' ) start [2025-04-25 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988235', 'tblTempUsageDetail_20' ) end [2025-04-25 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:41:28] Production.INFO: ==15834== Releasing lock... [2025-04-25 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:41:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:42:05 [end_date_ymd] => 2025-04-25 16:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:42:05' and `end` < '2025-04-25 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-04-25 16:42:19] Production.INFO: count ==6643 [2025-04-25 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:42:05 - End Time 2025-04-25 16:42:05 [2025-04-25 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988240', 'tblTempUsageDetail_20' ) start [2025-04-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988240', 'tblTempUsageDetail_20' ) end [2025-04-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988240', 'tblTempVendorCDR_20' ) start [2025-04-25 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988240', 'tblTempVendorCDR_20' ) end [2025-04-25 16:42:22] Production.INFO: ProcessCDR(1,14988240,1,1,2) [2025-04-25 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988240', 'tblTempUsageDetail_20' ) start [2025-04-25 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988240', 'tblTempUsageDetail_20' ) end [2025-04-25 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:42:28] Production.INFO: ==15949== Releasing lock... [2025-04-25 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:42:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:43:05 [end_date_ymd] => 2025-04-25 16:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:43:05' and `end` < '2025-04-25 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-04-25 16:43:19] Production.INFO: count ==6633 [2025-04-25 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:43:05 - End Time 2025-04-25 16:43:05 [2025-04-25 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988245', 'tblTempUsageDetail_20' ) start [2025-04-25 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988245', 'tblTempUsageDetail_20' ) end [2025-04-25 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988245', 'tblTempVendorCDR_20' ) start [2025-04-25 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988245', 'tblTempVendorCDR_20' ) end [2025-04-25 16:43:23] Production.INFO: ProcessCDR(1,14988245,1,1,2) [2025-04-25 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988245', 'tblTempUsageDetail_20' ) start [2025-04-25 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988245', 'tblTempUsageDetail_20' ) end [2025-04-25 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:43:28] Production.INFO: ==16019== Releasing lock... [2025-04-25 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:43:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:44:05 [end_date_ymd] => 2025-04-25 16:44:05 [RateCDR] => 1 ) [2025-04-25 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:44:05' and `end` < '2025-04-25 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:44:20] Production.INFO: count ==6659 [2025-04-25 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:44:05 - End Time 2025-04-25 16:44:05 [2025-04-25 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988250', 'tblTempUsageDetail_20' ) start [2025-04-25 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988250', 'tblTempUsageDetail_20' ) end [2025-04-25 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988250', 'tblTempVendorCDR_20' ) start [2025-04-25 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988250', 'tblTempVendorCDR_20' ) end [2025-04-25 16:44:23] Production.INFO: ProcessCDR(1,14988250,1,1,2) [2025-04-25 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988250', 'tblTempUsageDetail_20' ) start [2025-04-25 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988250', 'tblTempUsageDetail_20' ) end [2025-04-25 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:44:28] Production.INFO: ==16095== Releasing lock... [2025-04-25 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:44:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:45:05 [end_date_ymd] => 2025-04-25 16:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:45:05' and `end` < '2025-04-25 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-04-25 16:45:19] Production.INFO: count ==6648 [2025-04-25 16:45:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:45:05 - End Time 2025-04-25 16:45:05 [2025-04-25 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988255', 'tblTempUsageDetail_20' ) start [2025-04-25 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988255', 'tblTempUsageDetail_20' ) end [2025-04-25 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988255', 'tblTempVendorCDR_20' ) start [2025-04-25 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988255', 'tblTempVendorCDR_20' ) end [2025-04-25 16:45:23] Production.INFO: ProcessCDR(1,14988255,1,1,2) [2025-04-25 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988255', 'tblTempUsageDetail_20' ) start [2025-04-25 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988255', 'tblTempUsageDetail_20' ) end [2025-04-25 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:45:28] Production.INFO: ==16169== Releasing lock... [2025-04-25 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:45:28] Production.INFO: 78 MB #Memory Used# [2025-04-25 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:46:05 [end_date_ymd] => 2025-04-25 16:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:46:05' and `end` < '2025-04-25 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-04-25 16:46:19] Production.INFO: count ==6626 [2025-04-25 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:46:05 - End Time 2025-04-25 16:46:05 [2025-04-25 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988260', 'tblTempUsageDetail_20' ) start [2025-04-25 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988260', 'tblTempUsageDetail_20' ) end [2025-04-25 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988260', 'tblTempVendorCDR_20' ) start [2025-04-25 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988260', 'tblTempVendorCDR_20' ) end [2025-04-25 16:46:23] Production.INFO: ProcessCDR(1,14988260,1,1,2) [2025-04-25 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988260', 'tblTempUsageDetail_20' ) start [2025-04-25 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988260', 'tblTempUsageDetail_20' ) end [2025-04-25 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:46:28] Production.INFO: ==16241== Releasing lock... [2025-04-25 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:46:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:47:05 [end_date_ymd] => 2025-04-25 16:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:47:05' and `end` < '2025-04-25 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-04-25 16:47:19] Production.INFO: count ==6606 [2025-04-25 16:47:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:47:05 - End Time 2025-04-25 16:47:05 [2025-04-25 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988265', 'tblTempUsageDetail_20' ) start [2025-04-25 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988265', 'tblTempUsageDetail_20' ) end [2025-04-25 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988265', 'tblTempVendorCDR_20' ) start [2025-04-25 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988265', 'tblTempVendorCDR_20' ) end [2025-04-25 16:47:22] Production.INFO: ProcessCDR(1,14988265,1,1,2) [2025-04-25 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988265', 'tblTempUsageDetail_20' ) start [2025-04-25 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988265', 'tblTempUsageDetail_20' ) end [2025-04-25 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:47:27] Production.INFO: ==16314== Releasing lock... [2025-04-25 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:47:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:48:05 [end_date_ymd] => 2025-04-25 16:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:48:05' and `end` < '2025-04-25 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-04-25 16:48:20] Production.INFO: count ==6612 [2025-04-25 16:48:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:48:05 - End Time 2025-04-25 16:48:05 [2025-04-25 16:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988270', 'tblTempUsageDetail_20' ) start [2025-04-25 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988270', 'tblTempUsageDetail_20' ) end [2025-04-25 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988270', 'tblTempVendorCDR_20' ) start [2025-04-25 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988270', 'tblTempVendorCDR_20' ) end [2025-04-25 16:48:23] Production.INFO: ProcessCDR(1,14988270,1,1,2) [2025-04-25 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988270', 'tblTempUsageDetail_20' ) start [2025-04-25 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988270', 'tblTempUsageDetail_20' ) end [2025-04-25 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:48:28] Production.INFO: ==16388== Releasing lock... [2025-04-25 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:48:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-25 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:49:05 [end_date_ymd] => 2025-04-25 16:49:05 [RateCDR] => 1 ) [2025-04-25 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:49:05' and `end` < '2025-04-25 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-04-25 16:49:19] Production.INFO: count ==6598 [2025-04-25 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:49:05 - End Time 2025-04-25 16:49:05 [2025-04-25 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988275', 'tblTempUsageDetail_20' ) start [2025-04-25 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988275', 'tblTempUsageDetail_20' ) end [2025-04-25 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988275', 'tblTempVendorCDR_20' ) start [2025-04-25 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988275', 'tblTempVendorCDR_20' ) end [2025-04-25 16:49:22] Production.INFO: ProcessCDR(1,14988275,1,1,2) [2025-04-25 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988275', 'tblTempUsageDetail_20' ) start [2025-04-25 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988275', 'tblTempUsageDetail_20' ) end [2025-04-25 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:49:27] Production.INFO: ==16464== Releasing lock... [2025-04-25 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:49:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:50:06 [end_date_ymd] => 2025-04-25 16:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:50:06' and `end` < '2025-04-25 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-04-25 16:50:20] Production.INFO: count ==6596 [2025-04-25 16:50:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:50:06 - End Time 2025-04-25 16:50:06 [2025-04-25 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988280', 'tblTempUsageDetail_20' ) start [2025-04-25 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988280', 'tblTempUsageDetail_20' ) end [2025-04-25 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988280', 'tblTempVendorCDR_20' ) start [2025-04-25 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988280', 'tblTempVendorCDR_20' ) end [2025-04-25 16:50:23] Production.INFO: ProcessCDR(1,14988280,1,1,2) [2025-04-25 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988280', 'tblTempUsageDetail_20' ) start [2025-04-25 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988280', 'tblTempUsageDetail_20' ) end [2025-04-25 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:50:28] Production.INFO: ==16539== Releasing lock... [2025-04-25 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:50:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:51:05 [end_date_ymd] => 2025-04-25 16:51:05 [RateCDR] => 1 ) [2025-04-25 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:51:05' and `end` < '2025-04-25 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:51:19] Production.INFO: count ==6605 [2025-04-25 16:51:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:51:05 - End Time 2025-04-25 16:51:05 [2025-04-25 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988286', 'tblTempUsageDetail_20' ) start [2025-04-25 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988286', 'tblTempUsageDetail_20' ) end [2025-04-25 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988286', 'tblTempVendorCDR_20' ) start [2025-04-25 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988286', 'tblTempVendorCDR_20' ) end [2025-04-25 16:51:23] Production.INFO: ProcessCDR(1,14988286,1,1,2) [2025-04-25 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988286', 'tblTempUsageDetail_20' ) start [2025-04-25 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988286', 'tblTempUsageDetail_20' ) end [2025-04-25 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:51:28] Production.INFO: ==16614== Releasing lock... [2025-04-25 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:51:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:52:05 [end_date_ymd] => 2025-04-25 16:52:05 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:52:05' and `end` < '2025-04-25 16: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-04-25 16:52:19] Production.INFO: count ==6583 [2025-04-25 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:52:05 - End Time 2025-04-25 16:52:05 [2025-04-25 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988291', 'tblTempUsageDetail_20' ) start [2025-04-25 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988291', 'tblTempUsageDetail_20' ) end [2025-04-25 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988291', 'tblTempVendorCDR_20' ) start [2025-04-25 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988291', 'tblTempVendorCDR_20' ) end [2025-04-25 16:52:23] Production.INFO: ProcessCDR(1,14988291,1,1,2) [2025-04-25 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988291', 'tblTempUsageDetail_20' ) start [2025-04-25 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988291', 'tblTempUsageDetail_20' ) end [2025-04-25 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:52:28] Production.INFO: ==16686== Releasing lock... [2025-04-25 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:52:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:53:05 [end_date_ymd] => 2025-04-25 16:53:05 [RateCDR] => 1 ) [2025-04-25 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 13:53:05' and `end` < '2025-04-25 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 16:53:19] Production.INFO: count ==6584 [2025-04-25 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:53:05 - End Time 2025-04-25 16:53:05 [2025-04-25 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988296', 'tblTempUsageDetail_20' ) start [2025-04-25 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988296', 'tblTempUsageDetail_20' ) end [2025-04-25 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988296', 'tblTempVendorCDR_20' ) start [2025-04-25 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988296', 'tblTempVendorCDR_20' ) end [2025-04-25 16:53:22] Production.INFO: ProcessCDR(1,14988296,1,1,2) [2025-04-25 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988296', 'tblTempUsageDetail_20' ) start [2025-04-25 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988296', 'tblTempUsageDetail_20' ) end [2025-04-25 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:53:27] Production.INFO: ==16757== Releasing lock... [2025-04-25 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:53:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:54:04 [end_date_ymd] => 2025-04-25 16:54:04 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:54:04' and `end` < '2025-04-25 16: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-04-25 16:54:19] Production.INFO: count ==6573 [2025-04-25 16:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:54:04 - End Time 2025-04-25 16:54:04 [2025-04-25 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988301', 'tblTempUsageDetail_20' ) start [2025-04-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988301', 'tblTempUsageDetail_20' ) end [2025-04-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988301', 'tblTempVendorCDR_20' ) start [2025-04-25 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988301', 'tblTempVendorCDR_20' ) end [2025-04-25 16:54:22] Production.INFO: ProcessCDR(1,14988301,1,1,2) [2025-04-25 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988301', 'tblTempUsageDetail_20' ) start [2025-04-25 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988301', 'tblTempUsageDetail_20' ) end [2025-04-25 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:54:27] Production.INFO: ==16844== Releasing lock... [2025-04-25 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:54:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:55:06 [end_date_ymd] => 2025-04-25 16:55:06 [RateCDR] => 1 ) [2025-04-25 16: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-04-25 13:55:06' and `end` < '2025-04-25 16: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-04-25 16:55:20] Production.INFO: count ==6541 [2025-04-25 16:55:23] Production.ERROR: pbx CDR StartTime 2025-04-25 13:55:06 - End Time 2025-04-25 16:55:06 [2025-04-25 16:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988306', 'tblTempUsageDetail_20' ) start [2025-04-25 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988306', 'tblTempUsageDetail_20' ) end [2025-04-25 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988306', 'tblTempVendorCDR_20' ) start [2025-04-25 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988306', 'tblTempVendorCDR_20' ) end [2025-04-25 16:55:23] Production.INFO: ProcessCDR(1,14988306,1,1,2) [2025-04-25 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988306', 'tblTempUsageDetail_20' ) start [2025-04-25 16:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988306', 'tblTempUsageDetail_20' ) end [2025-04-25 16:55:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:55:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:55:29] Production.INFO: ==16920== Releasing lock... [2025-04-25 16:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:55:29] Production.INFO: 77 MB #Memory Used# [2025-04-25 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:56:05 [end_date_ymd] => 2025-04-25 16:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:56:05' and `end` < '2025-04-25 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-04-25 16:56:19] Production.INFO: count ==6536 [2025-04-25 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-25 13:56:05 - End Time 2025-04-25 16:56:05 [2025-04-25 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988311', 'tblTempUsageDetail_20' ) start [2025-04-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988311', 'tblTempUsageDetail_20' ) end [2025-04-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988311', 'tblTempVendorCDR_20' ) start [2025-04-25 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988311', 'tblTempVendorCDR_20' ) end [2025-04-25 16:56:22] Production.INFO: ProcessCDR(1,14988311,1,1,2) [2025-04-25 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988311', 'tblTempUsageDetail_20' ) start [2025-04-25 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988311', 'tblTempUsageDetail_20' ) end [2025-04-25 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:56:27] Production.INFO: ==16990== Releasing lock... [2025-04-25 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:56:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:57:05 [end_date_ymd] => 2025-04-25 16:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:57:05' and `end` < '2025-04-25 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-04-25 16:57:19] Production.INFO: count ==6543 [2025-04-25 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:57:05 - End Time 2025-04-25 16:57:05 [2025-04-25 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988316', 'tblTempUsageDetail_20' ) start [2025-04-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988316', 'tblTempUsageDetail_20' ) end [2025-04-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988316', 'tblTempVendorCDR_20' ) start [2025-04-25 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988316', 'tblTempVendorCDR_20' ) end [2025-04-25 16:57:23] Production.INFO: ProcessCDR(1,14988316,1,1,2) [2025-04-25 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988316', 'tblTempUsageDetail_20' ) start [2025-04-25 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988316', 'tblTempUsageDetail_20' ) end [2025-04-25 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:57:28] Production.INFO: ==17105== Releasing lock... [2025-04-25 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:57:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-25 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:58:05 [end_date_ymd] => 2025-04-25 16:58:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:58:05' and `end` < '2025-04-25 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-04-25 16:58:19] Production.INFO: count ==6546 [2025-04-25 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:58:05 - End Time 2025-04-25 16:58:05 [2025-04-25 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988321', 'tblTempUsageDetail_20' ) start [2025-04-25 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988321', 'tblTempUsageDetail_20' ) end [2025-04-25 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988321', 'tblTempVendorCDR_20' ) start [2025-04-25 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988321', 'tblTempVendorCDR_20' ) end [2025-04-25 16:58:22] Production.INFO: ProcessCDR(1,14988321,1,1,2) [2025-04-25 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988321', 'tblTempUsageDetail_20' ) start [2025-04-25 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988321', 'tblTempUsageDetail_20' ) end [2025-04-25 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:58:28] Production.INFO: ==17176== Releasing lock... [2025-04-25 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:58:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 13:59:05 [end_date_ymd] => 2025-04-25 16:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 13:59:05' and `end` < '2025-04-25 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-04-25 16:59:19] Production.INFO: count ==6567 [2025-04-25 16:59:22] Production.ERROR: pbx CDR StartTime 2025-04-25 13:59:05 - End Time 2025-04-25 16:59:05 [2025-04-25 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988326', 'tblTempUsageDetail_20' ) start [2025-04-25 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988326', 'tblTempUsageDetail_20' ) end [2025-04-25 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988326', 'tblTempVendorCDR_20' ) start [2025-04-25 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988326', 'tblTempVendorCDR_20' ) end [2025-04-25 16:59:22] Production.INFO: ProcessCDR(1,14988326,1,1,2) [2025-04-25 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988326', 'tblTempUsageDetail_20' ) start [2025-04-25 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988326', 'tblTempUsageDetail_20' ) end [2025-04-25 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 16:59:27] Production.INFO: ==17247== Releasing lock... [2025-04-25 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 16:59:27] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:00:06 [end_date_ymd] => 2025-04-25 17:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:00:06' and `end` < '2025-04-25 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-04-25 17:00:20] Production.INFO: count ==6562 [2025-04-25 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-25 14:00:06 - End Time 2025-04-25 17:00:06 [2025-04-25 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988332', 'tblTempUsageDetail_20' ) start [2025-04-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988332', 'tblTempUsageDetail_20' ) end [2025-04-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988332', 'tblTempVendorCDR_20' ) start [2025-04-25 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988332', 'tblTempVendorCDR_20' ) end [2025-04-25 17:00:23] Production.INFO: ProcessCDR(1,14988332,1,1,2) [2025-04-25 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988332', 'tblTempUsageDetail_20' ) start [2025-04-25 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988332', 'tblTempUsageDetail_20' ) end [2025-04-25 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:00:29] Production.INFO: ==17321== Releasing lock... [2025-04-25 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:00:29] Production.INFO: 77.25 MB #Memory Used# [2025-04-25 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:01:05 [end_date_ymd] => 2025-04-25 17:01:05 [RateCDR] => 1 ) [2025-04-25 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:01:05' and `end` < '2025-04-25 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:01:19] Production.INFO: count ==6531 [2025-04-25 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:01:05 - End Time 2025-04-25 17:01:05 [2025-04-25 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988337', 'tblTempUsageDetail_20' ) start [2025-04-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988337', 'tblTempUsageDetail_20' ) end [2025-04-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988337', 'tblTempVendorCDR_20' ) start [2025-04-25 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988337', 'tblTempVendorCDR_20' ) end [2025-04-25 17:01:22] Production.INFO: ProcessCDR(1,14988337,1,1,2) [2025-04-25 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988337', 'tblTempUsageDetail_20' ) start [2025-04-25 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988337', 'tblTempUsageDetail_20' ) end [2025-04-25 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:01:27] Production.INFO: ==17408== Releasing lock... [2025-04-25 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:01:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:02:05 [end_date_ymd] => 2025-04-25 17:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:02:05' and `end` < '2025-04-25 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-04-25 17:02:19] Production.INFO: count ==6507 [2025-04-25 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:02:05 - End Time 2025-04-25 17:02:05 [2025-04-25 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988342', 'tblTempUsageDetail_20' ) start [2025-04-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988342', 'tblTempUsageDetail_20' ) end [2025-04-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988342', 'tblTempVendorCDR_20' ) start [2025-04-25 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988342', 'tblTempVendorCDR_20' ) end [2025-04-25 17:02:22] Production.INFO: ProcessCDR(1,14988342,1,1,2) [2025-04-25 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988342', 'tblTempUsageDetail_20' ) start [2025-04-25 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988342', 'tblTempUsageDetail_20' ) end [2025-04-25 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:02:27] Production.INFO: ==17477== Releasing lock... [2025-04-25 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:02:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:03:05 [end_date_ymd] => 2025-04-25 17:03:05 [RateCDR] => 1 ) [2025-04-25 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:03:05' and `end` < '2025-04-25 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:03:19] Production.INFO: count ==6511 [2025-04-25 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:03:05 - End Time 2025-04-25 17:03:05 [2025-04-25 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988347', 'tblTempUsageDetail_20' ) start [2025-04-25 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988347', 'tblTempUsageDetail_20' ) end [2025-04-25 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988347', 'tblTempVendorCDR_20' ) start [2025-04-25 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988347', 'tblTempVendorCDR_20' ) end [2025-04-25 17:03:22] Production.INFO: ProcessCDR(1,14988347,1,1,2) [2025-04-25 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988347', 'tblTempUsageDetail_20' ) start [2025-04-25 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988347', 'tblTempUsageDetail_20' ) end [2025-04-25 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:03:27] Production.INFO: ==17553== Releasing lock... [2025-04-25 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:03:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:04:06 [end_date_ymd] => 2025-04-25 17:04:06 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:04:06' and `end` < '2025-04-25 17: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-04-25 17:04:20] Production.INFO: count ==6510 [2025-04-25 17:04:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:04:06 - End Time 2025-04-25 17:04:06 [2025-04-25 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988352', 'tblTempUsageDetail_20' ) start [2025-04-25 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988352', 'tblTempUsageDetail_20' ) end [2025-04-25 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988352', 'tblTempVendorCDR_20' ) start [2025-04-25 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988352', 'tblTempVendorCDR_20' ) end [2025-04-25 17:04:23] Production.INFO: ProcessCDR(1,14988352,1,1,2) [2025-04-25 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988352', 'tblTempUsageDetail_20' ) start [2025-04-25 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988352', 'tblTempUsageDetail_20' ) end [2025-04-25 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:04:27] Production.INFO: ==17621== Releasing lock... [2025-04-25 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:04:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:05:04 [end_date_ymd] => 2025-04-25 17:05:04 [RateCDR] => 1 ) [2025-04-25 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:05:04' and `end` < '2025-04-25 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:05:18] Production.INFO: count ==6521 [2025-04-25 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:05:04 - End Time 2025-04-25 17:05:04 [2025-04-25 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988357', 'tblTempUsageDetail_20' ) start [2025-04-25 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988357', 'tblTempUsageDetail_20' ) end [2025-04-25 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988357', 'tblTempVendorCDR_20' ) start [2025-04-25 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988357', 'tblTempVendorCDR_20' ) end [2025-04-25 17:05:21] Production.INFO: ProcessCDR(1,14988357,1,1,2) [2025-04-25 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988357', 'tblTempUsageDetail_20' ) start [2025-04-25 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988357', 'tblTempUsageDetail_20' ) end [2025-04-25 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:05:27] Production.INFO: ==17691== Releasing lock... [2025-04-25 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:05:27] Production.INFO: 77 MB #Memory Used# [2025-04-25 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:06:05 [end_date_ymd] => 2025-04-25 17:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:06:05' and `end` < '2025-04-25 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-04-25 17:06:20] Production.INFO: count ==6510 [2025-04-25 17:06:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:06:05 - End Time 2025-04-25 17:06:05 [2025-04-25 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988362', 'tblTempUsageDetail_20' ) start [2025-04-25 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988362', 'tblTempUsageDetail_20' ) end [2025-04-25 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988362', 'tblTempVendorCDR_20' ) start [2025-04-25 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988362', 'tblTempVendorCDR_20' ) end [2025-04-25 17:06:23] Production.INFO: ProcessCDR(1,14988362,1,1,2) [2025-04-25 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988362', 'tblTempUsageDetail_20' ) start [2025-04-25 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988362', 'tblTempUsageDetail_20' ) end [2025-04-25 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:06:28] Production.INFO: ==17766== Releasing lock... [2025-04-25 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:06:28] Production.INFO: 77 MB #Memory Used# [2025-04-25 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:07:05 [end_date_ymd] => 2025-04-25 17:07:05 [RateCDR] => 1 ) [2025-04-25 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:07:05' and `end` < '2025-04-25 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:07:20] Production.INFO: count ==6506 [2025-04-25 17:07:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:07:05 - End Time 2025-04-25 17:07:05 [2025-04-25 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988367', 'tblTempUsageDetail_20' ) start [2025-04-25 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988367', 'tblTempUsageDetail_20' ) end [2025-04-25 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988367', 'tblTempVendorCDR_20' ) start [2025-04-25 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988367', 'tblTempVendorCDR_20' ) end [2025-04-25 17:07:23] Production.INFO: ProcessCDR(1,14988367,1,1,2) [2025-04-25 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988367', 'tblTempUsageDetail_20' ) start [2025-04-25 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988367', 'tblTempUsageDetail_20' ) end [2025-04-25 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:07:27] Production.INFO: ==17839== Releasing lock... [2025-04-25 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:07:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:08:05 [end_date_ymd] => 2025-04-25 17:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:08:05' and `end` < '2025-04-25 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-04-25 17:08:19] Production.INFO: count ==6497 [2025-04-25 17:08:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:08:05 - End Time 2025-04-25 17:08:05 [2025-04-25 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988372', 'tblTempUsageDetail_20' ) start [2025-04-25 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988372', 'tblTempUsageDetail_20' ) end [2025-04-25 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988372', 'tblTempVendorCDR_20' ) start [2025-04-25 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988372', 'tblTempVendorCDR_20' ) end [2025-04-25 17:08:22] Production.INFO: ProcessCDR(1,14988372,1,1,2) [2025-04-25 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988372', 'tblTempUsageDetail_20' ) start [2025-04-25 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988372', 'tblTempUsageDetail_20' ) end [2025-04-25 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:08:27] Production.INFO: ==17912== Releasing lock... [2025-04-25 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:08:27] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:09:05 [end_date_ymd] => 2025-04-25 17:09:05 [RateCDR] => 1 ) [2025-04-25 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:09:05' and `end` < '2025-04-25 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:09:19] Production.INFO: count ==6483 [2025-04-25 17:09:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:09:05 - End Time 2025-04-25 17:09:05 [2025-04-25 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988377', 'tblTempUsageDetail_20' ) start [2025-04-25 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988377', 'tblTempUsageDetail_20' ) end [2025-04-25 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988377', 'tblTempVendorCDR_20' ) start [2025-04-25 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988377', 'tblTempVendorCDR_20' ) end [2025-04-25 17:09:23] Production.INFO: ProcessCDR(1,14988377,1,1,2) [2025-04-25 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988377', 'tblTempUsageDetail_20' ) start [2025-04-25 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988377', 'tblTempUsageDetail_20' ) end [2025-04-25 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:09:29] Production.INFO: ==17989== Releasing lock... [2025-04-25 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:09:29] Production.INFO: 76.75 MB #Memory Used# [2025-04-25 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:10:05 [end_date_ymd] => 2025-04-25 17:10:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:10:05' and `end` < '2025-04-25 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-04-25 17:10:20] Production.INFO: count ==6458 [2025-04-25 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:10:05 - End Time 2025-04-25 17:10:05 [2025-04-25 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988382', 'tblTempUsageDetail_20' ) start [2025-04-25 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988382', 'tblTempUsageDetail_20' ) end [2025-04-25 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988382', 'tblTempVendorCDR_20' ) start [2025-04-25 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988382', 'tblTempVendorCDR_20' ) end [2025-04-25 17:10:23] Production.INFO: ProcessCDR(1,14988382,1,1,2) [2025-04-25 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988382', 'tblTempUsageDetail_20' ) start [2025-04-25 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988382', 'tblTempUsageDetail_20' ) end [2025-04-25 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:10:28] Production.INFO: ==18061== Releasing lock... [2025-04-25 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:10:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-25 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:11:05 [end_date_ymd] => 2025-04-25 17:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:11:05' and `end` < '2025-04-25 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-04-25 17:11:19] Production.INFO: count ==6427 [2025-04-25 17:11:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:11:05 - End Time 2025-04-25 17:11:05 [2025-04-25 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988388', 'tblTempUsageDetail_20' ) start [2025-04-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988388', 'tblTempUsageDetail_20' ) end [2025-04-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988388', 'tblTempVendorCDR_20' ) start [2025-04-25 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988388', 'tblTempVendorCDR_20' ) end [2025-04-25 17:11:22] Production.INFO: ProcessCDR(1,14988388,1,1,2) [2025-04-25 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988388', 'tblTempUsageDetail_20' ) start [2025-04-25 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988388', 'tblTempUsageDetail_20' ) end [2025-04-25 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:11:27] Production.INFO: ==18140== Releasing lock... [2025-04-25 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:11:27] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:12:05 [end_date_ymd] => 2025-04-25 17:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:12:05' and `end` < '2025-04-25 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-04-25 17:12:18] Production.INFO: count ==6418 [2025-04-25 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:12:05 - End Time 2025-04-25 17:12:05 [2025-04-25 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988393', 'tblTempUsageDetail_20' ) start [2025-04-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988393', 'tblTempUsageDetail_20' ) end [2025-04-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988393', 'tblTempVendorCDR_20' ) start [2025-04-25 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988393', 'tblTempVendorCDR_20' ) end [2025-04-25 17:12:21] Production.INFO: ProcessCDR(1,14988393,1,1,2) [2025-04-25 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988393', 'tblTempUsageDetail_20' ) start [2025-04-25 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988393', 'tblTempUsageDetail_20' ) end [2025-04-25 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:12:26] Production.INFO: ==18215== Releasing lock... [2025-04-25 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:12:26] Production.INFO: 76.25 MB #Memory Used# [2025-04-25 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:13:05 [end_date_ymd] => 2025-04-25 17:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:13:05' and `end` < '2025-04-25 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-04-25 17:13:19] Production.INFO: count ==6384 [2025-04-25 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:13:05 - End Time 2025-04-25 17:13:05 [2025-04-25 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988398', 'tblTempUsageDetail_20' ) start [2025-04-25 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988398', 'tblTempUsageDetail_20' ) end [2025-04-25 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988398', 'tblTempVendorCDR_20' ) start [2025-04-25 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988398', 'tblTempVendorCDR_20' ) end [2025-04-25 17:13:22] Production.INFO: ProcessCDR(1,14988398,1,1,2) [2025-04-25 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988398', 'tblTempUsageDetail_20' ) start [2025-04-25 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988398', 'tblTempUsageDetail_20' ) end [2025-04-25 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:13:25] Production.INFO: ==18322== Releasing lock... [2025-04-25 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:13:25] Production.INFO: 76 MB #Memory Used# [2025-04-25 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:14:05 [end_date_ymd] => 2025-04-25 17:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:14:05' and `end` < '2025-04-25 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-04-25 17:14:19] Production.INFO: count ==6359 [2025-04-25 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:14:05 - End Time 2025-04-25 17:14:05 [2025-04-25 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988403', 'tblTempUsageDetail_20' ) start [2025-04-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988403', 'tblTempUsageDetail_20' ) end [2025-04-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988403', 'tblTempVendorCDR_20' ) start [2025-04-25 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988403', 'tblTempVendorCDR_20' ) end [2025-04-25 17:14:23] Production.INFO: ProcessCDR(1,14988403,1,1,2) [2025-04-25 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988403', 'tblTempUsageDetail_20' ) start [2025-04-25 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988403', 'tblTempUsageDetail_20' ) end [2025-04-25 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:14:28] Production.INFO: ==18395== Releasing lock... [2025-04-25 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:14:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:15:05 [end_date_ymd] => 2025-04-25 17:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:15:05' and `end` < '2025-04-25 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-04-25 17:15:19] Production.INFO: count ==6351 [2025-04-25 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:15:05 - End Time 2025-04-25 17:15:05 [2025-04-25 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988408', 'tblTempUsageDetail_20' ) start [2025-04-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988408', 'tblTempUsageDetail_20' ) end [2025-04-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988408', 'tblTempVendorCDR_20' ) start [2025-04-25 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988408', 'tblTempVendorCDR_20' ) end [2025-04-25 17:15:22] Production.INFO: ProcessCDR(1,14988408,1,1,2) [2025-04-25 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988408', 'tblTempUsageDetail_20' ) start [2025-04-25 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988408', 'tblTempUsageDetail_20' ) end [2025-04-25 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:15:27] Production.INFO: ==18470== Releasing lock... [2025-04-25 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:15:27] Production.INFO: 75.75 MB #Memory Used# [2025-04-25 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:16:05 [end_date_ymd] => 2025-04-25 17:16:05 [RateCDR] => 1 ) [2025-04-25 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:16:05' and `end` < '2025-04-25 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:16:19] Production.INFO: count ==6336 [2025-04-25 17:16:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:16:05 - End Time 2025-04-25 17:16:05 [2025-04-25 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988413', 'tblTempUsageDetail_20' ) start [2025-04-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988413', 'tblTempUsageDetail_20' ) end [2025-04-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988413', 'tblTempVendorCDR_20' ) start [2025-04-25 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988413', 'tblTempVendorCDR_20' ) end [2025-04-25 17:16:22] Production.INFO: ProcessCDR(1,14988413,1,1,2) [2025-04-25 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988413', 'tblTempUsageDetail_20' ) start [2025-04-25 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988413', 'tblTempUsageDetail_20' ) end [2025-04-25 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:16:26] Production.INFO: ==18541== Releasing lock... [2025-04-25 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:16:26] Production.INFO: 75.5 MB #Memory Used# [2025-04-25 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:17:05 [end_date_ymd] => 2025-04-25 17:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:17:05' and `end` < '2025-04-25 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-04-25 17:17:18] Production.INFO: count ==6318 [2025-04-25 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:17:05 - End Time 2025-04-25 17:17:05 [2025-04-25 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988418', 'tblTempUsageDetail_20' ) start [2025-04-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988418', 'tblTempUsageDetail_20' ) end [2025-04-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988418', 'tblTempVendorCDR_20' ) start [2025-04-25 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988418', 'tblTempVendorCDR_20' ) end [2025-04-25 17:17:21] Production.INFO: ProcessCDR(1,14988418,1,1,2) [2025-04-25 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988418', 'tblTempUsageDetail_20' ) start [2025-04-25 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988418', 'tblTempUsageDetail_20' ) end [2025-04-25 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:17:26] Production.INFO: ==18614== Releasing lock... [2025-04-25 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:17:26] Production.INFO: 75.5 MB #Memory Used# [2025-04-25 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:18:05 [end_date_ymd] => 2025-04-25 17:18:05 [RateCDR] => 1 ) [2025-04-25 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:18:05' and `end` < '2025-04-25 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:18:19] Production.INFO: count ==6278 [2025-04-25 17:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:18:05 - End Time 2025-04-25 17:18:05 [2025-04-25 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988423', 'tblTempUsageDetail_20' ) start [2025-04-25 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988423', 'tblTempUsageDetail_20' ) end [2025-04-25 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988423', 'tblTempVendorCDR_20' ) start [2025-04-25 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988423', 'tblTempVendorCDR_20' ) end [2025-04-25 17:18:22] Production.INFO: ProcessCDR(1,14988423,1,1,2) [2025-04-25 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988423', 'tblTempUsageDetail_20' ) start [2025-04-25 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988423', 'tblTempUsageDetail_20' ) end [2025-04-25 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:18:27] Production.INFO: ==18694== Releasing lock... [2025-04-25 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:18:27] Production.INFO: 75.25 MB #Memory Used# [2025-04-25 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:19:05 [end_date_ymd] => 2025-04-25 17:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:19:05' and `end` < '2025-04-25 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-04-25 17:19:19] Production.INFO: count ==6260 [2025-04-25 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:19:05 - End Time 2025-04-25 17:19:05 [2025-04-25 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988428', 'tblTempUsageDetail_20' ) start [2025-04-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988428', 'tblTempUsageDetail_20' ) end [2025-04-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988428', 'tblTempVendorCDR_20' ) start [2025-04-25 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988428', 'tblTempVendorCDR_20' ) end [2025-04-25 17:19:22] Production.INFO: ProcessCDR(1,14988428,1,1,2) [2025-04-25 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988428', 'tblTempUsageDetail_20' ) start [2025-04-25 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988428', 'tblTempUsageDetail_20' ) end [2025-04-25 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:19:27] Production.INFO: ==18768== Releasing lock... [2025-04-25 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:19:27] Production.INFO: 75 MB #Memory Used# [2025-04-25 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:20:06 [end_date_ymd] => 2025-04-25 17:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:20:06' and `end` < '2025-04-25 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-04-25 17:20:20] Production.INFO: count ==6224 [2025-04-25 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:20:06 - End Time 2025-04-25 17:20:06 [2025-04-25 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988432', 'tblTempUsageDetail_20' ) start [2025-04-25 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988432', 'tblTempUsageDetail_20' ) end [2025-04-25 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988432', 'tblTempVendorCDR_20' ) start [2025-04-25 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988432', 'tblTempVendorCDR_20' ) end [2025-04-25 17:20:23] Production.INFO: ProcessCDR(1,14988432,1,1,2) [2025-04-25 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988432', 'tblTempUsageDetail_20' ) start [2025-04-25 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988432', 'tblTempUsageDetail_20' ) end [2025-04-25 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:20:28] Production.INFO: ==18842== Releasing lock... [2025-04-25 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:20:28] Production.INFO: 74.75 MB #Memory Used# [2025-04-25 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:21:05 [end_date_ymd] => 2025-04-25 17:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:21:05' and `end` < '2025-04-25 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-04-25 17:21:19] Production.INFO: count ==6171 [2025-04-25 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:21:05 - End Time 2025-04-25 17:21:05 [2025-04-25 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988439', 'tblTempUsageDetail_20' ) start [2025-04-25 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988439', 'tblTempUsageDetail_20' ) end [2025-04-25 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988439', 'tblTempVendorCDR_20' ) start [2025-04-25 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988439', 'tblTempVendorCDR_20' ) end [2025-04-25 17:21:22] Production.INFO: ProcessCDR(1,14988439,1,1,2) [2025-04-25 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988439', 'tblTempUsageDetail_20' ) start [2025-04-25 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988439', 'tblTempUsageDetail_20' ) end [2025-04-25 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:21:26] Production.INFO: ==18918== Releasing lock... [2025-04-25 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:21:26] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:22:05 [end_date_ymd] => 2025-04-25 17:22:05 [RateCDR] => 1 ) [2025-04-25 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:22:05' and `end` < '2025-04-25 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:22:19] Production.INFO: count ==6134 [2025-04-25 17:22:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:22:05 - End Time 2025-04-25 17:22:05 [2025-04-25 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988444', 'tblTempUsageDetail_20' ) start [2025-04-25 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988444', 'tblTempUsageDetail_20' ) end [2025-04-25 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988444', 'tblTempVendorCDR_20' ) start [2025-04-25 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988444', 'tblTempVendorCDR_20' ) end [2025-04-25 17:22:22] Production.INFO: ProcessCDR(1,14988444,1,1,2) [2025-04-25 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988444', 'tblTempUsageDetail_20' ) start [2025-04-25 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988444', 'tblTempUsageDetail_20' ) end [2025-04-25 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:22:26] Production.INFO: ==18987== Releasing lock... [2025-04-25 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:22:26] Production.INFO: 74 MB #Memory Used# [2025-04-25 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:23:04 [end_date_ymd] => 2025-04-25 17:23:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:23:04' and `end` < '2025-04-25 17: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-04-25 17:23:18] Production.INFO: count ==6146 [2025-04-25 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:23:04 - End Time 2025-04-25 17:23:04 [2025-04-25 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988449', 'tblTempUsageDetail_20' ) start [2025-04-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988449', 'tblTempUsageDetail_20' ) end [2025-04-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988449', 'tblTempVendorCDR_20' ) start [2025-04-25 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988449', 'tblTempVendorCDR_20' ) end [2025-04-25 17:23:21] Production.INFO: ProcessCDR(1,14988449,1,1,2) [2025-04-25 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988449', 'tblTempUsageDetail_20' ) start [2025-04-25 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988449', 'tblTempUsageDetail_20' ) end [2025-04-25 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:23:27] Production.INFO: ==19059== Releasing lock... [2025-04-25 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:23:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-25 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:24:06 [end_date_ymd] => 2025-04-25 17:24:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:24:06' and `end` < '2025-04-25 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-04-25 17:24:20] Production.INFO: count ==6130 [2025-04-25 17:24:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:24:06 - End Time 2025-04-25 17:24:06 [2025-04-25 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988454', 'tblTempUsageDetail_20' ) start [2025-04-25 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988454', 'tblTempUsageDetail_20' ) end [2025-04-25 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988454', 'tblTempVendorCDR_20' ) start [2025-04-25 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988454', 'tblTempVendorCDR_20' ) end [2025-04-25 17:24:23] Production.INFO: ProcessCDR(1,14988454,1,1,2) [2025-04-25 17:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988454', 'tblTempUsageDetail_20' ) start [2025-04-25 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988454', 'tblTempUsageDetail_20' ) end [2025-04-25 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:24:28] Production.INFO: ==19130== Releasing lock... [2025-04-25 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:24:28] Production.INFO: 74 MB #Memory Used# [2025-04-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:25:05 [end_date_ymd] => 2025-04-25 17:25:05 [RateCDR] => 1 ) [2025-04-25 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:25:05' and `end` < '2025-04-25 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:25:19] Production.INFO: count ==6123 [2025-04-25 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:25:05 - End Time 2025-04-25 17:25:05 [2025-04-25 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988459', 'tblTempUsageDetail_20' ) start [2025-04-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988459', 'tblTempUsageDetail_20' ) end [2025-04-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988459', 'tblTempVendorCDR_20' ) start [2025-04-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988459', 'tblTempVendorCDR_20' ) end [2025-04-25 17:25:22] Production.INFO: ProcessCDR(1,14988459,1,1,2) [2025-04-25 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988459', 'tblTempUsageDetail_20' ) start [2025-04-25 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988459', 'tblTempUsageDetail_20' ) end [2025-04-25 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:25:27] Production.INFO: ==19208== Releasing lock... [2025-04-25 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:25:27] Production.INFO: 74 MB #Memory Used# [2025-04-25 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:26:05 [end_date_ymd] => 2025-04-25 17:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:26:05' and `end` < '2025-04-25 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-04-25 17:26:19] Production.INFO: count ==6128 [2025-04-25 17:26:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:26:05 - End Time 2025-04-25 17:26:05 [2025-04-25 17:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988464', 'tblTempUsageDetail_20' ) start [2025-04-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988464', 'tblTempUsageDetail_20' ) end [2025-04-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988464', 'tblTempVendorCDR_20' ) start [2025-04-25 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988464', 'tblTempVendorCDR_20' ) end [2025-04-25 17:26:22] Production.INFO: ProcessCDR(1,14988464,1,1,2) [2025-04-25 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988464', 'tblTempUsageDetail_20' ) start [2025-04-25 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988464', 'tblTempUsageDetail_20' ) end [2025-04-25 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:26:27] Production.INFO: ==19281== Releasing lock... [2025-04-25 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:26:27] Production.INFO: 74 MB #Memory Used# [2025-04-25 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:27:05 [end_date_ymd] => 2025-04-25 17:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:27:05' and `end` < '2025-04-25 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-04-25 17:27:19] Production.INFO: count ==6114 [2025-04-25 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:27:05 - End Time 2025-04-25 17:27:05 [2025-04-25 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988469', 'tblTempUsageDetail_20' ) start [2025-04-25 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988469', 'tblTempUsageDetail_20' ) end [2025-04-25 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988469', 'tblTempVendorCDR_20' ) start [2025-04-25 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988469', 'tblTempVendorCDR_20' ) end [2025-04-25 17:27:22] Production.INFO: ProcessCDR(1,14988469,1,1,2) [2025-04-25 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988469', 'tblTempUsageDetail_20' ) start [2025-04-25 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988469', 'tblTempUsageDetail_20' ) end [2025-04-25 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:27:25] Production.INFO: ==19351== Releasing lock... [2025-04-25 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:27:25] Production.INFO: 74 MB #Memory Used# [2025-04-25 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:28:05 [end_date_ymd] => 2025-04-25 17:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:28:05' and `end` < '2025-04-25 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-04-25 17:28:19] Production.INFO: count ==6097 [2025-04-25 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:28:05 - End Time 2025-04-25 17:28:05 [2025-04-25 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988474', 'tblTempUsageDetail_20' ) start [2025-04-25 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988474', 'tblTempUsageDetail_20' ) end [2025-04-25 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988474', 'tblTempVendorCDR_20' ) start [2025-04-25 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988474', 'tblTempVendorCDR_20' ) end [2025-04-25 17:28:22] Production.INFO: ProcessCDR(1,14988474,1,1,2) [2025-04-25 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988474', 'tblTempUsageDetail_20' ) start [2025-04-25 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988474', 'tblTempUsageDetail_20' ) end [2025-04-25 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:28:27] Production.INFO: ==19462== Releasing lock... [2025-04-25 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:28:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-25 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:29:06 [end_date_ymd] => 2025-04-25 17:29:06 [RateCDR] => 1 ) [2025-04-25 17:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:29:06' and `end` < '2025-04-25 17:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:29:19] Production.INFO: count ==6067 [2025-04-25 17:29:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:29:06 - End Time 2025-04-25 17:29:06 [2025-04-25 17:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988479', 'tblTempUsageDetail_20' ) start [2025-04-25 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988479', 'tblTempUsageDetail_20' ) end [2025-04-25 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988479', 'tblTempVendorCDR_20' ) start [2025-04-25 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988479', 'tblTempVendorCDR_20' ) end [2025-04-25 17:29:22] Production.INFO: ProcessCDR(1,14988479,1,1,2) [2025-04-25 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988479', 'tblTempUsageDetail_20' ) start [2025-04-25 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988479', 'tblTempUsageDetail_20' ) end [2025-04-25 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:29:26] Production.INFO: ==19533== Releasing lock... [2025-04-25 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:29:26] Production.INFO: 73.5 MB #Memory Used# [2025-04-25 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:30:06 [end_date_ymd] => 2025-04-25 17:30:06 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:30:06' and `end` < '2025-04-25 17: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-04-25 17:30:20] Production.INFO: count ==6051 [2025-04-25 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:30:06 - End Time 2025-04-25 17:30:06 [2025-04-25 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988485', 'tblTempUsageDetail_20' ) start [2025-04-25 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988485', 'tblTempUsageDetail_20' ) end [2025-04-25 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988485', 'tblTempVendorCDR_20' ) start [2025-04-25 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988485', 'tblTempVendorCDR_20' ) end [2025-04-25 17:30:23] Production.INFO: ProcessCDR(1,14988485,1,1,2) [2025-04-25 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988485', 'tblTempUsageDetail_20' ) start [2025-04-25 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988485', 'tblTempUsageDetail_20' ) end [2025-04-25 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:30:28] Production.INFO: ==19608== Releasing lock... [2025-04-25 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:30:28] Production.INFO: 73.5 MB #Memory Used# [2025-04-25 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:31:06 [end_date_ymd] => 2025-04-25 17:31:06 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:31:06' and `end` < '2025-04-25 17: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-04-25 17:31:20] Production.INFO: count ==6018 [2025-04-25 17:31:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:31:06 - End Time 2025-04-25 17:31:06 [2025-04-25 17:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988490', 'tblTempUsageDetail_20' ) start [2025-04-25 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988490', 'tblTempUsageDetail_20' ) end [2025-04-25 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988490', 'tblTempVendorCDR_20' ) start [2025-04-25 17:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988490', 'tblTempVendorCDR_20' ) end [2025-04-25 17:31:23] Production.INFO: ProcessCDR(1,14988490,1,1,2) [2025-04-25 17:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988490', 'tblTempUsageDetail_20' ) start [2025-04-25 17:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988490', 'tblTempUsageDetail_20' ) end [2025-04-25 17:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:31:28] Production.INFO: ==19681== Releasing lock... [2025-04-25 17:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:31:28] Production.INFO: 73.25 MB #Memory Used# [2025-04-25 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:32:05 [end_date_ymd] => 2025-04-25 17:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:32:05' and `end` < '2025-04-25 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-04-25 17:32:19] Production.INFO: count ==6004 [2025-04-25 17:32:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:32:05 - End Time 2025-04-25 17:32:05 [2025-04-25 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988495', 'tblTempUsageDetail_20' ) start [2025-04-25 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988495', 'tblTempUsageDetail_20' ) end [2025-04-25 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988495', 'tblTempVendorCDR_20' ) start [2025-04-25 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988495', 'tblTempVendorCDR_20' ) end [2025-04-25 17:32:22] Production.INFO: ProcessCDR(1,14988495,1,1,2) [2025-04-25 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988495', 'tblTempUsageDetail_20' ) start [2025-04-25 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988495', 'tblTempUsageDetail_20' ) end [2025-04-25 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:32:25] Production.INFO: ==19751== Releasing lock... [2025-04-25 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:32:25] Production.INFO: 73.25 MB #Memory Used# [2025-04-25 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:33:05 [end_date_ymd] => 2025-04-25 17:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:33:05' and `end` < '2025-04-25 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-04-25 17:33:19] Production.INFO: count ==5982 [2025-04-25 17:33:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:33:05 - End Time 2025-04-25 17:33:05 [2025-04-25 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988500', 'tblTempUsageDetail_20' ) start [2025-04-25 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988500', 'tblTempUsageDetail_20' ) end [2025-04-25 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988500', 'tblTempVendorCDR_20' ) start [2025-04-25 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988500', 'tblTempVendorCDR_20' ) end [2025-04-25 17:33:22] Production.INFO: ProcessCDR(1,14988500,1,1,2) [2025-04-25 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988500', 'tblTempUsageDetail_20' ) start [2025-04-25 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988500', 'tblTempUsageDetail_20' ) end [2025-04-25 17:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:33:28] Production.INFO: ==19820== Releasing lock... [2025-04-25 17:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:33:28] Production.INFO: 73 MB #Memory Used# [2025-04-25 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:34:04 [end_date_ymd] => 2025-04-25 17:34:04 [RateCDR] => 1 ) [2025-04-25 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:34:04' and `end` < '2025-04-25 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:34:18] Production.INFO: count ==5967 [2025-04-25 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:34:04 - End Time 2025-04-25 17:34:04 [2025-04-25 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988505', 'tblTempUsageDetail_20' ) start [2025-04-25 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988505', 'tblTempUsageDetail_20' ) end [2025-04-25 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988505', 'tblTempVendorCDR_20' ) start [2025-04-25 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988505', 'tblTempVendorCDR_20' ) end [2025-04-25 17:34:21] Production.INFO: ProcessCDR(1,14988505,1,1,2) [2025-04-25 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988505', 'tblTempUsageDetail_20' ) start [2025-04-25 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988505', 'tblTempUsageDetail_20' ) end [2025-04-25 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:34:26] Production.INFO: ==19896== Releasing lock... [2025-04-25 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:34:26] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:35:05 [end_date_ymd] => 2025-04-25 17:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:35:05' and `end` < '2025-04-25 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-04-25 17:35:19] Production.INFO: count ==5943 [2025-04-25 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:35:05 - End Time 2025-04-25 17:35:05 [2025-04-25 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988510', 'tblTempUsageDetail_20' ) start [2025-04-25 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988510', 'tblTempUsageDetail_20' ) end [2025-04-25 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988510', 'tblTempVendorCDR_20' ) start [2025-04-25 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988510', 'tblTempVendorCDR_20' ) end [2025-04-25 17:35:22] Production.INFO: ProcessCDR(1,14988510,1,1,2) [2025-04-25 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988510', 'tblTempUsageDetail_20' ) start [2025-04-25 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988510', 'tblTempUsageDetail_20' ) end [2025-04-25 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:35:27] Production.INFO: ==19968== Releasing lock... [2025-04-25 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:35:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-25 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:36:06 [end_date_ymd] => 2025-04-25 17:36:06 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:36:06' and `end` < '2025-04-25 17: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-04-25 17:36:20] Production.INFO: count ==5939 [2025-04-25 17:36:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:36:06 - End Time 2025-04-25 17:36:06 [2025-04-25 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988515', 'tblTempUsageDetail_20' ) start [2025-04-25 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988515', 'tblTempUsageDetail_20' ) end [2025-04-25 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988515', 'tblTempVendorCDR_20' ) start [2025-04-25 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988515', 'tblTempVendorCDR_20' ) end [2025-04-25 17:36:22] Production.INFO: ProcessCDR(1,14988515,1,1,2) [2025-04-25 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988515', 'tblTempUsageDetail_20' ) start [2025-04-25 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988515', 'tblTempUsageDetail_20' ) end [2025-04-25 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:36:28] Production.INFO: ==20039== Releasing lock... [2025-04-25 17:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:36:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:37:05 [end_date_ymd] => 2025-04-25 17:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:37:05' and `end` < '2025-04-25 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-04-25 17:37:19] Production.INFO: count ==5922 [2025-04-25 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:37:05 - End Time 2025-04-25 17:37:05 [2025-04-25 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988520', 'tblTempUsageDetail_20' ) start [2025-04-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988520', 'tblTempUsageDetail_20' ) end [2025-04-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988520', 'tblTempVendorCDR_20' ) start [2025-04-25 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988520', 'tblTempVendorCDR_20' ) end [2025-04-25 17:37:22] Production.INFO: ProcessCDR(1,14988520,1,1,2) [2025-04-25 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988520', 'tblTempUsageDetail_20' ) start [2025-04-25 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988520', 'tblTempUsageDetail_20' ) end [2025-04-25 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:37:27] Production.INFO: ==20111== Releasing lock... [2025-04-25 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:37:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-25 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:38:05 [end_date_ymd] => 2025-04-25 17:38:05 [RateCDR] => 1 ) [2025-04-25 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:38:05' and `end` < '2025-04-25 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:38:19] Production.INFO: count ==5883 [2025-04-25 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:38:05 - End Time 2025-04-25 17:38:05 [2025-04-25 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988525', 'tblTempUsageDetail_20' ) start [2025-04-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988525', 'tblTempUsageDetail_20' ) end [2025-04-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988525', 'tblTempVendorCDR_20' ) start [2025-04-25 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988525', 'tblTempVendorCDR_20' ) end [2025-04-25 17:38:22] Production.INFO: ProcessCDR(1,14988525,1,1,2) [2025-04-25 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988525', 'tblTempUsageDetail_20' ) start [2025-04-25 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988525', 'tblTempUsageDetail_20' ) end [2025-04-25 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:38:27] Production.INFO: ==20186== Releasing lock... [2025-04-25 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:38:27] Production.INFO: 72.25 MB #Memory Used# [2025-04-25 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:39:04 [end_date_ymd] => 2025-04-25 17:39:04 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:39:04' and `end` < '2025-04-25 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:39:18] Production.INFO: count ==5873 [2025-04-25 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:39:04 - End Time 2025-04-25 17:39:04 [2025-04-25 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988530', 'tblTempUsageDetail_20' ) start [2025-04-25 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988530', 'tblTempUsageDetail_20' ) end [2025-04-25 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988530', 'tblTempVendorCDR_20' ) start [2025-04-25 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988530', 'tblTempVendorCDR_20' ) end [2025-04-25 17:39:21] Production.INFO: ProcessCDR(1,14988530,1,1,2) [2025-04-25 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988530', 'tblTempUsageDetail_20' ) start [2025-04-25 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988530', 'tblTempUsageDetail_20' ) end [2025-04-25 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:39:26] Production.INFO: ==20265== Releasing lock... [2025-04-25 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:39:26] Production.INFO: 72 MB #Memory Used# [2025-04-25 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:40:06 [end_date_ymd] => 2025-04-25 17:40:06 [RateCDR] => 1 ) [2025-04-25 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:40:06' and `end` < '2025-04-25 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:40:20] Production.INFO: count ==5859 [2025-04-25 17:40:23] Production.ERROR: pbx CDR StartTime 2025-04-25 14:40:06 - End Time 2025-04-25 17:40:06 [2025-04-25 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988536', 'tblTempUsageDetail_20' ) start [2025-04-25 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988536', 'tblTempUsageDetail_20' ) end [2025-04-25 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988536', 'tblTempVendorCDR_20' ) start [2025-04-25 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988536', 'tblTempVendorCDR_20' ) end [2025-04-25 17:40:23] Production.INFO: ProcessCDR(1,14988536,1,1,2) [2025-04-25 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988536', 'tblTempUsageDetail_20' ) start [2025-04-25 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988536', 'tblTempUsageDetail_20' ) end [2025-04-25 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:40:27] Production.INFO: ==20338== Releasing lock... [2025-04-25 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:40:27] Production.INFO: 72 MB #Memory Used# [2025-04-25 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:41:05 [end_date_ymd] => 2025-04-25 17:41:05 [RateCDR] => 1 ) [2025-04-25 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:41:05' and `end` < '2025-04-25 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:41:19] Production.INFO: count ==5863 [2025-04-25 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:41:05 - End Time 2025-04-25 17:41:05 [2025-04-25 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988541', 'tblTempUsageDetail_20' ) start [2025-04-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988541', 'tblTempUsageDetail_20' ) end [2025-04-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988541', 'tblTempVendorCDR_20' ) start [2025-04-25 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988541', 'tblTempVendorCDR_20' ) end [2025-04-25 17:41:21] Production.INFO: ProcessCDR(1,14988541,1,1,2) [2025-04-25 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988541', 'tblTempUsageDetail_20' ) start [2025-04-25 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988541', 'tblTempUsageDetail_20' ) end [2025-04-25 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:41:26] Production.INFO: ==20410== Releasing lock... [2025-04-25 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:41:26] Production.INFO: 72 MB #Memory Used# [2025-04-25 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:42:05 [end_date_ymd] => 2025-04-25 17:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:42:05' and `end` < '2025-04-25 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-04-25 17:42:19] Production.INFO: count ==5820 [2025-04-25 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:42:05 - End Time 2025-04-25 17:42:05 [2025-04-25 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988546', 'tblTempUsageDetail_20' ) start [2025-04-25 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988546', 'tblTempUsageDetail_20' ) end [2025-04-25 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988546', 'tblTempVendorCDR_20' ) start [2025-04-25 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988546', 'tblTempVendorCDR_20' ) end [2025-04-25 17:42:22] Production.INFO: ProcessCDR(1,14988546,1,1,2) [2025-04-25 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988546', 'tblTempUsageDetail_20' ) start [2025-04-25 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988546', 'tblTempUsageDetail_20' ) end [2025-04-25 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:42:25] Production.INFO: ==20485== Releasing lock... [2025-04-25 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:42:25] Production.INFO: 71.75 MB #Memory Used# [2025-04-25 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:43:04 [end_date_ymd] => 2025-04-25 17:43:04 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:43:04' and `end` < '2025-04-25 17: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-04-25 17:43:18] Production.INFO: count ==5798 [2025-04-25 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-25 14:43:04 - End Time 2025-04-25 17:43:04 [2025-04-25 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988551', 'tblTempUsageDetail_20' ) start [2025-04-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988551', 'tblTempUsageDetail_20' ) end [2025-04-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988551', 'tblTempVendorCDR_20' ) start [2025-04-25 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988551', 'tblTempVendorCDR_20' ) end [2025-04-25 17:43:21] Production.INFO: ProcessCDR(1,14988551,1,1,2) [2025-04-25 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988551', 'tblTempUsageDetail_20' ) start [2025-04-25 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988551', 'tblTempUsageDetail_20' ) end [2025-04-25 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:43:26] Production.INFO: ==20558== Releasing lock... [2025-04-25 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:43:26] Production.INFO: 71.5 MB #Memory Used# [2025-04-25 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:44:05 [end_date_ymd] => 2025-04-25 17:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:44:05' and `end` < '2025-04-25 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-04-25 17:44:19] Production.INFO: count ==5772 [2025-04-25 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:44:05 - End Time 2025-04-25 17:44:05 [2025-04-25 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988556', 'tblTempUsageDetail_20' ) start [2025-04-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988556', 'tblTempUsageDetail_20' ) end [2025-04-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988556', 'tblTempVendorCDR_20' ) start [2025-04-25 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988556', 'tblTempVendorCDR_20' ) end [2025-04-25 17:44:22] Production.INFO: ProcessCDR(1,14988556,1,1,2) [2025-04-25 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988556', 'tblTempUsageDetail_20' ) start [2025-04-25 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988556', 'tblTempUsageDetail_20' ) end [2025-04-25 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:44:27] Production.INFO: ==20671== Releasing lock... [2025-04-25 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:44:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:45:06 [end_date_ymd] => 2025-04-25 17:45:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:45:06' and `end` < '2025-04-25 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-04-25 17:45:20] Production.INFO: count ==5749 [2025-04-25 17:45:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:45:06 - End Time 2025-04-25 17:45:06 [2025-04-25 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988561', 'tblTempUsageDetail_20' ) start [2025-04-25 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988561', 'tblTempUsageDetail_20' ) end [2025-04-25 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988561', 'tblTempVendorCDR_20' ) start [2025-04-25 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988561', 'tblTempVendorCDR_20' ) end [2025-04-25 17:45:22] Production.INFO: ProcessCDR(1,14988561,1,1,2) [2025-04-25 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988561', 'tblTempUsageDetail_20' ) start [2025-04-25 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988561', 'tblTempUsageDetail_20' ) end [2025-04-25 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:45:27] Production.INFO: ==20908== Releasing lock... [2025-04-25 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:45:27] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:46:05 [end_date_ymd] => 2025-04-25 17:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:46:05' and `end` < '2025-04-25 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-04-25 17:46:19] Production.INFO: count ==5753 [2025-04-25 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:46:05 - End Time 2025-04-25 17:46:05 [2025-04-25 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988566', 'tblTempUsageDetail_20' ) start [2025-04-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988566', 'tblTempUsageDetail_20' ) end [2025-04-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988566', 'tblTempVendorCDR_20' ) start [2025-04-25 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988566', 'tblTempVendorCDR_20' ) end [2025-04-25 17:46:22] Production.INFO: ProcessCDR(1,14988566,1,1,2) [2025-04-25 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988566', 'tblTempUsageDetail_20' ) start [2025-04-25 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988566', 'tblTempUsageDetail_20' ) end [2025-04-25 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:46:26] Production.INFO: ==20982== Releasing lock... [2025-04-25 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:46:26] Production.INFO: 71.25 MB #Memory Used# [2025-04-25 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:47:05 [end_date_ymd] => 2025-04-25 17:47:05 [RateCDR] => 1 ) [2025-04-25 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:47:05' and `end` < '2025-04-25 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:47:19] Production.INFO: count ==5736 [2025-04-25 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:47:05 - End Time 2025-04-25 17:47:05 [2025-04-25 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988571', 'tblTempUsageDetail_20' ) start [2025-04-25 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988571', 'tblTempUsageDetail_20' ) end [2025-04-25 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988571', 'tblTempVendorCDR_20' ) start [2025-04-25 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988571', 'tblTempVendorCDR_20' ) end [2025-04-25 17:47:21] Production.INFO: ProcessCDR(1,14988571,1,1,2) [2025-04-25 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988571', 'tblTempUsageDetail_20' ) start [2025-04-25 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988571', 'tblTempUsageDetail_20' ) end [2025-04-25 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:47:26] Production.INFO: ==21061== Releasing lock... [2025-04-25 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:47:26] Production.INFO: 71 MB #Memory Used# [2025-04-25 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:48:05 [end_date_ymd] => 2025-04-25 17:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:48:05' and `end` < '2025-04-25 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-04-25 17:48:19] Production.INFO: count ==5741 [2025-04-25 17:48:23] Production.ERROR: pbx CDR StartTime 2025-04-25 14:48:05 - End Time 2025-04-25 17:48:05 [2025-04-25 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988576', 'tblTempUsageDetail_20' ) start [2025-04-25 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988576', 'tblTempUsageDetail_20' ) end [2025-04-25 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988576', 'tblTempVendorCDR_20' ) start [2025-04-25 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988576', 'tblTempVendorCDR_20' ) end [2025-04-25 17:48:23] Production.INFO: ProcessCDR(1,14988576,1,1,2) [2025-04-25 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988576', 'tblTempUsageDetail_20' ) start [2025-04-25 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988576', 'tblTempUsageDetail_20' ) end [2025-04-25 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:48:28] Production.INFO: ==21148== Releasing lock... [2025-04-25 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:48:28] Production.INFO: 71 MB #Memory Used# [2025-04-25 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:49:05 [end_date_ymd] => 2025-04-25 17:49:05 [RateCDR] => 1 ) [2025-04-25 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:49:05' and `end` < '2025-04-25 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:49:20] Production.INFO: count ==5713 [2025-04-25 17:49:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:49:05 - End Time 2025-04-25 17:49:05 [2025-04-25 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988581', 'tblTempUsageDetail_20' ) start [2025-04-25 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988581', 'tblTempUsageDetail_20' ) end [2025-04-25 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988581', 'tblTempVendorCDR_20' ) start [2025-04-25 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988581', 'tblTempVendorCDR_20' ) end [2025-04-25 17:49:23] Production.INFO: ProcessCDR(1,14988581,1,1,2) [2025-04-25 17:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988581', 'tblTempUsageDetail_20' ) start [2025-04-25 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988581', 'tblTempUsageDetail_20' ) end [2025-04-25 17:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:49:28] Production.INFO: ==21312== Releasing lock... [2025-04-25 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:49:28] Production.INFO: 71 MB #Memory Used# [2025-04-25 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:50:06 [end_date_ymd] => 2025-04-25 17:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:50:06' and `end` < '2025-04-25 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-04-25 17:50:19] Production.INFO: count ==5723 [2025-04-25 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-25 14:50:06 - End Time 2025-04-25 17:50:06 [2025-04-25 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988587', 'tblTempUsageDetail_20' ) start [2025-04-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988587', 'tblTempUsageDetail_20' ) end [2025-04-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988587', 'tblTempVendorCDR_20' ) start [2025-04-25 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988587', 'tblTempVendorCDR_20' ) end [2025-04-25 17:50:22] Production.INFO: ProcessCDR(1,14988587,1,1,2) [2025-04-25 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988587', 'tblTempUsageDetail_20' ) start [2025-04-25 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988587', 'tblTempUsageDetail_20' ) end [2025-04-25 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:50:27] Production.INFO: ==21386== Releasing lock... [2025-04-25 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:50:27] Production.INFO: 71 MB #Memory Used# [2025-04-25 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:51:05 [end_date_ymd] => 2025-04-25 17:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:51:05' and `end` < '2025-04-25 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-04-25 17:51:19] Production.INFO: count ==5692 [2025-04-25 17:51:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:51:05 - End Time 2025-04-25 17:51:05 [2025-04-25 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988592', 'tblTempUsageDetail_20' ) start [2025-04-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988592', 'tblTempUsageDetail_20' ) end [2025-04-25 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988592', 'tblTempVendorCDR_20' ) start [2025-04-25 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988592', 'tblTempVendorCDR_20' ) end [2025-04-25 17:51:22] Production.INFO: ProcessCDR(1,14988592,1,1,2) [2025-04-25 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988592', 'tblTempUsageDetail_20' ) start [2025-04-25 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988592', 'tblTempUsageDetail_20' ) end [2025-04-25 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:51:27] Production.INFO: ==21457== Releasing lock... [2025-04-25 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:51:27] Production.INFO: 70.75 MB #Memory Used# [2025-04-25 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:52:05 [end_date_ymd] => 2025-04-25 17:52:05 [RateCDR] => 1 ) [2025-04-25 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:52:05' and `end` < '2025-04-25 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:52:18] Production.INFO: count ==5659 [2025-04-25 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-25 14:52:05 - End Time 2025-04-25 17:52:05 [2025-04-25 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988597', 'tblTempUsageDetail_20' ) start [2025-04-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988597', 'tblTempUsageDetail_20' ) end [2025-04-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988597', 'tblTempVendorCDR_20' ) start [2025-04-25 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988597', 'tblTempVendorCDR_20' ) end [2025-04-25 17:52:21] Production.INFO: ProcessCDR(1,14988597,1,1,2) [2025-04-25 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988597', 'tblTempUsageDetail_20' ) start [2025-04-25 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988597', 'tblTempUsageDetail_20' ) end [2025-04-25 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:52:26] Production.INFO: ==21532== Releasing lock... [2025-04-25 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:52:26] Production.INFO: 70.5 MB #Memory Used# [2025-04-25 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:53:05 [end_date_ymd] => 2025-04-25 17:53:05 [RateCDR] => 1 ) [2025-04-25 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:53:05' and `end` < '2025-04-25 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:53:19] Production.INFO: count ==5647 [2025-04-25 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:53:05 - End Time 2025-04-25 17:53:05 [2025-04-25 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988602', 'tblTempUsageDetail_20' ) start [2025-04-25 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988602', 'tblTempUsageDetail_20' ) end [2025-04-25 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988602', 'tblTempVendorCDR_20' ) start [2025-04-25 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988602', 'tblTempVendorCDR_20' ) end [2025-04-25 17:53:22] Production.INFO: ProcessCDR(1,14988602,1,1,2) [2025-04-25 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988602', 'tblTempUsageDetail_20' ) start [2025-04-25 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988602', 'tblTempUsageDetail_20' ) end [2025-04-25 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:53:27] Production.INFO: ==21603== Releasing lock... [2025-04-25 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:53:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-25 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:54:05 [end_date_ymd] => 2025-04-25 17:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:54:05' and `end` < '2025-04-25 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-04-25 17:54:19] Production.INFO: count ==5632 [2025-04-25 17:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:54:05 - End Time 2025-04-25 17:54:05 [2025-04-25 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988607', 'tblTempUsageDetail_20' ) start [2025-04-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988607', 'tblTempUsageDetail_20' ) end [2025-04-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988607', 'tblTempVendorCDR_20' ) start [2025-04-25 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988607', 'tblTempVendorCDR_20' ) end [2025-04-25 17:54:21] Production.INFO: ProcessCDR(1,14988607,1,1,2) [2025-04-25 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988607', 'tblTempUsageDetail_20' ) start [2025-04-25 17:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988607', 'tblTempUsageDetail_20' ) end [2025-04-25 17:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:54:27] Production.INFO: ==21679== Releasing lock... [2025-04-25 17:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:54:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-25 17:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:55:04 [end_date_ymd] => 2025-04-25 17:55:04 [RateCDR] => 1 ) [2025-04-25 17:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:55:04' and `end` < '2025-04-25 17:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:55:18] Production.INFO: count ==5606 [2025-04-25 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-25 14:55:04 - End Time 2025-04-25 17:55:04 [2025-04-25 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988612', 'tblTempUsageDetail_20' ) start [2025-04-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988612', 'tblTempUsageDetail_20' ) end [2025-04-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988612', 'tblTempVendorCDR_20' ) start [2025-04-25 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988612', 'tblTempVendorCDR_20' ) end [2025-04-25 17:55:21] Production.INFO: ProcessCDR(1,14988612,1,1,2) [2025-04-25 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988612', 'tblTempUsageDetail_20' ) start [2025-04-25 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988612', 'tblTempUsageDetail_20' ) end [2025-04-25 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:55:24] Production.INFO: ==21747== Releasing lock... [2025-04-25 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:55:24] Production.INFO: 70 MB #Memory Used# [2025-04-25 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:56:05 [end_date_ymd] => 2025-04-25 17:56:05 [RateCDR] => 1 ) [2025-04-25 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:56:05' and `end` < '2025-04-25 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:56:19] Production.INFO: count ==5589 [2025-04-25 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:56:05 - End Time 2025-04-25 17:56:05 [2025-04-25 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988617', 'tblTempUsageDetail_20' ) start [2025-04-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988617', 'tblTempUsageDetail_20' ) end [2025-04-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988617', 'tblTempVendorCDR_20' ) start [2025-04-25 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988617', 'tblTempVendorCDR_20' ) end [2025-04-25 17:56:21] Production.INFO: ProcessCDR(1,14988617,1,1,2) [2025-04-25 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988617', 'tblTempUsageDetail_20' ) start [2025-04-25 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988617', 'tblTempUsageDetail_20' ) end [2025-04-25 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:56:26] Production.INFO: ==21823== Releasing lock... [2025-04-25 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:56:26] Production.INFO: 70 MB #Memory Used# [2025-04-25 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:57:05 [end_date_ymd] => 2025-04-25 17:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 14:57:05' and `end` < '2025-04-25 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-04-25 17:57:19] Production.INFO: count ==5563 [2025-04-25 17:57:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:57:05 - End Time 2025-04-25 17:57:05 [2025-04-25 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988622', 'tblTempUsageDetail_20' ) start [2025-04-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988622', 'tblTempUsageDetail_20' ) end [2025-04-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988622', 'tblTempVendorCDR_20' ) start [2025-04-25 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988622', 'tblTempVendorCDR_20' ) end [2025-04-25 17:57:21] Production.INFO: ProcessCDR(1,14988622,1,1,2) [2025-04-25 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988622', 'tblTempUsageDetail_20' ) start [2025-04-25 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988622', 'tblTempUsageDetail_20' ) end [2025-04-25 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:57:26] Production.INFO: ==21894== Releasing lock... [2025-04-25 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:57:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-25 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:58:05 [end_date_ymd] => 2025-04-25 17:58:05 [RateCDR] => 1 ) [2025-04-25 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 14:58:05' and `end` < '2025-04-25 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 17:58:19] Production.INFO: count ==5553 [2025-04-25 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-25 14:58:05 - End Time 2025-04-25 17:58:05 [2025-04-25 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988627', 'tblTempUsageDetail_20' ) start [2025-04-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988627', 'tblTempUsageDetail_20' ) end [2025-04-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988627', 'tblTempVendorCDR_20' ) start [2025-04-25 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988627', 'tblTempVendorCDR_20' ) end [2025-04-25 17:58:21] Production.INFO: ProcessCDR(1,14988627,1,1,2) [2025-04-25 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988627', 'tblTempUsageDetail_20' ) start [2025-04-25 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988627', 'tblTempUsageDetail_20' ) end [2025-04-25 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:58:26] Production.INFO: ==21962== Releasing lock... [2025-04-25 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:58:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-25 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 14:59:04 [end_date_ymd] => 2025-04-25 17:59:04 [RateCDR] => 1 ) [2025-04-25 17: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-04-25 14:59:04' and `end` < '2025-04-25 17: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-04-25 17:59:18] Production.INFO: count ==5548 [2025-04-25 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-25 14:59:04 - End Time 2025-04-25 17:59:04 [2025-04-25 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988632', 'tblTempUsageDetail_20' ) start [2025-04-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988632', 'tblTempUsageDetail_20' ) end [2025-04-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988632', 'tblTempVendorCDR_20' ) start [2025-04-25 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988632', 'tblTempVendorCDR_20' ) end [2025-04-25 17:59:21] Production.INFO: ProcessCDR(1,14988632,1,1,2) [2025-04-25 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988632', 'tblTempUsageDetail_20' ) start [2025-04-25 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988632', 'tblTempUsageDetail_20' ) end [2025-04-25 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 17:59:26] Production.INFO: ==22069== Releasing lock... [2025-04-25 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 17:59:26] Production.INFO: 69.75 MB #Memory Used# [2025-04-25 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:00:06 [end_date_ymd] => 2025-04-25 18:00:06 [RateCDR] => 1 ) [2025-04-25 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:00:06' and `end` < '2025-04-25 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:00:19] Production.INFO: count ==5538 [2025-04-25 18:00:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:00:06 - End Time 2025-04-25 18:00:06 [2025-04-25 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988637', 'tblTempUsageDetail_20' ) start [2025-04-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988637', 'tblTempUsageDetail_20' ) end [2025-04-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988637', 'tblTempVendorCDR_20' ) start [2025-04-25 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988637', 'tblTempVendorCDR_20' ) end [2025-04-25 18:00:22] Production.INFO: ProcessCDR(1,14988637,1,1,2) [2025-04-25 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988637', 'tblTempUsageDetail_20' ) start [2025-04-25 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988637', 'tblTempUsageDetail_20' ) end [2025-04-25 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:00:27] Production.INFO: ==22144== Releasing lock... [2025-04-25 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:00:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-25 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:01:05 [end_date_ymd] => 2025-04-25 18:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:01:05' and `end` < '2025-04-25 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-04-25 18:01:19] Production.INFO: count ==5515 [2025-04-25 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:01:05 - End Time 2025-04-25 18:01:05 [2025-04-25 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988643', 'tblTempUsageDetail_20' ) start [2025-04-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988643', 'tblTempUsageDetail_20' ) end [2025-04-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988643', 'tblTempVendorCDR_20' ) start [2025-04-25 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988643', 'tblTempVendorCDR_20' ) end [2025-04-25 18:01:21] Production.INFO: ProcessCDR(1,14988643,1,1,2) [2025-04-25 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988643', 'tblTempUsageDetail_20' ) start [2025-04-25 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988643', 'tblTempUsageDetail_20' ) end [2025-04-25 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:01:25] Production.INFO: ==22229== Releasing lock... [2025-04-25 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:01:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-25 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:02:05 [end_date_ymd] => 2025-04-25 18:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:02:05' and `end` < '2025-04-25 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-04-25 18:02:19] Production.INFO: count ==5515 [2025-04-25 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:02:05 - End Time 2025-04-25 18:02:05 [2025-04-25 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988648', 'tblTempUsageDetail_20' ) start [2025-04-25 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988648', 'tblTempUsageDetail_20' ) end [2025-04-25 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988648', 'tblTempVendorCDR_20' ) start [2025-04-25 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988648', 'tblTempVendorCDR_20' ) end [2025-04-25 18:02:21] Production.INFO: ProcessCDR(1,14988648,1,1,2) [2025-04-25 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988648', 'tblTempUsageDetail_20' ) start [2025-04-25 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988648', 'tblTempUsageDetail_20' ) end [2025-04-25 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:02:25] Production.INFO: ==22303== Releasing lock... [2025-04-25 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:02:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-25 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:03:06 [end_date_ymd] => 2025-04-25 18:03:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:03:06' and `end` < '2025-04-25 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-04-25 18:03:19] Production.INFO: count ==5503 [2025-04-25 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:03:06 - End Time 2025-04-25 18:03:06 [2025-04-25 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988653', 'tblTempUsageDetail_20' ) start [2025-04-25 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988653', 'tblTempUsageDetail_20' ) end [2025-04-25 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988653', 'tblTempVendorCDR_20' ) start [2025-04-25 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988653', 'tblTempVendorCDR_20' ) end [2025-04-25 18:03:22] Production.INFO: ProcessCDR(1,14988653,1,1,2) [2025-04-25 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988653', 'tblTempUsageDetail_20' ) start [2025-04-25 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988653', 'tblTempUsageDetail_20' ) end [2025-04-25 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:03:25] Production.INFO: ==22375== Releasing lock... [2025-04-25 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:03:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:04:05 [end_date_ymd] => 2025-04-25 18:04:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:04:05' and `end` < '2025-04-25 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-04-25 18:04:19] Production.INFO: count ==5500 [2025-04-25 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:04:05 - End Time 2025-04-25 18:04:05 [2025-04-25 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988658', 'tblTempUsageDetail_20' ) start [2025-04-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988658', 'tblTempUsageDetail_20' ) end [2025-04-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988658', 'tblTempVendorCDR_20' ) start [2025-04-25 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988658', 'tblTempVendorCDR_20' ) end [2025-04-25 18:04:22] Production.INFO: ProcessCDR(1,14988658,1,1,2) [2025-04-25 18:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988658', 'tblTempUsageDetail_20' ) start [2025-04-25 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988658', 'tblTempUsageDetail_20' ) end [2025-04-25 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:04:27] Production.INFO: ==22455== Releasing lock... [2025-04-25 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:04:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:05:06 [end_date_ymd] => 2025-04-25 18:05:06 [RateCDR] => 1 ) [2025-04-25 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:05:06' and `end` < '2025-04-25 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:05:19] Production.INFO: count ==5502 [2025-04-25 18:05:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:05:06 - End Time 2025-04-25 18:05:06 [2025-04-25 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988663', 'tblTempUsageDetail_20' ) start [2025-04-25 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988663', 'tblTempUsageDetail_20' ) end [2025-04-25 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988663', 'tblTempVendorCDR_20' ) start [2025-04-25 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988663', 'tblTempVendorCDR_20' ) end [2025-04-25 18:05:22] Production.INFO: ProcessCDR(1,14988663,1,1,2) [2025-04-25 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988663', 'tblTempUsageDetail_20' ) start [2025-04-25 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988663', 'tblTempUsageDetail_20' ) end [2025-04-25 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:05:27] Production.INFO: ==22536== Releasing lock... [2025-04-25 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:05:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:06:05 [end_date_ymd] => 2025-04-25 18:06:05 [RateCDR] => 1 ) [2025-04-25 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:06:05' and `end` < '2025-04-25 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-04-25 18:06:19] Production.INFO: count ==5492 [2025-04-25 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:06:05 - End Time 2025-04-25 18:06:05 [2025-04-25 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988668', 'tblTempUsageDetail_20' ) start [2025-04-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988668', 'tblTempUsageDetail_20' ) end [2025-04-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988668', 'tblTempVendorCDR_20' ) start [2025-04-25 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988668', 'tblTempVendorCDR_20' ) end [2025-04-25 18:06:21] Production.INFO: ProcessCDR(1,14988668,1,1,2) [2025-04-25 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988668', 'tblTempUsageDetail_20' ) start [2025-04-25 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988668', 'tblTempUsageDetail_20' ) end [2025-04-25 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:06:26] Production.INFO: ==22617== Releasing lock... [2025-04-25 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:06:26] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:07:06 [end_date_ymd] => 2025-04-25 18:07:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:07:06' and `end` < '2025-04-25 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-04-25 18:07:19] Production.INFO: count ==5489 [2025-04-25 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:07:06 - End Time 2025-04-25 18:07:06 [2025-04-25 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988673', 'tblTempUsageDetail_20' ) start [2025-04-25 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988673', 'tblTempUsageDetail_20' ) end [2025-04-25 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988673', 'tblTempVendorCDR_20' ) start [2025-04-25 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988673', 'tblTempVendorCDR_20' ) end [2025-04-25 18:07:22] Production.INFO: ProcessCDR(1,14988673,1,1,2) [2025-04-25 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988673', 'tblTempUsageDetail_20' ) start [2025-04-25 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988673', 'tblTempUsageDetail_20' ) end [2025-04-25 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:07:27] Production.INFO: ==22697== Releasing lock... [2025-04-25 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:07:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:08:05 [end_date_ymd] => 2025-04-25 18:08:05 [RateCDR] => 1 ) [2025-04-25 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:08:05' and `end` < '2025-04-25 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:08:19] Production.INFO: count ==5486 [2025-04-25 18:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:08:05 - End Time 2025-04-25 18:08:05 [2025-04-25 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988678', 'tblTempUsageDetail_20' ) start [2025-04-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988678', 'tblTempUsageDetail_20' ) end [2025-04-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988678', 'tblTempVendorCDR_20' ) start [2025-04-25 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988678', 'tblTempVendorCDR_20' ) end [2025-04-25 18:08:21] Production.INFO: ProcessCDR(1,14988678,1,1,2) [2025-04-25 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988678', 'tblTempUsageDetail_20' ) start [2025-04-25 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988678', 'tblTempUsageDetail_20' ) end [2025-04-25 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:08:25] Production.INFO: ==22774== Releasing lock... [2025-04-25 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:08:25] Production.INFO: 69.25 MB #Memory Used# [2025-04-25 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:09:05 [end_date_ymd] => 2025-04-25 18:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:09:05' and `end` < '2025-04-25 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-04-25 18:09:19] Production.INFO: count ==5475 [2025-04-25 18:09:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:09:05 - End Time 2025-04-25 18:09:05 [2025-04-25 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988683', 'tblTempUsageDetail_20' ) start [2025-04-25 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988683', 'tblTempUsageDetail_20' ) end [2025-04-25 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988683', 'tblTempVendorCDR_20' ) start [2025-04-25 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988683', 'tblTempVendorCDR_20' ) end [2025-04-25 18:09:21] Production.INFO: ProcessCDR(1,14988683,1,1,2) [2025-04-25 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988683', 'tblTempUsageDetail_20' ) start [2025-04-25 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988683', 'tblTempUsageDetail_20' ) end [2025-04-25 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:09:25] Production.INFO: ==22857== Releasing lock... [2025-04-25 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:09:25] Production.INFO: 69 MB #Memory Used# [2025-04-25 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:10:06 [end_date_ymd] => 2025-04-25 18:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:10:06' and `end` < '2025-04-25 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-04-25 18:10:20] Production.INFO: count ==5455 [2025-04-25 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-25 15:10:06 - End Time 2025-04-25 18:10:06 [2025-04-25 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988689', 'tblTempUsageDetail_20' ) start [2025-04-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988689', 'tblTempUsageDetail_20' ) end [2025-04-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988689', 'tblTempVendorCDR_20' ) start [2025-04-25 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988689', 'tblTempVendorCDR_20' ) end [2025-04-25 18:10:22] Production.INFO: ProcessCDR(1,14988689,1,1,2) [2025-04-25 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988689', 'tblTempUsageDetail_20' ) start [2025-04-25 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988689', 'tblTempUsageDetail_20' ) end [2025-04-25 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:10:27] Production.INFO: ==22936== Releasing lock... [2025-04-25 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:10:27] Production.INFO: 69 MB #Memory Used# [2025-04-25 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:11:05 [end_date_ymd] => 2025-04-25 18:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:11:05' and `end` < '2025-04-25 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-04-25 18:11:18] Production.INFO: count ==5421 [2025-04-25 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:11:05 - End Time 2025-04-25 18:11:05 [2025-04-25 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988694', 'tblTempUsageDetail_20' ) start [2025-04-25 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988694', 'tblTempUsageDetail_20' ) end [2025-04-25 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988694', 'tblTempVendorCDR_20' ) start [2025-04-25 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988694', 'tblTempVendorCDR_20' ) end [2025-04-25 18:11:21] Production.INFO: ProcessCDR(1,14988694,1,1,2) [2025-04-25 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988694', 'tblTempUsageDetail_20' ) start [2025-04-25 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988694', 'tblTempUsageDetail_20' ) end [2025-04-25 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:11:24] Production.INFO: ==23008== Releasing lock... [2025-04-25 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:11:24] Production.INFO: 68.75 MB #Memory Used# [2025-04-25 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:12:06 [end_date_ymd] => 2025-04-25 18:12:06 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:12:06' and `end` < '2025-04-25 18: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-04-25 18:12:19] Production.INFO: count ==5398 [2025-04-25 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:12:06 - End Time 2025-04-25 18:12:06 [2025-04-25 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988699', 'tblTempUsageDetail_20' ) start [2025-04-25 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988699', 'tblTempUsageDetail_20' ) end [2025-04-25 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988699', 'tblTempVendorCDR_20' ) start [2025-04-25 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988699', 'tblTempVendorCDR_20' ) end [2025-04-25 18:12:21] Production.INFO: ProcessCDR(1,14988699,1,1,2) [2025-04-25 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988699', 'tblTempUsageDetail_20' ) start [2025-04-25 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988699', 'tblTempUsageDetail_20' ) end [2025-04-25 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:12:25] Production.INFO: ==23077== Releasing lock... [2025-04-25 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:12:25] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:13:05 [end_date_ymd] => 2025-04-25 18:13:05 [RateCDR] => 1 ) [2025-04-25 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:13:05' and `end` < '2025-04-25 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:13:18] Production.INFO: count ==5393 [2025-04-25 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:13:05 - End Time 2025-04-25 18:13:05 [2025-04-25 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988704', 'tblTempUsageDetail_20' ) start [2025-04-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988704', 'tblTempUsageDetail_20' ) end [2025-04-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988704', 'tblTempVendorCDR_20' ) start [2025-04-25 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988704', 'tblTempVendorCDR_20' ) end [2025-04-25 18:13:21] Production.INFO: ProcessCDR(1,14988704,1,1,2) [2025-04-25 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988704', 'tblTempUsageDetail_20' ) start [2025-04-25 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988704', 'tblTempUsageDetail_20' ) end [2025-04-25 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:13:24] Production.INFO: ==23280== Releasing lock... [2025-04-25 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:13:24] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:14:05 [end_date_ymd] => 2025-04-25 18:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:14:05' and `end` < '2025-04-25 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-04-25 18:14:19] Production.INFO: count ==5391 [2025-04-25 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:14:05 - End Time 2025-04-25 18:14:05 [2025-04-25 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988709', 'tblTempUsageDetail_20' ) start [2025-04-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988709', 'tblTempUsageDetail_20' ) end [2025-04-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988709', 'tblTempVendorCDR_20' ) start [2025-04-25 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988709', 'tblTempVendorCDR_20' ) end [2025-04-25 18:14:21] Production.INFO: ProcessCDR(1,14988709,1,1,2) [2025-04-25 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988709', 'tblTempUsageDetail_20' ) start [2025-04-25 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988709', 'tblTempUsageDetail_20' ) end [2025-04-25 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:14:26] Production.INFO: ==23349== Releasing lock... [2025-04-25 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:14:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:15:05 [end_date_ymd] => 2025-04-25 18:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:15:05' and `end` < '2025-04-25 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-04-25 18:15:18] Production.INFO: count ==5391 [2025-04-25 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:15:05 - End Time 2025-04-25 18:15:05 [2025-04-25 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988714', 'tblTempUsageDetail_20' ) start [2025-04-25 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988714', 'tblTempUsageDetail_20' ) end [2025-04-25 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988714', 'tblTempVendorCDR_20' ) start [2025-04-25 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988714', 'tblTempVendorCDR_20' ) end [2025-04-25 18:15:21] Production.INFO: ProcessCDR(1,14988714,1,1,2) [2025-04-25 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988714', 'tblTempUsageDetail_20' ) start [2025-04-25 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988714', 'tblTempUsageDetail_20' ) end [2025-04-25 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:15:25] Production.INFO: ==23461== Releasing lock... [2025-04-25 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:15:25] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:16:05 [end_date_ymd] => 2025-04-25 18:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:16:05' and `end` < '2025-04-25 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-04-25 18:16:19] Production.INFO: count ==5386 [2025-04-25 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:16:05 - End Time 2025-04-25 18:16:05 [2025-04-25 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988719', 'tblTempUsageDetail_20' ) start [2025-04-25 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988719', 'tblTempUsageDetail_20' ) end [2025-04-25 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988719', 'tblTempVendorCDR_20' ) start [2025-04-25 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988719', 'tblTempVendorCDR_20' ) end [2025-04-25 18:16:22] Production.INFO: ProcessCDR(1,14988719,1,1,2) [2025-04-25 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988719', 'tblTempUsageDetail_20' ) start [2025-04-25 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988719', 'tblTempUsageDetail_20' ) end [2025-04-25 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:16:27] Production.INFO: ==23531== Releasing lock... [2025-04-25 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:17:04 [end_date_ymd] => 2025-04-25 18:17:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:17:04' and `end` < '2025-04-25 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-04-25 18:17:18] Production.INFO: count ==5380 [2025-04-25 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:17:04 - End Time 2025-04-25 18:17:04 [2025-04-25 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988724', 'tblTempUsageDetail_20' ) start [2025-04-25 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988724', 'tblTempUsageDetail_20' ) end [2025-04-25 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988724', 'tblTempVendorCDR_20' ) start [2025-04-25 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988724', 'tblTempVendorCDR_20' ) end [2025-04-25 18:17:20] Production.INFO: ProcessCDR(1,14988724,1,1,2) [2025-04-25 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988724', 'tblTempUsageDetail_20' ) start [2025-04-25 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988724', 'tblTempUsageDetail_20' ) end [2025-04-25 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:17:25] Production.INFO: ==23602== Releasing lock... [2025-04-25 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:17:25] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:18:05 [end_date_ymd] => 2025-04-25 18:18:05 [RateCDR] => 1 ) [2025-04-25 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:18:05' and `end` < '2025-04-25 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:18:20] Production.INFO: count ==5378 [2025-04-25 18:18:22] Production.ERROR: pbx CDR StartTime 2025-04-25 15:18:05 - End Time 2025-04-25 18:18:05 [2025-04-25 18:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988729', 'tblTempUsageDetail_20' ) start [2025-04-25 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988729', 'tblTempUsageDetail_20' ) end [2025-04-25 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988729', 'tblTempVendorCDR_20' ) start [2025-04-25 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988729', 'tblTempVendorCDR_20' ) end [2025-04-25 18:18:22] Production.INFO: ProcessCDR(1,14988729,1,1,2) [2025-04-25 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988729', 'tblTempUsageDetail_20' ) start [2025-04-25 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988729', 'tblTempUsageDetail_20' ) end [2025-04-25 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:18:27] Production.INFO: ==23674== Releasing lock... [2025-04-25 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:18:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:19:04 [end_date_ymd] => 2025-04-25 18:19:04 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:19:04' and `end` < '2025-04-25 18: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-04-25 18:19:18] Production.INFO: count ==5379 [2025-04-25 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:19:04 - End Time 2025-04-25 18:19:04 [2025-04-25 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988734', 'tblTempUsageDetail_20' ) start [2025-04-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988734', 'tblTempUsageDetail_20' ) end [2025-04-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988734', 'tblTempVendorCDR_20' ) start [2025-04-25 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988734', 'tblTempVendorCDR_20' ) end [2025-04-25 18:19:21] Production.INFO: ProcessCDR(1,14988734,1,1,2) [2025-04-25 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988734', 'tblTempUsageDetail_20' ) start [2025-04-25 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988734', 'tblTempUsageDetail_20' ) end [2025-04-25 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:19:26] Production.INFO: ==23750== Releasing lock... [2025-04-25 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:19:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-25 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:20:06 [end_date_ymd] => 2025-04-25 18:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:20:06' and `end` < '2025-04-25 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-04-25 18:20:19] Production.INFO: count ==5374 [2025-04-25 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:20:06 - End Time 2025-04-25 18:20:06 [2025-04-25 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988740', 'tblTempUsageDetail_20' ) start [2025-04-25 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988740', 'tblTempUsageDetail_20' ) end [2025-04-25 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988740', 'tblTempVendorCDR_20' ) start [2025-04-25 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988740', 'tblTempVendorCDR_20' ) end [2025-04-25 18:20:22] Production.INFO: ProcessCDR(1,14988740,1,1,2) [2025-04-25 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988740', 'tblTempUsageDetail_20' ) start [2025-04-25 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988740', 'tblTempUsageDetail_20' ) end [2025-04-25 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:20:27] Production.INFO: ==23820== Releasing lock... [2025-04-25 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:20:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:21:06 [end_date_ymd] => 2025-04-25 18:21:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:21:06' and `end` < '2025-04-25 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-04-25 18:21:19] Production.INFO: count ==5379 [2025-04-25 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:21:06 - End Time 2025-04-25 18:21:06 [2025-04-25 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988745', 'tblTempUsageDetail_20' ) start [2025-04-25 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988745', 'tblTempUsageDetail_20' ) end [2025-04-25 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988745', 'tblTempVendorCDR_20' ) start [2025-04-25 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988745', 'tblTempVendorCDR_20' ) end [2025-04-25 18:21:22] Production.INFO: ProcessCDR(1,14988745,1,1,2) [2025-04-25 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988745', 'tblTempUsageDetail_20' ) start [2025-04-25 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988745', 'tblTempUsageDetail_20' ) end [2025-04-25 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:21:27] Production.INFO: ==23895== Releasing lock... [2025-04-25 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:21:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:22:05 [end_date_ymd] => 2025-04-25 18:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:22:05' and `end` < '2025-04-25 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-04-25 18:22:19] Production.INFO: count ==5375 [2025-04-25 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:22:05 - End Time 2025-04-25 18:22:05 [2025-04-25 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988750', 'tblTempUsageDetail_20' ) start [2025-04-25 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988750', 'tblTempUsageDetail_20' ) end [2025-04-25 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988750', 'tblTempVendorCDR_20' ) start [2025-04-25 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988750', 'tblTempVendorCDR_20' ) end [2025-04-25 18:22:21] Production.INFO: ProcessCDR(1,14988750,1,1,2) [2025-04-25 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988750', 'tblTempUsageDetail_20' ) start [2025-04-25 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988750', 'tblTempUsageDetail_20' ) end [2025-04-25 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:22:27] Production.INFO: ==23964== Releasing lock... [2025-04-25 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:22:27] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:23:06 [end_date_ymd] => 2025-04-25 18:23:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:23:06' and `end` < '2025-04-25 18: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-04-25 18:23:19] Production.INFO: count ==5358 [2025-04-25 18:23:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:23:06 - End Time 2025-04-25 18:23:06 [2025-04-25 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988755', 'tblTempUsageDetail_20' ) start [2025-04-25 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988755', 'tblTempUsageDetail_20' ) end [2025-04-25 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988755', 'tblTempVendorCDR_20' ) start [2025-04-25 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988755', 'tblTempVendorCDR_20' ) end [2025-04-25 18:23:22] Production.INFO: ProcessCDR(1,14988755,1,1,2) [2025-04-25 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988755', 'tblTempUsageDetail_20' ) start [2025-04-25 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988755', 'tblTempUsageDetail_20' ) end [2025-04-25 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:23:26] Production.INFO: ==24033== Releasing lock... [2025-04-25 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:23:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:24:05 [end_date_ymd] => 2025-04-25 18:24:05 [RateCDR] => 1 ) [2025-04-25 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:24:05' and `end` < '2025-04-25 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:24:19] Production.INFO: count ==5350 [2025-04-25 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:24:05 - End Time 2025-04-25 18:24:05 [2025-04-25 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988760', 'tblTempUsageDetail_20' ) start [2025-04-25 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988760', 'tblTempUsageDetail_20' ) end [2025-04-25 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988760', 'tblTempVendorCDR_20' ) start [2025-04-25 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988760', 'tblTempVendorCDR_20' ) end [2025-04-25 18:24:21] Production.INFO: ProcessCDR(1,14988760,1,1,2) [2025-04-25 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988760', 'tblTempUsageDetail_20' ) start [2025-04-25 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988760', 'tblTempUsageDetail_20' ) end [2025-04-25 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:24:26] Production.INFO: ==24108== Releasing lock... [2025-04-25 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:24:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:25:05 [end_date_ymd] => 2025-04-25 18:25:05 [RateCDR] => 1 ) [2025-04-25 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:25:05' and `end` < '2025-04-25 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:25:19] Production.INFO: count ==5351 [2025-04-25 18:25:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:25:05 - End Time 2025-04-25 18:25:05 [2025-04-25 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988765', 'tblTempUsageDetail_20' ) start [2025-04-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988765', 'tblTempUsageDetail_20' ) end [2025-04-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988765', 'tblTempVendorCDR_20' ) start [2025-04-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988765', 'tblTempVendorCDR_20' ) end [2025-04-25 18:25:21] Production.INFO: ProcessCDR(1,14988765,1,1,2) [2025-04-25 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988765', 'tblTempUsageDetail_20' ) start [2025-04-25 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988765', 'tblTempUsageDetail_20' ) end [2025-04-25 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:25:26] Production.INFO: ==24177== Releasing lock... [2025-04-25 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:25:26] Production.INFO: 68.25 MB #Memory Used# [2025-04-25 18:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:26:22 [end_date_ymd] => 2025-04-25 18:26:22 [RateCDR] => 1 ) [2025-04-25 18:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:26:22' and `end` < '2025-04-25 18:26:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:26:36] Production.INFO: count ==5317 [2025-04-25 18:27:35] Production.ERROR: pbx CDR StartTime 2025-04-25 15:26:22 - End Time 2025-04-25 18:26:22 [2025-04-25 18:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988770', 'tblTempUsageDetail_20' ) start [2025-04-25 18:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988770', 'tblTempUsageDetail_20' ) end [2025-04-25 18:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988770', 'tblTempVendorCDR_20' ) start [2025-04-25 18:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988770', 'tblTempVendorCDR_20' ) end [2025-04-25 18:27:41] Production.INFO: ProcessCDR(1,14988770,1,1,2) [2025-04-25 18:27:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:27:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:27:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:28:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:28:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988770', 'tblTempUsageDetail_20' ) start [2025-04-25 18:28:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988770', 'tblTempUsageDetail_20' ) end [2025-04-25 18:28:18] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:28:18] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:28:18] Production.INFO: ==24246== Releasing lock... [2025-04-25 18:28:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:28:18] Production.INFO: 68 MB #Memory Used# [2025-04-25 18:29:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:29:21 [end_date_ymd] => 2025-04-25 18:29:21 [RateCDR] => 1 ) [2025-04-25 18:29:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:29:21' and `end` < '2025-04-25 18:29:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:29:34] Production.INFO: count ==5265 [2025-04-25 18:30:10] Production.ERROR: pbx CDR StartTime 2025-04-25 15:29:21 - End Time 2025-04-25 18:29:21 [2025-04-25 18:30:10] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:30:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988781', 'tblTempUsageDetail_20' ) start [2025-04-25 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988781', 'tblTempUsageDetail_20' ) end [2025-04-25 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988781', 'tblTempVendorCDR_20' ) start [2025-04-25 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988781', 'tblTempVendorCDR_20' ) end [2025-04-25 18:30:20] Production.INFO: ProcessCDR(1,14988781,1,1,2) [2025-04-25 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:31:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:31:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988781', 'tblTempUsageDetail_20' ) start [2025-04-25 18:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988781', 'tblTempUsageDetail_20' ) end [2025-04-25 18:31:06] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:31:06] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:31:13] Production.INFO: ==24440== Releasing lock... [2025-04-25 18:31:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:31:13] Production.INFO: 67.5 MB #Memory Used# [2025-04-25 18:32:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:32:20 [end_date_ymd] => 2025-04-25 18:32:20 [RateCDR] => 1 ) [2025-04-25 18:32:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:32:20' and `end` < '2025-04-25 18:32:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:32:35] Production.INFO: count ==5214 [2025-04-25 18:33:11] Production.ERROR: pbx CDR StartTime 2025-04-25 15:32:20 - End Time 2025-04-25 18:32:20 [2025-04-25 18:33:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:33:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988793', 'tblTempUsageDetail_20' ) start [2025-04-25 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988793', 'tblTempUsageDetail_20' ) end [2025-04-25 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988793', 'tblTempVendorCDR_20' ) start [2025-04-25 18:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988793', 'tblTempVendorCDR_20' ) end [2025-04-25 18:33:22] Production.INFO: ProcessCDR(1,14988793,1,1,2) [2025-04-25 18:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988793', 'tblTempUsageDetail_20' ) start [2025-04-25 18:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988793', 'tblTempUsageDetail_20' ) end [2025-04-25 18:34:32] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:34:32] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:34:39] Production.INFO: ==24681== Releasing lock... [2025-04-25 18:34:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:34:39] Production.INFO: 67.25 MB #Memory Used# [2025-04-25 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:35:05 [end_date_ymd] => 2025-04-25 18:35:05 [RateCDR] => 1 ) [2025-04-25 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:35:05' and `end` < '2025-04-25 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:35:19] Production.INFO: count ==5173 [2025-04-25 18:35:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:35:05 - End Time 2025-04-25 18:35:05 [2025-04-25 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988804', 'tblTempUsageDetail_20' ) start [2025-04-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988804', 'tblTempUsageDetail_20' ) end [2025-04-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988804', 'tblTempVendorCDR_20' ) start [2025-04-25 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988804', 'tblTempVendorCDR_20' ) end [2025-04-25 18:35:21] Production.INFO: ProcessCDR(1,14988804,1,1,2) [2025-04-25 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988804', 'tblTempUsageDetail_20' ) start [2025-04-25 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988804', 'tblTempUsageDetail_20' ) end [2025-04-25 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:35:26] Production.INFO: ==24895== Releasing lock... [2025-04-25 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:35:26] Production.INFO: 66.75 MB #Memory Used# [2025-04-25 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:36:06 [end_date_ymd] => 2025-04-25 18:36:06 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:36:06' and `end` < '2025-04-25 18: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-04-25 18:36:19] Production.INFO: count ==5157 [2025-04-25 18:36:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:36:06 - End Time 2025-04-25 18:36:06 [2025-04-25 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988809', 'tblTempUsageDetail_20' ) start [2025-04-25 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988809', 'tblTempUsageDetail_20' ) end [2025-04-25 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988809', 'tblTempVendorCDR_20' ) start [2025-04-25 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988809', 'tblTempVendorCDR_20' ) end [2025-04-25 18:36:22] Production.INFO: ProcessCDR(1,14988809,1,1,2) [2025-04-25 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988809', 'tblTempUsageDetail_20' ) start [2025-04-25 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988809', 'tblTempUsageDetail_20' ) end [2025-04-25 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:36:27] Production.INFO: ==24965== Releasing lock... [2025-04-25 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:36:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-25 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:37:05 [end_date_ymd] => 2025-04-25 18:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:37:05' and `end` < '2025-04-25 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-04-25 18:37:19] Production.INFO: count ==5125 [2025-04-25 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:37:05 - End Time 2025-04-25 18:37:05 [2025-04-25 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988814', 'tblTempUsageDetail_20' ) start [2025-04-25 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988814', 'tblTempUsageDetail_20' ) end [2025-04-25 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988814', 'tblTempVendorCDR_20' ) start [2025-04-25 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988814', 'tblTempVendorCDR_20' ) end [2025-04-25 18:37:21] Production.INFO: ProcessCDR(1,14988814,1,1,2) [2025-04-25 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988814', 'tblTempUsageDetail_20' ) start [2025-04-25 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988814', 'tblTempUsageDetail_20' ) end [2025-04-25 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:37:24] Production.INFO: ==25037== Releasing lock... [2025-04-25 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:37:24] Production.INFO: 66.5 MB #Memory Used# [2025-04-25 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:38:06 [end_date_ymd] => 2025-04-25 18:38:06 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:38:06' and `end` < '2025-04-25 18: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-04-25 18:38:19] Production.INFO: count ==5109 [2025-04-25 18:38:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:38:06 - End Time 2025-04-25 18:38:06 [2025-04-25 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988819', 'tblTempUsageDetail_20' ) start [2025-04-25 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988819', 'tblTempUsageDetail_20' ) end [2025-04-25 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988819', 'tblTempVendorCDR_20' ) start [2025-04-25 18:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988819', 'tblTempVendorCDR_20' ) end [2025-04-25 18:38:22] Production.INFO: ProcessCDR(1,14988819,1,1,2) [2025-04-25 18:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988819', 'tblTempUsageDetail_20' ) start [2025-04-25 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988819', 'tblTempUsageDetail_20' ) end [2025-04-25 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:38:25] Production.INFO: ==25107== Releasing lock... [2025-04-25 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:38:25] Production.INFO: 66.25 MB #Memory Used# [2025-04-25 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:39:05 [end_date_ymd] => 2025-04-25 18:39:05 [RateCDR] => 1 ) [2025-04-25 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:39:05' and `end` < '2025-04-25 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:39:19] Production.INFO: count ==5105 [2025-04-25 18:39:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:39:05 - End Time 2025-04-25 18:39:05 [2025-04-25 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988824', 'tblTempUsageDetail_20' ) start [2025-04-25 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988824', 'tblTempUsageDetail_20' ) end [2025-04-25 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988824', 'tblTempVendorCDR_20' ) start [2025-04-25 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988824', 'tblTempVendorCDR_20' ) end [2025-04-25 18:39:21] Production.INFO: ProcessCDR(1,14988824,1,1,2) [2025-04-25 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988824', 'tblTempUsageDetail_20' ) start [2025-04-25 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988824', 'tblTempUsageDetail_20' ) end [2025-04-25 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:39:26] Production.INFO: ==25182== Releasing lock... [2025-04-25 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:39:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-25 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:40:06 [end_date_ymd] => 2025-04-25 18:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:40:06' and `end` < '2025-04-25 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-04-25 18:40:20] Production.INFO: count ==5090 [2025-04-25 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:40:06 - End Time 2025-04-25 18:40:06 [2025-04-25 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988830', 'tblTempUsageDetail_20' ) start [2025-04-25 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988830', 'tblTempUsageDetail_20' ) end [2025-04-25 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988830', 'tblTempVendorCDR_20' ) start [2025-04-25 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988830', 'tblTempVendorCDR_20' ) end [2025-04-25 18:40:22] Production.INFO: ProcessCDR(1,14988830,1,1,2) [2025-04-25 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988830', 'tblTempUsageDetail_20' ) start [2025-04-25 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988830', 'tblTempUsageDetail_20' ) end [2025-04-25 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:40:27] Production.INFO: ==25256== Releasing lock... [2025-04-25 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:40:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-25 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:41:04 [end_date_ymd] => 2025-04-25 18:41:04 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:41:04' and `end` < '2025-04-25 18: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-04-25 18:41:18] Production.INFO: count ==5056 [2025-04-25 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:41:04 - End Time 2025-04-25 18:41:04 [2025-04-25 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988835', 'tblTempUsageDetail_20' ) start [2025-04-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988835', 'tblTempUsageDetail_20' ) end [2025-04-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988835', 'tblTempVendorCDR_20' ) start [2025-04-25 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988835', 'tblTempVendorCDR_20' ) end [2025-04-25 18:41:20] Production.INFO: ProcessCDR(1,14988835,1,1,2) [2025-04-25 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988835', 'tblTempUsageDetail_20' ) start [2025-04-25 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988835', 'tblTempUsageDetail_20' ) end [2025-04-25 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:41:25] Production.INFO: ==25328== Releasing lock... [2025-04-25 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:41:25] Production.INFO: 66 MB #Memory Used# [2025-04-25 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:42:05 [end_date_ymd] => 2025-04-25 18:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:42:05' and `end` < '2025-04-25 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-04-25 18:42:19] Production.INFO: count ==5010 [2025-04-25 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:42:05 - End Time 2025-04-25 18:42:05 [2025-04-25 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988840', 'tblTempUsageDetail_20' ) start [2025-04-25 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988840', 'tblTempUsageDetail_20' ) end [2025-04-25 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988840', 'tblTempVendorCDR_20' ) start [2025-04-25 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988840', 'tblTempVendorCDR_20' ) end [2025-04-25 18:42:21] Production.INFO: ProcessCDR(1,14988840,1,1,2) [2025-04-25 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988840', 'tblTempUsageDetail_20' ) start [2025-04-25 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988840', 'tblTempUsageDetail_20' ) end [2025-04-25 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:42:26] Production.INFO: ==25399== Releasing lock... [2025-04-25 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:42:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-25 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:43:06 [end_date_ymd] => 2025-04-25 18:43:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:43:06' and `end` < '2025-04-25 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-04-25 18:43:19] Production.INFO: count ==5039 [2025-04-25 18:43:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:43:06 - End Time 2025-04-25 18:43:06 [2025-04-25 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988845', 'tblTempUsageDetail_20' ) start [2025-04-25 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988845', 'tblTempUsageDetail_20' ) end [2025-04-25 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988845', 'tblTempVendorCDR_20' ) start [2025-04-25 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988845', 'tblTempVendorCDR_20' ) end [2025-04-25 18:43:22] Production.INFO: ProcessCDR(1,14988845,1,1,2) [2025-04-25 18:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988845', 'tblTempUsageDetail_20' ) start [2025-04-25 18:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988845', 'tblTempUsageDetail_20' ) end [2025-04-25 18:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:43:27] Production.INFO: ==25468== Releasing lock... [2025-04-25 18:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:43:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-25 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:44:05 [end_date_ymd] => 2025-04-25 18:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:44:05' and `end` < '2025-04-25 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-04-25 18:44:18] Production.INFO: count ==5026 [2025-04-25 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:44:05 - End Time 2025-04-25 18:44:05 [2025-04-25 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988850', 'tblTempUsageDetail_20' ) start [2025-04-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988850', 'tblTempUsageDetail_20' ) end [2025-04-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988850', 'tblTempVendorCDR_20' ) start [2025-04-25 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988850', 'tblTempVendorCDR_20' ) end [2025-04-25 18:44:21] Production.INFO: ProcessCDR(1,14988850,1,1,2) [2025-04-25 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988850', 'tblTempUsageDetail_20' ) start [2025-04-25 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988850', 'tblTempUsageDetail_20' ) end [2025-04-25 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:44:24] Production.INFO: ==25536== Releasing lock... [2025-04-25 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:44:24] Production.INFO: 65.75 MB #Memory Used# [2025-04-25 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:45:05 [end_date_ymd] => 2025-04-25 18:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:45:05' and `end` < '2025-04-25 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-04-25 18:45:19] Production.INFO: count ==5005 [2025-04-25 18:45:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:45:05 - End Time 2025-04-25 18:45:05 [2025-04-25 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988855', 'tblTempUsageDetail_20' ) start [2025-04-25 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988855', 'tblTempUsageDetail_20' ) end [2025-04-25 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988855', 'tblTempVendorCDR_20' ) start [2025-04-25 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988855', 'tblTempVendorCDR_20' ) end [2025-04-25 18:45:21] Production.INFO: ProcessCDR(1,14988855,1,1,2) [2025-04-25 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988855', 'tblTempUsageDetail_20' ) start [2025-04-25 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988855', 'tblTempUsageDetail_20' ) end [2025-04-25 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:45:26] Production.INFO: ==25604== Releasing lock... [2025-04-25 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:45:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-25 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:46:05 [end_date_ymd] => 2025-04-25 18:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:46:05' and `end` < '2025-04-25 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-04-25 18:46:18] Production.INFO: count ==4976 [2025-04-25 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:46:05 - End Time 2025-04-25 18:46:05 [2025-04-25 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988860', 'tblTempUsageDetail_20' ) start [2025-04-25 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988860', 'tblTempUsageDetail_20' ) end [2025-04-25 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988860', 'tblTempVendorCDR_20' ) start [2025-04-25 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988860', 'tblTempVendorCDR_20' ) end [2025-04-25 18:46:21] Production.INFO: ProcessCDR(1,14988860,1,1,2) [2025-04-25 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988860', 'tblTempUsageDetail_20' ) start [2025-04-25 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988860', 'tblTempUsageDetail_20' ) end [2025-04-25 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:46:24] Production.INFO: ==25718== Releasing lock... [2025-04-25 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:46:24] Production.INFO: 65.25 MB #Memory Used# [2025-04-25 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:47:05 [end_date_ymd] => 2025-04-25 18:47:05 [RateCDR] => 1 ) [2025-04-25 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:47:05' and `end` < '2025-04-25 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:47:19] Production.INFO: count ==4959 [2025-04-25 18:47:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:47:05 - End Time 2025-04-25 18:47:05 [2025-04-25 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988865', 'tblTempUsageDetail_20' ) start [2025-04-25 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988865', 'tblTempUsageDetail_20' ) end [2025-04-25 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988865', 'tblTempVendorCDR_20' ) start [2025-04-25 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988865', 'tblTempVendorCDR_20' ) end [2025-04-25 18:47:21] Production.INFO: ProcessCDR(1,14988865,1,1,2) [2025-04-25 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988865', 'tblTempUsageDetail_20' ) start [2025-04-25 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988865', 'tblTempUsageDetail_20' ) end [2025-04-25 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:47:26] Production.INFO: ==25789== Releasing lock... [2025-04-25 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:47:26] Production.INFO: 65.25 MB #Memory Used# [2025-04-25 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:48:05 [end_date_ymd] => 2025-04-25 18:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:48:05' and `end` < '2025-04-25 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-04-25 18:48:18] Production.INFO: count ==4944 [2025-04-25 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:48:05 - End Time 2025-04-25 18:48:05 [2025-04-25 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988870', 'tblTempUsageDetail_20' ) start [2025-04-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988870', 'tblTempUsageDetail_20' ) end [2025-04-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988870', 'tblTempVendorCDR_20' ) start [2025-04-25 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988870', 'tblTempVendorCDR_20' ) end [2025-04-25 18:48:21] Production.INFO: ProcessCDR(1,14988870,1,1,2) [2025-04-25 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988870', 'tblTempUsageDetail_20' ) start [2025-04-25 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988870', 'tblTempUsageDetail_20' ) end [2025-04-25 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:48:25] Production.INFO: ==25857== Releasing lock... [2025-04-25 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:48:25] Production.INFO: 65 MB #Memory Used# [2025-04-25 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:49:05 [end_date_ymd] => 2025-04-25 18:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:49:05' and `end` < '2025-04-25 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-04-25 18:49:18] Production.INFO: count ==4932 [2025-04-25 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:49:05 - End Time 2025-04-25 18:49:05 [2025-04-25 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988875', 'tblTempUsageDetail_20' ) start [2025-04-25 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988875', 'tblTempUsageDetail_20' ) end [2025-04-25 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988875', 'tblTempVendorCDR_20' ) start [2025-04-25 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988875', 'tblTempVendorCDR_20' ) end [2025-04-25 18:49:21] Production.INFO: ProcessCDR(1,14988875,1,1,2) [2025-04-25 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988875', 'tblTempUsageDetail_20' ) start [2025-04-25 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988875', 'tblTempUsageDetail_20' ) end [2025-04-25 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:49:25] Production.INFO: ==25926== Releasing lock... [2025-04-25 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:49:25] Production.INFO: 65 MB #Memory Used# [2025-04-25 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:50:05 [end_date_ymd] => 2025-04-25 18:50:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:50:05' and `end` < '2025-04-25 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-04-25 18:50:19] Production.INFO: count ==4931 [2025-04-25 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:50:05 - End Time 2025-04-25 18:50:05 [2025-04-25 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988881', 'tblTempUsageDetail_20' ) start [2025-04-25 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988881', 'tblTempUsageDetail_20' ) end [2025-04-25 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988881', 'tblTempVendorCDR_20' ) start [2025-04-25 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988881', 'tblTempVendorCDR_20' ) end [2025-04-25 18:50:21] Production.INFO: ProcessCDR(1,14988881,1,1,2) [2025-04-25 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988881', 'tblTempUsageDetail_20' ) start [2025-04-25 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988881', 'tblTempUsageDetail_20' ) end [2025-04-25 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:50:25] Production.INFO: ==25996== Releasing lock... [2025-04-25 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:50:25] Production.INFO: 65 MB #Memory Used# [2025-04-25 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:51:05 [end_date_ymd] => 2025-04-25 18:51:05 [RateCDR] => 1 ) [2025-04-25 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:51:05' and `end` < '2025-04-25 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:51:19] Production.INFO: count ==4872 [2025-04-25 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:51:05 - End Time 2025-04-25 18:51:05 [2025-04-25 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988886', 'tblTempUsageDetail_20' ) start [2025-04-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988886', 'tblTempUsageDetail_20' ) end [2025-04-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988886', 'tblTempVendorCDR_20' ) start [2025-04-25 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988886', 'tblTempVendorCDR_20' ) end [2025-04-25 18:51:21] Production.INFO: ProcessCDR(1,14988886,1,1,2) [2025-04-25 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988886', 'tblTempUsageDetail_20' ) start [2025-04-25 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988886', 'tblTempUsageDetail_20' ) end [2025-04-25 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:51:25] Production.INFO: ==26070== Releasing lock... [2025-04-25 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:51:25] Production.INFO: 64.5 MB #Memory Used# [2025-04-25 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:52:05 [end_date_ymd] => 2025-04-25 18:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:52:05' and `end` < '2025-04-25 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-04-25 18:52:19] Production.INFO: count ==4853 [2025-04-25 18:52:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:52:05 - End Time 2025-04-25 18:52:05 [2025-04-25 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988891', 'tblTempUsageDetail_20' ) start [2025-04-25 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988891', 'tblTempUsageDetail_20' ) end [2025-04-25 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988891', 'tblTempVendorCDR_20' ) start [2025-04-25 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988891', 'tblTempVendorCDR_20' ) end [2025-04-25 18:52:21] Production.INFO: ProcessCDR(1,14988891,1,1,2) [2025-04-25 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988891', 'tblTempUsageDetail_20' ) start [2025-04-25 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988891', 'tblTempUsageDetail_20' ) end [2025-04-25 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:52:24] Production.INFO: ==26141== Releasing lock... [2025-04-25 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:52:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-25 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:53:05 [end_date_ymd] => 2025-04-25 18:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:53:05' and `end` < '2025-04-25 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-04-25 18:53:18] Production.INFO: count ==4848 [2025-04-25 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:53:05 - End Time 2025-04-25 18:53:05 [2025-04-25 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988896', 'tblTempUsageDetail_20' ) start [2025-04-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988896', 'tblTempUsageDetail_20' ) end [2025-04-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988896', 'tblTempVendorCDR_20' ) start [2025-04-25 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988896', 'tblTempVendorCDR_20' ) end [2025-04-25 18:53:20] Production.INFO: ProcessCDR(1,14988896,1,1,2) [2025-04-25 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988896', 'tblTempUsageDetail_20' ) start [2025-04-25 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988896', 'tblTempUsageDetail_20' ) end [2025-04-25 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:53:24] Production.INFO: ==26211== Releasing lock... [2025-04-25 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:53:24] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:54:05 [end_date_ymd] => 2025-04-25 18:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:54:05' and `end` < '2025-04-25 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-04-25 18:54:19] Production.INFO: count ==4832 [2025-04-25 18:54:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:54:05 - End Time 2025-04-25 18:54:05 [2025-04-25 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988901', 'tblTempUsageDetail_20' ) start [2025-04-25 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988901', 'tblTempUsageDetail_20' ) end [2025-04-25 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988901', 'tblTempVendorCDR_20' ) start [2025-04-25 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988901', 'tblTempVendorCDR_20' ) end [2025-04-25 18:54:21] Production.INFO: ProcessCDR(1,14988901,1,1,2) [2025-04-25 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988901', 'tblTempUsageDetail_20' ) start [2025-04-25 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988901', 'tblTempUsageDetail_20' ) end [2025-04-25 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:54:26] Production.INFO: ==26284== Releasing lock... [2025-04-25 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:54:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:55:05 [end_date_ymd] => 2025-04-25 18:55:05 [RateCDR] => 1 ) [2025-04-25 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 15:55:05' and `end` < '2025-04-25 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 18:55:18] Production.INFO: count ==4818 [2025-04-25 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:55:05 - End Time 2025-04-25 18:55:05 [2025-04-25 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988906', 'tblTempUsageDetail_20' ) start [2025-04-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988906', 'tblTempUsageDetail_20' ) end [2025-04-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988906', 'tblTempVendorCDR_20' ) start [2025-04-25 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988906', 'tblTempVendorCDR_20' ) end [2025-04-25 18:55:20] Production.INFO: ProcessCDR(1,14988906,1,1,2) [2025-04-25 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988906', 'tblTempUsageDetail_20' ) start [2025-04-25 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988906', 'tblTempUsageDetail_20' ) end [2025-04-25 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:55:24] Production.INFO: ==26355== Releasing lock... [2025-04-25 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:55:24] Production.INFO: 64.25 MB #Memory Used# [2025-04-25 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:56:05 [end_date_ymd] => 2025-04-25 18:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:56:05' and `end` < '2025-04-25 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-04-25 18:56:19] Production.INFO: count ==4799 [2025-04-25 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:56:05 - End Time 2025-04-25 18:56:05 [2025-04-25 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988911', 'tblTempUsageDetail_20' ) start [2025-04-25 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988911', 'tblTempUsageDetail_20' ) end [2025-04-25 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988911', 'tblTempVendorCDR_20' ) start [2025-04-25 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988911', 'tblTempVendorCDR_20' ) end [2025-04-25 18:56:21] Production.INFO: ProcessCDR(1,14988911,1,1,2) [2025-04-25 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988911', 'tblTempUsageDetail_20' ) start [2025-04-25 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988911', 'tblTempUsageDetail_20' ) end [2025-04-25 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:56:26] Production.INFO: ==26424== Releasing lock... [2025-04-25 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:56:26] Production.INFO: 64 MB #Memory Used# [2025-04-25 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:57:06 [end_date_ymd] => 2025-04-25 18:57:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:57:06' and `end` < '2025-04-25 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-04-25 18:57:19] Production.INFO: count ==4783 [2025-04-25 18:57:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:57:06 - End Time 2025-04-25 18:57:06 [2025-04-25 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988916', 'tblTempUsageDetail_20' ) start [2025-04-25 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988916', 'tblTempUsageDetail_20' ) end [2025-04-25 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988916', 'tblTempVendorCDR_20' ) start [2025-04-25 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988916', 'tblTempVendorCDR_20' ) end [2025-04-25 18:57:21] Production.INFO: ProcessCDR(1,14988916,1,1,2) [2025-04-25 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988916', 'tblTempUsageDetail_20' ) start [2025-04-25 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988916', 'tblTempUsageDetail_20' ) end [2025-04-25 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:57:25] Production.INFO: ==26497== Releasing lock... [2025-04-25 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:57:25] Production.INFO: 64 MB #Memory Used# [2025-04-25 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:58:04 [end_date_ymd] => 2025-04-25 18:58:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 15:58:04' and `end` < '2025-04-25 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-04-25 18:58:18] Production.INFO: count ==4775 [2025-04-25 18:58:20] Production.ERROR: pbx CDR StartTime 2025-04-25 15:58:04 - End Time 2025-04-25 18:58:04 [2025-04-25 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988919', 'tblTempUsageDetail_20' ) start [2025-04-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988919', 'tblTempUsageDetail_20' ) end [2025-04-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988919', 'tblTempVendorCDR_20' ) start [2025-04-25 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988919', 'tblTempVendorCDR_20' ) end [2025-04-25 18:58:20] Production.INFO: ProcessCDR(1,14988919,1,1,2) [2025-04-25 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988919', 'tblTempUsageDetail_20' ) start [2025-04-25 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988919', 'tblTempUsageDetail_20' ) end [2025-04-25 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:58:25] Production.INFO: ==26565== Releasing lock... [2025-04-25 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:58:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-25 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 15:59:06 [end_date_ymd] => 2025-04-25 18:59:06 [RateCDR] => 1 ) [2025-04-25 18: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-04-25 15:59:06' and `end` < '2025-04-25 18: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-04-25 18:59:19] Production.INFO: count ==4754 [2025-04-25 18:59:21] Production.ERROR: pbx CDR StartTime 2025-04-25 15:59:06 - End Time 2025-04-25 18:59:06 [2025-04-25 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988926', 'tblTempUsageDetail_20' ) start [2025-04-25 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988926', 'tblTempUsageDetail_20' ) end [2025-04-25 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988926', 'tblTempVendorCDR_20' ) start [2025-04-25 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988926', 'tblTempVendorCDR_20' ) end [2025-04-25 18:59:21] Production.INFO: ProcessCDR(1,14988926,1,1,2) [2025-04-25 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988926', 'tblTempUsageDetail_20' ) start [2025-04-25 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988926', 'tblTempUsageDetail_20' ) end [2025-04-25 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 18:59:25] Production.INFO: ==26635== Releasing lock... [2025-04-25 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 18:59:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-25 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:00:05 [end_date_ymd] => 2025-04-25 19:00:05 [RateCDR] => 1 ) [2025-04-25 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:00:05' and `end` < '2025-04-25 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:00:19] Production.INFO: count ==4731 [2025-04-25 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:00:05 - End Time 2025-04-25 19:00:05 [2025-04-25 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988931', 'tblTempUsageDetail_20' ) start [2025-04-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988931', 'tblTempUsageDetail_20' ) end [2025-04-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988931', 'tblTempVendorCDR_20' ) start [2025-04-25 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988931', 'tblTempVendorCDR_20' ) end [2025-04-25 19:00:21] Production.INFO: ProcessCDR(1,14988931,1,1,2) [2025-04-25 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988931', 'tblTempUsageDetail_20' ) start [2025-04-25 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988931', 'tblTempUsageDetail_20' ) end [2025-04-25 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:00:24] Production.INFO: ==26710== Releasing lock... [2025-04-25 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:00:24] Production.INFO: 63.5 MB #Memory Used# [2025-04-25 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:01:06 [end_date_ymd] => 2025-04-25 19:01:06 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:01:06' and `end` < '2025-04-25 19: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-04-25 19:01:19] Production.INFO: count ==4673 [2025-04-25 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:01:06 - End Time 2025-04-25 19:01:06 [2025-04-25 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988937', 'tblTempUsageDetail_20' ) start [2025-04-25 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988937', 'tblTempUsageDetail_20' ) end [2025-04-25 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988937', 'tblTempVendorCDR_20' ) start [2025-04-25 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988937', 'tblTempVendorCDR_20' ) end [2025-04-25 19:01:21] Production.INFO: ProcessCDR(1,14988937,1,1,2) [2025-04-25 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988937', 'tblTempUsageDetail_20' ) start [2025-04-25 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988937', 'tblTempUsageDetail_20' ) end [2025-04-25 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:01:26] Production.INFO: ==26836== Releasing lock... [2025-04-25 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:01:26] Production.INFO: 63 MB #Memory Used# [2025-04-25 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:02:05 [end_date_ymd] => 2025-04-25 19:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:02:05' and `end` < '2025-04-25 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-04-25 19:02:18] Production.INFO: count ==4634 [2025-04-25 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:02:05 - End Time 2025-04-25 19:02:05 [2025-04-25 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988942', 'tblTempUsageDetail_20' ) start [2025-04-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988942', 'tblTempUsageDetail_20' ) end [2025-04-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988942', 'tblTempVendorCDR_20' ) start [2025-04-25 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988942', 'tblTempVendorCDR_20' ) end [2025-04-25 19:02:20] Production.INFO: ProcessCDR(1,14988942,1,1,2) [2025-04-25 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988942', 'tblTempUsageDetail_20' ) start [2025-04-25 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988942', 'tblTempUsageDetail_20' ) end [2025-04-25 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:02:23] Production.INFO: ==26988== Releasing lock... [2025-04-25 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:02:23] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:03:06 [end_date_ymd] => 2025-04-25 19:03:06 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:03:06' and `end` < '2025-04-25 19: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-04-25 19:03:20] Production.INFO: count ==4625 [2025-04-25 19:03:21] Production.ERROR: pbx CDR StartTime 2025-04-25 16:03:06 - End Time 2025-04-25 19:03:06 [2025-04-25 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988947', 'tblTempUsageDetail_20' ) start [2025-04-25 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988947', 'tblTempUsageDetail_20' ) end [2025-04-25 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988947', 'tblTempVendorCDR_20' ) start [2025-04-25 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988947', 'tblTempVendorCDR_20' ) end [2025-04-25 19:03:21] Production.INFO: ProcessCDR(1,14988947,1,1,2) [2025-04-25 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988947', 'tblTempUsageDetail_20' ) start [2025-04-25 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988947', 'tblTempUsageDetail_20' ) end [2025-04-25 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:03:27] Production.INFO: ==27056== Releasing lock... [2025-04-25 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:03:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-25 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:04:05 [end_date_ymd] => 2025-04-25 19:04:05 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:04:05' and `end` < '2025-04-25 19: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-04-25 19:04:18] Production.INFO: count ==4615 [2025-04-25 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:04:05 - End Time 2025-04-25 19:04:05 [2025-04-25 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988952', 'tblTempUsageDetail_20' ) start [2025-04-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988952', 'tblTempUsageDetail_20' ) end [2025-04-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988952', 'tblTempVendorCDR_20' ) start [2025-04-25 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988952', 'tblTempVendorCDR_20' ) end [2025-04-25 19:04:20] Production.INFO: ProcessCDR(1,14988952,1,1,2) [2025-04-25 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988952', 'tblTempUsageDetail_20' ) start [2025-04-25 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988952', 'tblTempUsageDetail_20' ) end [2025-04-25 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:04:23] Production.INFO: ==27125== Releasing lock... [2025-04-25 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:04:23] Production.INFO: 62.5 MB #Memory Used# [2025-04-25 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:05:05 [end_date_ymd] => 2025-04-25 19:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:05:05' and `end` < '2025-04-25 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-04-25 19:05:18] Production.INFO: count ==4603 [2025-04-25 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:05:05 - End Time 2025-04-25 19:05:05 [2025-04-25 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988957', 'tblTempUsageDetail_20' ) start [2025-04-25 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988957', 'tblTempUsageDetail_20' ) end [2025-04-25 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988957', 'tblTempVendorCDR_20' ) start [2025-04-25 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988957', 'tblTempVendorCDR_20' ) end [2025-04-25 19:05:20] Production.INFO: ProcessCDR(1,14988957,1,1,2) [2025-04-25 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988957', 'tblTempUsageDetail_20' ) start [2025-04-25 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988957', 'tblTempUsageDetail_20' ) end [2025-04-25 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:05:25] Production.INFO: ==27272== Releasing lock... [2025-04-25 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:05:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-25 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:06:06 [end_date_ymd] => 2025-04-25 19:06:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:06:06' and `end` < '2025-04-25 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-04-25 19:06:19] Production.INFO: count ==4594 [2025-04-25 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:06:06 - End Time 2025-04-25 19:06:06 [2025-04-25 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988962', 'tblTempUsageDetail_20' ) start [2025-04-25 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988962', 'tblTempUsageDetail_20' ) end [2025-04-25 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988962', 'tblTempVendorCDR_20' ) start [2025-04-25 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988962', 'tblTempVendorCDR_20' ) end [2025-04-25 19:06:21] Production.INFO: ProcessCDR(1,14988962,1,1,2) [2025-04-25 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988962', 'tblTempUsageDetail_20' ) start [2025-04-25 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988962', 'tblTempUsageDetail_20' ) end [2025-04-25 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:06:26] Production.INFO: ==27340== Releasing lock... [2025-04-25 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:06:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-25 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:07:05 [end_date_ymd] => 2025-04-25 19:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:07:05' and `end` < '2025-04-25 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-04-25 19:07:19] Production.INFO: count ==4572 [2025-04-25 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:07:05 - End Time 2025-04-25 19:07:05 [2025-04-25 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988967', 'tblTempUsageDetail_20' ) start [2025-04-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988967', 'tblTempUsageDetail_20' ) end [2025-04-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988967', 'tblTempVendorCDR_20' ) start [2025-04-25 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988967', 'tblTempVendorCDR_20' ) end [2025-04-25 19:07:21] Production.INFO: ProcessCDR(1,14988967,1,1,2) [2025-04-25 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988967', 'tblTempUsageDetail_20' ) start [2025-04-25 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988967', 'tblTempUsageDetail_20' ) end [2025-04-25 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:07:24] Production.INFO: ==27410== Releasing lock... [2025-04-25 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:07:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-25 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:08:06 [end_date_ymd] => 2025-04-25 19:08:06 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:08:06' and `end` < '2025-04-25 19: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-04-25 19:08:19] Production.INFO: count ==4553 [2025-04-25 19:08:21] Production.ERROR: pbx CDR StartTime 2025-04-25 16:08:06 - End Time 2025-04-25 19:08:06 [2025-04-25 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988972', 'tblTempUsageDetail_20' ) start [2025-04-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988972', 'tblTempUsageDetail_20' ) end [2025-04-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988972', 'tblTempVendorCDR_20' ) start [2025-04-25 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988972', 'tblTempVendorCDR_20' ) end [2025-04-25 19:08:21] Production.INFO: ProcessCDR(1,14988972,1,1,2) [2025-04-25 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988972', 'tblTempUsageDetail_20' ) start [2025-04-25 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988972', 'tblTempUsageDetail_20' ) end [2025-04-25 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:08:24] Production.INFO: ==27519== Releasing lock... [2025-04-25 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:08:24] Production.INFO: 62.25 MB #Memory Used# [2025-04-25 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:09:04 [end_date_ymd] => 2025-04-25 19:09:04 [RateCDR] => 1 ) [2025-04-25 19:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:09:04' and `end` < '2025-04-25 19:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:09:18] Production.INFO: count ==4535 [2025-04-25 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:09:04 - End Time 2025-04-25 19:09:04 [2025-04-25 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988977', 'tblTempUsageDetail_20' ) start [2025-04-25 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988977', 'tblTempUsageDetail_20' ) end [2025-04-25 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988977', 'tblTempVendorCDR_20' ) start [2025-04-25 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988977', 'tblTempVendorCDR_20' ) end [2025-04-25 19:09:20] Production.INFO: ProcessCDR(1,14988977,1,1,2) [2025-04-25 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988977', 'tblTempUsageDetail_20' ) start [2025-04-25 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988977', 'tblTempUsageDetail_20' ) end [2025-04-25 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:09:24] Production.INFO: ==27633== Releasing lock... [2025-04-25 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:09:24] Production.INFO: 62 MB #Memory Used# [2025-04-25 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:10:06 [end_date_ymd] => 2025-04-25 19:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:10:06' and `end` < '2025-04-25 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-04-25 19:10:19] Production.INFO: count ==4538 [2025-04-25 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-25 16:10:06 - End Time 2025-04-25 19:10:06 [2025-04-25 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988983', 'tblTempUsageDetail_20' ) start [2025-04-25 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988983', 'tblTempUsageDetail_20' ) end [2025-04-25 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988983', 'tblTempVendorCDR_20' ) start [2025-04-25 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988983', 'tblTempVendorCDR_20' ) end [2025-04-25 19:10:21] Production.INFO: ProcessCDR(1,14988983,1,1,2) [2025-04-25 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988983', 'tblTempUsageDetail_20' ) start [2025-04-25 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988983', 'tblTempUsageDetail_20' ) end [2025-04-25 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:10:26] Production.INFO: ==27706== Releasing lock... [2025-04-25 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:10:26] Production.INFO: 62 MB #Memory Used# [2025-04-25 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:11:05 [end_date_ymd] => 2025-04-25 19:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:11:05' and `end` < '2025-04-25 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-04-25 19:11:19] Production.INFO: count ==4462 [2025-04-25 19:11:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:11:05 - End Time 2025-04-25 19:11:05 [2025-04-25 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988988', 'tblTempUsageDetail_20' ) start [2025-04-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988988', 'tblTempUsageDetail_20' ) end [2025-04-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988988', 'tblTempVendorCDR_20' ) start [2025-04-25 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988988', 'tblTempVendorCDR_20' ) end [2025-04-25 19:11:20] Production.INFO: ProcessCDR(1,14988988,1,1,2) [2025-04-25 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988988', 'tblTempUsageDetail_20' ) start [2025-04-25 19:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988988', 'tblTempUsageDetail_20' ) end [2025-04-25 19:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:11:26] Production.INFO: ==27778== Releasing lock... [2025-04-25 19:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:11:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-25 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:12:05 [end_date_ymd] => 2025-04-25 19:12:05 [RateCDR] => 1 ) [2025-04-25 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:12:05' and `end` < '2025-04-25 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:12:18] Production.INFO: count ==4428 [2025-04-25 19:12:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:12:05 - End Time 2025-04-25 19:12:05 [2025-04-25 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988993', 'tblTempUsageDetail_20' ) start [2025-04-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988993', 'tblTempUsageDetail_20' ) end [2025-04-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988993', 'tblTempVendorCDR_20' ) start [2025-04-25 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988993', 'tblTempVendorCDR_20' ) end [2025-04-25 19:12:20] Production.INFO: ProcessCDR(1,14988993,1,1,2) [2025-04-25 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988993', 'tblTempUsageDetail_20' ) start [2025-04-25 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988993', 'tblTempUsageDetail_20' ) end [2025-04-25 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:12:23] Production.INFO: ==27926== Releasing lock... [2025-04-25 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:12:23] Production.INFO: 61.25 MB #Memory Used# [2025-04-25 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:13:05 [end_date_ymd] => 2025-04-25 19:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:13:05' and `end` < '2025-04-25 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-04-25 19:13:18] Production.INFO: count ==4412 [2025-04-25 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:13:05 - End Time 2025-04-25 19:13:05 [2025-04-25 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988998', 'tblTempUsageDetail_20' ) start [2025-04-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14988998', 'tblTempUsageDetail_20' ) end [2025-04-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988998', 'tblTempVendorCDR_20' ) start [2025-04-25 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14988998', 'tblTempVendorCDR_20' ) end [2025-04-25 19:13:20] Production.INFO: ProcessCDR(1,14988998,1,1,2) [2025-04-25 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14988998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14988998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14988998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14988998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988998', 'tblTempUsageDetail_20' ) start [2025-04-25 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14988998', 'tblTempUsageDetail_20' ) end [2025-04-25 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:13:25] Production.INFO: ==27996== Releasing lock... [2025-04-25 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:13:25] Production.INFO: 61 MB #Memory Used# [2025-04-25 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:14:06 [end_date_ymd] => 2025-04-25 19:14:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:14:06' and `end` < '2025-04-25 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-04-25 19:14:19] Production.INFO: count ==4387 [2025-04-25 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:14:06 - End Time 2025-04-25 19:14:06 [2025-04-25 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989003', 'tblTempUsageDetail_20' ) start [2025-04-25 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989003', 'tblTempUsageDetail_20' ) end [2025-04-25 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989003', 'tblTempVendorCDR_20' ) start [2025-04-25 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989003', 'tblTempVendorCDR_20' ) end [2025-04-25 19:14:20] Production.INFO: ProcessCDR(1,14989003,1,1,2) [2025-04-25 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989003', 'tblTempUsageDetail_20' ) start [2025-04-25 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989003', 'tblTempUsageDetail_20' ) end [2025-04-25 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:14:25] Production.INFO: ==28069== Releasing lock... [2025-04-25 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:14:25] Production.INFO: 61 MB #Memory Used# [2025-04-25 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:15:06 [end_date_ymd] => 2025-04-25 19:15:06 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:15:06' and `end` < '2025-04-25 19: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-04-25 19:15:19] Production.INFO: count ==4371 [2025-04-25 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:15:06 - End Time 2025-04-25 19:15:06 [2025-04-25 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989008', 'tblTempUsageDetail_20' ) start [2025-04-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989008', 'tblTempUsageDetail_20' ) end [2025-04-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989008', 'tblTempVendorCDR_20' ) start [2025-04-25 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989008', 'tblTempVendorCDR_20' ) end [2025-04-25 19:15:20] Production.INFO: ProcessCDR(1,14989008,1,1,2) [2025-04-25 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989008', 'tblTempUsageDetail_20' ) start [2025-04-25 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989008', 'tblTempUsageDetail_20' ) end [2025-04-25 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:15:26] Production.INFO: ==28222== Releasing lock... [2025-04-25 19:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:15:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-25 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:16:05 [end_date_ymd] => 2025-04-25 19:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:16:05' and `end` < '2025-04-25 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-04-25 19:16:19] Production.INFO: count ==4356 [2025-04-25 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:16:05 - End Time 2025-04-25 19:16:05 [2025-04-25 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989013', 'tblTempUsageDetail_20' ) start [2025-04-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989013', 'tblTempUsageDetail_20' ) end [2025-04-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989013', 'tblTempVendorCDR_20' ) start [2025-04-25 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989013', 'tblTempVendorCDR_20' ) end [2025-04-25 19:16:20] Production.INFO: ProcessCDR(1,14989013,1,1,2) [2025-04-25 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989013', 'tblTempUsageDetail_20' ) start [2025-04-25 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989013', 'tblTempUsageDetail_20' ) end [2025-04-25 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:16:24] Production.INFO: ==28291== Releasing lock... [2025-04-25 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:16:24] Production.INFO: 60.75 MB #Memory Used# [2025-04-25 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:17:05 [end_date_ymd] => 2025-04-25 19:17:05 [RateCDR] => 1 ) [2025-04-25 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:17:05' and `end` < '2025-04-25 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:17:19] Production.INFO: count ==4339 [2025-04-25 19:17:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:17:05 - End Time 2025-04-25 19:17:05 [2025-04-25 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989018', 'tblTempUsageDetail_20' ) start [2025-04-25 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989018', 'tblTempUsageDetail_20' ) end [2025-04-25 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989018', 'tblTempVendorCDR_20' ) start [2025-04-25 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989018', 'tblTempVendorCDR_20' ) end [2025-04-25 19:17:21] Production.INFO: ProcessCDR(1,14989018,1,1,2) [2025-04-25 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989018', 'tblTempUsageDetail_20' ) start [2025-04-25 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989018', 'tblTempUsageDetail_20' ) end [2025-04-25 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:17:26] Production.INFO: ==28403== Releasing lock... [2025-04-25 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:17:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-25 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:18:05 [end_date_ymd] => 2025-04-25 19:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:18:05' and `end` < '2025-04-25 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-04-25 19:18:18] Production.INFO: count ==4331 [2025-04-25 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:18:05 - End Time 2025-04-25 19:18:05 [2025-04-25 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989023', 'tblTempUsageDetail_20' ) start [2025-04-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989023', 'tblTempUsageDetail_20' ) end [2025-04-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989023', 'tblTempVendorCDR_20' ) start [2025-04-25 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989023', 'tblTempVendorCDR_20' ) end [2025-04-25 19:18:20] Production.INFO: ProcessCDR(1,14989023,1,1,2) [2025-04-25 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989023', 'tblTempUsageDetail_20' ) start [2025-04-25 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989023', 'tblTempUsageDetail_20' ) end [2025-04-25 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:18:23] Production.INFO: ==28481== Releasing lock... [2025-04-25 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:18:23] Production.INFO: 60.5 MB #Memory Used# [2025-04-25 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:19:05 [end_date_ymd] => 2025-04-25 19:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:19:05' and `end` < '2025-04-25 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-04-25 19:19:19] Production.INFO: count ==4311 [2025-04-25 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:19:05 - End Time 2025-04-25 19:19:05 [2025-04-25 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989028', 'tblTempUsageDetail_20' ) start [2025-04-25 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989028', 'tblTempUsageDetail_20' ) end [2025-04-25 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989028', 'tblTempVendorCDR_20' ) start [2025-04-25 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989028', 'tblTempVendorCDR_20' ) end [2025-04-25 19:19:21] Production.INFO: ProcessCDR(1,14989028,1,1,2) [2025-04-25 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989028', 'tblTempUsageDetail_20' ) start [2025-04-25 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989028', 'tblTempUsageDetail_20' ) end [2025-04-25 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:19:24] Production.INFO: ==28582== Releasing lock... [2025-04-25 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:19:24] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:20:06 [end_date_ymd] => 2025-04-25 19:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:20:06' and `end` < '2025-04-25 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-04-25 19:20:20] Production.INFO: count ==4311 [2025-04-25 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-25 16:20:06 - End Time 2025-04-25 19:20:06 [2025-04-25 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989034', 'tblTempUsageDetail_20' ) start [2025-04-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989034', 'tblTempUsageDetail_20' ) end [2025-04-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989034', 'tblTempVendorCDR_20' ) start [2025-04-25 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989034', 'tblTempVendorCDR_20' ) end [2025-04-25 19:20:21] Production.INFO: ProcessCDR(1,14989034,1,1,2) [2025-04-25 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989034', 'tblTempUsageDetail_20' ) start [2025-04-25 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989034', 'tblTempUsageDetail_20' ) end [2025-04-25 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:20:26] Production.INFO: ==28690== Releasing lock... [2025-04-25 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:20:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-25 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:21:04 [end_date_ymd] => 2025-04-25 19:21:04 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:21:04' and `end` < '2025-04-25 19: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-04-25 19:21:18] Production.INFO: count ==4241 [2025-04-25 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:21:04 - End Time 2025-04-25 19:21:04 [2025-04-25 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989038', 'tblTempUsageDetail_20' ) start [2025-04-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989038', 'tblTempUsageDetail_20' ) end [2025-04-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989038', 'tblTempVendorCDR_20' ) start [2025-04-25 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989038', 'tblTempVendorCDR_20' ) end [2025-04-25 19:21:19] Production.INFO: ProcessCDR(1,14989038,1,1,2) [2025-04-25 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989038', 'tblTempUsageDetail_20' ) start [2025-04-25 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989038', 'tblTempUsageDetail_20' ) end [2025-04-25 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:21:23] Production.INFO: ==28795== Releasing lock... [2025-04-25 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:21:23] Production.INFO: 59.75 MB #Memory Used# [2025-04-25 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:22:05 [end_date_ymd] => 2025-04-25 19:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:22:05' and `end` < '2025-04-25 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-04-25 19:22:19] Production.INFO: count ==4204 [2025-04-25 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:22:05 - End Time 2025-04-25 19:22:05 [2025-04-25 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989044', 'tblTempUsageDetail_20' ) start [2025-04-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989044', 'tblTempUsageDetail_20' ) end [2025-04-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989044', 'tblTempVendorCDR_20' ) start [2025-04-25 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989044', 'tblTempVendorCDR_20' ) end [2025-04-25 19:22:20] Production.INFO: ProcessCDR(1,14989044,1,1,2) [2025-04-25 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989044', 'tblTempUsageDetail_20' ) start [2025-04-25 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989044', 'tblTempUsageDetail_20' ) end [2025-04-25 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:22:23] Production.INFO: ==28898== Releasing lock... [2025-04-25 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:22:23] Production.INFO: 59.5 MB #Memory Used# [2025-04-25 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:23:05 [end_date_ymd] => 2025-04-25 19:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:23:05' and `end` < '2025-04-25 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-04-25 19:23:18] Production.INFO: count ==4185 [2025-04-25 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:23:05 - End Time 2025-04-25 19:23:05 [2025-04-25 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989049', 'tblTempUsageDetail_20' ) start [2025-04-25 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989049', 'tblTempUsageDetail_20' ) end [2025-04-25 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989049', 'tblTempVendorCDR_20' ) start [2025-04-25 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989049', 'tblTempVendorCDR_20' ) end [2025-04-25 19:23:20] Production.INFO: ProcessCDR(1,14989049,1,1,2) [2025-04-25 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989049', 'tblTempUsageDetail_20' ) start [2025-04-25 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989049', 'tblTempUsageDetail_20' ) end [2025-04-25 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:23:23] Production.INFO: ==29002== Releasing lock... [2025-04-25 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:23:23] Production.INFO: 59.25 MB #Memory Used# [2025-04-25 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:24:05 [end_date_ymd] => 2025-04-25 19:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:24:05' and `end` < '2025-04-25 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-04-25 19:24:18] Production.INFO: count ==4179 [2025-04-25 19:24:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:24:05 - End Time 2025-04-25 19:24:05 [2025-04-25 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989054', 'tblTempUsageDetail_20' ) start [2025-04-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989054', 'tblTempUsageDetail_20' ) end [2025-04-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989054', 'tblTempVendorCDR_20' ) start [2025-04-25 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989054', 'tblTempVendorCDR_20' ) end [2025-04-25 19:24:20] Production.INFO: ProcessCDR(1,14989054,1,1,2) [2025-04-25 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989054', 'tblTempUsageDetail_20' ) start [2025-04-25 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989054', 'tblTempUsageDetail_20' ) end [2025-04-25 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:24:25] Production.INFO: ==29110== Releasing lock... [2025-04-25 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:24:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:25:05 [end_date_ymd] => 2025-04-25 19:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:25:05' and `end` < '2025-04-25 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-04-25 19:25:18] Production.INFO: count ==4144 [2025-04-25 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:25:05 - End Time 2025-04-25 19:25:05 [2025-04-25 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989059', 'tblTempUsageDetail_20' ) start [2025-04-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989059', 'tblTempUsageDetail_20' ) end [2025-04-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989059', 'tblTempVendorCDR_20' ) start [2025-04-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989059', 'tblTempVendorCDR_20' ) end [2025-04-25 19:25:20] Production.INFO: ProcessCDR(1,14989059,1,1,2) [2025-04-25 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989059', 'tblTempUsageDetail_20' ) start [2025-04-25 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989059', 'tblTempUsageDetail_20' ) end [2025-04-25 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:25:25] Production.INFO: ==29213== Releasing lock... [2025-04-25 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:25:25] Production.INFO: 59 MB #Memory Used# [2025-04-25 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:26:05 [end_date_ymd] => 2025-04-25 19:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:26:05' and `end` < '2025-04-25 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-04-25 19:26:18] Production.INFO: count ==4106 [2025-04-25 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:26:05 - End Time 2025-04-25 19:26:05 [2025-04-25 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989064', 'tblTempUsageDetail_20' ) start [2025-04-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989064', 'tblTempUsageDetail_20' ) end [2025-04-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989064', 'tblTempVendorCDR_20' ) start [2025-04-25 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989064', 'tblTempVendorCDR_20' ) end [2025-04-25 19:26:20] Production.INFO: ProcessCDR(1,14989064,1,1,2) [2025-04-25 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989064', 'tblTempUsageDetail_20' ) start [2025-04-25 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989064', 'tblTempUsageDetail_20' ) end [2025-04-25 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:26:23] Production.INFO: ==29318== Releasing lock... [2025-04-25 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:26:23] Production.INFO: 58.75 MB #Memory Used# [2025-04-25 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:27:05 [end_date_ymd] => 2025-04-25 19:27:05 [RateCDR] => 1 ) [2025-04-25 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:27:05' and `end` < '2025-04-25 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:27:18] Production.INFO: count ==4090 [2025-04-25 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:27:05 - End Time 2025-04-25 19:27:05 [2025-04-25 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989069', 'tblTempUsageDetail_20' ) start [2025-04-25 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989069', 'tblTempUsageDetail_20' ) end [2025-04-25 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989069', 'tblTempVendorCDR_20' ) start [2025-04-25 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989069', 'tblTempVendorCDR_20' ) end [2025-04-25 19:27:20] Production.INFO: ProcessCDR(1,14989069,1,1,2) [2025-04-25 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989069', 'tblTempUsageDetail_20' ) start [2025-04-25 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989069', 'tblTempUsageDetail_20' ) end [2025-04-25 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:27:23] Production.INFO: ==29429== Releasing lock... [2025-04-25 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:27:23] Production.INFO: 58.5 MB #Memory Used# [2025-04-25 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:28:05 [end_date_ymd] => 2025-04-25 19:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:28:05' and `end` < '2025-04-25 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-04-25 19:28:18] Production.INFO: count ==4067 [2025-04-25 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:28:05 - End Time 2025-04-25 19:28:05 [2025-04-25 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989074', 'tblTempUsageDetail_20' ) start [2025-04-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989074', 'tblTempUsageDetail_20' ) end [2025-04-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989074', 'tblTempVendorCDR_20' ) start [2025-04-25 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989074', 'tblTempVendorCDR_20' ) end [2025-04-25 19:28:20] Production.INFO: ProcessCDR(1,14989074,1,1,2) [2025-04-25 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989074', 'tblTempUsageDetail_20' ) start [2025-04-25 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989074', 'tblTempUsageDetail_20' ) end [2025-04-25 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:28:23] Production.INFO: ==29529== Releasing lock... [2025-04-25 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:28:23] Production.INFO: 58.5 MB #Memory Used# [2025-04-25 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:29:05 [end_date_ymd] => 2025-04-25 19:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:29:05' and `end` < '2025-04-25 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-04-25 19:29:19] Production.INFO: count ==4051 [2025-04-25 19:29:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:29:05 - End Time 2025-04-25 19:29:05 [2025-04-25 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989079', 'tblTempUsageDetail_20' ) start [2025-04-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989079', 'tblTempUsageDetail_20' ) end [2025-04-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989079', 'tblTempVendorCDR_20' ) start [2025-04-25 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989079', 'tblTempVendorCDR_20' ) end [2025-04-25 19:29:20] Production.INFO: ProcessCDR(1,14989079,1,1,2) [2025-04-25 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989079', 'tblTempUsageDetail_20' ) start [2025-04-25 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989079', 'tblTempUsageDetail_20' ) end [2025-04-25 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:29:23] Production.INFO: ==29631== Releasing lock... [2025-04-25 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:29:23] Production.INFO: 58.25 MB #Memory Used# [2025-04-25 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:30:06 [end_date_ymd] => 2025-04-25 19:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:30:06' and `end` < '2025-04-25 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-04-25 19:30:19] Production.INFO: count ==4039 [2025-04-25 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:30:06 - End Time 2025-04-25 19:30:06 [2025-04-25 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989085', 'tblTempUsageDetail_20' ) start [2025-04-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989085', 'tblTempUsageDetail_20' ) end [2025-04-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989085', 'tblTempVendorCDR_20' ) start [2025-04-25 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989085', 'tblTempVendorCDR_20' ) end [2025-04-25 19:30:20] Production.INFO: ProcessCDR(1,14989085,1,1,2) [2025-04-25 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989085', 'tblTempUsageDetail_20' ) start [2025-04-25 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989085', 'tblTempUsageDetail_20' ) end [2025-04-25 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:30:24] Production.INFO: ==29733== Releasing lock... [2025-04-25 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:30:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-25 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:31:05 [end_date_ymd] => 2025-04-25 19:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:31:05' and `end` < '2025-04-25 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-04-25 19:31:18] Production.INFO: count ==3991 [2025-04-25 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:31:05 - End Time 2025-04-25 19:31:05 [2025-04-25 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989090', 'tblTempUsageDetail_20' ) start [2025-04-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989090', 'tblTempUsageDetail_20' ) end [2025-04-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989090', 'tblTempVendorCDR_20' ) start [2025-04-25 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989090', 'tblTempVendorCDR_20' ) end [2025-04-25 19:31:20] Production.INFO: ProcessCDR(1,14989090,1,1,2) [2025-04-25 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989090', 'tblTempUsageDetail_20' ) start [2025-04-25 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989090', 'tblTempUsageDetail_20' ) end [2025-04-25 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:31:25] Production.INFO: ==29841== Releasing lock... [2025-04-25 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:31:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-25 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:32:05 [end_date_ymd] => 2025-04-25 19:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:32:05' and `end` < '2025-04-25 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-04-25 19:32:19] Production.INFO: count ==3983 [2025-04-25 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:32:05 - End Time 2025-04-25 19:32:05 [2025-04-25 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989095', 'tblTempUsageDetail_20' ) start [2025-04-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989095', 'tblTempUsageDetail_20' ) end [2025-04-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989095', 'tblTempVendorCDR_20' ) start [2025-04-25 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989095', 'tblTempVendorCDR_20' ) end [2025-04-25 19:32:20] Production.INFO: ProcessCDR(1,14989095,1,1,2) [2025-04-25 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989095', 'tblTempUsageDetail_20' ) start [2025-04-25 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989095', 'tblTempUsageDetail_20' ) end [2025-04-25 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:32:25] Production.INFO: ==29984== Releasing lock... [2025-04-25 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:32:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-25 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:33:05 [end_date_ymd] => 2025-04-25 19:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:33:05' and `end` < '2025-04-25 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-04-25 19:33:18] Production.INFO: count ==3990 [2025-04-25 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:33:05 - End Time 2025-04-25 19:33:05 [2025-04-25 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989100', 'tblTempUsageDetail_20' ) start [2025-04-25 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989100', 'tblTempUsageDetail_20' ) end [2025-04-25 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989100', 'tblTempVendorCDR_20' ) start [2025-04-25 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989100', 'tblTempVendorCDR_20' ) end [2025-04-25 19:33:20] Production.INFO: ProcessCDR(1,14989100,1,1,2) [2025-04-25 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989100', 'tblTempUsageDetail_20' ) start [2025-04-25 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989100', 'tblTempUsageDetail_20' ) end [2025-04-25 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:33:25] Production.INFO: ==30076== Releasing lock... [2025-04-25 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:33:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-25 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:34:05 [end_date_ymd] => 2025-04-25 19:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:34:05' and `end` < '2025-04-25 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-04-25 19:34:18] Production.INFO: count ==3964 [2025-04-25 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:34:05 - End Time 2025-04-25 19:34:05 [2025-04-25 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989105', 'tblTempUsageDetail_20' ) start [2025-04-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989105', 'tblTempUsageDetail_20' ) end [2025-04-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989105', 'tblTempVendorCDR_20' ) start [2025-04-25 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989105', 'tblTempVendorCDR_20' ) end [2025-04-25 19:34:20] Production.INFO: ProcessCDR(1,14989105,1,1,2) [2025-04-25 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989105', 'tblTempUsageDetail_20' ) start [2025-04-25 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989105', 'tblTempUsageDetail_20' ) end [2025-04-25 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:34:23] Production.INFO: ==30149== Releasing lock... [2025-04-25 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:34:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-25 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:35:05 [end_date_ymd] => 2025-04-25 19:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:35:05' and `end` < '2025-04-25 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-04-25 19:35:18] Production.INFO: count ==3934 [2025-04-25 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:35:05 - End Time 2025-04-25 19:35:05 [2025-04-25 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989110', 'tblTempUsageDetail_20' ) start [2025-04-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989110', 'tblTempUsageDetail_20' ) end [2025-04-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989110', 'tblTempVendorCDR_20' ) start [2025-04-25 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989110', 'tblTempVendorCDR_20' ) end [2025-04-25 19:35:19] Production.INFO: ProcessCDR(1,14989110,1,1,2) [2025-04-25 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989110', 'tblTempUsageDetail_20' ) start [2025-04-25 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989110', 'tblTempUsageDetail_20' ) end [2025-04-25 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:35:23] Production.INFO: ==30216== Releasing lock... [2025-04-25 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:35:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-25 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:36:05 [end_date_ymd] => 2025-04-25 19:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:36:05' and `end` < '2025-04-25 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-04-25 19:36:18] Production.INFO: count ==3918 [2025-04-25 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:36:05 - End Time 2025-04-25 19:36:05 [2025-04-25 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989115', 'tblTempUsageDetail_20' ) start [2025-04-25 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989115', 'tblTempUsageDetail_20' ) end [2025-04-25 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989115', 'tblTempVendorCDR_20' ) start [2025-04-25 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989115', 'tblTempVendorCDR_20' ) end [2025-04-25 19:36:20] Production.INFO: ProcessCDR(1,14989115,1,1,2) [2025-04-25 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989115', 'tblTempUsageDetail_20' ) start [2025-04-25 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989115', 'tblTempUsageDetail_20' ) end [2025-04-25 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:36:24] Production.INFO: ==30285== Releasing lock... [2025-04-25 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:36:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:37:04 [end_date_ymd] => 2025-04-25 19:37:04 [RateCDR] => 1 ) [2025-04-25 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:37:04' and `end` < '2025-04-25 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:37:17] Production.INFO: count ==3911 [2025-04-25 19:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 16:37:04 - End Time 2025-04-25 19:37:04 [2025-04-25 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989120', 'tblTempUsageDetail_20' ) start [2025-04-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989120', 'tblTempUsageDetail_20' ) end [2025-04-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989120', 'tblTempVendorCDR_20' ) start [2025-04-25 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989120', 'tblTempVendorCDR_20' ) end [2025-04-25 19:37:19] Production.INFO: ProcessCDR(1,14989120,1,1,2) [2025-04-25 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989120', 'tblTempUsageDetail_20' ) start [2025-04-25 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989120', 'tblTempUsageDetail_20' ) end [2025-04-25 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:37:24] Production.INFO: ==30357== Releasing lock... [2025-04-25 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:37:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:38:05 [end_date_ymd] => 2025-04-25 19:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:38:05' and `end` < '2025-04-25 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-04-25 19:38:18] Production.INFO: count ==3889 [2025-04-25 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:38:05 - End Time 2025-04-25 19:38:05 [2025-04-25 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989125', 'tblTempUsageDetail_20' ) start [2025-04-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989125', 'tblTempUsageDetail_20' ) end [2025-04-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989125', 'tblTempVendorCDR_20' ) start [2025-04-25 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989125', 'tblTempVendorCDR_20' ) end [2025-04-25 19:38:19] Production.INFO: ProcessCDR(1,14989125,1,1,2) [2025-04-25 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989125', 'tblTempUsageDetail_20' ) start [2025-04-25 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989125', 'tblTempUsageDetail_20' ) end [2025-04-25 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:38:23] Production.INFO: ==30427== Releasing lock... [2025-04-25 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:38:23] Production.INFO: 57 MB #Memory Used# [2025-04-25 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:39:05 [end_date_ymd] => 2025-04-25 19:39:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:39:05' and `end` < '2025-04-25 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-04-25 19:39:19] Production.INFO: count ==3872 [2025-04-25 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:39:05 - End Time 2025-04-25 19:39:05 [2025-04-25 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989130', 'tblTempUsageDetail_20' ) start [2025-04-25 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989130', 'tblTempUsageDetail_20' ) end [2025-04-25 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989130', 'tblTempVendorCDR_20' ) start [2025-04-25 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989130', 'tblTempVendorCDR_20' ) end [2025-04-25 19:39:20] Production.INFO: ProcessCDR(1,14989130,1,1,2) [2025-04-25 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989130', 'tblTempUsageDetail_20' ) start [2025-04-25 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989130', 'tblTempUsageDetail_20' ) end [2025-04-25 19:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:39:25] Production.INFO: ==30497== Releasing lock... [2025-04-25 19:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:39:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-25 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:40:06 [end_date_ymd] => 2025-04-25 19:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:40:06' and `end` < '2025-04-25 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-04-25 19:40:19] Production.INFO: count ==3853 [2025-04-25 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:40:06 - End Time 2025-04-25 19:40:06 [2025-04-25 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989136', 'tblTempUsageDetail_20' ) start [2025-04-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989136', 'tblTempUsageDetail_20' ) end [2025-04-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989136', 'tblTempVendorCDR_20' ) start [2025-04-25 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989136', 'tblTempVendorCDR_20' ) end [2025-04-25 19:40:20] Production.INFO: ProcessCDR(1,14989136,1,1,2) [2025-04-25 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989136', 'tblTempUsageDetail_20' ) start [2025-04-25 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989136', 'tblTempUsageDetail_20' ) end [2025-04-25 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:40:23] Production.INFO: ==30574== Releasing lock... [2025-04-25 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:40:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-25 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:41:05 [end_date_ymd] => 2025-04-25 19:41:05 [RateCDR] => 1 ) [2025-04-25 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:41:05' and `end` < '2025-04-25 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:41:18] Production.INFO: count ==3719 [2025-04-25 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:41:05 - End Time 2025-04-25 19:41:05 [2025-04-25 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989141', 'tblTempUsageDetail_20' ) start [2025-04-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989141', 'tblTempUsageDetail_20' ) end [2025-04-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989141', 'tblTempVendorCDR_20' ) start [2025-04-25 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989141', 'tblTempVendorCDR_20' ) end [2025-04-25 19:41:20] Production.INFO: ProcessCDR(1,14989141,1,1,2) [2025-04-25 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989141', 'tblTempUsageDetail_20' ) start [2025-04-25 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989141', 'tblTempUsageDetail_20' ) end [2025-04-25 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:41:23] Production.INFO: ==30652== Releasing lock... [2025-04-25 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:41:23] Production.INFO: 55.75 MB #Memory Used# [2025-04-25 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:42:05 [end_date_ymd] => 2025-04-25 19:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:42:05' and `end` < '2025-04-25 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-04-25 19:42:18] Production.INFO: count ==3688 [2025-04-25 19:42:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:42:05 - End Time 2025-04-25 19:42:05 [2025-04-25 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989146', 'tblTempUsageDetail_20' ) start [2025-04-25 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989146', 'tblTempUsageDetail_20' ) end [2025-04-25 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989146', 'tblTempVendorCDR_20' ) start [2025-04-25 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989146', 'tblTempVendorCDR_20' ) end [2025-04-25 19:42:20] Production.INFO: ProcessCDR(1,14989146,1,1,2) [2025-04-25 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989146', 'tblTempUsageDetail_20' ) start [2025-04-25 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989146', 'tblTempUsageDetail_20' ) end [2025-04-25 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:42:25] Production.INFO: ==30721== Releasing lock... [2025-04-25 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:42:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-25 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:43:05 [end_date_ymd] => 2025-04-25 19:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:43:05' and `end` < '2025-04-25 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-04-25 19:43:18] Production.INFO: count ==3668 [2025-04-25 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:43:05 - End Time 2025-04-25 19:43:05 [2025-04-25 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989151', 'tblTempUsageDetail_20' ) start [2025-04-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989151', 'tblTempUsageDetail_20' ) end [2025-04-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989151', 'tblTempVendorCDR_20' ) start [2025-04-25 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989151', 'tblTempVendorCDR_20' ) end [2025-04-25 19:43:19] Production.INFO: ProcessCDR(1,14989151,1,1,2) [2025-04-25 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989151', 'tblTempUsageDetail_20' ) start [2025-04-25 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989151', 'tblTempUsageDetail_20' ) end [2025-04-25 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:43:23] Production.INFO: ==30793== Releasing lock... [2025-04-25 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:43:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-25 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:44:05 [end_date_ymd] => 2025-04-25 19:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:44:05' and `end` < '2025-04-25 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-04-25 19:44:18] Production.INFO: count ==3656 [2025-04-25 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:44:05 - End Time 2025-04-25 19:44:05 [2025-04-25 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989156', 'tblTempUsageDetail_20' ) start [2025-04-25 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989156', 'tblTempUsageDetail_20' ) end [2025-04-25 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989156', 'tblTempVendorCDR_20' ) start [2025-04-25 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989156', 'tblTempVendorCDR_20' ) end [2025-04-25 19:44:19] Production.INFO: ProcessCDR(1,14989156,1,1,2) [2025-04-25 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989156', 'tblTempUsageDetail_20' ) start [2025-04-25 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989156', 'tblTempUsageDetail_20' ) end [2025-04-25 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:44:23] Production.INFO: ==30861== Releasing lock... [2025-04-25 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:44:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-25 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:45:05 [end_date_ymd] => 2025-04-25 19:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:45:05' and `end` < '2025-04-25 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-04-25 19:45:18] Production.INFO: count ==3646 [2025-04-25 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:45:05 - End Time 2025-04-25 19:45:05 [2025-04-25 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989161', 'tblTempUsageDetail_20' ) start [2025-04-25 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989161', 'tblTempUsageDetail_20' ) end [2025-04-25 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989161', 'tblTempVendorCDR_20' ) start [2025-04-25 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989161', 'tblTempVendorCDR_20' ) end [2025-04-25 19:45:20] Production.INFO: ProcessCDR(1,14989161,1,1,2) [2025-04-25 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989161', 'tblTempUsageDetail_20' ) start [2025-04-25 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989161', 'tblTempUsageDetail_20' ) end [2025-04-25 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:45:23] Production.INFO: ==30929== Releasing lock... [2025-04-25 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:45:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-25 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:46:05 [end_date_ymd] => 2025-04-25 19:46:05 [RateCDR] => 1 ) [2025-04-25 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:46:05' and `end` < '2025-04-25 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:46:19] Production.INFO: count ==3647 [2025-04-25 19:46:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:46:05 - End Time 2025-04-25 19:46:05 [2025-04-25 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989166', 'tblTempUsageDetail_20' ) start [2025-04-25 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989166', 'tblTempUsageDetail_20' ) end [2025-04-25 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989166', 'tblTempVendorCDR_20' ) start [2025-04-25 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989166', 'tblTempVendorCDR_20' ) end [2025-04-25 19:46:20] Production.INFO: ProcessCDR(1,14989166,1,1,2) [2025-04-25 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989166', 'tblTempUsageDetail_20' ) start [2025-04-25 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989166', 'tblTempUsageDetail_20' ) end [2025-04-25 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:46:24] Production.INFO: ==30998== Releasing lock... [2025-04-25 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:46:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-25 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:47:05 [end_date_ymd] => 2025-04-25 19:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:47:05' and `end` < '2025-04-25 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-04-25 19:47:18] Production.INFO: count ==3638 [2025-04-25 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:47:05 - End Time 2025-04-25 19:47:05 [2025-04-25 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989171', 'tblTempUsageDetail_20' ) start [2025-04-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989171', 'tblTempUsageDetail_20' ) end [2025-04-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989171', 'tblTempVendorCDR_20' ) start [2025-04-25 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989171', 'tblTempVendorCDR_20' ) end [2025-04-25 19:47:19] Production.INFO: ProcessCDR(1,14989171,1,1,2) [2025-04-25 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989171', 'tblTempUsageDetail_20' ) start [2025-04-25 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989171', 'tblTempUsageDetail_20' ) end [2025-04-25 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:47:23] Production.INFO: ==31105== Releasing lock... [2025-04-25 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:47:23] Production.INFO: 55.25 MB #Memory Used# [2025-04-25 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:48:05 [end_date_ymd] => 2025-04-25 19:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:48:05' and `end` < '2025-04-25 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-04-25 19:48:18] Production.INFO: count ==3615 [2025-04-25 19:48:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:48:05 - End Time 2025-04-25 19:48:05 [2025-04-25 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989176', 'tblTempUsageDetail_20' ) start [2025-04-25 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989176', 'tblTempUsageDetail_20' ) end [2025-04-25 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989176', 'tblTempVendorCDR_20' ) start [2025-04-25 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989176', 'tblTempVendorCDR_20' ) end [2025-04-25 19:48:20] Production.INFO: ProcessCDR(1,14989176,1,1,2) [2025-04-25 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989176', 'tblTempUsageDetail_20' ) start [2025-04-25 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989176', 'tblTempUsageDetail_20' ) end [2025-04-25 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:48:23] Production.INFO: ==31176== Releasing lock... [2025-04-25 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:48:23] Production.INFO: 55 MB #Memory Used# [2025-04-25 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:49:05 [end_date_ymd] => 2025-04-25 19:49:05 [RateCDR] => 1 ) [2025-04-25 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:49:05' and `end` < '2025-04-25 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:49:18] Production.INFO: count ==3608 [2025-04-25 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:49:05 - End Time 2025-04-25 19:49:05 [2025-04-25 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989181', 'tblTempUsageDetail_20' ) start [2025-04-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989181', 'tblTempUsageDetail_20' ) end [2025-04-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989181', 'tblTempVendorCDR_20' ) start [2025-04-25 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989181', 'tblTempVendorCDR_20' ) end [2025-04-25 19:49:19] Production.INFO: ProcessCDR(1,14989181,1,1,2) [2025-04-25 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989181', 'tblTempUsageDetail_20' ) start [2025-04-25 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989181', 'tblTempUsageDetail_20' ) end [2025-04-25 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:49:23] Production.INFO: ==31244== Releasing lock... [2025-04-25 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:49:23] Production.INFO: 55 MB #Memory Used# [2025-04-25 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:50:06 [end_date_ymd] => 2025-04-25 19:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:50:06' and `end` < '2025-04-25 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-04-25 19:50:19] Production.INFO: count ==3601 [2025-04-25 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:50:06 - End Time 2025-04-25 19:50:06 [2025-04-25 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989187', 'tblTempUsageDetail_20' ) start [2025-04-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989187', 'tblTempUsageDetail_20' ) end [2025-04-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989187', 'tblTempVendorCDR_20' ) start [2025-04-25 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989187', 'tblTempVendorCDR_20' ) end [2025-04-25 19:50:20] Production.INFO: ProcessCDR(1,14989187,1,1,2) [2025-04-25 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989187', 'tblTempUsageDetail_20' ) start [2025-04-25 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989187', 'tblTempUsageDetail_20' ) end [2025-04-25 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:50:24] Production.INFO: ==31316== Releasing lock... [2025-04-25 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:50:24] Production.INFO: 55 MB #Memory Used# [2025-04-25 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:51:05 [end_date_ymd] => 2025-04-25 19:51:05 [RateCDR] => 1 ) [2025-04-25 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:51:05' and `end` < '2025-04-25 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-04-25 19:51:19] Production.INFO: count ==3548 [2025-04-25 19:51:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:51:05 - End Time 2025-04-25 19:51:05 [2025-04-25 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989192', 'tblTempUsageDetail_20' ) start [2025-04-25 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989192', 'tblTempUsageDetail_20' ) end [2025-04-25 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989192', 'tblTempVendorCDR_20' ) start [2025-04-25 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989192', 'tblTempVendorCDR_20' ) end [2025-04-25 19:51:20] Production.INFO: ProcessCDR(1,14989192,1,1,2) [2025-04-25 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989192', 'tblTempUsageDetail_20' ) start [2025-04-25 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989192', 'tblTempUsageDetail_20' ) end [2025-04-25 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:51:24] Production.INFO: ==31389== Releasing lock... [2025-04-25 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:51:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-25 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:52:05 [end_date_ymd] => 2025-04-25 19:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:52:05' and `end` < '2025-04-25 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-04-25 19:52:18] Production.INFO: count ==3531 [2025-04-25 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:52:05 - End Time 2025-04-25 19:52:05 [2025-04-25 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989197', 'tblTempUsageDetail_20' ) start [2025-04-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989197', 'tblTempUsageDetail_20' ) end [2025-04-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989197', 'tblTempVendorCDR_20' ) start [2025-04-25 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989197', 'tblTempVendorCDR_20' ) end [2025-04-25 19:52:19] Production.INFO: ProcessCDR(1,14989197,1,1,2) [2025-04-25 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989197', 'tblTempUsageDetail_20' ) start [2025-04-25 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989197', 'tblTempUsageDetail_20' ) end [2025-04-25 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:52:24] Production.INFO: ==31466== Releasing lock... [2025-04-25 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:52:24] Production.INFO: 54.75 MB #Memory Used# [2025-04-25 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:53:05 [end_date_ymd] => 2025-04-25 19:53:05 [RateCDR] => 1 ) [2025-04-25 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:53:05' and `end` < '2025-04-25 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:53:18] Production.INFO: count ==3522 [2025-04-25 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:53:05 - End Time 2025-04-25 19:53:05 [2025-04-25 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989202', 'tblTempUsageDetail_20' ) start [2025-04-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989202', 'tblTempUsageDetail_20' ) end [2025-04-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989202', 'tblTempVendorCDR_20' ) start [2025-04-25 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989202', 'tblTempVendorCDR_20' ) end [2025-04-25 19:53:19] Production.INFO: ProcessCDR(1,14989202,1,1,2) [2025-04-25 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989202', 'tblTempUsageDetail_20' ) start [2025-04-25 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989202', 'tblTempUsageDetail_20' ) end [2025-04-25 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:53:24] Production.INFO: ==31535== Releasing lock... [2025-04-25 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:53:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-25 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:54:05 [end_date_ymd] => 2025-04-25 19:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:54:05' and `end` < '2025-04-25 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-04-25 19:54:18] Production.INFO: count ==3501 [2025-04-25 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:54:05 - End Time 2025-04-25 19:54:05 [2025-04-25 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989207', 'tblTempUsageDetail_20' ) start [2025-04-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989207', 'tblTempUsageDetail_20' ) end [2025-04-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989207', 'tblTempVendorCDR_20' ) start [2025-04-25 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989207', 'tblTempVendorCDR_20' ) end [2025-04-25 19:54:19] Production.INFO: ProcessCDR(1,14989207,1,1,2) [2025-04-25 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989207', 'tblTempUsageDetail_20' ) start [2025-04-25 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989207', 'tblTempUsageDetail_20' ) end [2025-04-25 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:54:22] Production.INFO: ==31610== Releasing lock... [2025-04-25 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:54:22] Production.INFO: 54.25 MB #Memory Used# [2025-04-25 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:55:05 [end_date_ymd] => 2025-04-25 19:55:05 [RateCDR] => 1 ) [2025-04-25 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:55:05' and `end` < '2025-04-25 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:55:18] Production.INFO: count ==3486 [2025-04-25 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:55:05 - End Time 2025-04-25 19:55:05 [2025-04-25 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989212', 'tblTempUsageDetail_20' ) start [2025-04-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989212', 'tblTempUsageDetail_20' ) end [2025-04-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989212', 'tblTempVendorCDR_20' ) start [2025-04-25 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989212', 'tblTempVendorCDR_20' ) end [2025-04-25 19:55:19] Production.INFO: ProcessCDR(1,14989212,1,1,2) [2025-04-25 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989212', 'tblTempUsageDetail_20' ) start [2025-04-25 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989212', 'tblTempUsageDetail_20' ) end [2025-04-25 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:55:24] Production.INFO: ==31686== Releasing lock... [2025-04-25 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:55:24] Production.INFO: 54 MB #Memory Used# [2025-04-25 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:56:06 [end_date_ymd] => 2025-04-25 19:56:06 [RateCDR] => 1 ) [2025-04-25 19: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-04-25 16:56:06' and `end` < '2025-04-25 19: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-04-25 19:56:19] Production.INFO: count ==3461 [2025-04-25 19:56:20] Production.ERROR: pbx CDR StartTime 2025-04-25 16:56:06 - End Time 2025-04-25 19:56:06 [2025-04-25 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989217', 'tblTempUsageDetail_20' ) start [2025-04-25 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989217', 'tblTempUsageDetail_20' ) end [2025-04-25 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989217', 'tblTempVendorCDR_20' ) start [2025-04-25 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989217', 'tblTempVendorCDR_20' ) end [2025-04-25 19:56:20] Production.INFO: ProcessCDR(1,14989217,1,1,2) [2025-04-25 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989217', 'tblTempUsageDetail_20' ) start [2025-04-25 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989217', 'tblTempUsageDetail_20' ) end [2025-04-25 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:56:24] Production.INFO: ==31757== Releasing lock... [2025-04-25 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:56:24] Production.INFO: 54 MB #Memory Used# [2025-04-25 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:57:05 [end_date_ymd] => 2025-04-25 19:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 16:57:05' and `end` < '2025-04-25 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-04-25 19:57:18] Production.INFO: count ==3449 [2025-04-25 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:57:05 - End Time 2025-04-25 19:57:05 [2025-04-25 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989222', 'tblTempUsageDetail_20' ) start [2025-04-25 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989222', 'tblTempUsageDetail_20' ) end [2025-04-25 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989222', 'tblTempVendorCDR_20' ) start [2025-04-25 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989222', 'tblTempVendorCDR_20' ) end [2025-04-25 19:57:19] Production.INFO: ProcessCDR(1,14989222,1,1,2) [2025-04-25 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989222', 'tblTempUsageDetail_20' ) start [2025-04-25 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989222', 'tblTempUsageDetail_20' ) end [2025-04-25 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:57:24] Production.INFO: ==31828== Releasing lock... [2025-04-25 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:57:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:58:05 [end_date_ymd] => 2025-04-25 19:58:05 [RateCDR] => 1 ) [2025-04-25 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:58:05' and `end` < '2025-04-25 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:58:18] Production.INFO: count ==3430 [2025-04-25 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:58:05 - End Time 2025-04-25 19:58:05 [2025-04-25 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989227', 'tblTempUsageDetail_20' ) start [2025-04-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989227', 'tblTempUsageDetail_20' ) end [2025-04-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989227', 'tblTempVendorCDR_20' ) start [2025-04-25 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989227', 'tblTempVendorCDR_20' ) end [2025-04-25 19:58:19] Production.INFO: ProcessCDR(1,14989227,1,1,2) [2025-04-25 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989227', 'tblTempUsageDetail_20' ) start [2025-04-25 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989227', 'tblTempUsageDetail_20' ) end [2025-04-25 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:58:23] Production.INFO: ==31899== Releasing lock... [2025-04-25 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:58:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 16:59:04 [end_date_ymd] => 2025-04-25 19:59:04 [RateCDR] => 1 ) [2025-04-25 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 16:59:04' and `end` < '2025-04-25 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 19:59:18] Production.INFO: count ==3421 [2025-04-25 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-25 16:59:04 - End Time 2025-04-25 19:59:04 [2025-04-25 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989232', 'tblTempUsageDetail_20' ) start [2025-04-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989232', 'tblTempUsageDetail_20' ) end [2025-04-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989232', 'tblTempVendorCDR_20' ) start [2025-04-25 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989232', 'tblTempVendorCDR_20' ) end [2025-04-25 19:59:19] Production.INFO: ProcessCDR(1,14989232,1,1,2) [2025-04-25 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989232', 'tblTempUsageDetail_20' ) start [2025-04-25 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989232', 'tblTempUsageDetail_20' ) end [2025-04-25 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 19:59:22] Production.INFO: ==31969== Releasing lock... [2025-04-25 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 19:59:22] Production.INFO: 53.75 MB #Memory Used# [2025-04-25 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:00:05 [end_date_ymd] => 2025-04-25 20:00:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:00:05' and `end` < '2025-04-25 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-04-25 20:00:19] Production.INFO: count ==3412 [2025-04-25 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:00:05 - End Time 2025-04-25 20:00:05 [2025-04-25 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989238', 'tblTempUsageDetail_20' ) start [2025-04-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989238', 'tblTempUsageDetail_20' ) end [2025-04-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989238', 'tblTempVendorCDR_20' ) start [2025-04-25 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989238', 'tblTempVendorCDR_20' ) end [2025-04-25 20:00:20] Production.INFO: ProcessCDR(1,14989238,1,1,2) [2025-04-25 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989238', 'tblTempUsageDetail_20' ) start [2025-04-25 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989238', 'tblTempUsageDetail_20' ) end [2025-04-25 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:00:23] Production.INFO: ==32045== Releasing lock... [2025-04-25 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:00:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-25 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:01:05 [end_date_ymd] => 2025-04-25 20:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:01:05' and `end` < '2025-04-25 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-04-25 20:01:19] Production.INFO: count ==3370 [2025-04-25 20:01:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:01:05 - End Time 2025-04-25 20:01:05 [2025-04-25 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989243', 'tblTempUsageDetail_20' ) start [2025-04-25 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989243', 'tblTempUsageDetail_20' ) end [2025-04-25 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989243', 'tblTempVendorCDR_20' ) start [2025-04-25 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989243', 'tblTempVendorCDR_20' ) end [2025-04-25 20:01:20] Production.INFO: ProcessCDR(1,14989243,1,1,2) [2025-04-25 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989243', 'tblTempUsageDetail_20' ) start [2025-04-25 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989243', 'tblTempUsageDetail_20' ) end [2025-04-25 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:01:23] Production.INFO: ==32307== Releasing lock... [2025-04-25 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:01:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-25 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:02:05 [end_date_ymd] => 2025-04-25 20:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:02:05' and `end` < '2025-04-25 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-04-25 20:02:18] Production.INFO: count ==3343 [2025-04-25 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:02:05 - End Time 2025-04-25 20:02:05 [2025-04-25 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989248', 'tblTempUsageDetail_20' ) start [2025-04-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989248', 'tblTempUsageDetail_20' ) end [2025-04-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989248', 'tblTempVendorCDR_20' ) start [2025-04-25 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989248', 'tblTempVendorCDR_20' ) end [2025-04-25 20:02:19] Production.INFO: ProcessCDR(1,14989248,1,1,2) [2025-04-25 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989248', 'tblTempUsageDetail_20' ) start [2025-04-25 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989248', 'tblTempUsageDetail_20' ) end [2025-04-25 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:02:24] Production.INFO: ==32380== Releasing lock... [2025-04-25 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:02:24] Production.INFO: 53 MB #Memory Used# [2025-04-25 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:03:06 [end_date_ymd] => 2025-04-25 20:03:06 [RateCDR] => 1 ) [2025-04-25 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:03:06' and `end` < '2025-04-25 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:03:19] Production.INFO: count ==3338 [2025-04-25 20:03:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:03:06 - End Time 2025-04-25 20:03:06 [2025-04-25 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989253', 'tblTempUsageDetail_20' ) start [2025-04-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989253', 'tblTempUsageDetail_20' ) end [2025-04-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989253', 'tblTempVendorCDR_20' ) start [2025-04-25 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989253', 'tblTempVendorCDR_20' ) end [2025-04-25 20:03:20] Production.INFO: ProcessCDR(1,14989253,1,1,2) [2025-04-25 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989253', 'tblTempUsageDetail_20' ) start [2025-04-25 20:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989253', 'tblTempUsageDetail_20' ) end [2025-04-25 20:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:03:25] Production.INFO: ==32490== Releasing lock... [2025-04-25 20:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:03:25] Production.INFO: 53 MB #Memory Used# [2025-04-25 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:04:05 [end_date_ymd] => 2025-04-25 20:04:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:04:05' and `end` < '2025-04-25 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-04-25 20:04:18] Production.INFO: count ==3331 [2025-04-25 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:04:05 - End Time 2025-04-25 20:04:05 [2025-04-25 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989258', 'tblTempUsageDetail_20' ) start [2025-04-25 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989258', 'tblTempUsageDetail_20' ) end [2025-04-25 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989258', 'tblTempVendorCDR_20' ) start [2025-04-25 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989258', 'tblTempVendorCDR_20' ) end [2025-04-25 20:04:20] Production.INFO: ProcessCDR(1,14989258,1,1,2) [2025-04-25 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989258', 'tblTempUsageDetail_20' ) start [2025-04-25 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989258', 'tblTempUsageDetail_20' ) end [2025-04-25 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:04:25] Production.INFO: ==32564== Releasing lock... [2025-04-25 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:04:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-25 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:05:06 [end_date_ymd] => 2025-04-25 20:05:06 [RateCDR] => 1 ) [2025-04-25 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:05:06' and `end` < '2025-04-25 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:05:19] Production.INFO: count ==3322 [2025-04-25 20:05:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:05:06 - End Time 2025-04-25 20:05:06 [2025-04-25 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989263', 'tblTempUsageDetail_20' ) start [2025-04-25 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989263', 'tblTempUsageDetail_20' ) end [2025-04-25 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989263', 'tblTempVendorCDR_20' ) start [2025-04-25 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989263', 'tblTempVendorCDR_20' ) end [2025-04-25 20:05:20] Production.INFO: ProcessCDR(1,14989263,1,1,2) [2025-04-25 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989263', 'tblTempUsageDetail_20' ) start [2025-04-25 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989263', 'tblTempUsageDetail_20' ) end [2025-04-25 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:05:23] Production.INFO: ==32638== Releasing lock... [2025-04-25 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:05:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-25 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:06:05 [end_date_ymd] => 2025-04-25 20:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:06:05' and `end` < '2025-04-25 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-04-25 20:06:18] Production.INFO: count ==3299 [2025-04-25 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:06:05 - End Time 2025-04-25 20:06:05 [2025-04-25 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989268', 'tblTempUsageDetail_20' ) start [2025-04-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989268', 'tblTempUsageDetail_20' ) end [2025-04-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989268', 'tblTempVendorCDR_20' ) start [2025-04-25 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989268', 'tblTempVendorCDR_20' ) end [2025-04-25 20:06:19] Production.INFO: ProcessCDR(1,14989268,1,1,2) [2025-04-25 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989268', 'tblTempUsageDetail_20' ) start [2025-04-25 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989268', 'tblTempUsageDetail_20' ) end [2025-04-25 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:06:23] Production.INFO: ==32707== Releasing lock... [2025-04-25 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:06:23] Production.INFO: 52.75 MB #Memory Used# [2025-04-25 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:07:05 [end_date_ymd] => 2025-04-25 20:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:07:05' and `end` < '2025-04-25 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-04-25 20:07:18] Production.INFO: count ==3284 [2025-04-25 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:07:05 - End Time 2025-04-25 20:07:05 [2025-04-25 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989273', 'tblTempUsageDetail_20' ) start [2025-04-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989273', 'tblTempUsageDetail_20' ) end [2025-04-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989273', 'tblTempVendorCDR_20' ) start [2025-04-25 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989273', 'tblTempVendorCDR_20' ) end [2025-04-25 20:07:19] Production.INFO: ProcessCDR(1,14989273,1,1,2) [2025-04-25 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989273', 'tblTempUsageDetail_20' ) start [2025-04-25 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989273', 'tblTempUsageDetail_20' ) end [2025-04-25 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:07:24] Production.INFO: ==327== Releasing lock... [2025-04-25 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:07:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-25 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:08:05 [end_date_ymd] => 2025-04-25 20:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:08:05' and `end` < '2025-04-25 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-04-25 20:08:18] Production.INFO: count ==3266 [2025-04-25 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:08:05 - End Time 2025-04-25 20:08:05 [2025-04-25 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989278', 'tblTempUsageDetail_20' ) start [2025-04-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989278', 'tblTempUsageDetail_20' ) end [2025-04-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989278', 'tblTempVendorCDR_20' ) start [2025-04-25 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989278', 'tblTempVendorCDR_20' ) end [2025-04-25 20:08:19] Production.INFO: ProcessCDR(1,14989278,1,1,2) [2025-04-25 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989278', 'tblTempUsageDetail_20' ) start [2025-04-25 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989278', 'tblTempUsageDetail_20' ) end [2025-04-25 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:08:24] Production.INFO: ==419== Releasing lock... [2025-04-25 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:08:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-25 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:09:05 [end_date_ymd] => 2025-04-25 20:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:09:05' and `end` < '2025-04-25 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-04-25 20:09:18] Production.INFO: count ==3255 [2025-04-25 20:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:09:05 - End Time 2025-04-25 20:09:05 [2025-04-25 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989283', 'tblTempUsageDetail_20' ) start [2025-04-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989283', 'tblTempUsageDetail_20' ) end [2025-04-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989283', 'tblTempVendorCDR_20' ) start [2025-04-25 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989283', 'tblTempVendorCDR_20' ) end [2025-04-25 20:09:19] Production.INFO: ProcessCDR(1,14989283,1,1,2) [2025-04-25 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989283', 'tblTempUsageDetail_20' ) start [2025-04-25 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989283', 'tblTempUsageDetail_20' ) end [2025-04-25 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:09:25] Production.INFO: ==492== Releasing lock... [2025-04-25 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:09:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-25 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:10:06 [end_date_ymd] => 2025-04-25 20:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:10:06' and `end` < '2025-04-25 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-04-25 20:10:19] Production.INFO: count ==3257 [2025-04-25 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:10:06 - End Time 2025-04-25 20:10:06 [2025-04-25 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989289', 'tblTempUsageDetail_20' ) start [2025-04-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989289', 'tblTempUsageDetail_20' ) end [2025-04-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989289', 'tblTempVendorCDR_20' ) start [2025-04-25 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989289', 'tblTempVendorCDR_20' ) end [2025-04-25 20:10:20] Production.INFO: ProcessCDR(1,14989289,1,1,2) [2025-04-25 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989289', 'tblTempUsageDetail_20' ) start [2025-04-25 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989289', 'tblTempUsageDetail_20' ) end [2025-04-25 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:10:24] Production.INFO: ==574== Releasing lock... [2025-04-25 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:10:24] Production.INFO: 52.25 MB #Memory Used# [2025-04-25 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:11:05 [end_date_ymd] => 2025-04-25 20:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:11:05' and `end` < '2025-04-25 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-04-25 20:11:18] Production.INFO: count ==3191 [2025-04-25 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:11:05 - End Time 2025-04-25 20:11:05 [2025-04-25 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989294', 'tblTempUsageDetail_20' ) start [2025-04-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989294', 'tblTempUsageDetail_20' ) end [2025-04-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989294', 'tblTempVendorCDR_20' ) start [2025-04-25 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989294', 'tblTempVendorCDR_20' ) end [2025-04-25 20:11:19] Production.INFO: ProcessCDR(1,14989294,1,1,2) [2025-04-25 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989294', 'tblTempUsageDetail_20' ) start [2025-04-25 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989294', 'tblTempUsageDetail_20' ) end [2025-04-25 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:11:23] Production.INFO: ==665== Releasing lock... [2025-04-25 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:11:23] Production.INFO: 52 MB #Memory Used# [2025-04-25 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:12:06 [end_date_ymd] => 2025-04-25 20:12:06 [RateCDR] => 1 ) [2025-04-25 20: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-04-25 17:12:06' and `end` < '2025-04-25 20: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-04-25 20:12:19] Production.INFO: count ==3176 [2025-04-25 20:12:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:12:06 - End Time 2025-04-25 20:12:06 [2025-04-25 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989299', 'tblTempUsageDetail_20' ) start [2025-04-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989299', 'tblTempUsageDetail_20' ) end [2025-04-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989299', 'tblTempVendorCDR_20' ) start [2025-04-25 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989299', 'tblTempVendorCDR_20' ) end [2025-04-25 20:12:20] Production.INFO: ProcessCDR(1,14989299,1,1,2) [2025-04-25 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989299', 'tblTempUsageDetail_20' ) start [2025-04-25 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989299', 'tblTempUsageDetail_20' ) end [2025-04-25 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:12:23] Production.INFO: ==764== Releasing lock... [2025-04-25 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:12:23] Production.INFO: 52 MB #Memory Used# [2025-04-25 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:13:05 [end_date_ymd] => 2025-04-25 20:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:13:05' and `end` < '2025-04-25 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-04-25 20:13:18] Production.INFO: count ==3179 [2025-04-25 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:13:05 - End Time 2025-04-25 20:13:05 [2025-04-25 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989304', 'tblTempUsageDetail_20' ) start [2025-04-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989304', 'tblTempUsageDetail_20' ) end [2025-04-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989304', 'tblTempVendorCDR_20' ) start [2025-04-25 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989304', 'tblTempVendorCDR_20' ) end [2025-04-25 20:13:19] Production.INFO: ProcessCDR(1,14989304,1,1,2) [2025-04-25 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989304', 'tblTempUsageDetail_20' ) start [2025-04-25 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989304', 'tblTempUsageDetail_20' ) end [2025-04-25 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:13:23] Production.INFO: ==834== Releasing lock... [2025-04-25 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:13:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-25 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:14:06 [end_date_ymd] => 2025-04-25 20:14:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:14:06' and `end` < '2025-04-25 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-04-25 20:14:19] Production.INFO: count ==3166 [2025-04-25 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:14:06 - End Time 2025-04-25 20:14:06 [2025-04-25 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989309', 'tblTempUsageDetail_20' ) start [2025-04-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989309', 'tblTempUsageDetail_20' ) end [2025-04-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989309', 'tblTempVendorCDR_20' ) start [2025-04-25 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989309', 'tblTempVendorCDR_20' ) end [2025-04-25 20:14:20] Production.INFO: ProcessCDR(1,14989309,1,1,2) [2025-04-25 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989309', 'tblTempUsageDetail_20' ) start [2025-04-25 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989309', 'tblTempUsageDetail_20' ) end [2025-04-25 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:14:23] Production.INFO: ==910== Releasing lock... [2025-04-25 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:14:23] Production.INFO: 51.75 MB #Memory Used# [2025-04-25 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:15:05 [end_date_ymd] => 2025-04-25 20:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:15:05' and `end` < '2025-04-25 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-04-25 20:15:18] Production.INFO: count ==3151 [2025-04-25 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:15:05 - End Time 2025-04-25 20:15:05 [2025-04-25 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989314', 'tblTempUsageDetail_20' ) start [2025-04-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989314', 'tblTempUsageDetail_20' ) end [2025-04-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989314', 'tblTempVendorCDR_20' ) start [2025-04-25 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989314', 'tblTempVendorCDR_20' ) end [2025-04-25 20:15:19] Production.INFO: ProcessCDR(1,14989314,1,1,2) [2025-04-25 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989314', 'tblTempUsageDetail_20' ) start [2025-04-25 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989314', 'tblTempUsageDetail_20' ) end [2025-04-25 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:15:24] Production.INFO: ==985== Releasing lock... [2025-04-25 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:15:24] Production.INFO: 52 MB #Memory Used# [2025-04-25 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:16:05 [end_date_ymd] => 2025-04-25 20:16:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:16:05' and `end` < '2025-04-25 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-04-25 20:16:18] Production.INFO: count ==3146 [2025-04-25 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:16:05 - End Time 2025-04-25 20:16:05 [2025-04-25 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989319', 'tblTempUsageDetail_20' ) start [2025-04-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989319', 'tblTempUsageDetail_20' ) end [2025-04-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989319', 'tblTempVendorCDR_20' ) start [2025-04-25 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989319', 'tblTempVendorCDR_20' ) end [2025-04-25 20:16:20] Production.INFO: ProcessCDR(1,14989319,1,1,2) [2025-04-25 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989319', 'tblTempUsageDetail_20' ) start [2025-04-25 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989319', 'tblTempUsageDetail_20' ) end [2025-04-25 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:16:23] Production.INFO: ==1062== Releasing lock... [2025-04-25 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:16:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-25 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:17:05 [end_date_ymd] => 2025-04-25 20:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:17:05' and `end` < '2025-04-25 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-04-25 20:17:18] Production.INFO: count ==3143 [2025-04-25 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:17:05 - End Time 2025-04-25 20:17:05 [2025-04-25 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989324', 'tblTempUsageDetail_20' ) start [2025-04-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989324', 'tblTempUsageDetail_20' ) end [2025-04-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989324', 'tblTempVendorCDR_20' ) start [2025-04-25 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989324', 'tblTempVendorCDR_20' ) end [2025-04-25 20:17:19] Production.INFO: ProcessCDR(1,14989324,1,1,2) [2025-04-25 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989324', 'tblTempUsageDetail_20' ) start [2025-04-25 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989324', 'tblTempUsageDetail_20' ) end [2025-04-25 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:17:23] Production.INFO: ==1134== Releasing lock... [2025-04-25 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:17:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-25 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:18:05 [end_date_ymd] => 2025-04-25 20:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:18:05' and `end` < '2025-04-25 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-04-25 20:18:18] Production.INFO: count ==3141 [2025-04-25 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:18:05 - End Time 2025-04-25 20:18:05 [2025-04-25 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989329', 'tblTempUsageDetail_20' ) start [2025-04-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989329', 'tblTempUsageDetail_20' ) end [2025-04-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989329', 'tblTempVendorCDR_20' ) start [2025-04-25 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989329', 'tblTempVendorCDR_20' ) end [2025-04-25 20:18:19] Production.INFO: ProcessCDR(1,14989329,1,1,2) [2025-04-25 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989329', 'tblTempUsageDetail_20' ) start [2025-04-25 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989329', 'tblTempUsageDetail_20' ) end [2025-04-25 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:18:22] Production.INFO: ==1262== Releasing lock... [2025-04-25 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:18:22] Production.INFO: 51.5 MB #Memory Used# [2025-04-25 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:19:06 [end_date_ymd] => 2025-04-25 20:19:06 [RateCDR] => 1 ) [2025-04-25 20: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-04-25 17:19:06' and `end` < '2025-04-25 20: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-04-25 20:19:19] Production.INFO: count ==3120 [2025-04-25 20:19:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:19:06 - End Time 2025-04-25 20:19:06 [2025-04-25 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989334', 'tblTempUsageDetail_20' ) start [2025-04-25 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989334', 'tblTempUsageDetail_20' ) end [2025-04-25 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989334', 'tblTempVendorCDR_20' ) start [2025-04-25 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989334', 'tblTempVendorCDR_20' ) end [2025-04-25 20:19:20] Production.INFO: ProcessCDR(1,14989334,1,1,2) [2025-04-25 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989334', 'tblTempUsageDetail_20' ) start [2025-04-25 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989334', 'tblTempUsageDetail_20' ) end [2025-04-25 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:19:25] Production.INFO: ==1336== Releasing lock... [2025-04-25 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:19:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-25 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:20:06 [end_date_ymd] => 2025-04-25 20:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:20:06' and `end` < '2025-04-25 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-04-25 20:20:19] Production.INFO: count ==3113 [2025-04-25 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:20:06 - End Time 2025-04-25 20:20:06 [2025-04-25 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989340', 'tblTempUsageDetail_20' ) start [2025-04-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989340', 'tblTempUsageDetail_20' ) end [2025-04-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989340', 'tblTempVendorCDR_20' ) start [2025-04-25 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989340', 'tblTempVendorCDR_20' ) end [2025-04-25 20:20:20] Production.INFO: ProcessCDR(1,14989340,1,1,2) [2025-04-25 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989340', 'tblTempUsageDetail_20' ) start [2025-04-25 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989340', 'tblTempUsageDetail_20' ) end [2025-04-25 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:20:23] Production.INFO: ==1413== Releasing lock... [2025-04-25 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:20:23] Production.INFO: 51.25 MB #Memory Used# [2025-04-25 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:21:05 [end_date_ymd] => 2025-04-25 20:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:21:05' and `end` < '2025-04-25 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-04-25 20:21:18] Production.INFO: count ==3072 [2025-04-25 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:21:05 - End Time 2025-04-25 20:21:05 [2025-04-25 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989345', 'tblTempUsageDetail_20' ) start [2025-04-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989345', 'tblTempUsageDetail_20' ) end [2025-04-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989345', 'tblTempVendorCDR_20' ) start [2025-04-25 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989345', 'tblTempVendorCDR_20' ) end [2025-04-25 20:21:19] Production.INFO: ProcessCDR(1,14989345,1,1,2) [2025-04-25 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989345', 'tblTempUsageDetail_20' ) start [2025-04-25 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989345', 'tblTempUsageDetail_20' ) end [2025-04-25 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:21:24] Production.INFO: ==1490== Releasing lock... [2025-04-25 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:21:24] Production.INFO: 51 MB #Memory Used# [2025-04-25 20:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:22:04 [end_date_ymd] => 2025-04-25 20:22:04 [RateCDR] => 1 ) [2025-04-25 20:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:22:04' and `end` < '2025-04-25 20:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:22:18] Production.INFO: count ==3082 [2025-04-25 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:22:04 - End Time 2025-04-25 20:22:04 [2025-04-25 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989350', 'tblTempUsageDetail_20' ) start [2025-04-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989350', 'tblTempUsageDetail_20' ) end [2025-04-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989350', 'tblTempVendorCDR_20' ) start [2025-04-25 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989350', 'tblTempVendorCDR_20' ) end [2025-04-25 20:22:19] Production.INFO: ProcessCDR(1,14989350,1,1,2) [2025-04-25 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989350', 'tblTempUsageDetail_20' ) start [2025-04-25 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989350', 'tblTempUsageDetail_20' ) end [2025-04-25 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:22:24] Production.INFO: ==1605== Releasing lock... [2025-04-25 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:22:24] Production.INFO: 51 MB #Memory Used# [2025-04-25 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:23:05 [end_date_ymd] => 2025-04-25 20:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:23:05' and `end` < '2025-04-25 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-04-25 20:23:18] Production.INFO: count ==3072 [2025-04-25 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:23:05 - End Time 2025-04-25 20:23:05 [2025-04-25 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989355', 'tblTempUsageDetail_20' ) start [2025-04-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989355', 'tblTempUsageDetail_20' ) end [2025-04-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989355', 'tblTempVendorCDR_20' ) start [2025-04-25 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989355', 'tblTempVendorCDR_20' ) end [2025-04-25 20:23:19] Production.INFO: ProcessCDR(1,14989355,1,1,2) [2025-04-25 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989355', 'tblTempUsageDetail_20' ) start [2025-04-25 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989355', 'tblTempUsageDetail_20' ) end [2025-04-25 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:23:23] Production.INFO: ==1678== Releasing lock... [2025-04-25 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:23:23] Production.INFO: 51 MB #Memory Used# [2025-04-25 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:24:06 [end_date_ymd] => 2025-04-25 20:24:06 [RateCDR] => 1 ) [2025-04-25 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:24:06' and `end` < '2025-04-25 20: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-04-25 20:24:19] Production.INFO: count ==3061 [2025-04-25 20:24:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:24:06 - End Time 2025-04-25 20:24:06 [2025-04-25 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989360', 'tblTempUsageDetail_20' ) start [2025-04-25 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989360', 'tblTempUsageDetail_20' ) end [2025-04-25 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989360', 'tblTempVendorCDR_20' ) start [2025-04-25 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989360', 'tblTempVendorCDR_20' ) end [2025-04-25 20:24:20] Production.INFO: ProcessCDR(1,14989360,1,1,2) [2025-04-25 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989360', 'tblTempUsageDetail_20' ) start [2025-04-25 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989360', 'tblTempUsageDetail_20' ) end [2025-04-25 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:24:23] Production.INFO: ==1752== Releasing lock... [2025-04-25 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:24:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:25:05 [end_date_ymd] => 2025-04-25 20:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:25:05' and `end` < '2025-04-25 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-04-25 20:25:18] Production.INFO: count ==3045 [2025-04-25 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:25:05 - End Time 2025-04-25 20:25:05 [2025-04-25 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989365', 'tblTempUsageDetail_20' ) start [2025-04-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989365', 'tblTempUsageDetail_20' ) end [2025-04-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989365', 'tblTempVendorCDR_20' ) start [2025-04-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989365', 'tblTempVendorCDR_20' ) end [2025-04-25 20:25:19] Production.INFO: ProcessCDR(1,14989365,1,1,2) [2025-04-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989365', 'tblTempUsageDetail_20' ) start [2025-04-25 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989365', 'tblTempUsageDetail_20' ) end [2025-04-25 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:25:22] Production.INFO: ==1834== Releasing lock... [2025-04-25 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:25:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:26:05 [end_date_ymd] => 2025-04-25 20:26:05 [RateCDR] => 1 ) [2025-04-25 20: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-04-25 17:26:05' and `end` < '2025-04-25 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-04-25 20:26:18] Production.INFO: count ==3035 [2025-04-25 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:26:05 - End Time 2025-04-25 20:26:05 [2025-04-25 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989370', 'tblTempUsageDetail_20' ) start [2025-04-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989370', 'tblTempUsageDetail_20' ) end [2025-04-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989370', 'tblTempVendorCDR_20' ) start [2025-04-25 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989370', 'tblTempVendorCDR_20' ) end [2025-04-25 20:26:19] Production.INFO: ProcessCDR(1,14989370,1,1,2) [2025-04-25 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989370', 'tblTempUsageDetail_20' ) start [2025-04-25 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989370', 'tblTempUsageDetail_20' ) end [2025-04-25 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:26:23] Production.INFO: ==1905== Releasing lock... [2025-04-25 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:26:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:27:05 [end_date_ymd] => 2025-04-25 20:27:05 [RateCDR] => 1 ) [2025-04-25 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:27:05' and `end` < '2025-04-25 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:27:18] Production.INFO: count ==3032 [2025-04-25 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:27:05 - End Time 2025-04-25 20:27:05 [2025-04-25 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989375', 'tblTempUsageDetail_20' ) start [2025-04-25 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989375', 'tblTempUsageDetail_20' ) end [2025-04-25 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989375', 'tblTempVendorCDR_20' ) start [2025-04-25 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989375', 'tblTempVendorCDR_20' ) end [2025-04-25 20:27:19] Production.INFO: ProcessCDR(1,14989375,1,1,2) [2025-04-25 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989375', 'tblTempUsageDetail_20' ) start [2025-04-25 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989375', 'tblTempUsageDetail_20' ) end [2025-04-25 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:27:24] Production.INFO: ==1978== Releasing lock... [2025-04-25 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:27:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:28:05 [end_date_ymd] => 2025-04-25 20:28:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:28:05' and `end` < '2025-04-25 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-04-25 20:28:18] Production.INFO: count ==3032 [2025-04-25 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:28:05 - End Time 2025-04-25 20:28:05 [2025-04-25 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989380', 'tblTempUsageDetail_20' ) start [2025-04-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989380', 'tblTempUsageDetail_20' ) end [2025-04-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989380', 'tblTempVendorCDR_20' ) start [2025-04-25 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989380', 'tblTempVendorCDR_20' ) end [2025-04-25 20:28:19] Production.INFO: ProcessCDR(1,14989380,1,1,2) [2025-04-25 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989380', 'tblTempUsageDetail_20' ) start [2025-04-25 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989380', 'tblTempUsageDetail_20' ) end [2025-04-25 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:28:23] Production.INFO: ==2051== Releasing lock... [2025-04-25 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:28:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:29:05 [end_date_ymd] => 2025-04-25 20:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:29:05' and `end` < '2025-04-25 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-04-25 20:29:18] Production.INFO: count ==3031 [2025-04-25 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:29:05 - End Time 2025-04-25 20:29:05 [2025-04-25 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989385', 'tblTempUsageDetail_20' ) start [2025-04-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989385', 'tblTempUsageDetail_20' ) end [2025-04-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989385', 'tblTempVendorCDR_20' ) start [2025-04-25 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989385', 'tblTempVendorCDR_20' ) end [2025-04-25 20:29:19] Production.INFO: ProcessCDR(1,14989385,1,1,2) [2025-04-25 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989385', 'tblTempUsageDetail_20' ) start [2025-04-25 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989385', 'tblTempUsageDetail_20' ) end [2025-04-25 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:29:24] Production.INFO: ==2124== Releasing lock... [2025-04-25 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:29:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:30:06 [end_date_ymd] => 2025-04-25 20:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:30:06' and `end` < '2025-04-25 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-04-25 20:30:19] Production.INFO: count ==3028 [2025-04-25 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:30:06 - End Time 2025-04-25 20:30:06 [2025-04-25 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989391', 'tblTempUsageDetail_20' ) start [2025-04-25 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989391', 'tblTempUsageDetail_20' ) end [2025-04-25 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989391', 'tblTempVendorCDR_20' ) start [2025-04-25 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989391', 'tblTempVendorCDR_20' ) end [2025-04-25 20:30:20] Production.INFO: ProcessCDR(1,14989391,1,1,2) [2025-04-25 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989391', 'tblTempUsageDetail_20' ) start [2025-04-25 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989391', 'tblTempUsageDetail_20' ) end [2025-04-25 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:30:23] Production.INFO: ==2202== Releasing lock... [2025-04-25 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:30:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-25 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:31:05 [end_date_ymd] => 2025-04-25 20:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:31:05' and `end` < '2025-04-25 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:31:19] Production.INFO: count ==2998 [2025-04-25 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:31:05 - End Time 2025-04-25 20:31:05 [2025-04-25 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989396', 'tblTempUsageDetail_20' ) start [2025-04-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989396', 'tblTempUsageDetail_20' ) end [2025-04-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989396', 'tblTempVendorCDR_20' ) start [2025-04-25 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989396', 'tblTempVendorCDR_20' ) end [2025-04-25 20:31:19] Production.INFO: ProcessCDR(1,14989396,1,1,2) [2025-04-25 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989396', 'tblTempUsageDetail_20' ) start [2025-04-25 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989396', 'tblTempUsageDetail_20' ) end [2025-04-25 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:31:23] Production.INFO: ==2277== Releasing lock... [2025-04-25 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:31:23] Production.INFO: 50.5 MB #Memory Used# [2025-04-25 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:32:05 [end_date_ymd] => 2025-04-25 20:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:32:05' and `end` < '2025-04-25 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-04-25 20:32:18] Production.INFO: count ==2995 [2025-04-25 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:32:05 - End Time 2025-04-25 20:32:05 [2025-04-25 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989401', 'tblTempUsageDetail_20' ) start [2025-04-25 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989401', 'tblTempUsageDetail_20' ) end [2025-04-25 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989401', 'tblTempVendorCDR_20' ) start [2025-04-25 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989401', 'tblTempVendorCDR_20' ) end [2025-04-25 20:32:19] Production.INFO: ProcessCDR(1,14989401,1,1,2) [2025-04-25 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989401', 'tblTempUsageDetail_20' ) start [2025-04-25 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989401', 'tblTempUsageDetail_20' ) end [2025-04-25 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:32:24] Production.INFO: ==2347== Releasing lock... [2025-04-25 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:32:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:33:05 [end_date_ymd] => 2025-04-25 20:33:05 [RateCDR] => 1 ) [2025-04-25 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:33:05' and `end` < '2025-04-25 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:33:18] Production.INFO: count ==2995 [2025-04-25 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:33:05 - End Time 2025-04-25 20:33:05 [2025-04-25 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989406', 'tblTempUsageDetail_20' ) start [2025-04-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989406', 'tblTempUsageDetail_20' ) end [2025-04-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989406', 'tblTempVendorCDR_20' ) start [2025-04-25 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989406', 'tblTempVendorCDR_20' ) end [2025-04-25 20:33:19] Production.INFO: ProcessCDR(1,14989406,1,1,2) [2025-04-25 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989406', 'tblTempUsageDetail_20' ) start [2025-04-25 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989406', 'tblTempUsageDetail_20' ) end [2025-04-25 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:33:23] Production.INFO: ==2419== Releasing lock... [2025-04-25 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:33:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:34:05 [end_date_ymd] => 2025-04-25 20:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:34:05' and `end` < '2025-04-25 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-04-25 20:34:18] Production.INFO: count ==2993 [2025-04-25 20:34:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:34:05 - End Time 2025-04-25 20:34:05 [2025-04-25 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989411', 'tblTempUsageDetail_20' ) start [2025-04-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989411', 'tblTempUsageDetail_20' ) end [2025-04-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989411', 'tblTempVendorCDR_20' ) start [2025-04-25 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989411', 'tblTempVendorCDR_20' ) end [2025-04-25 20:34:19] Production.INFO: ProcessCDR(1,14989411,1,1,2) [2025-04-25 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989411', 'tblTempUsageDetail_20' ) start [2025-04-25 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989411', 'tblTempUsageDetail_20' ) end [2025-04-25 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:34:22] Production.INFO: ==2534== Releasing lock... [2025-04-25 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:34:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:35:05 [end_date_ymd] => 2025-04-25 20:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:35:05' and `end` < '2025-04-25 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-04-25 20:35:18] Production.INFO: count ==2995 [2025-04-25 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:35:05 - End Time 2025-04-25 20:35:05 [2025-04-25 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989416', 'tblTempUsageDetail_20' ) start [2025-04-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989416', 'tblTempUsageDetail_20' ) end [2025-04-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989416', 'tblTempVendorCDR_20' ) start [2025-04-25 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989416', 'tblTempVendorCDR_20' ) end [2025-04-25 20:35:19] Production.INFO: ProcessCDR(1,14989416,1,1,2) [2025-04-25 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989416', 'tblTempUsageDetail_20' ) start [2025-04-25 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989416', 'tblTempUsageDetail_20' ) end [2025-04-25 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:35:22] Production.INFO: ==2611== Releasing lock... [2025-04-25 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:35:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:36:05 [end_date_ymd] => 2025-04-25 20:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:36:05' and `end` < '2025-04-25 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-04-25 20:36:18] Production.INFO: count ==2986 [2025-04-25 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:36:05 - End Time 2025-04-25 20:36:05 [2025-04-25 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989421', 'tblTempUsageDetail_20' ) start [2025-04-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989421', 'tblTempUsageDetail_20' ) end [2025-04-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989421', 'tblTempVendorCDR_20' ) start [2025-04-25 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989421', 'tblTempVendorCDR_20' ) end [2025-04-25 20:36:19] Production.INFO: ProcessCDR(1,14989421,1,1,2) [2025-04-25 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989421', 'tblTempUsageDetail_20' ) start [2025-04-25 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989421', 'tblTempUsageDetail_20' ) end [2025-04-25 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:36:24] Production.INFO: ==2681== Releasing lock... [2025-04-25 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:36:24] Production.INFO: 51 MB #Memory Used# [2025-04-25 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:37:05 [end_date_ymd] => 2025-04-25 20:37:05 [RateCDR] => 1 ) [2025-04-25 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:37:05' and `end` < '2025-04-25 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:37:18] Production.INFO: count ==2982 [2025-04-25 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:37:05 - End Time 2025-04-25 20:37:05 [2025-04-25 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989426', 'tblTempUsageDetail_20' ) start [2025-04-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989426', 'tblTempUsageDetail_20' ) end [2025-04-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989426', 'tblTempVendorCDR_20' ) start [2025-04-25 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989426', 'tblTempVendorCDR_20' ) end [2025-04-25 20:37:19] Production.INFO: ProcessCDR(1,14989426,1,1,2) [2025-04-25 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989426', 'tblTempUsageDetail_20' ) start [2025-04-25 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989426', 'tblTempUsageDetail_20' ) end [2025-04-25 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:37:22] Production.INFO: ==2753== Releasing lock... [2025-04-25 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:37:22] Production.INFO: 50.25 MB #Memory Used# [2025-04-25 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:38:06 [end_date_ymd] => 2025-04-25 20:38:06 [RateCDR] => 1 ) [2025-04-25 20: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-04-25 17:38:06' and `end` < '2025-04-25 20: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-04-25 20:38:19] Production.INFO: count ==2971 [2025-04-25 20:38:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:38:06 - End Time 2025-04-25 20:38:06 [2025-04-25 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989431', 'tblTempUsageDetail_20' ) start [2025-04-25 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989431', 'tblTempUsageDetail_20' ) end [2025-04-25 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989431', 'tblTempVendorCDR_20' ) start [2025-04-25 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989431', 'tblTempVendorCDR_20' ) end [2025-04-25 20:38:20] Production.INFO: ProcessCDR(1,14989431,1,1,2) [2025-04-25 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989431', 'tblTempUsageDetail_20' ) start [2025-04-25 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989431', 'tblTempUsageDetail_20' ) end [2025-04-25 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:38:25] Production.INFO: ==2827== Releasing lock... [2025-04-25 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:38:25] Production.INFO: 50 MB #Memory Used# [2025-04-25 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:39:05 [end_date_ymd] => 2025-04-25 20:39:05 [RateCDR] => 1 ) [2025-04-25 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:39:05' and `end` < '2025-04-25 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:39:18] Production.INFO: count ==2958 [2025-04-25 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:39:05 - End Time 2025-04-25 20:39:05 [2025-04-25 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989435', 'tblTempUsageDetail_20' ) start [2025-04-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989435', 'tblTempUsageDetail_20' ) end [2025-04-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989435', 'tblTempVendorCDR_20' ) start [2025-04-25 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989435', 'tblTempVendorCDR_20' ) end [2025-04-25 20:39:19] Production.INFO: ProcessCDR(1,14989435,1,1,2) [2025-04-25 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989435', 'tblTempUsageDetail_20' ) start [2025-04-25 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989435', 'tblTempUsageDetail_20' ) end [2025-04-25 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:39:22] Production.INFO: ==2900== Releasing lock... [2025-04-25 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:39:22] Production.INFO: 49.75 MB #Memory Used# [2025-04-25 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:40:06 [end_date_ymd] => 2025-04-25 20:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:40:06' and `end` < '2025-04-25 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-04-25 20:40:19] Production.INFO: count ==2961 [2025-04-25 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:40:06 - End Time 2025-04-25 20:40:06 [2025-04-25 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989441', 'tblTempUsageDetail_20' ) start [2025-04-25 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989441', 'tblTempUsageDetail_20' ) end [2025-04-25 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989441', 'tblTempVendorCDR_20' ) start [2025-04-25 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989441', 'tblTempVendorCDR_20' ) end [2025-04-25 20:40:20] Production.INFO: ProcessCDR(1,14989441,1,1,2) [2025-04-25 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989441', 'tblTempUsageDetail_20' ) start [2025-04-25 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989441', 'tblTempUsageDetail_20' ) end [2025-04-25 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:40:25] Production.INFO: ==2982== Releasing lock... [2025-04-25 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:40:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-25 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:41:05 [end_date_ymd] => 2025-04-25 20:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:41:05' and `end` < '2025-04-25 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-04-25 20:41:18] Production.INFO: count ==2907 [2025-04-25 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:41:05 - End Time 2025-04-25 20:41:05 [2025-04-25 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989447', 'tblTempUsageDetail_20' ) start [2025-04-25 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989447', 'tblTempUsageDetail_20' ) end [2025-04-25 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989447', 'tblTempVendorCDR_20' ) start [2025-04-25 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989447', 'tblTempVendorCDR_20' ) end [2025-04-25 20:41:19] Production.INFO: ProcessCDR(1,14989447,1,1,2) [2025-04-25 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989447', 'tblTempUsageDetail_20' ) start [2025-04-25 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989447', 'tblTempUsageDetail_20' ) end [2025-04-25 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:41:24] Production.INFO: ==3059== Releasing lock... [2025-04-25 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:41:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-25 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:42:05 [end_date_ymd] => 2025-04-25 20:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:42:05' and `end` < '2025-04-25 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-04-25 20:42:18] Production.INFO: count ==2909 [2025-04-25 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:42:05 - End Time 2025-04-25 20:42:05 [2025-04-25 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989452', 'tblTempUsageDetail_20' ) start [2025-04-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989452', 'tblTempUsageDetail_20' ) end [2025-04-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989452', 'tblTempVendorCDR_20' ) start [2025-04-25 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989452', 'tblTempVendorCDR_20' ) end [2025-04-25 20:42:19] Production.INFO: ProcessCDR(1,14989452,1,1,2) [2025-04-25 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989452', 'tblTempUsageDetail_20' ) start [2025-04-25 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989452', 'tblTempUsageDetail_20' ) end [2025-04-25 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:42:24] Production.INFO: ==3131== Releasing lock... [2025-04-25 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:42:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-25 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:43:05 [end_date_ymd] => 2025-04-25 20:43:05 [RateCDR] => 1 ) [2025-04-25 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:43:05' and `end` < '2025-04-25 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:43:17] Production.INFO: count ==2902 [2025-04-25 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:43:05 - End Time 2025-04-25 20:43:05 [2025-04-25 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989457', 'tblTempUsageDetail_20' ) start [2025-04-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989457', 'tblTempUsageDetail_20' ) end [2025-04-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989457', 'tblTempVendorCDR_20' ) start [2025-04-25 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989457', 'tblTempVendorCDR_20' ) end [2025-04-25 20:43:18] Production.INFO: ProcessCDR(1,14989457,1,1,2) [2025-04-25 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989457', 'tblTempUsageDetail_20' ) start [2025-04-25 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989457', 'tblTempUsageDetail_20' ) end [2025-04-25 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:43:22] Production.INFO: ==3206== Releasing lock... [2025-04-25 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:43:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-25 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:44:05 [end_date_ymd] => 2025-04-25 20:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:44:05' and `end` < '2025-04-25 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-04-25 20:44:18] Production.INFO: count ==2895 [2025-04-25 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:44:05 - End Time 2025-04-25 20:44:05 [2025-04-25 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989462', 'tblTempUsageDetail_20' ) start [2025-04-25 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989462', 'tblTempUsageDetail_20' ) end [2025-04-25 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989462', 'tblTempVendorCDR_20' ) start [2025-04-25 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989462', 'tblTempVendorCDR_20' ) end [2025-04-25 20:44:19] Production.INFO: ProcessCDR(1,14989462,1,1,2) [2025-04-25 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989462', 'tblTempUsageDetail_20' ) start [2025-04-25 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989462', 'tblTempUsageDetail_20' ) end [2025-04-25 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:44:22] Production.INFO: ==3279== Releasing lock... [2025-04-25 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:44:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:45:06 [end_date_ymd] => 2025-04-25 20:45:06 [RateCDR] => 1 ) [2025-04-25 20:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:45:06' and `end` < '2025-04-25 20:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:45:19] Production.INFO: count ==2889 [2025-04-25 20:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:45:06 - End Time 2025-04-25 20:45:06 [2025-04-25 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989467', 'tblTempUsageDetail_20' ) start [2025-04-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989467', 'tblTempUsageDetail_20' ) end [2025-04-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989467', 'tblTempVendorCDR_20' ) start [2025-04-25 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989467', 'tblTempVendorCDR_20' ) end [2025-04-25 20:45:20] Production.INFO: ProcessCDR(1,14989467,1,1,2) [2025-04-25 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989467', 'tblTempUsageDetail_20' ) start [2025-04-25 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989467', 'tblTempUsageDetail_20' ) end [2025-04-25 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:45:23] Production.INFO: ==3353== Releasing lock... [2025-04-25 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:45:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:46:05 [end_date_ymd] => 2025-04-25 20:46:05 [RateCDR] => 1 ) [2025-04-25 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:46:05' and `end` < '2025-04-25 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:46:18] Production.INFO: count ==2889 [2025-04-25 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:46:05 - End Time 2025-04-25 20:46:05 [2025-04-25 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989472', 'tblTempUsageDetail_20' ) start [2025-04-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989472', 'tblTempUsageDetail_20' ) end [2025-04-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989472', 'tblTempVendorCDR_20' ) start [2025-04-25 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989472', 'tblTempVendorCDR_20' ) end [2025-04-25 20:46:19] Production.INFO: ProcessCDR(1,14989472,1,1,2) [2025-04-25 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989472', 'tblTempUsageDetail_20' ) start [2025-04-25 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989472', 'tblTempUsageDetail_20' ) end [2025-04-25 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:46:23] Production.INFO: ==3426== Releasing lock... [2025-04-25 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:46:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:47:06 [end_date_ymd] => 2025-04-25 20:47:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:47:06' and `end` < '2025-04-25 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-04-25 20:47:19] Production.INFO: count ==2882 [2025-04-25 20:47:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:47:06 - End Time 2025-04-25 20:47:06 [2025-04-25 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989477', 'tblTempUsageDetail_20' ) start [2025-04-25 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989477', 'tblTempUsageDetail_20' ) end [2025-04-25 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989477', 'tblTempVendorCDR_20' ) start [2025-04-25 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989477', 'tblTempVendorCDR_20' ) end [2025-04-25 20:47:20] Production.INFO: ProcessCDR(1,14989477,1,1,2) [2025-04-25 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989477', 'tblTempUsageDetail_20' ) start [2025-04-25 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989477', 'tblTempUsageDetail_20' ) end [2025-04-25 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:47:23] Production.INFO: ==3498== Releasing lock... [2025-04-25 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:47:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:48:05 [end_date_ymd] => 2025-04-25 20:48:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:48:05' and `end` < '2025-04-25 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-04-25 20:48:18] Production.INFO: count ==2876 [2025-04-25 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:48:05 - End Time 2025-04-25 20:48:05 [2025-04-25 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989482', 'tblTempUsageDetail_20' ) start [2025-04-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989482', 'tblTempUsageDetail_20' ) end [2025-04-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989482', 'tblTempVendorCDR_20' ) start [2025-04-25 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989482', 'tblTempVendorCDR_20' ) end [2025-04-25 20:48:18] Production.INFO: ProcessCDR(1,14989482,1,1,2) [2025-04-25 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989482', 'tblTempUsageDetail_20' ) start [2025-04-25 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989482', 'tblTempUsageDetail_20' ) end [2025-04-25 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:48:23] Production.INFO: ==3576== Releasing lock... [2025-04-25 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:48:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:49:05 [end_date_ymd] => 2025-04-25 20:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:49:05' and `end` < '2025-04-25 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-04-25 20:49:19] Production.INFO: count ==2873 [2025-04-25 20:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:49:05 - End Time 2025-04-25 20:49:05 [2025-04-25 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989487', 'tblTempUsageDetail_20' ) start [2025-04-25 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989487', 'tblTempUsageDetail_20' ) end [2025-04-25 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989487', 'tblTempVendorCDR_20' ) start [2025-04-25 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989487', 'tblTempVendorCDR_20' ) end [2025-04-25 20:49:19] Production.INFO: ProcessCDR(1,14989487,1,1,2) [2025-04-25 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989487', 'tblTempUsageDetail_20' ) start [2025-04-25 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989487', 'tblTempUsageDetail_20' ) end [2025-04-25 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:49:25] Production.INFO: ==3692== Releasing lock... [2025-04-25 20:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:49:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:50:06 [end_date_ymd] => 2025-04-25 20:50:06 [RateCDR] => 1 ) [2025-04-25 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:50:06' and `end` < '2025-04-25 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:50:19] Production.INFO: count ==2848 [2025-04-25 20:50:20] Production.ERROR: pbx CDR StartTime 2025-04-25 17:50:06 - End Time 2025-04-25 20:50:06 [2025-04-25 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989493', 'tblTempUsageDetail_20' ) start [2025-04-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989493', 'tblTempUsageDetail_20' ) end [2025-04-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989493', 'tblTempVendorCDR_20' ) start [2025-04-25 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989493', 'tblTempVendorCDR_20' ) end [2025-04-25 20:50:20] Production.INFO: ProcessCDR(1,14989493,1,1,2) [2025-04-25 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989493', 'tblTempUsageDetail_20' ) start [2025-04-25 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989493', 'tblTempUsageDetail_20' ) end [2025-04-25 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:50:25] Production.INFO: ==3768== Releasing lock... [2025-04-25 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:50:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-25 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:51:05 [end_date_ymd] => 2025-04-25 20:51:05 [RateCDR] => 1 ) [2025-04-25 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:51:05' and `end` < '2025-04-25 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:51:18] Production.INFO: count ==2792 [2025-04-25 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:51:05 - End Time 2025-04-25 20:51:05 [2025-04-25 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989498', 'tblTempUsageDetail_20' ) start [2025-04-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989498', 'tblTempUsageDetail_20' ) end [2025-04-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989498', 'tblTempVendorCDR_20' ) start [2025-04-25 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989498', 'tblTempVendorCDR_20' ) end [2025-04-25 20:51:19] Production.INFO: ProcessCDR(1,14989498,1,1,2) [2025-04-25 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989498', 'tblTempUsageDetail_20' ) start [2025-04-25 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989498', 'tblTempUsageDetail_20' ) end [2025-04-25 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:51:22] Production.INFO: ==3845== Releasing lock... [2025-04-25 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:51:22] Production.INFO: 49 MB #Memory Used# [2025-04-25 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:52:05 [end_date_ymd] => 2025-04-25 20:52:05 [RateCDR] => 1 ) [2025-04-25 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 17:52:05' and `end` < '2025-04-25 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 20:52:18] Production.INFO: count ==2785 [2025-04-25 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:52:05 - End Time 2025-04-25 20:52:05 [2025-04-25 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989503', 'tblTempUsageDetail_20' ) start [2025-04-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989503', 'tblTempUsageDetail_20' ) end [2025-04-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989503', 'tblTempVendorCDR_20' ) start [2025-04-25 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989503', 'tblTempVendorCDR_20' ) end [2025-04-25 20:52:19] Production.INFO: ProcessCDR(1,14989503,1,1,2) [2025-04-25 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989503', 'tblTempUsageDetail_20' ) start [2025-04-25 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989503', 'tblTempUsageDetail_20' ) end [2025-04-25 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:52:22] Production.INFO: ==3923== Releasing lock... [2025-04-25 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:52:22] Production.INFO: 49 MB #Memory Used# [2025-04-25 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:53:05 [end_date_ymd] => 2025-04-25 20:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:53:05' and `end` < '2025-04-25 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-04-25 20:53:18] Production.INFO: count ==2782 [2025-04-25 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:53:05 - End Time 2025-04-25 20:53:05 [2025-04-25 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989508', 'tblTempUsageDetail_20' ) start [2025-04-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989508', 'tblTempUsageDetail_20' ) end [2025-04-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989508', 'tblTempVendorCDR_20' ) start [2025-04-25 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989508', 'tblTempVendorCDR_20' ) end [2025-04-25 20:53:19] Production.INFO: ProcessCDR(1,14989508,1,1,2) [2025-04-25 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989508', 'tblTempUsageDetail_20' ) start [2025-04-25 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989508', 'tblTempUsageDetail_20' ) end [2025-04-25 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:53:22] Production.INFO: ==3996== Releasing lock... [2025-04-25 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:53:22] Production.INFO: 49 MB #Memory Used# [2025-04-25 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:54:04 [end_date_ymd] => 2025-04-25 20:54:04 [RateCDR] => 1 ) [2025-04-25 20: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-04-25 17:54:04' and `end` < '2025-04-25 20: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-04-25 20:54:17] Production.INFO: count ==2770 [2025-04-25 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 17:54:04 - End Time 2025-04-25 20:54:04 [2025-04-25 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989513', 'tblTempUsageDetail_20' ) start [2025-04-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989513', 'tblTempUsageDetail_20' ) end [2025-04-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989513', 'tblTempVendorCDR_20' ) start [2025-04-25 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989513', 'tblTempVendorCDR_20' ) end [2025-04-25 20:54:18] Production.INFO: ProcessCDR(1,14989513,1,1,2) [2025-04-25 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989513', 'tblTempUsageDetail_20' ) start [2025-04-25 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989513', 'tblTempUsageDetail_20' ) end [2025-04-25 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:54:23] Production.INFO: ==4066== Releasing lock... [2025-04-25 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:54:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:55:05 [end_date_ymd] => 2025-04-25 20:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:55:05' and `end` < '2025-04-25 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-04-25 20:55:19] Production.INFO: count ==2767 [2025-04-25 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:55:05 - End Time 2025-04-25 20:55:05 [2025-04-25 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989518', 'tblTempUsageDetail_20' ) start [2025-04-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989518', 'tblTempUsageDetail_20' ) end [2025-04-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989518', 'tblTempVendorCDR_20' ) start [2025-04-25 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989518', 'tblTempVendorCDR_20' ) end [2025-04-25 20:55:19] Production.INFO: ProcessCDR(1,14989518,1,1,2) [2025-04-25 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989518', 'tblTempUsageDetail_20' ) start [2025-04-25 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989518', 'tblTempUsageDetail_20' ) end [2025-04-25 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:55:23] Production.INFO: ==4144== Releasing lock... [2025-04-25 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:56:05 [end_date_ymd] => 2025-04-25 20:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:56:05' and `end` < '2025-04-25 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-04-25 20:56:18] Production.INFO: count ==2774 [2025-04-25 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:56:05 - End Time 2025-04-25 20:56:05 [2025-04-25 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989523', 'tblTempUsageDetail_20' ) start [2025-04-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989523', 'tblTempUsageDetail_20' ) end [2025-04-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989523', 'tblTempVendorCDR_20' ) start [2025-04-25 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989523', 'tblTempVendorCDR_20' ) end [2025-04-25 20:56:19] Production.INFO: ProcessCDR(1,14989523,1,1,2) [2025-04-25 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989523', 'tblTempUsageDetail_20' ) start [2025-04-25 20:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989523', 'tblTempUsageDetail_20' ) end [2025-04-25 20:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:56:24] Production.INFO: ==4216== Releasing lock... [2025-04-25 20:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:56:24] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:57:05 [end_date_ymd] => 2025-04-25 20:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:57:05' and `end` < '2025-04-25 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-04-25 20:57:18] Production.INFO: count ==2772 [2025-04-25 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:57:05 - End Time 2025-04-25 20:57:05 [2025-04-25 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989528', 'tblTempUsageDetail_20' ) start [2025-04-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989528', 'tblTempUsageDetail_20' ) end [2025-04-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989528', 'tblTempVendorCDR_20' ) start [2025-04-25 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989528', 'tblTempVendorCDR_20' ) end [2025-04-25 20:57:19] Production.INFO: ProcessCDR(1,14989528,1,1,2) [2025-04-25 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989528', 'tblTempUsageDetail_20' ) start [2025-04-25 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989528', 'tblTempUsageDetail_20' ) end [2025-04-25 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:57:22] Production.INFO: ==4291== Releasing lock... [2025-04-25 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:57:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:58:06 [end_date_ymd] => 2025-04-25 20:58:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:58:06' and `end` < '2025-04-25 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-04-25 20:58:19] Production.INFO: count ==2773 [2025-04-25 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:58:06 - End Time 2025-04-25 20:58:06 [2025-04-25 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989533', 'tblTempUsageDetail_20' ) start [2025-04-25 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989533', 'tblTempUsageDetail_20' ) end [2025-04-25 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989533', 'tblTempVendorCDR_20' ) start [2025-04-25 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989533', 'tblTempVendorCDR_20' ) end [2025-04-25 20:58:19] Production.INFO: ProcessCDR(1,14989533,1,1,2) [2025-04-25 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989533', 'tblTempUsageDetail_20' ) start [2025-04-25 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989533', 'tblTempUsageDetail_20' ) end [2025-04-25 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:58:23] Production.INFO: ==4364== Releasing lock... [2025-04-25 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:58:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 17:59:05 [end_date_ymd] => 2025-04-25 20:59:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 17:59:05' and `end` < '2025-04-25 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-04-25 20:59:18] Production.INFO: count ==2770 [2025-04-25 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-25 17:59:05 - End Time 2025-04-25 20:59:05 [2025-04-25 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989538', 'tblTempUsageDetail_20' ) start [2025-04-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989538', 'tblTempUsageDetail_20' ) end [2025-04-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989538', 'tblTempVendorCDR_20' ) start [2025-04-25 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989538', 'tblTempVendorCDR_20' ) end [2025-04-25 20:59:19] Production.INFO: ProcessCDR(1,14989538,1,1,2) [2025-04-25 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989538', 'tblTempUsageDetail_20' ) start [2025-04-25 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989538', 'tblTempUsageDetail_20' ) end [2025-04-25 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 20:59:22] Production.INFO: ==4435== Releasing lock... [2025-04-25 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 20:59:22] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:00:06 [end_date_ymd] => 2025-04-25 21:00:06 [RateCDR] => 1 ) [2025-04-25 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:00:06' and `end` < '2025-04-25 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:00:19] Production.INFO: count ==2772 [2025-04-25 21:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:00:06 - End Time 2025-04-25 21:00:06 [2025-04-25 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989544', 'tblTempUsageDetail_20' ) start [2025-04-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989544', 'tblTempUsageDetail_20' ) end [2025-04-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989544', 'tblTempVendorCDR_20' ) start [2025-04-25 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989544', 'tblTempVendorCDR_20' ) end [2025-04-25 21:00:20] Production.INFO: ProcessCDR(1,14989544,1,1,2) [2025-04-25 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989544', 'tblTempUsageDetail_20' ) start [2025-04-25 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989544', 'tblTempUsageDetail_20' ) end [2025-04-25 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:00:25] Production.INFO: ==4507== Releasing lock... [2025-04-25 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:00:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:01:05 [end_date_ymd] => 2025-04-25 21:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:01:05' and `end` < '2025-04-25 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-04-25 21:01:18] Production.INFO: count ==2736 [2025-04-25 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:01:05 - End Time 2025-04-25 21:01:05 [2025-04-25 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989549', 'tblTempUsageDetail_20' ) start [2025-04-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989549', 'tblTempUsageDetail_20' ) end [2025-04-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989549', 'tblTempVendorCDR_20' ) start [2025-04-25 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989549', 'tblTempVendorCDR_20' ) end [2025-04-25 21:01:19] Production.INFO: ProcessCDR(1,14989549,1,1,2) [2025-04-25 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989549', 'tblTempUsageDetail_20' ) start [2025-04-25 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989549', 'tblTempUsageDetail_20' ) end [2025-04-25 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:01:23] Production.INFO: ==4605== Releasing lock... [2025-04-25 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:01:23] Production.INFO: 48.75 MB #Memory Used# [2025-04-25 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:02:06 [end_date_ymd] => 2025-04-25 21:02:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:02:06' and `end` < '2025-04-25 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-04-25 21:02:19] Production.INFO: count ==2730 [2025-04-25 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:02:06 - End Time 2025-04-25 21:02:06 [2025-04-25 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989554', 'tblTempUsageDetail_20' ) start [2025-04-25 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989554', 'tblTempUsageDetail_20' ) end [2025-04-25 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989554', 'tblTempVendorCDR_20' ) start [2025-04-25 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989554', 'tblTempVendorCDR_20' ) end [2025-04-25 21:02:20] Production.INFO: ProcessCDR(1,14989554,1,1,2) [2025-04-25 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989554', 'tblTempUsageDetail_20' ) start [2025-04-25 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989554', 'tblTempUsageDetail_20' ) end [2025-04-25 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:02:23] Production.INFO: ==4680== Releasing lock... [2025-04-25 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:02:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-25 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:03:05 [end_date_ymd] => 2025-04-25 21:03:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:03:05' and `end` < '2025-04-25 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-04-25 21:03:18] Production.INFO: count ==2716 [2025-04-25 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:03:05 - End Time 2025-04-25 21:03:05 [2025-04-25 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989559', 'tblTempUsageDetail_20' ) start [2025-04-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989559', 'tblTempUsageDetail_20' ) end [2025-04-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989559', 'tblTempVendorCDR_20' ) start [2025-04-25 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989559', 'tblTempVendorCDR_20' ) end [2025-04-25 21:03:18] Production.INFO: ProcessCDR(1,14989559,1,1,2) [2025-04-25 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989559', 'tblTempUsageDetail_20' ) start [2025-04-25 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989559', 'tblTempUsageDetail_20' ) end [2025-04-25 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:03:22] Production.INFO: ==4756== Releasing lock... [2025-04-25 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:03:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-25 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:04:06 [end_date_ymd] => 2025-04-25 21:04:06 [RateCDR] => 1 ) [2025-04-25 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:04:06' and `end` < '2025-04-25 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:04:18] Production.INFO: count ==2726 [2025-04-25 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:04:06 - End Time 2025-04-25 21:04:06 [2025-04-25 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989564', 'tblTempUsageDetail_20' ) start [2025-04-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989564', 'tblTempUsageDetail_20' ) end [2025-04-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989564', 'tblTempVendorCDR_20' ) start [2025-04-25 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989564', 'tblTempVendorCDR_20' ) end [2025-04-25 21:04:19] Production.INFO: ProcessCDR(1,14989564,1,1,2) [2025-04-25 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989564', 'tblTempUsageDetail_20' ) start [2025-04-25 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989564', 'tblTempUsageDetail_20' ) end [2025-04-25 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:04:23] Production.INFO: ==4831== Releasing lock... [2025-04-25 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:04:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-25 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:05:04 [end_date_ymd] => 2025-04-25 21:05:04 [RateCDR] => 1 ) [2025-04-25 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:05:04' and `end` < '2025-04-25 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:05:17] Production.INFO: count ==2720 [2025-04-25 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:05:04 - End Time 2025-04-25 21:05:04 [2025-04-25 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989569', 'tblTempUsageDetail_20' ) start [2025-04-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989569', 'tblTempUsageDetail_20' ) end [2025-04-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989569', 'tblTempVendorCDR_20' ) start [2025-04-25 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989569', 'tblTempVendorCDR_20' ) end [2025-04-25 21:05:18] Production.INFO: ProcessCDR(1,14989569,1,1,2) [2025-04-25 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989569', 'tblTempUsageDetail_20' ) start [2025-04-25 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989569', 'tblTempUsageDetail_20' ) end [2025-04-25 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:05:21] Production.INFO: ==4941== Releasing lock... [2025-04-25 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:05:21] Production.INFO: 48.25 MB #Memory Used# [2025-04-25 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:06:05 [end_date_ymd] => 2025-04-25 21:06:05 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:06:05' and `end` < '2025-04-25 21: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-04-25 21:06:18] Production.INFO: count ==2702 [2025-04-25 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:06:05 - End Time 2025-04-25 21:06:05 [2025-04-25 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989574', 'tblTempUsageDetail_20' ) start [2025-04-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989574', 'tblTempUsageDetail_20' ) end [2025-04-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989574', 'tblTempVendorCDR_20' ) start [2025-04-25 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989574', 'tblTempVendorCDR_20' ) end [2025-04-25 21:06:19] Production.INFO: ProcessCDR(1,14989574,1,1,2) [2025-04-25 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989574', 'tblTempUsageDetail_20' ) start [2025-04-25 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989574', 'tblTempUsageDetail_20' ) end [2025-04-25 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:06:23] Production.INFO: ==5015== Releasing lock... [2025-04-25 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:06:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-25 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:07:05 [end_date_ymd] => 2025-04-25 21:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:07:05' and `end` < '2025-04-25 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-04-25 21:07:18] Production.INFO: count ==2698 [2025-04-25 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:07:05 - End Time 2025-04-25 21:07:05 [2025-04-25 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989579', 'tblTempUsageDetail_20' ) start [2025-04-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989579', 'tblTempUsageDetail_20' ) end [2025-04-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989579', 'tblTempVendorCDR_20' ) start [2025-04-25 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989579', 'tblTempVendorCDR_20' ) end [2025-04-25 21:07:19] Production.INFO: ProcessCDR(1,14989579,1,1,2) [2025-04-25 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989579', 'tblTempUsageDetail_20' ) start [2025-04-25 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989579', 'tblTempUsageDetail_20' ) end [2025-04-25 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:07:22] Production.INFO: ==5086== Releasing lock... [2025-04-25 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:07:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-25 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:08:06 [end_date_ymd] => 2025-04-25 21:08:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:08:06' and `end` < '2025-04-25 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-04-25 21:08:19] Production.INFO: count ==2691 [2025-04-25 21:08:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:08:06 - End Time 2025-04-25 21:08:06 [2025-04-25 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989584', 'tblTempUsageDetail_20' ) start [2025-04-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989584', 'tblTempUsageDetail_20' ) end [2025-04-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989584', 'tblTempVendorCDR_20' ) start [2025-04-25 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989584', 'tblTempVendorCDR_20' ) end [2025-04-25 21:08:19] Production.INFO: ProcessCDR(1,14989584,1,1,2) [2025-04-25 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989584', 'tblTempUsageDetail_20' ) start [2025-04-25 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989584', 'tblTempUsageDetail_20' ) end [2025-04-25 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:08:23] Production.INFO: ==5161== Releasing lock... [2025-04-25 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:08:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-25 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:09:05 [end_date_ymd] => 2025-04-25 21:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:09:05' and `end` < '2025-04-25 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-04-25 21:09:18] Production.INFO: count ==2692 [2025-04-25 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:09:05 - End Time 2025-04-25 21:09:05 [2025-04-25 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989589', 'tblTempUsageDetail_20' ) start [2025-04-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989589', 'tblTempUsageDetail_20' ) end [2025-04-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989589', 'tblTempVendorCDR_20' ) start [2025-04-25 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989589', 'tblTempVendorCDR_20' ) end [2025-04-25 21:09:18] Production.INFO: ProcessCDR(1,14989589,1,1,2) [2025-04-25 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989589', 'tblTempUsageDetail_20' ) start [2025-04-25 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989589', 'tblTempUsageDetail_20' ) end [2025-04-25 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:09:22] Production.INFO: ==5232== Releasing lock... [2025-04-25 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:09:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-25 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:10:06 [end_date_ymd] => 2025-04-25 21:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:10:06' and `end` < '2025-04-25 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-04-25 21:10:19] Production.INFO: count ==2691 [2025-04-25 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:10:06 - End Time 2025-04-25 21:10:06 [2025-04-25 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989595', 'tblTempUsageDetail_20' ) start [2025-04-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989595', 'tblTempUsageDetail_20' ) end [2025-04-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989595', 'tblTempVendorCDR_20' ) start [2025-04-25 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989595', 'tblTempVendorCDR_20' ) end [2025-04-25 21:10:19] Production.INFO: ProcessCDR(1,14989595,1,1,2) [2025-04-25 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989595', 'tblTempUsageDetail_20' ) start [2025-04-25 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989595', 'tblTempUsageDetail_20' ) end [2025-04-25 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:10:23] Production.INFO: ==5313== Releasing lock... [2025-04-25 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:10:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-25 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:11:05 [end_date_ymd] => 2025-04-25 21:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:11:05' and `end` < '2025-04-25 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-04-25 21:11:18] Production.INFO: count ==2609 [2025-04-25 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:11:05 - End Time 2025-04-25 21:11:05 [2025-04-25 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989600', 'tblTempUsageDetail_20' ) start [2025-04-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989600', 'tblTempUsageDetail_20' ) end [2025-04-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989600', 'tblTempVendorCDR_20' ) start [2025-04-25 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989600', 'tblTempVendorCDR_20' ) end [2025-04-25 21:11:19] Production.INFO: ProcessCDR(1,14989600,1,1,2) [2025-04-25 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989600', 'tblTempUsageDetail_20' ) start [2025-04-25 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989600', 'tblTempUsageDetail_20' ) end [2025-04-25 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:11:22] Production.INFO: ==5392== Releasing lock... [2025-04-25 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:11:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-25 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:12:05 [end_date_ymd] => 2025-04-25 21:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:12:05' and `end` < '2025-04-25 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-04-25 21:12:18] Production.INFO: count ==2608 [2025-04-25 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:12:05 - End Time 2025-04-25 21:12:05 [2025-04-25 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989605', 'tblTempUsageDetail_20' ) start [2025-04-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989605', 'tblTempUsageDetail_20' ) end [2025-04-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989605', 'tblTempVendorCDR_20' ) start [2025-04-25 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989605', 'tblTempVendorCDR_20' ) end [2025-04-25 21:12:19] Production.INFO: ProcessCDR(1,14989605,1,1,2) [2025-04-25 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989605', 'tblTempUsageDetail_20' ) start [2025-04-25 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989605', 'tblTempUsageDetail_20' ) end [2025-04-25 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:12:22] Production.INFO: ==5466== Releasing lock... [2025-04-25 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:12:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-25 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:13:06 [end_date_ymd] => 2025-04-25 21:13:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:13:06' and `end` < '2025-04-25 21: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-04-25 21:13:19] Production.INFO: count ==2599 [2025-04-25 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:13:06 - End Time 2025-04-25 21:13:06 [2025-04-25 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989610', 'tblTempUsageDetail_20' ) start [2025-04-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989610', 'tblTempUsageDetail_20' ) end [2025-04-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989610', 'tblTempVendorCDR_20' ) start [2025-04-25 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989610', 'tblTempVendorCDR_20' ) end [2025-04-25 21:13:19] Production.INFO: ProcessCDR(1,14989610,1,1,2) [2025-04-25 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989610', 'tblTempUsageDetail_20' ) start [2025-04-25 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989610', 'tblTempUsageDetail_20' ) end [2025-04-25 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:13:23] Production.INFO: ==5538== Releasing lock... [2025-04-25 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:13:23] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:14:04 [end_date_ymd] => 2025-04-25 21:14:04 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:14:04' and `end` < '2025-04-25 21: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-04-25 21:14:17] Production.INFO: count ==2591 [2025-04-25 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:14:04 - End Time 2025-04-25 21:14:04 [2025-04-25 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989615', 'tblTempUsageDetail_20' ) start [2025-04-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989615', 'tblTempUsageDetail_20' ) end [2025-04-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989615', 'tblTempVendorCDR_20' ) start [2025-04-25 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989615', 'tblTempVendorCDR_20' ) end [2025-04-25 21:14:18] Production.INFO: ProcessCDR(1,14989615,1,1,2) [2025-04-25 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989615', 'tblTempUsageDetail_20' ) start [2025-04-25 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989615', 'tblTempUsageDetail_20' ) end [2025-04-25 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:14:22] Production.INFO: ==5607== Releasing lock... [2025-04-25 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:14:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:15:05 [end_date_ymd] => 2025-04-25 21:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:15:05' and `end` < '2025-04-25 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:15:18] Production.INFO: count ==2582 [2025-04-25 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:15:05 - End Time 2025-04-25 21:15:05 [2025-04-25 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989620', 'tblTempUsageDetail_20' ) start [2025-04-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989620', 'tblTempUsageDetail_20' ) end [2025-04-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989620', 'tblTempVendorCDR_20' ) start [2025-04-25 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989620', 'tblTempVendorCDR_20' ) end [2025-04-25 21:15:19] Production.INFO: ProcessCDR(1,14989620,1,1,2) [2025-04-25 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989620', 'tblTempUsageDetail_20' ) start [2025-04-25 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989620', 'tblTempUsageDetail_20' ) end [2025-04-25 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:15:22] Production.INFO: ==5682== Releasing lock... [2025-04-25 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:15:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:16:05 [end_date_ymd] => 2025-04-25 21:16:05 [RateCDR] => 1 ) [2025-04-25 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:16:05' and `end` < '2025-04-25 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-04-25 21:16:18] Production.INFO: count ==2579 [2025-04-25 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:16:05 - End Time 2025-04-25 21:16:05 [2025-04-25 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989625', 'tblTempUsageDetail_20' ) start [2025-04-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989625', 'tblTempUsageDetail_20' ) end [2025-04-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989625', 'tblTempVendorCDR_20' ) start [2025-04-25 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989625', 'tblTempVendorCDR_20' ) end [2025-04-25 21:16:19] Production.INFO: ProcessCDR(1,14989625,1,1,2) [2025-04-25 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989625', 'tblTempUsageDetail_20' ) start [2025-04-25 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989625', 'tblTempUsageDetail_20' ) end [2025-04-25 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:16:22] Production.INFO: ==5761== Releasing lock... [2025-04-25 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:16:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:17:05 [end_date_ymd] => 2025-04-25 21:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:17:05' and `end` < '2025-04-25 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-04-25 21:17:18] Production.INFO: count ==2578 [2025-04-25 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:17:05 - End Time 2025-04-25 21:17:05 [2025-04-25 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989630', 'tblTempUsageDetail_20' ) start [2025-04-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989630', 'tblTempUsageDetail_20' ) end [2025-04-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989630', 'tblTempVendorCDR_20' ) start [2025-04-25 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989630', 'tblTempVendorCDR_20' ) end [2025-04-25 21:17:19] Production.INFO: ProcessCDR(1,14989630,1,1,2) [2025-04-25 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989630', 'tblTempUsageDetail_20' ) start [2025-04-25 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989630', 'tblTempUsageDetail_20' ) end [2025-04-25 21:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:17:25] Production.INFO: ==5832== Releasing lock... [2025-04-25 21:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:17:25] Production.INFO: 47.5 MB #Memory Used# [2025-04-25 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:18:06 [end_date_ymd] => 2025-04-25 21:18:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:18:06' and `end` < '2025-04-25 21: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-04-25 21:18:19] Production.INFO: count ==2564 [2025-04-25 21:18:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:18:06 - End Time 2025-04-25 21:18:06 [2025-04-25 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989635', 'tblTempUsageDetail_20' ) start [2025-04-25 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989635', 'tblTempUsageDetail_20' ) end [2025-04-25 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989635', 'tblTempVendorCDR_20' ) start [2025-04-25 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989635', 'tblTempVendorCDR_20' ) end [2025-04-25 21:18:20] Production.INFO: ProcessCDR(1,14989635,1,1,2) [2025-04-25 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989635', 'tblTempUsageDetail_20' ) start [2025-04-25 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989635', 'tblTempUsageDetail_20' ) end [2025-04-25 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:18:23] Production.INFO: ==5920== Releasing lock... [2025-04-25 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:18:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:19:05 [end_date_ymd] => 2025-04-25 21:19:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:19:05' and `end` < '2025-04-25 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-04-25 21:19:18] Production.INFO: count ==2557 [2025-04-25 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:19:05 - End Time 2025-04-25 21:19:05 [2025-04-25 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989640', 'tblTempUsageDetail_20' ) start [2025-04-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989640', 'tblTempUsageDetail_20' ) end [2025-04-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989640', 'tblTempVendorCDR_20' ) start [2025-04-25 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989640', 'tblTempVendorCDR_20' ) end [2025-04-25 21:19:19] Production.INFO: ProcessCDR(1,14989640,1,1,2) [2025-04-25 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989640', 'tblTempUsageDetail_20' ) start [2025-04-25 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989640', 'tblTempUsageDetail_20' ) end [2025-04-25 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:19:22] Production.INFO: ==5990== Releasing lock... [2025-04-25 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:19:22] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:20:06 [end_date_ymd] => 2025-04-25 21:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:20:06' and `end` < '2025-04-25 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-04-25 21:20:20] Production.INFO: count ==2545 [2025-04-25 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:20:06 - End Time 2025-04-25 21:20:06 [2025-04-25 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989646', 'tblTempUsageDetail_20' ) start [2025-04-25 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989646', 'tblTempUsageDetail_20' ) end [2025-04-25 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989646', 'tblTempVendorCDR_20' ) start [2025-04-25 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989646', 'tblTempVendorCDR_20' ) end [2025-04-25 21:20:21] Production.INFO: ProcessCDR(1,14989646,1,1,2) [2025-04-25 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989646', 'tblTempUsageDetail_20' ) start [2025-04-25 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989646', 'tblTempUsageDetail_20' ) end [2025-04-25 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:20:24] Production.INFO: ==6110== Releasing lock... [2025-04-25 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:20:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:21:05 [end_date_ymd] => 2025-04-25 21:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:21:05' and `end` < '2025-04-25 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-04-25 21:21:18] Production.INFO: count ==2511 [2025-04-25 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:21:05 - End Time 2025-04-25 21:21:05 [2025-04-25 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989651', 'tblTempUsageDetail_20' ) start [2025-04-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989651', 'tblTempUsageDetail_20' ) end [2025-04-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989651', 'tblTempVendorCDR_20' ) start [2025-04-25 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989651', 'tblTempVendorCDR_20' ) end [2025-04-25 21:21:18] Production.INFO: ProcessCDR(1,14989651,1,1,2) [2025-04-25 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989651', 'tblTempUsageDetail_20' ) start [2025-04-25 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989651', 'tblTempUsageDetail_20' ) end [2025-04-25 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:21:22] Production.INFO: ==6188== Releasing lock... [2025-04-25 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:21:22] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:22:05 [end_date_ymd] => 2025-04-25 21:22:05 [RateCDR] => 1 ) [2025-04-25 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:22:05' and `end` < '2025-04-25 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:22:18] Production.INFO: count ==2508 [2025-04-25 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:22:05 - End Time 2025-04-25 21:22:05 [2025-04-25 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989656', 'tblTempUsageDetail_20' ) start [2025-04-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989656', 'tblTempUsageDetail_20' ) end [2025-04-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989656', 'tblTempVendorCDR_20' ) start [2025-04-25 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989656', 'tblTempVendorCDR_20' ) end [2025-04-25 21:22:19] Production.INFO: ProcessCDR(1,14989656,1,1,2) [2025-04-25 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989656', 'tblTempUsageDetail_20' ) start [2025-04-25 21:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989656', 'tblTempUsageDetail_20' ) end [2025-04-25 21:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:22:25] Production.INFO: ==6271== Releasing lock... [2025-04-25 21:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:22:25] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:23:05 [end_date_ymd] => 2025-04-25 21:23:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:23:05' and `end` < '2025-04-25 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-04-25 21:23:18] Production.INFO: count ==2508 [2025-04-25 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:23:05 - End Time 2025-04-25 21:23:05 [2025-04-25 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989661', 'tblTempUsageDetail_20' ) start [2025-04-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989661', 'tblTempUsageDetail_20' ) end [2025-04-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989661', 'tblTempVendorCDR_20' ) start [2025-04-25 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989661', 'tblTempVendorCDR_20' ) end [2025-04-25 21:23:18] Production.INFO: ProcessCDR(1,14989661,1,1,2) [2025-04-25 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989661', 'tblTempUsageDetail_20' ) start [2025-04-25 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989661', 'tblTempUsageDetail_20' ) end [2025-04-25 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:23:23] Production.INFO: ==6342== Releasing lock... [2025-04-25 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:23:23] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:24:05 [end_date_ymd] => 2025-04-25 21:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:24:05' and `end` < '2025-04-25 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-04-25 21:24:18] Production.INFO: count ==2515 [2025-04-25 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:24:05 - End Time 2025-04-25 21:24:05 [2025-04-25 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989666', 'tblTempUsageDetail_20' ) start [2025-04-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989666', 'tblTempUsageDetail_20' ) end [2025-04-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989666', 'tblTempVendorCDR_20' ) start [2025-04-25 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989666', 'tblTempVendorCDR_20' ) end [2025-04-25 21:24:19] Production.INFO: ProcessCDR(1,14989666,1,1,2) [2025-04-25 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989666', 'tblTempUsageDetail_20' ) start [2025-04-25 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989666', 'tblTempUsageDetail_20' ) end [2025-04-25 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:24:22] Production.INFO: ==6422== Releasing lock... [2025-04-25 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:24:22] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:25:04 [end_date_ymd] => 2025-04-25 21:25:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:25:04' and `end` < '2025-04-25 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-04-25 21:25:17] Production.INFO: count ==2514 [2025-04-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:25:04 - End Time 2025-04-25 21:25:04 [2025-04-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989671', 'tblTempUsageDetail_20' ) start [2025-04-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989671', 'tblTempUsageDetail_20' ) end [2025-04-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989671', 'tblTempVendorCDR_20' ) start [2025-04-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989671', 'tblTempVendorCDR_20' ) end [2025-04-25 21:25:18] Production.INFO: ProcessCDR(1,14989671,1,1,2) [2025-04-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989671', 'tblTempUsageDetail_20' ) start [2025-04-25 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989671', 'tblTempUsageDetail_20' ) end [2025-04-25 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:25:21] Production.INFO: ==6502== Releasing lock... [2025-04-25 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:25:21] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:26:05 [end_date_ymd] => 2025-04-25 21:26:05 [RateCDR] => 1 ) [2025-04-25 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:26:05' and `end` < '2025-04-25 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:26:18] Production.INFO: count ==2517 [2025-04-25 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:26:05 - End Time 2025-04-25 21:26:05 [2025-04-25 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989676', 'tblTempUsageDetail_20' ) start [2025-04-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989676', 'tblTempUsageDetail_20' ) end [2025-04-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989676', 'tblTempVendorCDR_20' ) start [2025-04-25 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989676', 'tblTempVendorCDR_20' ) end [2025-04-25 21:26:19] Production.INFO: ProcessCDR(1,14989676,1,1,2) [2025-04-25 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989676', 'tblTempUsageDetail_20' ) start [2025-04-25 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989676', 'tblTempUsageDetail_20' ) end [2025-04-25 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:26:22] Production.INFO: ==6579== Releasing lock... [2025-04-25 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:26:22] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:27:06 [end_date_ymd] => 2025-04-25 21:27:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:27:06' and `end` < '2025-04-25 21: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-04-25 21:27:19] Production.INFO: count ==2516 [2025-04-25 21:27:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:27:06 - End Time 2025-04-25 21:27:06 [2025-04-25 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989681', 'tblTempUsageDetail_20' ) start [2025-04-25 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989681', 'tblTempUsageDetail_20' ) end [2025-04-25 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989681', 'tblTempVendorCDR_20' ) start [2025-04-25 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989681', 'tblTempVendorCDR_20' ) end [2025-04-25 21:27:20] Production.INFO: ProcessCDR(1,14989681,1,1,2) [2025-04-25 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989681', 'tblTempUsageDetail_20' ) start [2025-04-25 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989681', 'tblTempUsageDetail_20' ) end [2025-04-25 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:27:23] Production.INFO: ==6656== Releasing lock... [2025-04-25 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:27:23] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:28:04 [end_date_ymd] => 2025-04-25 21:28:04 [RateCDR] => 1 ) [2025-04-25 21:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:28:04' and `end` < '2025-04-25 21:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:28:18] Production.INFO: count ==2526 [2025-04-25 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:28:04 - End Time 2025-04-25 21:28:04 [2025-04-25 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989686', 'tblTempUsageDetail_20' ) start [2025-04-25 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989686', 'tblTempUsageDetail_20' ) end [2025-04-25 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989686', 'tblTempVendorCDR_20' ) start [2025-04-25 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989686', 'tblTempVendorCDR_20' ) end [2025-04-25 21:28:18] Production.INFO: ProcessCDR(1,14989686,1,1,2) [2025-04-25 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989686', 'tblTempUsageDetail_20' ) start [2025-04-25 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989686', 'tblTempUsageDetail_20' ) end [2025-04-25 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:28:23] Production.INFO: ==6726== Releasing lock... [2025-04-25 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:28:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-25 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:29:05 [end_date_ymd] => 2025-04-25 21:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:29:05' and `end` < '2025-04-25 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-04-25 21:29:18] Production.INFO: count ==2523 [2025-04-25 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:29:05 - End Time 2025-04-25 21:29:05 [2025-04-25 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989691', 'tblTempUsageDetail_20' ) start [2025-04-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989691', 'tblTempUsageDetail_20' ) end [2025-04-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989691', 'tblTempVendorCDR_20' ) start [2025-04-25 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989691', 'tblTempVendorCDR_20' ) end [2025-04-25 21:29:19] Production.INFO: ProcessCDR(1,14989691,1,1,2) [2025-04-25 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989691', 'tblTempUsageDetail_20' ) start [2025-04-25 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989691', 'tblTempUsageDetail_20' ) end [2025-04-25 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:29:22] Production.INFO: ==6804== Releasing lock... [2025-04-25 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:29:22] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:30:06 [end_date_ymd] => 2025-04-25 21:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:30:06' and `end` < '2025-04-25 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-04-25 21:30:19] Production.INFO: count ==2521 [2025-04-25 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:30:06 - End Time 2025-04-25 21:30:06 [2025-04-25 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989697', 'tblTempUsageDetail_20' ) start [2025-04-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989697', 'tblTempUsageDetail_20' ) end [2025-04-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989697', 'tblTempVendorCDR_20' ) start [2025-04-25 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989697', 'tblTempVendorCDR_20' ) end [2025-04-25 21:30:19] Production.INFO: ProcessCDR(1,14989697,1,1,2) [2025-04-25 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989697', 'tblTempUsageDetail_20' ) start [2025-04-25 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989697', 'tblTempUsageDetail_20' ) end [2025-04-25 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:30:23] Production.INFO: ==6883== Releasing lock... [2025-04-25 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:30:23] Production.INFO: 47 MB #Memory Used# [2025-04-25 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:31:05 [end_date_ymd] => 2025-04-25 21:31:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:31:05' and `end` < '2025-04-25 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-04-25 21:31:18] Production.INFO: count ==2448 [2025-04-25 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:31:05 - End Time 2025-04-25 21:31:05 [2025-04-25 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989702', 'tblTempUsageDetail_20' ) start [2025-04-25 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989702', 'tblTempUsageDetail_20' ) end [2025-04-25 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989702', 'tblTempVendorCDR_20' ) start [2025-04-25 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989702', 'tblTempVendorCDR_20' ) end [2025-04-25 21:31:19] Production.INFO: ProcessCDR(1,14989702,1,1,2) [2025-04-25 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989702', 'tblTempUsageDetail_20' ) start [2025-04-25 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989702', 'tblTempUsageDetail_20' ) end [2025-04-25 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:31:22] Production.INFO: ==6958== Releasing lock... [2025-04-25 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:31:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-25 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:32:05 [end_date_ymd] => 2025-04-25 21:32:05 [RateCDR] => 1 ) [2025-04-25 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:32:05' and `end` < '2025-04-25 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:32:18] Production.INFO: count ==2452 [2025-04-25 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:32:05 - End Time 2025-04-25 21:32:05 [2025-04-25 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989707', 'tblTempUsageDetail_20' ) start [2025-04-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989707', 'tblTempUsageDetail_20' ) end [2025-04-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989707', 'tblTempVendorCDR_20' ) start [2025-04-25 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989707', 'tblTempVendorCDR_20' ) end [2025-04-25 21:32:18] Production.INFO: ProcessCDR(1,14989707,1,1,2) [2025-04-25 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989707', 'tblTempUsageDetail_20' ) start [2025-04-25 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989707', 'tblTempUsageDetail_20' ) end [2025-04-25 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:32:22] Production.INFO: ==7035== Releasing lock... [2025-04-25 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:32:22] Production.INFO: 46.5 MB #Memory Used# [2025-04-25 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:33:05 [end_date_ymd] => 2025-04-25 21:33:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:33:05' and `end` < '2025-04-25 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-04-25 21:33:18] Production.INFO: count ==2450 [2025-04-25 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:33:05 - End Time 2025-04-25 21:33:05 [2025-04-25 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989712', 'tblTempUsageDetail_20' ) start [2025-04-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989712', 'tblTempUsageDetail_20' ) end [2025-04-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989712', 'tblTempVendorCDR_20' ) start [2025-04-25 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989712', 'tblTempVendorCDR_20' ) end [2025-04-25 21:33:19] Production.INFO: ProcessCDR(1,14989712,1,1,2) [2025-04-25 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989712', 'tblTempUsageDetail_20' ) start [2025-04-25 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989712', 'tblTempUsageDetail_20' ) end [2025-04-25 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:33:24] Production.INFO: ==7107== Releasing lock... [2025-04-25 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:33:24] Production.INFO: 46.5 MB #Memory Used# [2025-04-25 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:34:06 [end_date_ymd] => 2025-04-25 21:34:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:34:06' and `end` < '2025-04-25 21: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-04-25 21:34:19] Production.INFO: count ==2435 [2025-04-25 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:34:06 - End Time 2025-04-25 21:34:06 [2025-04-25 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989717', 'tblTempUsageDetail_20' ) start [2025-04-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989717', 'tblTempUsageDetail_20' ) end [2025-04-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989717', 'tblTempVendorCDR_20' ) start [2025-04-25 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989717', 'tblTempVendorCDR_20' ) end [2025-04-25 21:34:19] Production.INFO: ProcessCDR(1,14989717,1,1,2) [2025-04-25 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989717', 'tblTempUsageDetail_20' ) start [2025-04-25 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989717', 'tblTempUsageDetail_20' ) end [2025-04-25 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:34:23] Production.INFO: ==7180== Releasing lock... [2025-04-25 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-25 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:35:05 [end_date_ymd] => 2025-04-25 21:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:35:05' and `end` < '2025-04-25 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:35:18] Production.INFO: count ==2424 [2025-04-25 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:35:05 - End Time 2025-04-25 21:35:05 [2025-04-25 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989722', 'tblTempUsageDetail_20' ) start [2025-04-25 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989722', 'tblTempUsageDetail_20' ) end [2025-04-25 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989722', 'tblTempVendorCDR_20' ) start [2025-04-25 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989722', 'tblTempVendorCDR_20' ) end [2025-04-25 21:35:19] Production.INFO: ProcessCDR(1,14989722,1,1,2) [2025-04-25 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989722', 'tblTempUsageDetail_20' ) start [2025-04-25 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989722', 'tblTempUsageDetail_20' ) end [2025-04-25 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:35:22] Production.INFO: ==7257== Releasing lock... [2025-04-25 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:35:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-25 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:36:06 [end_date_ymd] => 2025-04-25 21:36:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:36:06' and `end` < '2025-04-25 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-04-25 21:36:19] Production.INFO: count ==2421 [2025-04-25 21:36:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:36:06 - End Time 2025-04-25 21:36:06 [2025-04-25 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989727', 'tblTempUsageDetail_20' ) start [2025-04-25 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989727', 'tblTempUsageDetail_20' ) end [2025-04-25 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989727', 'tblTempVendorCDR_20' ) start [2025-04-25 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989727', 'tblTempVendorCDR_20' ) end [2025-04-25 21:36:20] Production.INFO: ProcessCDR(1,14989727,1,1,2) [2025-04-25 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989727', 'tblTempUsageDetail_20' ) start [2025-04-25 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989727', 'tblTempUsageDetail_20' ) end [2025-04-25 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:36:23] Production.INFO: ==7367== Releasing lock... [2025-04-25 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:36:23] Production.INFO: 46.5 MB #Memory Used# [2025-04-25 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:37:05 [end_date_ymd] => 2025-04-25 21:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:37:05' and `end` < '2025-04-25 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-04-25 21:37:18] Production.INFO: count ==2412 [2025-04-25 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:37:05 - End Time 2025-04-25 21:37:05 [2025-04-25 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989732', 'tblTempUsageDetail_20' ) start [2025-04-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989732', 'tblTempUsageDetail_20' ) end [2025-04-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989732', 'tblTempVendorCDR_20' ) start [2025-04-25 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989732', 'tblTempVendorCDR_20' ) end [2025-04-25 21:37:19] Production.INFO: ProcessCDR(1,14989732,1,1,2) [2025-04-25 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989732', 'tblTempUsageDetail_20' ) start [2025-04-25 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989732', 'tblTempUsageDetail_20' ) end [2025-04-25 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:37:22] Production.INFO: ==7440== Releasing lock... [2025-04-25 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:37:22] Production.INFO: 46.25 MB #Memory Used# [2025-04-25 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:38:06 [end_date_ymd] => 2025-04-25 21:38:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:38:06' and `end` < '2025-04-25 21: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-04-25 21:38:19] Production.INFO: count ==2396 [2025-04-25 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:38:06 - End Time 2025-04-25 21:38:06 [2025-04-25 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989737', 'tblTempUsageDetail_20' ) start [2025-04-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989737', 'tblTempUsageDetail_20' ) end [2025-04-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989737', 'tblTempVendorCDR_20' ) start [2025-04-25 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989737', 'tblTempVendorCDR_20' ) end [2025-04-25 21:38:19] Production.INFO: ProcessCDR(1,14989737,1,1,2) [2025-04-25 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989737', 'tblTempUsageDetail_20' ) start [2025-04-25 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989737', 'tblTempUsageDetail_20' ) end [2025-04-25 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:38:23] Production.INFO: ==7512== Releasing lock... [2025-04-25 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:38:23] Production.INFO: 46 MB #Memory Used# [2025-04-25 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:39:05 [end_date_ymd] => 2025-04-25 21:39:05 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:39:05' and `end` < '2025-04-25 21: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-04-25 21:39:18] Production.INFO: count ==2407 [2025-04-25 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:39:05 - End Time 2025-04-25 21:39:05 [2025-04-25 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989742', 'tblTempUsageDetail_20' ) start [2025-04-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989742', 'tblTempUsageDetail_20' ) end [2025-04-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989742', 'tblTempVendorCDR_20' ) start [2025-04-25 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989742', 'tblTempVendorCDR_20' ) end [2025-04-25 21:39:18] Production.INFO: ProcessCDR(1,14989742,1,1,2) [2025-04-25 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989742', 'tblTempUsageDetail_20' ) start [2025-04-25 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989742', 'tblTempUsageDetail_20' ) end [2025-04-25 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:39:22] Production.INFO: ==7587== Releasing lock... [2025-04-25 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:39:22] Production.INFO: 46 MB #Memory Used# [2025-04-25 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:40:06 [end_date_ymd] => 2025-04-25 21:40:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:40:06' and `end` < '2025-04-25 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-04-25 21:40:19] Production.INFO: count ==2388 [2025-04-25 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:40:06 - End Time 2025-04-25 21:40:06 [2025-04-25 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989747', 'tblTempUsageDetail_20' ) start [2025-04-25 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989747', 'tblTempUsageDetail_20' ) end [2025-04-25 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989747', 'tblTempVendorCDR_20' ) start [2025-04-25 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989747', 'tblTempVendorCDR_20' ) end [2025-04-25 21:40:20] Production.INFO: ProcessCDR(1,14989747,1,1,2) [2025-04-25 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989747', 'tblTempUsageDetail_20' ) start [2025-04-25 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989747', 'tblTempUsageDetail_20' ) end [2025-04-25 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:40:23] Production.INFO: ==7670== Releasing lock... [2025-04-25 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:40:23] Production.INFO: 46 MB #Memory Used# [2025-04-25 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:41:06 [end_date_ymd] => 2025-04-25 21:41:06 [RateCDR] => 1 ) [2025-04-25 21:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:41:06' and `end` < '2025-04-25 21:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:41:19] Production.INFO: count ==2332 [2025-04-25 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:41:06 - End Time 2025-04-25 21:41:06 [2025-04-25 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989753', 'tblTempUsageDetail_20' ) start [2025-04-25 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989753', 'tblTempUsageDetail_20' ) end [2025-04-25 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989753', 'tblTempVendorCDR_20' ) start [2025-04-25 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989753', 'tblTempVendorCDR_20' ) end [2025-04-25 21:41:19] Production.INFO: ProcessCDR(1,14989753,1,1,2) [2025-04-25 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989753', 'tblTempUsageDetail_20' ) start [2025-04-25 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989753', 'tblTempUsageDetail_20' ) end [2025-04-25 21:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:41:24] Production.INFO: ==7749== Releasing lock... [2025-04-25 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:41:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:42:05 [end_date_ymd] => 2025-04-25 21:42:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:42:05' and `end` < '2025-04-25 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-04-25 21:42:18] Production.INFO: count ==2331 [2025-04-25 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:42:05 - End Time 2025-04-25 21:42:05 [2025-04-25 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989758', 'tblTempUsageDetail_20' ) start [2025-04-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989758', 'tblTempUsageDetail_20' ) end [2025-04-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989758', 'tblTempVendorCDR_20' ) start [2025-04-25 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989758', 'tblTempVendorCDR_20' ) end [2025-04-25 21:42:19] Production.INFO: ProcessCDR(1,14989758,1,1,2) [2025-04-25 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989758', 'tblTempUsageDetail_20' ) start [2025-04-25 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989758', 'tblTempUsageDetail_20' ) end [2025-04-25 21:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:42:24] Production.INFO: ==7822== Releasing lock... [2025-04-25 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:42:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:43:05 [end_date_ymd] => 2025-04-25 21:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:43:05' and `end` < '2025-04-25 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-04-25 21:43:18] Production.INFO: count ==2328 [2025-04-25 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:43:05 - End Time 2025-04-25 21:43:05 [2025-04-25 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989763', 'tblTempUsageDetail_20' ) start [2025-04-25 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989763', 'tblTempUsageDetail_20' ) end [2025-04-25 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989763', 'tblTempVendorCDR_20' ) start [2025-04-25 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989763', 'tblTempVendorCDR_20' ) end [2025-04-25 21:43:19] Production.INFO: ProcessCDR(1,14989763,1,1,2) [2025-04-25 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989763', 'tblTempUsageDetail_20' ) start [2025-04-25 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989763', 'tblTempUsageDetail_20' ) end [2025-04-25 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:43:24] Production.INFO: ==7904== Releasing lock... [2025-04-25 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:43:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:44:05 [end_date_ymd] => 2025-04-25 21:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:44:05' and `end` < '2025-04-25 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-04-25 21:44:18] Production.INFO: count ==2329 [2025-04-25 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:44:05 - End Time 2025-04-25 21:44:05 [2025-04-25 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989768', 'tblTempUsageDetail_20' ) start [2025-04-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989768', 'tblTempUsageDetail_20' ) end [2025-04-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989768', 'tblTempVendorCDR_20' ) start [2025-04-25 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989768', 'tblTempVendorCDR_20' ) end [2025-04-25 21:44:18] Production.INFO: ProcessCDR(1,14989768,1,1,2) [2025-04-25 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989768', 'tblTempUsageDetail_20' ) start [2025-04-25 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989768', 'tblTempUsageDetail_20' ) end [2025-04-25 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:44:22] Production.INFO: ==7973== Releasing lock... [2025-04-25 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:44:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:45:05 [end_date_ymd] => 2025-04-25 21:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:45:05' and `end` < '2025-04-25 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-04-25 21:45:18] Production.INFO: count ==2321 [2025-04-25 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:45:05 - End Time 2025-04-25 21:45:05 [2025-04-25 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989773', 'tblTempUsageDetail_20' ) start [2025-04-25 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989773', 'tblTempUsageDetail_20' ) end [2025-04-25 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989773', 'tblTempVendorCDR_20' ) start [2025-04-25 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989773', 'tblTempVendorCDR_20' ) end [2025-04-25 21:45:19] Production.INFO: ProcessCDR(1,14989773,1,1,2) [2025-04-25 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989773', 'tblTempUsageDetail_20' ) start [2025-04-25 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989773', 'tblTempUsageDetail_20' ) end [2025-04-25 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:45:22] Production.INFO: ==8047== Releasing lock... [2025-04-25 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:45:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:46:05 [end_date_ymd] => 2025-04-25 21:46:05 [RateCDR] => 1 ) [2025-04-25 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:46:05' and `end` < '2025-04-25 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:46:17] Production.INFO: count ==2318 [2025-04-25 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:46:05 - End Time 2025-04-25 21:46:05 [2025-04-25 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989778', 'tblTempUsageDetail_20' ) start [2025-04-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989778', 'tblTempUsageDetail_20' ) end [2025-04-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989778', 'tblTempVendorCDR_20' ) start [2025-04-25 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989778', 'tblTempVendorCDR_20' ) end [2025-04-25 21:46:18] Production.INFO: ProcessCDR(1,14989778,1,1,2) [2025-04-25 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989778', 'tblTempUsageDetail_20' ) start [2025-04-25 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989778', 'tblTempUsageDetail_20' ) end [2025-04-25 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:46:22] Production.INFO: ==8119== Releasing lock... [2025-04-25 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:46:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:47:06 [end_date_ymd] => 2025-04-25 21:47:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:47:06' and `end` < '2025-04-25 21: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-04-25 21:47:18] Production.INFO: count ==2319 [2025-04-25 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:47:06 - End Time 2025-04-25 21:47:06 [2025-04-25 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989783', 'tblTempUsageDetail_20' ) start [2025-04-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989783', 'tblTempUsageDetail_20' ) end [2025-04-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989783', 'tblTempVendorCDR_20' ) start [2025-04-25 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989783', 'tblTempVendorCDR_20' ) end [2025-04-25 21:47:19] Production.INFO: ProcessCDR(1,14989783,1,1,2) [2025-04-25 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989783', 'tblTempUsageDetail_20' ) start [2025-04-25 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989783', 'tblTempUsageDetail_20' ) end [2025-04-25 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:47:23] Production.INFO: ==8195== Releasing lock... [2025-04-25 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:47:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-25 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:48:05 [end_date_ymd] => 2025-04-25 21:48:05 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:48:05' and `end` < '2025-04-25 21: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-04-25 21:48:17] Production.INFO: count ==2316 [2025-04-25 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:48:05 - End Time 2025-04-25 21:48:05 [2025-04-25 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989788', 'tblTempUsageDetail_20' ) start [2025-04-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989788', 'tblTempUsageDetail_20' ) end [2025-04-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989788', 'tblTempVendorCDR_20' ) start [2025-04-25 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989788', 'tblTempVendorCDR_20' ) end [2025-04-25 21:48:18] Production.INFO: ProcessCDR(1,14989788,1,1,2) [2025-04-25 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989788', 'tblTempUsageDetail_20' ) start [2025-04-25 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989788', 'tblTempUsageDetail_20' ) end [2025-04-25 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:48:23] Production.INFO: ==8271== Releasing lock... [2025-04-25 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:48:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-25 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:49:05 [end_date_ymd] => 2025-04-25 21:49:05 [RateCDR] => 1 ) [2025-04-25 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:49:05' and `end` < '2025-04-25 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:49:18] Production.INFO: count ==2306 [2025-04-25 21:49:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:49:05 - End Time 2025-04-25 21:49:05 [2025-04-25 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989793', 'tblTempUsageDetail_20' ) start [2025-04-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989793', 'tblTempUsageDetail_20' ) end [2025-04-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989793', 'tblTempVendorCDR_20' ) start [2025-04-25 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989793', 'tblTempVendorCDR_20' ) end [2025-04-25 21:49:19] Production.INFO: ProcessCDR(1,14989793,1,1,2) [2025-04-25 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989793', 'tblTempUsageDetail_20' ) start [2025-04-25 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989793', 'tblTempUsageDetail_20' ) end [2025-04-25 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:49:22] Production.INFO: ==8345== Releasing lock... [2025-04-25 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:49:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:50:05 [end_date_ymd] => 2025-04-25 21:50:05 [RateCDR] => 1 ) [2025-04-25 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:50:05' and `end` < '2025-04-25 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:50:18] Production.INFO: count ==2299 [2025-04-25 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:50:05 - End Time 2025-04-25 21:50:05 [2025-04-25 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989798', 'tblTempUsageDetail_20' ) start [2025-04-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989798', 'tblTempUsageDetail_20' ) end [2025-04-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989798', 'tblTempVendorCDR_20' ) start [2025-04-25 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989798', 'tblTempVendorCDR_20' ) end [2025-04-25 21:50:19] Production.INFO: ProcessCDR(1,14989798,1,1,2) [2025-04-25 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989798', 'tblTempUsageDetail_20' ) start [2025-04-25 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989798', 'tblTempUsageDetail_20' ) end [2025-04-25 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:50:22] Production.INFO: ==8420== Releasing lock... [2025-04-25 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:50:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-25 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:51:05 [end_date_ymd] => 2025-04-25 21:51:05 [RateCDR] => 1 ) [2025-04-25 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:51:05' and `end` < '2025-04-25 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:51:18] Production.INFO: count ==2254 [2025-04-25 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:51:05 - End Time 2025-04-25 21:51:05 [2025-04-25 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989804', 'tblTempUsageDetail_20' ) start [2025-04-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989804', 'tblTempUsageDetail_20' ) end [2025-04-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989804', 'tblTempVendorCDR_20' ) start [2025-04-25 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989804', 'tblTempVendorCDR_20' ) end [2025-04-25 21:51:19] Production.INFO: ProcessCDR(1,14989804,1,1,2) [2025-04-25 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989804', 'tblTempUsageDetail_20' ) start [2025-04-25 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989804', 'tblTempUsageDetail_20' ) end [2025-04-25 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:51:22] Production.INFO: ==8533== Releasing lock... [2025-04-25 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:51:22] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:52:05 [end_date_ymd] => 2025-04-25 21:52:05 [RateCDR] => 1 ) [2025-04-25 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:52:05' and `end` < '2025-04-25 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:52:18] Production.INFO: count ==2259 [2025-04-25 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:52:05 - End Time 2025-04-25 21:52:05 [2025-04-25 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989809', 'tblTempUsageDetail_20' ) start [2025-04-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989809', 'tblTempUsageDetail_20' ) end [2025-04-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989809', 'tblTempVendorCDR_20' ) start [2025-04-25 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989809', 'tblTempVendorCDR_20' ) end [2025-04-25 21:52:18] Production.INFO: ProcessCDR(1,14989809,1,1,2) [2025-04-25 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989809', 'tblTempUsageDetail_20' ) start [2025-04-25 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989809', 'tblTempUsageDetail_20' ) end [2025-04-25 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:52:22] Production.INFO: ==8607== Releasing lock... [2025-04-25 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-25 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:53:05 [end_date_ymd] => 2025-04-25 21:53:05 [RateCDR] => 1 ) [2025-04-25 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:53:05' and `end` < '2025-04-25 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:53:18] Production.INFO: count ==2252 [2025-04-25 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:53:05 - End Time 2025-04-25 21:53:05 [2025-04-25 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989814', 'tblTempUsageDetail_20' ) start [2025-04-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989814', 'tblTempUsageDetail_20' ) end [2025-04-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989814', 'tblTempVendorCDR_20' ) start [2025-04-25 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989814', 'tblTempVendorCDR_20' ) end [2025-04-25 21:53:19] Production.INFO: ProcessCDR(1,14989814,1,1,2) [2025-04-25 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989814', 'tblTempUsageDetail_20' ) start [2025-04-25 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989814', 'tblTempUsageDetail_20' ) end [2025-04-25 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:53:22] Production.INFO: ==8682== Releasing lock... [2025-04-25 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:53:22] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:54:05 [end_date_ymd] => 2025-04-25 21:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 18:54:05' and `end` < '2025-04-25 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-04-25 21:54:19] Production.INFO: count ==2245 [2025-04-25 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:54:05 - End Time 2025-04-25 21:54:05 [2025-04-25 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989819', 'tblTempUsageDetail_20' ) start [2025-04-25 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989819', 'tblTempUsageDetail_20' ) end [2025-04-25 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989819', 'tblTempVendorCDR_20' ) start [2025-04-25 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989819', 'tblTempVendorCDR_20' ) end [2025-04-25 21:54:19] Production.INFO: ProcessCDR(1,14989819,1,1,2) [2025-04-25 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989819', 'tblTempUsageDetail_20' ) start [2025-04-25 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989819', 'tblTempUsageDetail_20' ) end [2025-04-25 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:54:23] Production.INFO: ==8755== Releasing lock... [2025-04-25 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:54:23] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:55:05 [end_date_ymd] => 2025-04-25 21:55:05 [RateCDR] => 1 ) [2025-04-25 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:55:05' and `end` < '2025-04-25 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:55:18] Production.INFO: count ==2245 [2025-04-25 21:55:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:55:05 - End Time 2025-04-25 21:55:05 [2025-04-25 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989824', 'tblTempUsageDetail_20' ) start [2025-04-25 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989824', 'tblTempUsageDetail_20' ) end [2025-04-25 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989824', 'tblTempVendorCDR_20' ) start [2025-04-25 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989824', 'tblTempVendorCDR_20' ) end [2025-04-25 21:55:19] Production.INFO: ProcessCDR(1,14989824,1,1,2) [2025-04-25 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989824', 'tblTempUsageDetail_20' ) start [2025-04-25 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989824', 'tblTempUsageDetail_20' ) end [2025-04-25 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:55:22] Production.INFO: ==8828== Releasing lock... [2025-04-25 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:55:22] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:56:06 [end_date_ymd] => 2025-04-25 21:56:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:56:06' and `end` < '2025-04-25 21: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-04-25 21:56:19] Production.INFO: count ==2245 [2025-04-25 21:56:20] Production.ERROR: pbx CDR StartTime 2025-04-25 18:56:06 - End Time 2025-04-25 21:56:06 [2025-04-25 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989829', 'tblTempUsageDetail_20' ) start [2025-04-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989829', 'tblTempUsageDetail_20' ) end [2025-04-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989829', 'tblTempVendorCDR_20' ) start [2025-04-25 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989829', 'tblTempVendorCDR_20' ) end [2025-04-25 21:56:20] Production.INFO: ProcessCDR(1,14989829,1,1,2) [2025-04-25 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989829', 'tblTempUsageDetail_20' ) start [2025-04-25 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989829', 'tblTempUsageDetail_20' ) end [2025-04-25 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:56:23] Production.INFO: ==8904== Releasing lock... [2025-04-25 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:56:23] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:57:05 [end_date_ymd] => 2025-04-25 21:57:05 [RateCDR] => 1 ) [2025-04-25 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:57:05' and `end` < '2025-04-25 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:57:18] Production.INFO: count ==2242 [2025-04-25 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:57:05 - End Time 2025-04-25 21:57:05 [2025-04-25 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989834', 'tblTempUsageDetail_20' ) start [2025-04-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989834', 'tblTempUsageDetail_20' ) end [2025-04-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989834', 'tblTempVendorCDR_20' ) start [2025-04-25 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989834', 'tblTempVendorCDR_20' ) end [2025-04-25 21:57:18] Production.INFO: ProcessCDR(1,14989834,1,1,2) [2025-04-25 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989834', 'tblTempUsageDetail_20' ) start [2025-04-25 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989834', 'tblTempUsageDetail_20' ) end [2025-04-25 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:57:23] Production.INFO: ==8984== Releasing lock... [2025-04-25 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:57:23] Production.INFO: 45 MB #Memory Used# [2025-04-25 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:58:06 [end_date_ymd] => 2025-04-25 21:58:06 [RateCDR] => 1 ) [2025-04-25 21: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-04-25 18:58:06' and `end` < '2025-04-25 21: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-04-25 21:58:19] Production.INFO: count ==2238 [2025-04-25 21:58:19] Production.ERROR: pbx CDR StartTime 2025-04-25 18:58:06 - End Time 2025-04-25 21:58:06 [2025-04-25 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989839', 'tblTempUsageDetail_20' ) start [2025-04-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989839', 'tblTempUsageDetail_20' ) end [2025-04-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989839', 'tblTempVendorCDR_20' ) start [2025-04-25 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989839', 'tblTempVendorCDR_20' ) end [2025-04-25 21:58:19] Production.INFO: ProcessCDR(1,14989839,1,1,2) [2025-04-25 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989839', 'tblTempUsageDetail_20' ) start [2025-04-25 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989839', 'tblTempUsageDetail_20' ) end [2025-04-25 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:58:24] Production.INFO: ==9059== Releasing lock... [2025-04-25 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:58:24] Production.INFO: 45.5 MB #Memory Used# [2025-04-25 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 18:59:05 [end_date_ymd] => 2025-04-25 21:59:05 [RateCDR] => 1 ) [2025-04-25 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 18:59:05' and `end` < '2025-04-25 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 21:59:18] Production.INFO: count ==2234 [2025-04-25 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 18:59:05 - End Time 2025-04-25 21:59:05 [2025-04-25 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989844', 'tblTempUsageDetail_20' ) start [2025-04-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989844', 'tblTempUsageDetail_20' ) end [2025-04-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989844', 'tblTempVendorCDR_20' ) start [2025-04-25 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989844', 'tblTempVendorCDR_20' ) end [2025-04-25 21:59:18] Production.INFO: ProcessCDR(1,14989844,1,1,2) [2025-04-25 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989844', 'tblTempUsageDetail_20' ) start [2025-04-25 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989844', 'tblTempUsageDetail_20' ) end [2025-04-25 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 21:59:22] Production.INFO: ==9130== Releasing lock... [2025-04-25 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 21:59:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:00:06 [end_date_ymd] => 2025-04-25 22:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:00:06' and `end` < '2025-04-25 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-04-25 22:00:19] Production.INFO: count ==2232 [2025-04-25 22:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 19:00:06 - End Time 2025-04-25 22:00:06 [2025-04-25 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989850', 'tblTempUsageDetail_20' ) start [2025-04-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989850', 'tblTempUsageDetail_20' ) end [2025-04-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989850', 'tblTempVendorCDR_20' ) start [2025-04-25 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989850', 'tblTempVendorCDR_20' ) end [2025-04-25 22:00:20] Production.INFO: ProcessCDR(1,14989850,1,1,2) [2025-04-25 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989850', 'tblTempUsageDetail_20' ) start [2025-04-25 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989850', 'tblTempUsageDetail_20' ) end [2025-04-25 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:00:23] Production.INFO: ==9204== Releasing lock... [2025-04-25 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:00:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:01:05 [end_date_ymd] => 2025-04-25 22:01:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:01:05' and `end` < '2025-04-25 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-04-25 22:01:18] Production.INFO: count ==2200 [2025-04-25 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:01:05 - End Time 2025-04-25 22:01:05 [2025-04-25 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989855', 'tblTempUsageDetail_20' ) start [2025-04-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989855', 'tblTempUsageDetail_20' ) end [2025-04-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989855', 'tblTempVendorCDR_20' ) start [2025-04-25 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989855', 'tblTempVendorCDR_20' ) end [2025-04-25 22:01:19] Production.INFO: ProcessCDR(1,14989855,1,1,2) [2025-04-25 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989855', 'tblTempUsageDetail_20' ) start [2025-04-25 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989855', 'tblTempUsageDetail_20' ) end [2025-04-25 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:01:22] Production.INFO: ==9291== Releasing lock... [2025-04-25 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:01:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:02:05 [end_date_ymd] => 2025-04-25 22:02:05 [RateCDR] => 1 ) [2025-04-25 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:02:05' and `end` < '2025-04-25 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:02:18] Production.INFO: count ==2204 [2025-04-25 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:02:05 - End Time 2025-04-25 22:02:05 [2025-04-25 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989860', 'tblTempUsageDetail_20' ) start [2025-04-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989860', 'tblTempUsageDetail_20' ) end [2025-04-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989860', 'tblTempVendorCDR_20' ) start [2025-04-25 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989860', 'tblTempVendorCDR_20' ) end [2025-04-25 22:02:19] Production.INFO: ProcessCDR(1,14989860,1,1,2) [2025-04-25 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989860', 'tblTempUsageDetail_20' ) start [2025-04-25 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989860', 'tblTempUsageDetail_20' ) end [2025-04-25 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:02:22] Production.INFO: ==9367== Releasing lock... [2025-04-25 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:03:04 [end_date_ymd] => 2025-04-25 22:03:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:03:04' and `end` < '2025-04-25 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:03:17] Production.INFO: count ==2195 [2025-04-25 22:03:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:03:04 - End Time 2025-04-25 22:03:04 [2025-04-25 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989865', 'tblTempUsageDetail_20' ) start [2025-04-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989865', 'tblTempUsageDetail_20' ) end [2025-04-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989865', 'tblTempVendorCDR_20' ) start [2025-04-25 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989865', 'tblTempVendorCDR_20' ) end [2025-04-25 22:03:18] Production.INFO: ProcessCDR(1,14989865,1,1,2) [2025-04-25 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989865', 'tblTempUsageDetail_20' ) start [2025-04-25 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989865', 'tblTempUsageDetail_20' ) end [2025-04-25 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:03:21] Production.INFO: ==9440== Releasing lock... [2025-04-25 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:03:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:04:06 [end_date_ymd] => 2025-04-25 22:04:06 [RateCDR] => 1 ) [2025-04-25 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:04:06' and `end` < '2025-04-25 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:04:19] Production.INFO: count ==2191 [2025-04-25 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:04:06 - End Time 2025-04-25 22:04:06 [2025-04-25 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989870', 'tblTempUsageDetail_20' ) start [2025-04-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989870', 'tblTempUsageDetail_20' ) end [2025-04-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989870', 'tblTempVendorCDR_20' ) start [2025-04-25 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989870', 'tblTempVendorCDR_20' ) end [2025-04-25 22:04:19] Production.INFO: ProcessCDR(1,14989870,1,1,2) [2025-04-25 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989870', 'tblTempUsageDetail_20' ) start [2025-04-25 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989870', 'tblTempUsageDetail_20' ) end [2025-04-25 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:04:23] Production.INFO: ==9514== Releasing lock... [2025-04-25 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:04:23] Production.INFO: 45 MB #Memory Used# [2025-04-25 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:05:06 [end_date_ymd] => 2025-04-25 22:05:06 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:05:06' and `end` < '2025-04-25 22: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-04-25 22:05:19] Production.INFO: count ==2185 [2025-04-25 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:05:06 - End Time 2025-04-25 22:05:06 [2025-04-25 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989875', 'tblTempUsageDetail_20' ) start [2025-04-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989875', 'tblTempUsageDetail_20' ) end [2025-04-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989875', 'tblTempVendorCDR_20' ) start [2025-04-25 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989875', 'tblTempVendorCDR_20' ) end [2025-04-25 22:05:19] Production.INFO: ProcessCDR(1,14989875,1,1,2) [2025-04-25 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989875', 'tblTempUsageDetail_20' ) start [2025-04-25 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989875', 'tblTempUsageDetail_20' ) end [2025-04-25 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:05:23] Production.INFO: ==9586== Releasing lock... [2025-04-25 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:05:23] Production.INFO: 45 MB #Memory Used# [2025-04-25 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:06:05 [end_date_ymd] => 2025-04-25 22:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:06:05' and `end` < '2025-04-25 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-04-25 22:06:18] Production.INFO: count ==2185 [2025-04-25 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:06:05 - End Time 2025-04-25 22:06:05 [2025-04-25 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989880', 'tblTempUsageDetail_20' ) start [2025-04-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989880', 'tblTempUsageDetail_20' ) end [2025-04-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989880', 'tblTempVendorCDR_20' ) start [2025-04-25 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989880', 'tblTempVendorCDR_20' ) end [2025-04-25 22:06:18] Production.INFO: ProcessCDR(1,14989880,1,1,2) [2025-04-25 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989880', 'tblTempUsageDetail_20' ) start [2025-04-25 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989880', 'tblTempUsageDetail_20' ) end [2025-04-25 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:06:23] Production.INFO: ==9657== Releasing lock... [2025-04-25 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:06:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:07:05 [end_date_ymd] => 2025-04-25 22:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:07:05' and `end` < '2025-04-25 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-04-25 22:07:18] Production.INFO: count ==2186 [2025-04-25 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:07:05 - End Time 2025-04-25 22:07:05 [2025-04-25 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989885', 'tblTempUsageDetail_20' ) start [2025-04-25 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989885', 'tblTempUsageDetail_20' ) end [2025-04-25 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989885', 'tblTempVendorCDR_20' ) start [2025-04-25 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989885', 'tblTempVendorCDR_20' ) end [2025-04-25 22:07:19] Production.INFO: ProcessCDR(1,14989885,1,1,2) [2025-04-25 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989885', 'tblTempUsageDetail_20' ) start [2025-04-25 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989885', 'tblTempUsageDetail_20' ) end [2025-04-25 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:07:22] Production.INFO: ==9769== Releasing lock... [2025-04-25 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:07:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:08:05 [end_date_ymd] => 2025-04-25 22:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:08:05' and `end` < '2025-04-25 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-04-25 22:08:18] Production.INFO: count ==2182 [2025-04-25 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:08:05 - End Time 2025-04-25 22:08:05 [2025-04-25 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989890', 'tblTempUsageDetail_20' ) start [2025-04-25 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989890', 'tblTempUsageDetail_20' ) end [2025-04-25 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989890', 'tblTempVendorCDR_20' ) start [2025-04-25 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989890', 'tblTempVendorCDR_20' ) end [2025-04-25 22:08:19] Production.INFO: ProcessCDR(1,14989890,1,1,2) [2025-04-25 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989890', 'tblTempUsageDetail_20' ) start [2025-04-25 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989890', 'tblTempUsageDetail_20' ) end [2025-04-25 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:08:22] Production.INFO: ==9839== Releasing lock... [2025-04-25 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:08:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:09:05 [end_date_ymd] => 2025-04-25 22:09:05 [RateCDR] => 1 ) [2025-04-25 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:09:05' and `end` < '2025-04-25 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:09:18] Production.INFO: count ==2176 [2025-04-25 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:09:05 - End Time 2025-04-25 22:09:05 [2025-04-25 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989895', 'tblTempUsageDetail_20' ) start [2025-04-25 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989895', 'tblTempUsageDetail_20' ) end [2025-04-25 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989895', 'tblTempVendorCDR_20' ) start [2025-04-25 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989895', 'tblTempVendorCDR_20' ) end [2025-04-25 22:09:19] Production.INFO: ProcessCDR(1,14989895,1,1,2) [2025-04-25 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989895', 'tblTempUsageDetail_20' ) start [2025-04-25 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989895', 'tblTempUsageDetail_20' ) end [2025-04-25 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:09:22] Production.INFO: ==9913== Releasing lock... [2025-04-25 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:09:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:10:06 [end_date_ymd] => 2025-04-25 22:10:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:10:06' and `end` < '2025-04-25 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-04-25 22:10:19] Production.INFO: count ==2172 [2025-04-25 22:10:20] Production.ERROR: pbx CDR StartTime 2025-04-25 19:10:06 - End Time 2025-04-25 22:10:06 [2025-04-25 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989901', 'tblTempUsageDetail_20' ) start [2025-04-25 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989901', 'tblTempUsageDetail_20' ) end [2025-04-25 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989901', 'tblTempVendorCDR_20' ) start [2025-04-25 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989901', 'tblTempVendorCDR_20' ) end [2025-04-25 22:10:20] Production.INFO: ProcessCDR(1,14989901,1,1,2) [2025-04-25 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989901', 'tblTempUsageDetail_20' ) start [2025-04-25 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989901', 'tblTempUsageDetail_20' ) end [2025-04-25 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:10:23] Production.INFO: ==9990== Releasing lock... [2025-04-25 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:10:23] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:11:05 [end_date_ymd] => 2025-04-25 22:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:11:05' and `end` < '2025-04-25 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-04-25 22:11:18] Production.INFO: count ==2138 [2025-04-25 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:11:05 - End Time 2025-04-25 22:11:05 [2025-04-25 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989906', 'tblTempUsageDetail_20' ) start [2025-04-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989906', 'tblTempUsageDetail_20' ) end [2025-04-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989906', 'tblTempVendorCDR_20' ) start [2025-04-25 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989906', 'tblTempVendorCDR_20' ) end [2025-04-25 22:11:19] Production.INFO: ProcessCDR(1,14989906,1,1,2) [2025-04-25 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989906', 'tblTempUsageDetail_20' ) start [2025-04-25 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989906', 'tblTempUsageDetail_20' ) end [2025-04-25 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:11:22] Production.INFO: ==10071== Releasing lock... [2025-04-25 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:11:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:12:05 [end_date_ymd] => 2025-04-25 22:12:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:12:05' and `end` < '2025-04-25 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-04-25 22:12:17] Production.INFO: count ==2146 [2025-04-25 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:12:05 - End Time 2025-04-25 22:12:05 [2025-04-25 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989911', 'tblTempUsageDetail_20' ) start [2025-04-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989911', 'tblTempUsageDetail_20' ) end [2025-04-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989911', 'tblTempVendorCDR_20' ) start [2025-04-25 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989911', 'tblTempVendorCDR_20' ) end [2025-04-25 22:12:18] Production.INFO: ProcessCDR(1,14989911,1,1,2) [2025-04-25 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989911', 'tblTempUsageDetail_20' ) start [2025-04-25 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989911', 'tblTempUsageDetail_20' ) end [2025-04-25 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:12:23] Production.INFO: ==10143== Releasing lock... [2025-04-25 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:12:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-25 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:13:05 [end_date_ymd] => 2025-04-25 22:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:13:05' and `end` < '2025-04-25 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-04-25 22:13:18] Production.INFO: count ==2148 [2025-04-25 22:13:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:13:05 - End Time 2025-04-25 22:13:05 [2025-04-25 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989916', 'tblTempUsageDetail_20' ) start [2025-04-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989916', 'tblTempUsageDetail_20' ) end [2025-04-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989916', 'tblTempVendorCDR_20' ) start [2025-04-25 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989916', 'tblTempVendorCDR_20' ) end [2025-04-25 22:13:19] Production.INFO: ProcessCDR(1,14989916,1,1,2) [2025-04-25 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989916', 'tblTempUsageDetail_20' ) start [2025-04-25 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989916', 'tblTempUsageDetail_20' ) end [2025-04-25 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:13:22] Production.INFO: ==10222== Releasing lock... [2025-04-25 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:13:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:14:05 [end_date_ymd] => 2025-04-25 22:14:05 [RateCDR] => 1 ) [2025-04-25 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:14:05' and `end` < '2025-04-25 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:14:18] Production.INFO: count ==2145 [2025-04-25 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:14:05 - End Time 2025-04-25 22:14:05 [2025-04-25 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989921', 'tblTempUsageDetail_20' ) start [2025-04-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989921', 'tblTempUsageDetail_20' ) end [2025-04-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989921', 'tblTempVendorCDR_20' ) start [2025-04-25 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989921', 'tblTempVendorCDR_20' ) end [2025-04-25 22:14:18] Production.INFO: ProcessCDR(1,14989921,1,1,2) [2025-04-25 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989921', 'tblTempUsageDetail_20' ) start [2025-04-25 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989921', 'tblTempUsageDetail_20' ) end [2025-04-25 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:14:22] Production.INFO: ==10298== Releasing lock... [2025-04-25 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:14:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-25 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:15:05 [end_date_ymd] => 2025-04-25 22:15:05 [RateCDR] => 1 ) [2025-04-25 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:15:05' and `end` < '2025-04-25 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:15:18] Production.INFO: count ==2144 [2025-04-25 22:15:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:15:05 - End Time 2025-04-25 22:15:05 [2025-04-25 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989926', 'tblTempUsageDetail_20' ) start [2025-04-25 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989926', 'tblTempUsageDetail_20' ) end [2025-04-25 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989926', 'tblTempVendorCDR_20' ) start [2025-04-25 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989926', 'tblTempVendorCDR_20' ) end [2025-04-25 22:15:19] Production.INFO: ProcessCDR(1,14989926,1,1,2) [2025-04-25 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989926', 'tblTempUsageDetail_20' ) start [2025-04-25 22:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989926', 'tblTempUsageDetail_20' ) end [2025-04-25 22:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:15:24] Production.INFO: ==10372== Releasing lock... [2025-04-25 22:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:15:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:16:05 [end_date_ymd] => 2025-04-25 22:16:05 [RateCDR] => 1 ) [2025-04-25 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:16:05' and `end` < '2025-04-25 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:16:18] Production.INFO: count ==2145 [2025-04-25 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:16:05 - End Time 2025-04-25 22:16:05 [2025-04-25 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989931', 'tblTempUsageDetail_20' ) start [2025-04-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989931', 'tblTempUsageDetail_20' ) end [2025-04-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989931', 'tblTempVendorCDR_20' ) start [2025-04-25 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989931', 'tblTempVendorCDR_20' ) end [2025-04-25 22:16:19] Production.INFO: ProcessCDR(1,14989931,1,1,2) [2025-04-25 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989931', 'tblTempUsageDetail_20' ) start [2025-04-25 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989931', 'tblTempUsageDetail_20' ) end [2025-04-25 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:16:22] Production.INFO: ==10445== Releasing lock... [2025-04-25 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:16:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:17:05 [end_date_ymd] => 2025-04-25 22:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:17:05' and `end` < '2025-04-25 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-04-25 22:17:18] Production.INFO: count ==2144 [2025-04-25 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:17:05 - End Time 2025-04-25 22:17:05 [2025-04-25 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989936', 'tblTempUsageDetail_20' ) start [2025-04-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989936', 'tblTempUsageDetail_20' ) end [2025-04-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989936', 'tblTempVendorCDR_20' ) start [2025-04-25 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989936', 'tblTempVendorCDR_20' ) end [2025-04-25 22:17:19] Production.INFO: ProcessCDR(1,14989936,1,1,2) [2025-04-25 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989936', 'tblTempUsageDetail_20' ) start [2025-04-25 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989936', 'tblTempUsageDetail_20' ) end [2025-04-25 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:17:22] Production.INFO: ==10518== Releasing lock... [2025-04-25 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:17:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-25 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:18:06 [end_date_ymd] => 2025-04-25 22:18:06 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:18:06' and `end` < '2025-04-25 22: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-04-25 22:18:19] Production.INFO: count ==2141 [2025-04-25 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:18:06 - End Time 2025-04-25 22:18:06 [2025-04-25 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989941', 'tblTempUsageDetail_20' ) start [2025-04-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989941', 'tblTempUsageDetail_20' ) end [2025-04-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989941', 'tblTempVendorCDR_20' ) start [2025-04-25 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989941', 'tblTempVendorCDR_20' ) end [2025-04-25 22:18:19] Production.INFO: ProcessCDR(1,14989941,1,1,2) [2025-04-25 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989941', 'tblTempUsageDetail_20' ) start [2025-04-25 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989941', 'tblTempUsageDetail_20' ) end [2025-04-25 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:18:23] Production.INFO: ==10589== Releasing lock... [2025-04-25 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:18:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-25 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:19:05 [end_date_ymd] => 2025-04-25 22:19:05 [RateCDR] => 1 ) [2025-04-25 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:19:05' and `end` < '2025-04-25 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:19:18] Production.INFO: count ==2138 [2025-04-25 22:19:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:19:05 - End Time 2025-04-25 22:19:05 [2025-04-25 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989946', 'tblTempUsageDetail_20' ) start [2025-04-25 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989946', 'tblTempUsageDetail_20' ) end [2025-04-25 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989946', 'tblTempVendorCDR_20' ) start [2025-04-25 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989946', 'tblTempVendorCDR_20' ) end [2025-04-25 22:19:19] Production.INFO: ProcessCDR(1,14989946,1,1,2) [2025-04-25 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989946', 'tblTempUsageDetail_20' ) start [2025-04-25 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989946', 'tblTempUsageDetail_20' ) end [2025-04-25 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:19:22] Production.INFO: ==10662== Releasing lock... [2025-04-25 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:19:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-25 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:20:06 [end_date_ymd] => 2025-04-25 22:20:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:20:06' and `end` < '2025-04-25 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-04-25 22:20:19] Production.INFO: count ==2128 [2025-04-25 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:20:06 - End Time 2025-04-25 22:20:06 [2025-04-25 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989952', 'tblTempUsageDetail_20' ) start [2025-04-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989952', 'tblTempUsageDetail_20' ) end [2025-04-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989952', 'tblTempVendorCDR_20' ) start [2025-04-25 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989952', 'tblTempVendorCDR_20' ) end [2025-04-25 22:20:19] Production.INFO: ProcessCDR(1,14989952,1,1,2) [2025-04-25 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989952', 'tblTempUsageDetail_20' ) start [2025-04-25 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989952', 'tblTempUsageDetail_20' ) end [2025-04-25 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:20:23] Production.INFO: ==10738== Releasing lock... [2025-04-25 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:20:23] Production.INFO: 44 MB #Memory Used# [2025-04-25 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:21:05 [end_date_ymd] => 2025-04-25 22:21:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:21:05' and `end` < '2025-04-25 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-04-25 22:21:18] Production.INFO: count ==2085 [2025-04-25 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:21:05 - End Time 2025-04-25 22:21:05 [2025-04-25 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989957', 'tblTempUsageDetail_20' ) start [2025-04-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989957', 'tblTempUsageDetail_20' ) end [2025-04-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989957', 'tblTempVendorCDR_20' ) start [2025-04-25 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989957', 'tblTempVendorCDR_20' ) end [2025-04-25 22:21:18] Production.INFO: ProcessCDR(1,14989957,1,1,2) [2025-04-25 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989957', 'tblTempUsageDetail_20' ) start [2025-04-25 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989957', 'tblTempUsageDetail_20' ) end [2025-04-25 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:21:22] Production.INFO: ==10814== Releasing lock... [2025-04-25 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:21:22] Production.INFO: 44 MB #Memory Used# [2025-04-25 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:22:05 [end_date_ymd] => 2025-04-25 22:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:22:05' and `end` < '2025-04-25 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-04-25 22:22:18] Production.INFO: count ==2085 [2025-04-25 22:22:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:22:05 - End Time 2025-04-25 22:22:05 [2025-04-25 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989962', 'tblTempUsageDetail_20' ) start [2025-04-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989962', 'tblTempUsageDetail_20' ) end [2025-04-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989962', 'tblTempVendorCDR_20' ) start [2025-04-25 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989962', 'tblTempVendorCDR_20' ) end [2025-04-25 22:22:19] Production.INFO: ProcessCDR(1,14989962,1,1,2) [2025-04-25 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989962', 'tblTempUsageDetail_20' ) start [2025-04-25 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989962', 'tblTempUsageDetail_20' ) end [2025-04-25 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:22:22] Production.INFO: ==10923== Releasing lock... [2025-04-25 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:22:22] Production.INFO: 44 MB #Memory Used# [2025-04-25 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:23:05 [end_date_ymd] => 2025-04-25 22:23:05 [RateCDR] => 1 ) [2025-04-25 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:23:05' and `end` < '2025-04-25 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:23:18] Production.INFO: count ==2083 [2025-04-25 22:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:23:05 - End Time 2025-04-25 22:23:05 [2025-04-25 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989967', 'tblTempUsageDetail_20' ) start [2025-04-25 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989967', 'tblTempUsageDetail_20' ) end [2025-04-25 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989967', 'tblTempVendorCDR_20' ) start [2025-04-25 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989967', 'tblTempVendorCDR_20' ) end [2025-04-25 22:23:19] Production.INFO: ProcessCDR(1,14989967,1,1,2) [2025-04-25 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989967', 'tblTempUsageDetail_20' ) start [2025-04-25 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989967', 'tblTempUsageDetail_20' ) end [2025-04-25 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:23:22] Production.INFO: ==10997== Releasing lock... [2025-04-25 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:23:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:24:05 [end_date_ymd] => 2025-04-25 22:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:24:05' and `end` < '2025-04-25 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-04-25 22:24:18] Production.INFO: count ==2079 [2025-04-25 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:24:05 - End Time 2025-04-25 22:24:05 [2025-04-25 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989972', 'tblTempUsageDetail_20' ) start [2025-04-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989972', 'tblTempUsageDetail_20' ) end [2025-04-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989972', 'tblTempVendorCDR_20' ) start [2025-04-25 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989972', 'tblTempVendorCDR_20' ) end [2025-04-25 22:24:18] Production.INFO: ProcessCDR(1,14989972,1,1,2) [2025-04-25 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989972', 'tblTempUsageDetail_20' ) start [2025-04-25 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989972', 'tblTempUsageDetail_20' ) end [2025-04-25 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:24:23] Production.INFO: ==11078== Releasing lock... [2025-04-25 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:24:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:25:05 [end_date_ymd] => 2025-04-25 22:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:25:05' and `end` < '2025-04-25 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-04-25 22:25:18] Production.INFO: count ==2074 [2025-04-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:25:05 - End Time 2025-04-25 22:25:05 [2025-04-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989977', 'tblTempUsageDetail_20' ) start [2025-04-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989977', 'tblTempUsageDetail_20' ) end [2025-04-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989977', 'tblTempVendorCDR_20' ) start [2025-04-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989977', 'tblTempVendorCDR_20' ) end [2025-04-25 22:25:18] Production.INFO: ProcessCDR(1,14989977,1,1,2) [2025-04-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989977', 'tblTempUsageDetail_20' ) start [2025-04-25 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989977', 'tblTempUsageDetail_20' ) end [2025-04-25 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:25:22] Production.INFO: ==11151== Releasing lock... [2025-04-25 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:25:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:26:04 [end_date_ymd] => 2025-04-25 22:26:04 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:26:04' and `end` < '2025-04-25 22: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-04-25 22:26:17] Production.INFO: count ==2076 [2025-04-25 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:26:04 - End Time 2025-04-25 22:26:04 [2025-04-25 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989982', 'tblTempUsageDetail_20' ) start [2025-04-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989982', 'tblTempUsageDetail_20' ) end [2025-04-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989982', 'tblTempVendorCDR_20' ) start [2025-04-25 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989982', 'tblTempVendorCDR_20' ) end [2025-04-25 22:26:18] Production.INFO: ProcessCDR(1,14989982,1,1,2) [2025-04-25 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989982', 'tblTempUsageDetail_20' ) start [2025-04-25 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989982', 'tblTempUsageDetail_20' ) end [2025-04-25 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:26:23] Production.INFO: ==11231== Releasing lock... [2025-04-25 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:26:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:27:05 [end_date_ymd] => 2025-04-25 22:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:27:05' and `end` < '2025-04-25 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-04-25 22:27:18] Production.INFO: count ==2075 [2025-04-25 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:27:05 - End Time 2025-04-25 22:27:05 [2025-04-25 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989987', 'tblTempUsageDetail_20' ) start [2025-04-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989987', 'tblTempUsageDetail_20' ) end [2025-04-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989987', 'tblTempVendorCDR_20' ) start [2025-04-25 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989987', 'tblTempVendorCDR_20' ) end [2025-04-25 22:27:18] Production.INFO: ProcessCDR(1,14989987,1,1,2) [2025-04-25 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989987', 'tblTempUsageDetail_20' ) start [2025-04-25 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989987', 'tblTempUsageDetail_20' ) end [2025-04-25 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:27:22] Production.INFO: ==11302== Releasing lock... [2025-04-25 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:27:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:28:04 [end_date_ymd] => 2025-04-25 22:28:04 [RateCDR] => 1 ) [2025-04-25 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:28:04' and `end` < '2025-04-25 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:28:17] Production.INFO: count ==2070 [2025-04-25 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:28:04 - End Time 2025-04-25 22:28:04 [2025-04-25 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989992', 'tblTempUsageDetail_20' ) start [2025-04-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989992', 'tblTempUsageDetail_20' ) end [2025-04-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989992', 'tblTempVendorCDR_20' ) start [2025-04-25 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989992', 'tblTempVendorCDR_20' ) end [2025-04-25 22:28:18] Production.INFO: ProcessCDR(1,14989992,1,1,2) [2025-04-25 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989992', 'tblTempUsageDetail_20' ) start [2025-04-25 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989992', 'tblTempUsageDetail_20' ) end [2025-04-25 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:28:21] Production.INFO: ==11378== Releasing lock... [2025-04-25 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:28:21] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:29:05 [end_date_ymd] => 2025-04-25 22:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:29:05' and `end` < '2025-04-25 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-04-25 22:29:18] Production.INFO: count ==2070 [2025-04-25 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:29:05 - End Time 2025-04-25 22:29:05 [2025-04-25 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989997', 'tblTempUsageDetail_20' ) start [2025-04-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14989997', 'tblTempUsageDetail_20' ) end [2025-04-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989997', 'tblTempVendorCDR_20' ) start [2025-04-25 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14989997', 'tblTempVendorCDR_20' ) end [2025-04-25 22:29:19] Production.INFO: ProcessCDR(1,14989997,1,1,2) [2025-04-25 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14989997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14989997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14989997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14989997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989997', 'tblTempUsageDetail_20' ) start [2025-04-25 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14989997', 'tblTempUsageDetail_20' ) end [2025-04-25 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:29:22] Production.INFO: ==11451== Releasing lock... [2025-04-25 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:29:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-25 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:30:06 [end_date_ymd] => 2025-04-25 22:30:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:30:06' and `end` < '2025-04-25 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-04-25 22:30:19] Production.INFO: count ==2061 [2025-04-25 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:30:06 - End Time 2025-04-25 22:30:06 [2025-04-25 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990003', 'tblTempUsageDetail_20' ) start [2025-04-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990003', 'tblTempUsageDetail_20' ) end [2025-04-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990003', 'tblTempVendorCDR_20' ) start [2025-04-25 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990003', 'tblTempVendorCDR_20' ) end [2025-04-25 22:30:19] Production.INFO: ProcessCDR(1,14990003,1,1,2) [2025-04-25 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990003', 'tblTempUsageDetail_20' ) start [2025-04-25 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990003', 'tblTempUsageDetail_20' ) end [2025-04-25 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:30:23] Production.INFO: ==11526== Releasing lock... [2025-04-25 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:30:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-25 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:31:05 [end_date_ymd] => 2025-04-25 22:31:05 [RateCDR] => 1 ) [2025-04-25 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:31:05' and `end` < '2025-04-25 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:31:18] Production.INFO: count ==2017 [2025-04-25 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:31:05 - End Time 2025-04-25 22:31:05 [2025-04-25 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990008', 'tblTempUsageDetail_20' ) start [2025-04-25 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990008', 'tblTempUsageDetail_20' ) end [2025-04-25 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990008', 'tblTempVendorCDR_20' ) start [2025-04-25 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990008', 'tblTempVendorCDR_20' ) end [2025-04-25 22:31:19] Production.INFO: ProcessCDR(1,14990008,1,1,2) [2025-04-25 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990008', 'tblTempUsageDetail_20' ) start [2025-04-25 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990008', 'tblTempUsageDetail_20' ) end [2025-04-25 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:31:22] Production.INFO: ==11604== Releasing lock... [2025-04-25 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:31:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:32:05 [end_date_ymd] => 2025-04-25 22:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:32:05' and `end` < '2025-04-25 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-04-25 22:32:18] Production.INFO: count ==2003 [2025-04-25 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:32:05 - End Time 2025-04-25 22:32:05 [2025-04-25 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990013', 'tblTempUsageDetail_20' ) start [2025-04-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990013', 'tblTempUsageDetail_20' ) end [2025-04-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990013', 'tblTempVendorCDR_20' ) start [2025-04-25 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990013', 'tblTempVendorCDR_20' ) end [2025-04-25 22:32:19] Production.INFO: ProcessCDR(1,14990013,1,1,2) [2025-04-25 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990013', 'tblTempUsageDetail_20' ) start [2025-04-25 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990013', 'tblTempUsageDetail_20' ) end [2025-04-25 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:32:24] Production.INFO: ==11681== Releasing lock... [2025-04-25 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:32:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:33:04 [end_date_ymd] => 2025-04-25 22:33:04 [RateCDR] => 1 ) [2025-04-25 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:33:04' and `end` < '2025-04-25 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:33:17] Production.INFO: count ==1992 [2025-04-25 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:33:04 - End Time 2025-04-25 22:33:04 [2025-04-25 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990018', 'tblTempUsageDetail_20' ) start [2025-04-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990018', 'tblTempUsageDetail_20' ) end [2025-04-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990018', 'tblTempVendorCDR_20' ) start [2025-04-25 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990018', 'tblTempVendorCDR_20' ) end [2025-04-25 22:33:18] Production.INFO: ProcessCDR(1,14990018,1,1,2) [2025-04-25 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990018', 'tblTempUsageDetail_20' ) start [2025-04-25 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990018', 'tblTempUsageDetail_20' ) end [2025-04-25 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:33:23] Production.INFO: ==11753== Releasing lock... [2025-04-25 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:33:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:34:05 [end_date_ymd] => 2025-04-25 22:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:34:05' and `end` < '2025-04-25 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-04-25 22:34:18] Production.INFO: count ==1990 [2025-04-25 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:34:05 - End Time 2025-04-25 22:34:05 [2025-04-25 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990023', 'tblTempUsageDetail_20' ) start [2025-04-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990023', 'tblTempUsageDetail_20' ) end [2025-04-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990023', 'tblTempVendorCDR_20' ) start [2025-04-25 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990023', 'tblTempVendorCDR_20' ) end [2025-04-25 22:34:19] Production.INFO: ProcessCDR(1,14990023,1,1,2) [2025-04-25 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990023', 'tblTempUsageDetail_20' ) start [2025-04-25 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990023', 'tblTempUsageDetail_20' ) end [2025-04-25 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:34:22] Production.INFO: ==11828== Releasing lock... [2025-04-25 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:34:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:35:05 [end_date_ymd] => 2025-04-25 22:35:05 [RateCDR] => 1 ) [2025-04-25 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:35:05' and `end` < '2025-04-25 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:35:18] Production.INFO: count ==1988 [2025-04-25 22:35:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:35:05 - End Time 2025-04-25 22:35:05 [2025-04-25 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990028', 'tblTempUsageDetail_20' ) start [2025-04-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990028', 'tblTempUsageDetail_20' ) end [2025-04-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990028', 'tblTempVendorCDR_20' ) start [2025-04-25 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990028', 'tblTempVendorCDR_20' ) end [2025-04-25 22:35:19] Production.INFO: ProcessCDR(1,14990028,1,1,2) [2025-04-25 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990028', 'tblTempUsageDetail_20' ) start [2025-04-25 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990028', 'tblTempUsageDetail_20' ) end [2025-04-25 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:35:22] Production.INFO: ==11901== Releasing lock... [2025-04-25 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:35:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:36:05 [end_date_ymd] => 2025-04-25 22:36:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:36:05' and `end` < '2025-04-25 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-04-25 22:36:18] Production.INFO: count ==1982 [2025-04-25 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:36:05 - End Time 2025-04-25 22:36:05 [2025-04-25 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990033', 'tblTempUsageDetail_20' ) start [2025-04-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990033', 'tblTempUsageDetail_20' ) end [2025-04-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990033', 'tblTempVendorCDR_20' ) start [2025-04-25 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990033', 'tblTempVendorCDR_20' ) end [2025-04-25 22:36:18] Production.INFO: ProcessCDR(1,14990033,1,1,2) [2025-04-25 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990033', 'tblTempUsageDetail_20' ) start [2025-04-25 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990033', 'tblTempUsageDetail_20' ) end [2025-04-25 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:36:22] Production.INFO: ==11970== Releasing lock... [2025-04-25 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:36:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:37:05 [end_date_ymd] => 2025-04-25 22:37:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:37:05' and `end` < '2025-04-25 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-04-25 22:37:18] Production.INFO: count ==1980 [2025-04-25 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:37:05 - End Time 2025-04-25 22:37:05 [2025-04-25 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990038', 'tblTempUsageDetail_20' ) start [2025-04-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990038', 'tblTempUsageDetail_20' ) end [2025-04-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990038', 'tblTempVendorCDR_20' ) start [2025-04-25 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990038', 'tblTempVendorCDR_20' ) end [2025-04-25 22:37:19] Production.INFO: ProcessCDR(1,14990038,1,1,2) [2025-04-25 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990038', 'tblTempUsageDetail_20' ) start [2025-04-25 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990038', 'tblTempUsageDetail_20' ) end [2025-04-25 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:37:22] Production.INFO: ==12084== Releasing lock... [2025-04-25 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:37:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:38:05 [end_date_ymd] => 2025-04-25 22:38:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:38:05' and `end` < '2025-04-25 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-04-25 22:38:18] Production.INFO: count ==1980 [2025-04-25 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:38:05 - End Time 2025-04-25 22:38:05 [2025-04-25 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990043', 'tblTempUsageDetail_20' ) start [2025-04-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990043', 'tblTempUsageDetail_20' ) end [2025-04-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990043', 'tblTempVendorCDR_20' ) start [2025-04-25 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990043', 'tblTempVendorCDR_20' ) end [2025-04-25 22:38:18] Production.INFO: ProcessCDR(1,14990043,1,1,2) [2025-04-25 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990043', 'tblTempUsageDetail_20' ) start [2025-04-25 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990043', 'tblTempUsageDetail_20' ) end [2025-04-25 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:38:23] Production.INFO: ==12165== Releasing lock... [2025-04-25 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:38:23] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:39:06 [end_date_ymd] => 2025-04-25 22:39:06 [RateCDR] => 1 ) [2025-04-25 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:39:06' and `end` < '2025-04-25 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:39:18] Production.INFO: count ==1982 [2025-04-25 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:39:06 - End Time 2025-04-25 22:39:06 [2025-04-25 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990048', 'tblTempUsageDetail_20' ) start [2025-04-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990048', 'tblTempUsageDetail_20' ) end [2025-04-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990048', 'tblTempVendorCDR_20' ) start [2025-04-25 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990048', 'tblTempVendorCDR_20' ) end [2025-04-25 22:39:19] Production.INFO: ProcessCDR(1,14990048,1,1,2) [2025-04-25 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990048', 'tblTempUsageDetail_20' ) start [2025-04-25 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990048', 'tblTempUsageDetail_20' ) end [2025-04-25 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:39:22] Production.INFO: ==12241== Releasing lock... [2025-04-25 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:39:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:40:05 [end_date_ymd] => 2025-04-25 22:40:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:40:05' and `end` < '2025-04-25 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-04-25 22:40:18] Production.INFO: count ==1978 [2025-04-25 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:40:05 - End Time 2025-04-25 22:40:05 [2025-04-25 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990053', 'tblTempUsageDetail_20' ) start [2025-04-25 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990053', 'tblTempUsageDetail_20' ) end [2025-04-25 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990053', 'tblTempVendorCDR_20' ) start [2025-04-25 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990053', 'tblTempVendorCDR_20' ) end [2025-04-25 22:40:19] Production.INFO: ProcessCDR(1,14990053,1,1,2) [2025-04-25 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990053', 'tblTempUsageDetail_20' ) start [2025-04-25 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990053', 'tblTempUsageDetail_20' ) end [2025-04-25 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:40:22] Production.INFO: ==12314== Releasing lock... [2025-04-25 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:40:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:41:05 [end_date_ymd] => 2025-04-25 22:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:41:05' and `end` < '2025-04-25 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-04-25 22:41:17] Production.INFO: count ==1988 [2025-04-25 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:41:05 - End Time 2025-04-25 22:41:05 [2025-04-25 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990059', 'tblTempUsageDetail_20' ) start [2025-04-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990059', 'tblTempUsageDetail_20' ) end [2025-04-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990059', 'tblTempVendorCDR_20' ) start [2025-04-25 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990059', 'tblTempVendorCDR_20' ) end [2025-04-25 22:41:18] Production.INFO: ProcessCDR(1,14990059,1,1,2) [2025-04-25 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990059', 'tblTempUsageDetail_20' ) start [2025-04-25 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990059', 'tblTempUsageDetail_20' ) end [2025-04-25 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:41:21] Production.INFO: ==12392== Releasing lock... [2025-04-25 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:41:21] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:42:06 [end_date_ymd] => 2025-04-25 22:42:06 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:42:06' and `end` < '2025-04-25 22: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-04-25 22:42:18] Production.INFO: count ==1987 [2025-04-25 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:42:06 - End Time 2025-04-25 22:42:06 [2025-04-25 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990064', 'tblTempUsageDetail_20' ) start [2025-04-25 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990064', 'tblTempUsageDetail_20' ) end [2025-04-25 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990064', 'tblTempVendorCDR_20' ) start [2025-04-25 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990064', 'tblTempVendorCDR_20' ) end [2025-04-25 22:42:19] Production.INFO: ProcessCDR(1,14990064,1,1,2) [2025-04-25 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990064', 'tblTempUsageDetail_20' ) start [2025-04-25 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990064', 'tblTempUsageDetail_20' ) end [2025-04-25 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:42:22] Production.INFO: ==12464== Releasing lock... [2025-04-25 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:42:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:43:05 [end_date_ymd] => 2025-04-25 22:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:43:05' and `end` < '2025-04-25 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-04-25 22:43:17] Production.INFO: count ==1989 [2025-04-25 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:43:05 - End Time 2025-04-25 22:43:05 [2025-04-25 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990069', 'tblTempUsageDetail_20' ) start [2025-04-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990069', 'tblTempUsageDetail_20' ) end [2025-04-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990069', 'tblTempVendorCDR_20' ) start [2025-04-25 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990069', 'tblTempVendorCDR_20' ) end [2025-04-25 22:43:18] Production.INFO: ProcessCDR(1,14990069,1,1,2) [2025-04-25 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990069', 'tblTempUsageDetail_20' ) start [2025-04-25 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990069', 'tblTempUsageDetail_20' ) end [2025-04-25 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:43:21] Production.INFO: ==12538== Releasing lock... [2025-04-25 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:43:21] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:44:05 [end_date_ymd] => 2025-04-25 22:44:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:44:05' and `end` < '2025-04-25 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-04-25 22:44:18] Production.INFO: count ==1984 [2025-04-25 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:44:05 - End Time 2025-04-25 22:44:05 [2025-04-25 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990074', 'tblTempUsageDetail_20' ) start [2025-04-25 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990074', 'tblTempUsageDetail_20' ) end [2025-04-25 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990074', 'tblTempVendorCDR_20' ) start [2025-04-25 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990074', 'tblTempVendorCDR_20' ) end [2025-04-25 22:44:19] Production.INFO: ProcessCDR(1,14990074,1,1,2) [2025-04-25 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990074', 'tblTempUsageDetail_20' ) start [2025-04-25 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990074', 'tblTempUsageDetail_20' ) end [2025-04-25 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:44:22] Production.INFO: ==12613== Releasing lock... [2025-04-25 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:44:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-25 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:45:04 [end_date_ymd] => 2025-04-25 22:45:04 [RateCDR] => 1 ) [2025-04-25 22:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:45:04' and `end` < '2025-04-25 22:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:45:17] Production.INFO: count ==1975 [2025-04-25 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:45:04 - End Time 2025-04-25 22:45:04 [2025-04-25 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990079', 'tblTempUsageDetail_20' ) start [2025-04-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990079', 'tblTempUsageDetail_20' ) end [2025-04-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990079', 'tblTempVendorCDR_20' ) start [2025-04-25 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990079', 'tblTempVendorCDR_20' ) end [2025-04-25 22:45:18] Production.INFO: ProcessCDR(1,14990079,1,1,2) [2025-04-25 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990079', 'tblTempUsageDetail_20' ) start [2025-04-25 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990079', 'tblTempUsageDetail_20' ) end [2025-04-25 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:45:21] Production.INFO: ==12686== Releasing lock... [2025-04-25 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:45:21] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:46:05 [end_date_ymd] => 2025-04-25 22:46:05 [RateCDR] => 1 ) [2025-04-25 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:46:05' and `end` < '2025-04-25 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:46:18] Production.INFO: count ==1975 [2025-04-25 22:46:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:46:05 - End Time 2025-04-25 22:46:05 [2025-04-25 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990084', 'tblTempUsageDetail_20' ) start [2025-04-25 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990084', 'tblTempUsageDetail_20' ) end [2025-04-25 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990084', 'tblTempVendorCDR_20' ) start [2025-04-25 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990084', 'tblTempVendorCDR_20' ) end [2025-04-25 22:46:19] Production.INFO: ProcessCDR(1,14990084,1,1,2) [2025-04-25 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990084', 'tblTempUsageDetail_20' ) start [2025-04-25 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990084', 'tblTempUsageDetail_20' ) end [2025-04-25 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:46:22] Production.INFO: ==12758== Releasing lock... [2025-04-25 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:46:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:47:05 [end_date_ymd] => 2025-04-25 22:47:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:47:05' and `end` < '2025-04-25 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-04-25 22:47:18] Production.INFO: count ==1974 [2025-04-25 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:47:05 - End Time 2025-04-25 22:47:05 [2025-04-25 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990089', 'tblTempUsageDetail_20' ) start [2025-04-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990089', 'tblTempUsageDetail_20' ) end [2025-04-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990089', 'tblTempVendorCDR_20' ) start [2025-04-25 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990089', 'tblTempVendorCDR_20' ) end [2025-04-25 22:47:18] Production.INFO: ProcessCDR(1,14990089,1,1,2) [2025-04-25 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990089', 'tblTempUsageDetail_20' ) start [2025-04-25 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990089', 'tblTempUsageDetail_20' ) end [2025-04-25 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:47:22] Production.INFO: ==12826== Releasing lock... [2025-04-25 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:47:22] Production.INFO: 43 MB #Memory Used# [2025-04-25 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:48:05 [end_date_ymd] => 2025-04-25 22:48:05 [RateCDR] => 1 ) [2025-04-25 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:48:05' and `end` < '2025-04-25 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:48:18] Production.INFO: count ==1966 [2025-04-25 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:48:05 - End Time 2025-04-25 22:48:05 [2025-04-25 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990094', 'tblTempUsageDetail_20' ) start [2025-04-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990094', 'tblTempUsageDetail_20' ) end [2025-04-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990094', 'tblTempVendorCDR_20' ) start [2025-04-25 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990094', 'tblTempVendorCDR_20' ) end [2025-04-25 22:48:19] Production.INFO: ProcessCDR(1,14990094,1,1,2) [2025-04-25 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990094', 'tblTempUsageDetail_20' ) start [2025-04-25 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990094', 'tblTempUsageDetail_20' ) end [2025-04-25 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:48:22] Production.INFO: ==12900== Releasing lock... [2025-04-25 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-25 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:49:04 [end_date_ymd] => 2025-04-25 22:49:04 [RateCDR] => 1 ) [2025-04-25 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:49:04' and `end` < '2025-04-25 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:49:17] Production.INFO: count ==1961 [2025-04-25 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:49:04 - End Time 2025-04-25 22:49:04 [2025-04-25 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990099', 'tblTempUsageDetail_20' ) start [2025-04-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990099', 'tblTempUsageDetail_20' ) end [2025-04-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990099', 'tblTempVendorCDR_20' ) start [2025-04-25 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990099', 'tblTempVendorCDR_20' ) end [2025-04-25 22:49:18] Production.INFO: ProcessCDR(1,14990099,1,1,2) [2025-04-25 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990099', 'tblTempUsageDetail_20' ) start [2025-04-25 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990099', 'tblTempUsageDetail_20' ) end [2025-04-25 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:49:21] Production.INFO: ==12974== Releasing lock... [2025-04-25 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:49:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-25 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:50:06 [end_date_ymd] => 2025-04-25 22:50:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:50:06' and `end` < '2025-04-25 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-04-25 22:50:18] Production.INFO: count ==1953 [2025-04-25 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:50:06 - End Time 2025-04-25 22:50:06 [2025-04-25 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990105', 'tblTempUsageDetail_20' ) start [2025-04-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990105', 'tblTempUsageDetail_20' ) end [2025-04-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990105', 'tblTempVendorCDR_20' ) start [2025-04-25 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990105', 'tblTempVendorCDR_20' ) end [2025-04-25 22:50:19] Production.INFO: ProcessCDR(1,14990105,1,1,2) [2025-04-25 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990105', 'tblTempUsageDetail_20' ) start [2025-04-25 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990105', 'tblTempUsageDetail_20' ) end [2025-04-25 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:50:22] Production.INFO: ==13048== Releasing lock... [2025-04-25 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:50:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-25 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:51:06 [end_date_ymd] => 2025-04-25 22:51:06 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:51:06' and `end` < '2025-04-25 22: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-04-25 22:51:18] Production.INFO: count ==1904 [2025-04-25 22:51:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:51:06 - End Time 2025-04-25 22:51:06 [2025-04-25 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990110', 'tblTempUsageDetail_20' ) start [2025-04-25 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990110', 'tblTempUsageDetail_20' ) end [2025-04-25 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990110', 'tblTempVendorCDR_20' ) start [2025-04-25 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990110', 'tblTempVendorCDR_20' ) end [2025-04-25 22:51:19] Production.INFO: ProcessCDR(1,14990110,1,1,2) [2025-04-25 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990110', 'tblTempUsageDetail_20' ) start [2025-04-25 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990110', 'tblTempUsageDetail_20' ) end [2025-04-25 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:51:22] Production.INFO: ==13131== Releasing lock... [2025-04-25 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:51:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:52:04 [end_date_ymd] => 2025-04-25 22:52:04 [RateCDR] => 1 ) [2025-04-25 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 19:52:04' and `end` < '2025-04-25 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 22:52:17] Production.INFO: count ==1900 [2025-04-25 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:52:04 - End Time 2025-04-25 22:52:04 [2025-04-25 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990115', 'tblTempUsageDetail_20' ) start [2025-04-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990115', 'tblTempUsageDetail_20' ) end [2025-04-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990115', 'tblTempVendorCDR_20' ) start [2025-04-25 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990115', 'tblTempVendorCDR_20' ) end [2025-04-25 22:52:18] Production.INFO: ProcessCDR(1,14990115,1,1,2) [2025-04-25 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990115', 'tblTempUsageDetail_20' ) start [2025-04-25 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990115', 'tblTempUsageDetail_20' ) end [2025-04-25 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:52:21] Production.INFO: ==13200== Releasing lock... [2025-04-25 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:52:21] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:53:05 [end_date_ymd] => 2025-04-25 22:53:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:53:05' and `end` < '2025-04-25 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-04-25 22:53:18] Production.INFO: count ==1894 [2025-04-25 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:53:05 - End Time 2025-04-25 22:53:05 [2025-04-25 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990120', 'tblTempUsageDetail_20' ) start [2025-04-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990120', 'tblTempUsageDetail_20' ) end [2025-04-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990120', 'tblTempVendorCDR_20' ) start [2025-04-25 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990120', 'tblTempVendorCDR_20' ) end [2025-04-25 22:53:18] Production.INFO: ProcessCDR(1,14990120,1,1,2) [2025-04-25 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990120', 'tblTempUsageDetail_20' ) start [2025-04-25 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990120', 'tblTempUsageDetail_20' ) end [2025-04-25 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:53:22] Production.INFO: ==13311== Releasing lock... [2025-04-25 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:53:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:54:05 [end_date_ymd] => 2025-04-25 22:54:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:54:05' and `end` < '2025-04-25 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-04-25 22:54:17] Production.INFO: count ==1892 [2025-04-25 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:54:05 - End Time 2025-04-25 22:54:05 [2025-04-25 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990125', 'tblTempUsageDetail_20' ) start [2025-04-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990125', 'tblTempUsageDetail_20' ) end [2025-04-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990125', 'tblTempVendorCDR_20' ) start [2025-04-25 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990125', 'tblTempVendorCDR_20' ) end [2025-04-25 22:54:18] Production.INFO: ProcessCDR(1,14990125,1,1,2) [2025-04-25 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990125', 'tblTempUsageDetail_20' ) start [2025-04-25 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990125', 'tblTempUsageDetail_20' ) end [2025-04-25 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:54:21] Production.INFO: ==13382== Releasing lock... [2025-04-25 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:54:21] Production.INFO: 42 MB #Memory Used# [2025-04-25 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:55:05 [end_date_ymd] => 2025-04-25 22:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:55:05' and `end` < '2025-04-25 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-04-25 22:55:18] Production.INFO: count ==1885 [2025-04-25 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:55:05 - End Time 2025-04-25 22:55:05 [2025-04-25 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990130', 'tblTempUsageDetail_20' ) start [2025-04-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990130', 'tblTempUsageDetail_20' ) end [2025-04-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990130', 'tblTempVendorCDR_20' ) start [2025-04-25 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990130', 'tblTempVendorCDR_20' ) end [2025-04-25 22:55:19] Production.INFO: ProcessCDR(1,14990130,1,1,2) [2025-04-25 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990130', 'tblTempUsageDetail_20' ) start [2025-04-25 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990130', 'tblTempUsageDetail_20' ) end [2025-04-25 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:55:22] Production.INFO: ==13455== Releasing lock... [2025-04-25 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:55:22] Production.INFO: 42 MB #Memory Used# [2025-04-25 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:56:06 [end_date_ymd] => 2025-04-25 22:56:06 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:56:06' and `end` < '2025-04-25 22: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-04-25 22:56:19] Production.INFO: count ==1886 [2025-04-25 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-25 19:56:06 - End Time 2025-04-25 22:56:06 [2025-04-25 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990135', 'tblTempUsageDetail_20' ) start [2025-04-25 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990135', 'tblTempUsageDetail_20' ) end [2025-04-25 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990135', 'tblTempVendorCDR_20' ) start [2025-04-25 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990135', 'tblTempVendorCDR_20' ) end [2025-04-25 22:56:19] Production.INFO: ProcessCDR(1,14990135,1,1,2) [2025-04-25 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990135', 'tblTempUsageDetail_20' ) start [2025-04-25 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990135', 'tblTempUsageDetail_20' ) end [2025-04-25 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:56:23] Production.INFO: ==13526== Releasing lock... [2025-04-25 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:56:23] Production.INFO: 42 MB #Memory Used# [2025-04-25 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:57:05 [end_date_ymd] => 2025-04-25 22:57:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 19:57:05' and `end` < '2025-04-25 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-04-25 22:57:18] Production.INFO: count ==1882 [2025-04-25 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:57:05 - End Time 2025-04-25 22:57:05 [2025-04-25 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990140', 'tblTempUsageDetail_20' ) start [2025-04-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990140', 'tblTempUsageDetail_20' ) end [2025-04-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990140', 'tblTempVendorCDR_20' ) start [2025-04-25 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990140', 'tblTempVendorCDR_20' ) end [2025-04-25 22:57:18] Production.INFO: ProcessCDR(1,14990140,1,1,2) [2025-04-25 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990140', 'tblTempUsageDetail_20' ) start [2025-04-25 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990140', 'tblTempUsageDetail_20' ) end [2025-04-25 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:57:22] Production.INFO: ==13605== Releasing lock... [2025-04-25 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:57:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:58:05 [end_date_ymd] => 2025-04-25 22:58:05 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:58:05' and `end` < '2025-04-25 22: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-04-25 22:58:18] Production.INFO: count ==1874 [2025-04-25 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:58:05 - End Time 2025-04-25 22:58:05 [2025-04-25 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990145', 'tblTempUsageDetail_20' ) start [2025-04-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990145', 'tblTempUsageDetail_20' ) end [2025-04-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990145', 'tblTempVendorCDR_20' ) start [2025-04-25 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990145', 'tblTempVendorCDR_20' ) end [2025-04-25 22:58:18] Production.INFO: ProcessCDR(1,14990145,1,1,2) [2025-04-25 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990145', 'tblTempUsageDetail_20' ) start [2025-04-25 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990145', 'tblTempUsageDetail_20' ) end [2025-04-25 22:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:58:24] Production.INFO: ==13676== Releasing lock... [2025-04-25 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:58:24] Production.INFO: 42 MB #Memory Used# [2025-04-25 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 19:59:04 [end_date_ymd] => 2025-04-25 22:59:04 [RateCDR] => 1 ) [2025-04-25 22: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-04-25 19:59:04' and `end` < '2025-04-25 22: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-04-25 22:59:17] Production.INFO: count ==1875 [2025-04-25 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 19:59:04 - End Time 2025-04-25 22:59:04 [2025-04-25 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990150', 'tblTempUsageDetail_20' ) start [2025-04-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990150', 'tblTempUsageDetail_20' ) end [2025-04-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990150', 'tblTempVendorCDR_20' ) start [2025-04-25 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990150', 'tblTempVendorCDR_20' ) end [2025-04-25 22:59:18] Production.INFO: ProcessCDR(1,14990150,1,1,2) [2025-04-25 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990150', 'tblTempUsageDetail_20' ) start [2025-04-25 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990150', 'tblTempUsageDetail_20' ) end [2025-04-25 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 22:59:21] Production.INFO: ==13747== Releasing lock... [2025-04-25 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 22:59:21] Production.INFO: 42.25 MB #Memory Used# [2025-04-25 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:00:06 [end_date_ymd] => 2025-04-25 23:00:06 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:00:06' and `end` < '2025-04-25 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-04-25 23:00:19] Production.INFO: count ==1875 [2025-04-25 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-25 20:00:06 - End Time 2025-04-25 23:00:06 [2025-04-25 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990156', 'tblTempUsageDetail_20' ) start [2025-04-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990156', 'tblTempUsageDetail_20' ) end [2025-04-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990156', 'tblTempVendorCDR_20' ) start [2025-04-25 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990156', 'tblTempVendorCDR_20' ) end [2025-04-25 23:00:20] Production.INFO: ProcessCDR(1,14990156,1,1,2) [2025-04-25 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990156', 'tblTempUsageDetail_20' ) start [2025-04-25 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990156', 'tblTempUsageDetail_20' ) end [2025-04-25 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:00:25] Production.INFO: ==13825== Releasing lock... [2025-04-25 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:00:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-25 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:01:04 [end_date_ymd] => 2025-04-25 23:01:04 [RateCDR] => 1 ) [2025-04-25 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:01:04' and `end` < '2025-04-25 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:01:17] Production.INFO: count ==1834 [2025-04-25 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:01:04 - End Time 2025-04-25 23:01:04 [2025-04-25 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990161', 'tblTempUsageDetail_20' ) start [2025-04-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990161', 'tblTempUsageDetail_20' ) end [2025-04-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990161', 'tblTempVendorCDR_20' ) start [2025-04-25 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990161', 'tblTempVendorCDR_20' ) end [2025-04-25 23:01:18] Production.INFO: ProcessCDR(1,14990161,1,1,2) [2025-04-25 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990161', 'tblTempUsageDetail_20' ) start [2025-04-25 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990161', 'tblTempUsageDetail_20' ) end [2025-04-25 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:01:21] Production.INFO: ==13908== Releasing lock... [2025-04-25 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:01:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:02:05 [end_date_ymd] => 2025-04-25 23:02:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:02:05' and `end` < '2025-04-25 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-04-25 23:02:18] Production.INFO: count ==1829 [2025-04-25 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:02:05 - End Time 2025-04-25 23:02:05 [2025-04-25 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990166', 'tblTempUsageDetail_20' ) start [2025-04-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990166', 'tblTempUsageDetail_20' ) end [2025-04-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990166', 'tblTempVendorCDR_20' ) start [2025-04-25 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990166', 'tblTempVendorCDR_20' ) end [2025-04-25 23:02:18] Production.INFO: ProcessCDR(1,14990166,1,1,2) [2025-04-25 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990166', 'tblTempUsageDetail_20' ) start [2025-04-25 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990166', 'tblTempUsageDetail_20' ) end [2025-04-25 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:02:22] Production.INFO: ==14057== Releasing lock... [2025-04-25 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:03:06 [end_date_ymd] => 2025-04-25 23:03:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:03:06' and `end` < '2025-04-25 23: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-04-25 23:03:19] Production.INFO: count ==1822 [2025-04-25 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:03:06 - End Time 2025-04-25 23:03:06 [2025-04-25 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990171', 'tblTempUsageDetail_20' ) start [2025-04-25 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990171', 'tblTempUsageDetail_20' ) end [2025-04-25 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990171', 'tblTempVendorCDR_20' ) start [2025-04-25 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990171', 'tblTempVendorCDR_20' ) end [2025-04-25 23:03:19] Production.INFO: ProcessCDR(1,14990171,1,1,2) [2025-04-25 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990171', 'tblTempUsageDetail_20' ) start [2025-04-25 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990171', 'tblTempUsageDetail_20' ) end [2025-04-25 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:03:22] Production.INFO: ==14131== Releasing lock... [2025-04-25 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:04:05 [end_date_ymd] => 2025-04-25 23:04:05 [RateCDR] => 1 ) [2025-04-25 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:04:05' and `end` < '2025-04-25 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:04:18] Production.INFO: count ==1821 [2025-04-25 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:04:05 - End Time 2025-04-25 23:04:05 [2025-04-25 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990176', 'tblTempUsageDetail_20' ) start [2025-04-25 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990176', 'tblTempUsageDetail_20' ) end [2025-04-25 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990176', 'tblTempVendorCDR_20' ) start [2025-04-25 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990176', 'tblTempVendorCDR_20' ) end [2025-04-25 23:04:19] Production.INFO: ProcessCDR(1,14990176,1,1,2) [2025-04-25 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990176', 'tblTempUsageDetail_20' ) start [2025-04-25 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990176', 'tblTempUsageDetail_20' ) end [2025-04-25 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:04:22] Production.INFO: ==14202== Releasing lock... [2025-04-25 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:04:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:05:05 [end_date_ymd] => 2025-04-25 23:05:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:05:05' and `end` < '2025-04-25 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-04-25 23:05:18] Production.INFO: count ==1812 [2025-04-25 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:05:05 - End Time 2025-04-25 23:05:05 [2025-04-25 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990181', 'tblTempUsageDetail_20' ) start [2025-04-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990181', 'tblTempUsageDetail_20' ) end [2025-04-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990181', 'tblTempVendorCDR_20' ) start [2025-04-25 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990181', 'tblTempVendorCDR_20' ) end [2025-04-25 23:05:18] Production.INFO: ProcessCDR(1,14990181,1,1,2) [2025-04-25 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990181', 'tblTempUsageDetail_20' ) start [2025-04-25 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990181', 'tblTempUsageDetail_20' ) end [2025-04-25 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:05:24] Production.INFO: ==14358== Releasing lock... [2025-04-25 23:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:05:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:06:05 [end_date_ymd] => 2025-04-25 23:06:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:06:05' and `end` < '2025-04-25 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-04-25 23:06:18] Production.INFO: count ==1815 [2025-04-25 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:06:05 - End Time 2025-04-25 23:06:05 [2025-04-25 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990186', 'tblTempUsageDetail_20' ) start [2025-04-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990186', 'tblTempUsageDetail_20' ) end [2025-04-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990186', 'tblTempVendorCDR_20' ) start [2025-04-25 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990186', 'tblTempVendorCDR_20' ) end [2025-04-25 23:06:18] Production.INFO: ProcessCDR(1,14990186,1,1,2) [2025-04-25 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990186', 'tblTempUsageDetail_20' ) start [2025-04-25 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990186', 'tblTempUsageDetail_20' ) end [2025-04-25 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:06:23] Production.INFO: ==14432== Releasing lock... [2025-04-25 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:06:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:07:05 [end_date_ymd] => 2025-04-25 23:07:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:07:05' and `end` < '2025-04-25 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-04-25 23:07:18] Production.INFO: count ==1807 [2025-04-25 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:07:05 - End Time 2025-04-25 23:07:05 [2025-04-25 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990191', 'tblTempUsageDetail_20' ) start [2025-04-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990191', 'tblTempUsageDetail_20' ) end [2025-04-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990191', 'tblTempVendorCDR_20' ) start [2025-04-25 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990191', 'tblTempVendorCDR_20' ) end [2025-04-25 23:07:19] Production.INFO: ProcessCDR(1,14990191,1,1,2) [2025-04-25 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990191', 'tblTempUsageDetail_20' ) start [2025-04-25 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990191', 'tblTempUsageDetail_20' ) end [2025-04-25 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:07:22] Production.INFO: ==14502== Releasing lock... [2025-04-25 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:07:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:08:05 [end_date_ymd] => 2025-04-25 23:08:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:08:05' and `end` < '2025-04-25 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-04-25 23:08:18] Production.INFO: count ==1805 [2025-04-25 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:08:05 - End Time 2025-04-25 23:08:05 [2025-04-25 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990196', 'tblTempUsageDetail_20' ) start [2025-04-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990196', 'tblTempUsageDetail_20' ) end [2025-04-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990196', 'tblTempVendorCDR_20' ) start [2025-04-25 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990196', 'tblTempVendorCDR_20' ) end [2025-04-25 23:08:18] Production.INFO: ProcessCDR(1,14990196,1,1,2) [2025-04-25 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990196', 'tblTempUsageDetail_20' ) start [2025-04-25 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990196', 'tblTempUsageDetail_20' ) end [2025-04-25 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:08:22] Production.INFO: ==14690== Releasing lock... [2025-04-25 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:09:05 [end_date_ymd] => 2025-04-25 23:09:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:09:05' and `end` < '2025-04-25 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-04-25 23:09:18] Production.INFO: count ==1803 [2025-04-25 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:09:05 - End Time 2025-04-25 23:09:05 [2025-04-25 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990201', 'tblTempUsageDetail_20' ) start [2025-04-25 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990201', 'tblTempUsageDetail_20' ) end [2025-04-25 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990201', 'tblTempVendorCDR_20' ) start [2025-04-25 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990201', 'tblTempVendorCDR_20' ) end [2025-04-25 23:09:19] Production.INFO: ProcessCDR(1,14990201,1,1,2) [2025-04-25 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990201', 'tblTempUsageDetail_20' ) start [2025-04-25 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990201', 'tblTempUsageDetail_20' ) end [2025-04-25 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:09:22] Production.INFO: ==14763== Releasing lock... [2025-04-25 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:09:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:10:05 [end_date_ymd] => 2025-04-25 23:10:05 [RateCDR] => 1 ) [2025-04-25 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:10:05' and `end` < '2025-04-25 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:10:18] Production.INFO: count ==1797 [2025-04-25 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:10:05 - End Time 2025-04-25 23:10:05 [2025-04-25 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990206', 'tblTempUsageDetail_20' ) start [2025-04-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990206', 'tblTempUsageDetail_20' ) end [2025-04-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990206', 'tblTempVendorCDR_20' ) start [2025-04-25 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990206', 'tblTempVendorCDR_20' ) end [2025-04-25 23:10:19] Production.INFO: ProcessCDR(1,14990206,1,1,2) [2025-04-25 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990206', 'tblTempUsageDetail_20' ) start [2025-04-25 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990206', 'tblTempUsageDetail_20' ) end [2025-04-25 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:10:22] Production.INFO: ==14839== Releasing lock... [2025-04-25 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:10:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:11:05 [end_date_ymd] => 2025-04-25 23:11:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:11:05' and `end` < '2025-04-25 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-04-25 23:11:18] Production.INFO: count ==1822 [2025-04-25 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:11:05 - End Time 2025-04-25 23:11:05 [2025-04-25 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990212', 'tblTempUsageDetail_20' ) start [2025-04-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990212', 'tblTempUsageDetail_20' ) end [2025-04-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990212', 'tblTempVendorCDR_20' ) start [2025-04-25 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990212', 'tblTempVendorCDR_20' ) end [2025-04-25 23:11:18] Production.INFO: ProcessCDR(1,14990212,1,1,2) [2025-04-25 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990212', 'tblTempUsageDetail_20' ) start [2025-04-25 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990212', 'tblTempUsageDetail_20' ) end [2025-04-25 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:11:22] Production.INFO: ==14913== Releasing lock... [2025-04-25 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:11:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:12:06 [end_date_ymd] => 2025-04-25 23:12:06 [RateCDR] => 1 ) [2025-04-25 23:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:12:06' and `end` < '2025-04-25 23:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:12:19] Production.INFO: count ==1818 [2025-04-25 23:12:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:12:06 - End Time 2025-04-25 23:12:06 [2025-04-25 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990217', 'tblTempUsageDetail_20' ) start [2025-04-25 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990217', 'tblTempUsageDetail_20' ) end [2025-04-25 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990217', 'tblTempVendorCDR_20' ) start [2025-04-25 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990217', 'tblTempVendorCDR_20' ) end [2025-04-25 23:12:19] Production.INFO: ProcessCDR(1,14990217,1,1,2) [2025-04-25 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990217', 'tblTempUsageDetail_20' ) start [2025-04-25 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990217', 'tblTempUsageDetail_20' ) end [2025-04-25 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:12:22] Production.INFO: ==15070== Releasing lock... [2025-04-25 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:12:22] Production.INFO: 42 MB #Memory Used# [2025-04-25 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:13:05 [end_date_ymd] => 2025-04-25 23:13:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:13:05' and `end` < '2025-04-25 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-04-25 23:13:17] Production.INFO: count ==1814 [2025-04-25 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:13:05 - End Time 2025-04-25 23:13:05 [2025-04-25 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990222', 'tblTempUsageDetail_20' ) start [2025-04-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990222', 'tblTempUsageDetail_20' ) end [2025-04-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990222', 'tblTempVendorCDR_20' ) start [2025-04-25 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990222', 'tblTempVendorCDR_20' ) end [2025-04-25 23:13:18] Production.INFO: ProcessCDR(1,14990222,1,1,2) [2025-04-25 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990222', 'tblTempUsageDetail_20' ) start [2025-04-25 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990222', 'tblTempUsageDetail_20' ) end [2025-04-25 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:13:21] Production.INFO: ==15141== Releasing lock... [2025-04-25 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:13:21] Production.INFO: 42 MB #Memory Used# [2025-04-25 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:14:05 [end_date_ymd] => 2025-04-25 23:14:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:14:05' and `end` < '2025-04-25 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-04-25 23:14:18] Production.INFO: count ==1813 [2025-04-25 23:14:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:14:05 - End Time 2025-04-25 23:14:05 [2025-04-25 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990227', 'tblTempUsageDetail_20' ) start [2025-04-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990227', 'tblTempUsageDetail_20' ) end [2025-04-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990227', 'tblTempVendorCDR_20' ) start [2025-04-25 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990227', 'tblTempVendorCDR_20' ) end [2025-04-25 23:14:19] Production.INFO: ProcessCDR(1,14990227,1,1,2) [2025-04-25 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990227', 'tblTempUsageDetail_20' ) start [2025-04-25 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990227', 'tblTempUsageDetail_20' ) end [2025-04-25 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:14:22] Production.INFO: ==15211== Releasing lock... [2025-04-25 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:14:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:15:05 [end_date_ymd] => 2025-04-25 23:15:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:15:05' and `end` < '2025-04-25 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-04-25 23:15:17] Production.INFO: count ==1808 [2025-04-25 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:15:05 - End Time 2025-04-25 23:15:05 [2025-04-25 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990232', 'tblTempUsageDetail_20' ) start [2025-04-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990232', 'tblTempUsageDetail_20' ) end [2025-04-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990232', 'tblTempVendorCDR_20' ) start [2025-04-25 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990232', 'tblTempVendorCDR_20' ) end [2025-04-25 23:15:18] Production.INFO: ProcessCDR(1,14990232,1,1,2) [2025-04-25 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990232', 'tblTempUsageDetail_20' ) start [2025-04-25 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990232', 'tblTempUsageDetail_20' ) end [2025-04-25 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:15:21] Production.INFO: ==15362== Releasing lock... [2025-04-25 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:15:21] Production.INFO: 42 MB #Memory Used# [2025-04-25 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:16:05 [end_date_ymd] => 2025-04-25 23:16:05 [RateCDR] => 1 ) [2025-04-25 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:16:05' and `end` < '2025-04-25 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:16:18] Production.INFO: count ==1809 [2025-04-25 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:16:05 - End Time 2025-04-25 23:16:05 [2025-04-25 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990237', 'tblTempUsageDetail_20' ) start [2025-04-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990237', 'tblTempUsageDetail_20' ) end [2025-04-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990237', 'tblTempVendorCDR_20' ) start [2025-04-25 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990237', 'tblTempVendorCDR_20' ) end [2025-04-25 23:16:18] Production.INFO: ProcessCDR(1,14990237,1,1,2) [2025-04-25 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990237', 'tblTempUsageDetail_20' ) start [2025-04-25 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990237', 'tblTempUsageDetail_20' ) end [2025-04-25 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:16:23] Production.INFO: ==15436== Releasing lock... [2025-04-25 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:16:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-25 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:17:05 [end_date_ymd] => 2025-04-25 23:17:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:17:05' and `end` < '2025-04-25 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-04-25 23:17:18] Production.INFO: count ==1805 [2025-04-25 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:17:05 - End Time 2025-04-25 23:17:05 [2025-04-25 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990242', 'tblTempUsageDetail_20' ) start [2025-04-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990242', 'tblTempUsageDetail_20' ) end [2025-04-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990242', 'tblTempVendorCDR_20' ) start [2025-04-25 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990242', 'tblTempVendorCDR_20' ) end [2025-04-25 23:17:18] Production.INFO: ProcessCDR(1,14990242,1,1,2) [2025-04-25 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990242', 'tblTempUsageDetail_20' ) start [2025-04-25 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990242', 'tblTempUsageDetail_20' ) end [2025-04-25 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:17:23] Production.INFO: ==15505== Releasing lock... [2025-04-25 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:17:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:18:05 [end_date_ymd] => 2025-04-25 23:18:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:18:05' and `end` < '2025-04-25 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-04-25 23:18:18] Production.INFO: count ==1801 [2025-04-25 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:18:05 - End Time 2025-04-25 23:18:05 [2025-04-25 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990247', 'tblTempUsageDetail_20' ) start [2025-04-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990247', 'tblTempUsageDetail_20' ) end [2025-04-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990247', 'tblTempVendorCDR_20' ) start [2025-04-25 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990247', 'tblTempVendorCDR_20' ) end [2025-04-25 23:18:18] Production.INFO: ProcessCDR(1,14990247,1,1,2) [2025-04-25 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990247', 'tblTempUsageDetail_20' ) start [2025-04-25 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990247', 'tblTempUsageDetail_20' ) end [2025-04-25 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:18:22] Production.INFO: ==15578== Releasing lock... [2025-04-25 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:18:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:19:06 [end_date_ymd] => 2025-04-25 23:19:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:19:06' and `end` < '2025-04-25 23: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-04-25 23:19:19] Production.INFO: count ==1793 [2025-04-25 23:19:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:19:06 - End Time 2025-04-25 23:19:06 [2025-04-25 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990252', 'tblTempUsageDetail_20' ) start [2025-04-25 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990252', 'tblTempUsageDetail_20' ) end [2025-04-25 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990252', 'tblTempVendorCDR_20' ) start [2025-04-25 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990252', 'tblTempVendorCDR_20' ) end [2025-04-25 23:19:19] Production.INFO: ProcessCDR(1,14990252,1,1,2) [2025-04-25 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990252', 'tblTempUsageDetail_20' ) start [2025-04-25 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990252', 'tblTempUsageDetail_20' ) end [2025-04-25 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:19:23] Production.INFO: ==15654== Releasing lock... [2025-04-25 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:19:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:20:05 [end_date_ymd] => 2025-04-25 23:20:05 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:20:05' and `end` < '2025-04-25 23: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-04-25 23:20:18] Production.INFO: count ==1787 [2025-04-25 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:20:05 - End Time 2025-04-25 23:20:05 [2025-04-25 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990258', 'tblTempUsageDetail_20' ) start [2025-04-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990258', 'tblTempUsageDetail_20' ) end [2025-04-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990258', 'tblTempVendorCDR_20' ) start [2025-04-25 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990258', 'tblTempVendorCDR_20' ) end [2025-04-25 23:20:19] Production.INFO: ProcessCDR(1,14990258,1,1,2) [2025-04-25 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990258', 'tblTempUsageDetail_20' ) start [2025-04-25 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990258', 'tblTempUsageDetail_20' ) end [2025-04-25 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:20:22] Production.INFO: ==15729== Releasing lock... [2025-04-25 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:20:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-25 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:21:06 [end_date_ymd] => 2025-04-25 23:21:06 [RateCDR] => 1 ) [2025-04-25 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:21:06' and `end` < '2025-04-25 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:21:19] Production.INFO: count ==1739 [2025-04-25 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:21:06 - End Time 2025-04-25 23:21:06 [2025-04-25 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990263', 'tblTempUsageDetail_20' ) start [2025-04-25 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990263', 'tblTempUsageDetail_20' ) end [2025-04-25 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990263', 'tblTempVendorCDR_20' ) start [2025-04-25 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990263', 'tblTempVendorCDR_20' ) end [2025-04-25 23:21:19] Production.INFO: ProcessCDR(1,14990263,1,1,2) [2025-04-25 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990263', 'tblTempUsageDetail_20' ) start [2025-04-25 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990263', 'tblTempUsageDetail_20' ) end [2025-04-25 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:21:23] Production.INFO: ==15804== Releasing lock... [2025-04-25 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:21:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:22:05 [end_date_ymd] => 2025-04-25 23:22:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:22:05' and `end` < '2025-04-25 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-04-25 23:22:18] Production.INFO: count ==1728 [2025-04-25 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:22:05 - End Time 2025-04-25 23:22:05 [2025-04-25 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990268', 'tblTempUsageDetail_20' ) start [2025-04-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990268', 'tblTempUsageDetail_20' ) end [2025-04-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990268', 'tblTempVendorCDR_20' ) start [2025-04-25 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990268', 'tblTempVendorCDR_20' ) end [2025-04-25 23:22:18] Production.INFO: ProcessCDR(1,14990268,1,1,2) [2025-04-25 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990268', 'tblTempUsageDetail_20' ) start [2025-04-25 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990268', 'tblTempUsageDetail_20' ) end [2025-04-25 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:22:22] Production.INFO: ==15876== Releasing lock... [2025-04-25 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:22:22] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:23:06 [end_date_ymd] => 2025-04-25 23:23:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:23:06' and `end` < '2025-04-25 23: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-04-25 23:23:19] Production.INFO: count ==1729 [2025-04-25 23:23:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:23:06 - End Time 2025-04-25 23:23:06 [2025-04-25 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990273', 'tblTempUsageDetail_20' ) start [2025-04-25 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990273', 'tblTempUsageDetail_20' ) end [2025-04-25 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990273', 'tblTempVendorCDR_20' ) start [2025-04-25 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990273', 'tblTempVendorCDR_20' ) end [2025-04-25 23:23:19] Production.INFO: ProcessCDR(1,14990273,1,1,2) [2025-04-25 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990273', 'tblTempUsageDetail_20' ) start [2025-04-25 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990273', 'tblTempUsageDetail_20' ) end [2025-04-25 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:23:24] Production.INFO: ==15950== Releasing lock... [2025-04-25 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:23:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:24:05 [end_date_ymd] => 2025-04-25 23:24:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:24:05' and `end` < '2025-04-25 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-04-25 23:24:18] Production.INFO: count ==1728 [2025-04-25 23:24:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:24:05 - End Time 2025-04-25 23:24:05 [2025-04-25 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990278', 'tblTempUsageDetail_20' ) start [2025-04-25 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990278', 'tblTempUsageDetail_20' ) end [2025-04-25 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990278', 'tblTempVendorCDR_20' ) start [2025-04-25 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990278', 'tblTempVendorCDR_20' ) end [2025-04-25 23:24:19] Production.INFO: ProcessCDR(1,14990278,1,1,2) [2025-04-25 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990278', 'tblTempUsageDetail_20' ) start [2025-04-25 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990278', 'tblTempUsageDetail_20' ) end [2025-04-25 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:24:24] Production.INFO: ==16059== Releasing lock... [2025-04-25 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:24:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:25:05 [end_date_ymd] => 2025-04-25 23:25:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:25:05' and `end` < '2025-04-25 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-04-25 23:25:18] Production.INFO: count ==1733 [2025-04-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:25:05 - End Time 2025-04-25 23:25:05 [2025-04-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990283', 'tblTempUsageDetail_20' ) start [2025-04-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990283', 'tblTempUsageDetail_20' ) end [2025-04-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990283', 'tblTempVendorCDR_20' ) start [2025-04-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990283', 'tblTempVendorCDR_20' ) end [2025-04-25 23:25:18] Production.INFO: ProcessCDR(1,14990283,1,1,2) [2025-04-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990283', 'tblTempUsageDetail_20' ) start [2025-04-25 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990283', 'tblTempUsageDetail_20' ) end [2025-04-25 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:25:24] Production.INFO: ==16129== Releasing lock... [2025-04-25 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:25:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:26:05 [end_date_ymd] => 2025-04-25 23:26:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:26:05' and `end` < '2025-04-25 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-04-25 23:26:18] Production.INFO: count ==1730 [2025-04-25 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:26:05 - End Time 2025-04-25 23:26:05 [2025-04-25 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990288', 'tblTempUsageDetail_20' ) start [2025-04-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990288', 'tblTempUsageDetail_20' ) end [2025-04-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990288', 'tblTempVendorCDR_20' ) start [2025-04-25 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990288', 'tblTempVendorCDR_20' ) end [2025-04-25 23:26:18] Production.INFO: ProcessCDR(1,14990288,1,1,2) [2025-04-25 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990288', 'tblTempUsageDetail_20' ) start [2025-04-25 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990288', 'tblTempUsageDetail_20' ) end [2025-04-25 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:26:22] Production.INFO: ==16205== Releasing lock... [2025-04-25 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:26:22] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:27:05 [end_date_ymd] => 2025-04-25 23:27:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:27:05' and `end` < '2025-04-25 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-04-25 23:27:17] Production.INFO: count ==1725 [2025-04-25 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:27:05 - End Time 2025-04-25 23:27:05 [2025-04-25 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990293', 'tblTempUsageDetail_20' ) start [2025-04-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990293', 'tblTempUsageDetail_20' ) end [2025-04-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990293', 'tblTempVendorCDR_20' ) start [2025-04-25 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990293', 'tblTempVendorCDR_20' ) end [2025-04-25 23:27:18] Production.INFO: ProcessCDR(1,14990293,1,1,2) [2025-04-25 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990293', 'tblTempUsageDetail_20' ) start [2025-04-25 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990293', 'tblTempUsageDetail_20' ) end [2025-04-25 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:27:21] Production.INFO: ==16275== Releasing lock... [2025-04-25 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:27:21] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:28:06 [end_date_ymd] => 2025-04-25 23:28:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:28:06' and `end` < '2025-04-25 23: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-04-25 23:28:19] Production.INFO: count ==1721 [2025-04-25 23:28:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:28:06 - End Time 2025-04-25 23:28:06 [2025-04-25 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990298', 'tblTempUsageDetail_20' ) start [2025-04-25 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990298', 'tblTempUsageDetail_20' ) end [2025-04-25 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990298', 'tblTempVendorCDR_20' ) start [2025-04-25 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990298', 'tblTempVendorCDR_20' ) end [2025-04-25 23:28:19] Production.INFO: ProcessCDR(1,14990298,1,1,2) [2025-04-25 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990298', 'tblTempUsageDetail_20' ) start [2025-04-25 23:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990298', 'tblTempUsageDetail_20' ) end [2025-04-25 23:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:28:24] Production.INFO: ==16346== Releasing lock... [2025-04-25 23:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:28:24] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:29:05 [end_date_ymd] => 2025-04-25 23:29:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:29:05' and `end` < '2025-04-25 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-04-25 23:29:18] Production.INFO: count ==1718 [2025-04-25 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:29:05 - End Time 2025-04-25 23:29:05 [2025-04-25 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990303', 'tblTempUsageDetail_20' ) start [2025-04-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990303', 'tblTempUsageDetail_20' ) end [2025-04-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990303', 'tblTempVendorCDR_20' ) start [2025-04-25 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990303', 'tblTempVendorCDR_20' ) end [2025-04-25 23:29:18] Production.INFO: ProcessCDR(1,14990303,1,1,2) [2025-04-25 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990303', 'tblTempUsageDetail_20' ) start [2025-04-25 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990303', 'tblTempUsageDetail_20' ) end [2025-04-25 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:29:23] Production.INFO: ==16420== Releasing lock... [2025-04-25 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:29:23] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:30:07 [end_date_ymd] => 2025-04-25 23:30:07 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:30:07' and `end` < '2025-04-25 23: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-04-25 23:30:19] Production.INFO: count ==1721 [2025-04-25 23:30:20] Production.ERROR: pbx CDR StartTime 2025-04-25 20:30:07 - End Time 2025-04-25 23:30:07 [2025-04-25 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990309', 'tblTempUsageDetail_20' ) start [2025-04-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990309', 'tblTempUsageDetail_20' ) end [2025-04-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990309', 'tblTempVendorCDR_20' ) start [2025-04-25 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990309', 'tblTempVendorCDR_20' ) end [2025-04-25 23:30:20] Production.INFO: ProcessCDR(1,14990309,1,1,2) [2025-04-25 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990309', 'tblTempUsageDetail_20' ) start [2025-04-25 23:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990309', 'tblTempUsageDetail_20' ) end [2025-04-25 23:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:30:25] Production.INFO: ==16492== Releasing lock... [2025-04-25 23:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:30:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-25 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:31:05 [end_date_ymd] => 2025-04-25 23:31:05 [RateCDR] => 1 ) [2025-04-25 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:31:05' and `end` < '2025-04-25 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:31:18] Production.INFO: count ==1689 [2025-04-25 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:31:05 - End Time 2025-04-25 23:31:05 [2025-04-25 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990314', 'tblTempUsageDetail_20' ) start [2025-04-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990314', 'tblTempUsageDetail_20' ) end [2025-04-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990314', 'tblTempVendorCDR_20' ) start [2025-04-25 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990314', 'tblTempVendorCDR_20' ) end [2025-04-25 23:31:18] Production.INFO: ProcessCDR(1,14990314,1,1,2) [2025-04-25 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990314', 'tblTempUsageDetail_20' ) start [2025-04-25 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990314', 'tblTempUsageDetail_20' ) end [2025-04-25 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:31:21] Production.INFO: ==16563== Releasing lock... [2025-04-25 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:31:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:32:05 [end_date_ymd] => 2025-04-25 23:32:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:32:05' and `end` < '2025-04-25 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-04-25 23:32:18] Production.INFO: count ==1687 [2025-04-25 23:32:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:32:05 - End Time 2025-04-25 23:32:05 [2025-04-25 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990319', 'tblTempUsageDetail_20' ) start [2025-04-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990319', 'tblTempUsageDetail_20' ) end [2025-04-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990319', 'tblTempVendorCDR_20' ) start [2025-04-25 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990319', 'tblTempVendorCDR_20' ) end [2025-04-25 23:32:18] Production.INFO: ProcessCDR(1,14990319,1,1,2) [2025-04-25 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990319', 'tblTempUsageDetail_20' ) start [2025-04-25 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990319', 'tblTempUsageDetail_20' ) end [2025-04-25 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:32:21] Production.INFO: ==16644== Releasing lock... [2025-04-25 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:32:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:33:05 [end_date_ymd] => 2025-04-25 23:33:05 [RateCDR] => 1 ) [2025-04-25 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:33:05' and `end` < '2025-04-25 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:33:18] Production.INFO: count ==1682 [2025-04-25 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:33:05 - End Time 2025-04-25 23:33:05 [2025-04-25 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990324', 'tblTempUsageDetail_20' ) start [2025-04-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990324', 'tblTempUsageDetail_20' ) end [2025-04-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990324', 'tblTempVendorCDR_20' ) start [2025-04-25 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990324', 'tblTempVendorCDR_20' ) end [2025-04-25 23:33:18] Production.INFO: ProcessCDR(1,14990324,1,1,2) [2025-04-25 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990324', 'tblTempUsageDetail_20' ) start [2025-04-25 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990324', 'tblTempUsageDetail_20' ) end [2025-04-25 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:33:22] Production.INFO: ==16714== Releasing lock... [2025-04-25 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:34:05 [end_date_ymd] => 2025-04-25 23:34:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:34:05' and `end` < '2025-04-25 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-04-25 23:34:18] Production.INFO: count ==1675 [2025-04-25 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:34:05 - End Time 2025-04-25 23:34:05 [2025-04-25 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990329', 'tblTempUsageDetail_20' ) start [2025-04-25 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990329', 'tblTempUsageDetail_20' ) end [2025-04-25 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990329', 'tblTempVendorCDR_20' ) start [2025-04-25 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990329', 'tblTempVendorCDR_20' ) end [2025-04-25 23:34:19] Production.INFO: ProcessCDR(1,14990329,1,1,2) [2025-04-25 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990329', 'tblTempUsageDetail_20' ) start [2025-04-25 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990329', 'tblTempUsageDetail_20' ) end [2025-04-25 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:34:22] Production.INFO: ==16784== Releasing lock... [2025-04-25 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:34:22] Production.INFO: 41 MB #Memory Used# [2025-04-25 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:35:05 [end_date_ymd] => 2025-04-25 23:35:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:35:05' and `end` < '2025-04-25 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-04-25 23:35:18] Production.INFO: count ==1671 [2025-04-25 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:35:05 - End Time 2025-04-25 23:35:05 [2025-04-25 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990334', 'tblTempUsageDetail_20' ) start [2025-04-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990334', 'tblTempUsageDetail_20' ) end [2025-04-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990334', 'tblTempVendorCDR_20' ) start [2025-04-25 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990334', 'tblTempVendorCDR_20' ) end [2025-04-25 23:35:18] Production.INFO: ProcessCDR(1,14990334,1,1,2) [2025-04-25 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990334', 'tblTempUsageDetail_20' ) start [2025-04-25 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990334', 'tblTempUsageDetail_20' ) end [2025-04-25 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:35:21] Production.INFO: ==16867== Releasing lock... [2025-04-25 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:35:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:36:06 [end_date_ymd] => 2025-04-25 23:36:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:36:06' and `end` < '2025-04-25 23: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-04-25 23:36:18] Production.INFO: count ==1663 [2025-04-25 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:36:06 - End Time 2025-04-25 23:36:06 [2025-04-25 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990339', 'tblTempUsageDetail_20' ) start [2025-04-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990339', 'tblTempUsageDetail_20' ) end [2025-04-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990339', 'tblTempVendorCDR_20' ) start [2025-04-25 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990339', 'tblTempVendorCDR_20' ) end [2025-04-25 23:36:19] Production.INFO: ProcessCDR(1,14990339,1,1,2) [2025-04-25 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990339', 'tblTempUsageDetail_20' ) start [2025-04-25 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990339', 'tblTempUsageDetail_20' ) end [2025-04-25 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:36:22] Production.INFO: ==16937== Releasing lock... [2025-04-25 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:37:06 [end_date_ymd] => 2025-04-25 23:37:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:37:06' and `end` < '2025-04-25 23: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-04-25 23:37:18] Production.INFO: count ==1660 [2025-04-25 23:37:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:37:06 - End Time 2025-04-25 23:37:06 [2025-04-25 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990344', 'tblTempUsageDetail_20' ) start [2025-04-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990344', 'tblTempUsageDetail_20' ) end [2025-04-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990344', 'tblTempVendorCDR_20' ) start [2025-04-25 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990344', 'tblTempVendorCDR_20' ) end [2025-04-25 23:37:19] Production.INFO: ProcessCDR(1,14990344,1,1,2) [2025-04-25 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990344', 'tblTempUsageDetail_20' ) start [2025-04-25 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990344', 'tblTempUsageDetail_20' ) end [2025-04-25 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:37:22] Production.INFO: ==17009== Releasing lock... [2025-04-25 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:37:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-25 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:38:05 [end_date_ymd] => 2025-04-25 23:38:05 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:38:05' and `end` < '2025-04-25 23: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-04-25 23:38:18] Production.INFO: count ==1659 [2025-04-25 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:38:05 - End Time 2025-04-25 23:38:05 [2025-04-25 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990349', 'tblTempUsageDetail_20' ) start [2025-04-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990349', 'tblTempUsageDetail_20' ) end [2025-04-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990349', 'tblTempVendorCDR_20' ) start [2025-04-25 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990349', 'tblTempVendorCDR_20' ) end [2025-04-25 23:38:18] Production.INFO: ProcessCDR(1,14990349,1,1,2) [2025-04-25 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990349', 'tblTempUsageDetail_20' ) start [2025-04-25 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990349', 'tblTempUsageDetail_20' ) end [2025-04-25 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:38:21] Production.INFO: ==17082== Releasing lock... [2025-04-25 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:38:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:39:06 [end_date_ymd] => 2025-04-25 23:39:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:39:06' and `end` < '2025-04-25 23: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-04-25 23:39:19] Production.INFO: count ==1656 [2025-04-25 23:39:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:39:06 - End Time 2025-04-25 23:39:06 [2025-04-25 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990354', 'tblTempUsageDetail_20' ) start [2025-04-25 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990354', 'tblTempUsageDetail_20' ) end [2025-04-25 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990354', 'tblTempVendorCDR_20' ) start [2025-04-25 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990354', 'tblTempVendorCDR_20' ) end [2025-04-25 23:39:19] Production.INFO: ProcessCDR(1,14990354,1,1,2) [2025-04-25 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990354', 'tblTempUsageDetail_20' ) start [2025-04-25 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990354', 'tblTempUsageDetail_20' ) end [2025-04-25 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:39:24] Production.INFO: ==17193== Releasing lock... [2025-04-25 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:39:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-25 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:40:06 [end_date_ymd] => 2025-04-25 23:40:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:40:06' and `end` < '2025-04-25 23: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-04-25 23:40:18] Production.INFO: count ==1640 [2025-04-25 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:40:06 - End Time 2025-04-25 23:40:06 [2025-04-25 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990360', 'tblTempUsageDetail_20' ) start [2025-04-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990360', 'tblTempUsageDetail_20' ) end [2025-04-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990360', 'tblTempVendorCDR_20' ) start [2025-04-25 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990360', 'tblTempVendorCDR_20' ) end [2025-04-25 23:40:19] Production.INFO: ProcessCDR(1,14990360,1,1,2) [2025-04-25 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990360', 'tblTempUsageDetail_20' ) start [2025-04-25 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990360', 'tblTempUsageDetail_20' ) end [2025-04-25 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:40:22] Production.INFO: ==17288== Releasing lock... [2025-04-25 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-25 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:41:05 [end_date_ymd] => 2025-04-25 23:41:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:41:05' and `end` < '2025-04-25 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-04-25 23:41:18] Production.INFO: count ==1574 [2025-04-25 23:41:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:41:05 - End Time 2025-04-25 23:41:05 [2025-04-25 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990365', 'tblTempUsageDetail_20' ) start [2025-04-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990365', 'tblTempUsageDetail_20' ) end [2025-04-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990365', 'tblTempVendorCDR_20' ) start [2025-04-25 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990365', 'tblTempVendorCDR_20' ) end [2025-04-25 23:41:19] Production.INFO: ProcessCDR(1,14990365,1,1,2) [2025-04-25 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990365', 'tblTempUsageDetail_20' ) start [2025-04-25 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990365', 'tblTempUsageDetail_20' ) end [2025-04-25 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:41:22] Production.INFO: ==17379== Releasing lock... [2025-04-25 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:41:22] Production.INFO: 40 MB #Memory Used# [2025-04-25 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:42:05 [end_date_ymd] => 2025-04-25 23:42:05 [RateCDR] => 1 ) [2025-04-25 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:42:05' and `end` < '2025-04-25 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:42:17] Production.INFO: count ==1560 [2025-04-25 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:42:05 - End Time 2025-04-25 23:42:05 [2025-04-25 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990370', 'tblTempUsageDetail_20' ) start [2025-04-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990370', 'tblTempUsageDetail_20' ) end [2025-04-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990370', 'tblTempVendorCDR_20' ) start [2025-04-25 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990370', 'tblTempVendorCDR_20' ) end [2025-04-25 23:42:18] Production.INFO: ProcessCDR(1,14990370,1,1,2) [2025-04-25 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990370', 'tblTempUsageDetail_20' ) start [2025-04-25 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990370', 'tblTempUsageDetail_20' ) end [2025-04-25 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:42:21] Production.INFO: ==17469== Releasing lock... [2025-04-25 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:42:21] Production.INFO: 40 MB #Memory Used# [2025-04-25 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:43:05 [end_date_ymd] => 2025-04-25 23:43:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:43:05' and `end` < '2025-04-25 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-04-25 23:43:18] Production.INFO: count ==1562 [2025-04-25 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:43:05 - End Time 2025-04-25 23:43:05 [2025-04-25 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990375', 'tblTempUsageDetail_20' ) start [2025-04-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990375', 'tblTempUsageDetail_20' ) end [2025-04-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990375', 'tblTempVendorCDR_20' ) start [2025-04-25 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990375', 'tblTempVendorCDR_20' ) end [2025-04-25 23:43:18] Production.INFO: ProcessCDR(1,14990375,1,1,2) [2025-04-25 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990375', 'tblTempUsageDetail_20' ) start [2025-04-25 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990375', 'tblTempUsageDetail_20' ) end [2025-04-25 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:43:23] Production.INFO: ==17560== Releasing lock... [2025-04-25 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:43:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:44:06 [end_date_ymd] => 2025-04-25 23:44:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:44:06' and `end` < '2025-04-25 23: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-04-25 23:44:18] Production.INFO: count ==1556 [2025-04-25 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:44:06 - End Time 2025-04-25 23:44:06 [2025-04-25 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990380', 'tblTempUsageDetail_20' ) start [2025-04-25 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990380', 'tblTempUsageDetail_20' ) end [2025-04-25 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990380', 'tblTempVendorCDR_20' ) start [2025-04-25 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990380', 'tblTempVendorCDR_20' ) end [2025-04-25 23:44:19] Production.INFO: ProcessCDR(1,14990380,1,1,2) [2025-04-25 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990380', 'tblTempUsageDetail_20' ) start [2025-04-25 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990380', 'tblTempUsageDetail_20' ) end [2025-04-25 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:44:22] Production.INFO: ==17650== Releasing lock... [2025-04-25 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:44:22] Production.INFO: 40 MB #Memory Used# [2025-04-25 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:45:05 [end_date_ymd] => 2025-04-25 23:45:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:45:05' and `end` < '2025-04-25 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-04-25 23:45:18] Production.INFO: count ==1551 [2025-04-25 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:45:05 - End Time 2025-04-25 23:45:05 [2025-04-25 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990385', 'tblTempUsageDetail_20' ) start [2025-04-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990385', 'tblTempUsageDetail_20' ) end [2025-04-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990385', 'tblTempVendorCDR_20' ) start [2025-04-25 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990385', 'tblTempVendorCDR_20' ) end [2025-04-25 23:45:18] Production.INFO: ProcessCDR(1,14990385,1,1,2) [2025-04-25 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990385', 'tblTempUsageDetail_20' ) start [2025-04-25 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990385', 'tblTempUsageDetail_20' ) end [2025-04-25 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:45:22] Production.INFO: ==17726== Releasing lock... [2025-04-25 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:45:22] Production.INFO: 40 MB #Memory Used# [2025-04-25 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:46:05 [end_date_ymd] => 2025-04-25 23:46:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:46:05' and `end` < '2025-04-25 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-04-25 23:46:18] Production.INFO: count ==1548 [2025-04-25 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:46:05 - End Time 2025-04-25 23:46:05 [2025-04-25 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990390', 'tblTempUsageDetail_20' ) start [2025-04-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990390', 'tblTempUsageDetail_20' ) end [2025-04-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990390', 'tblTempVendorCDR_20' ) start [2025-04-25 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990390', 'tblTempVendorCDR_20' ) end [2025-04-25 23:46:18] Production.INFO: ProcessCDR(1,14990390,1,1,2) [2025-04-25 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990390', 'tblTempUsageDetail_20' ) start [2025-04-25 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990390', 'tblTempUsageDetail_20' ) end [2025-04-25 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:46:22] Production.INFO: ==17805== Releasing lock... [2025-04-25 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-25 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:47:04 [end_date_ymd] => 2025-04-25 23:47:04 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:47:04' and `end` < '2025-04-25 23:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:47:17] Production.INFO: count ==1548 [2025-04-25 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:47:04 - End Time 2025-04-25 23:47:04 [2025-04-25 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990395', 'tblTempUsageDetail_20' ) start [2025-04-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990395', 'tblTempUsageDetail_20' ) end [2025-04-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990395', 'tblTempVendorCDR_20' ) start [2025-04-25 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990395', 'tblTempVendorCDR_20' ) end [2025-04-25 23:47:18] Production.INFO: ProcessCDR(1,14990395,1,1,2) [2025-04-25 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990395', 'tblTempUsageDetail_20' ) start [2025-04-25 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990395', 'tblTempUsageDetail_20' ) end [2025-04-25 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:47:21] Production.INFO: ==17876== Releasing lock... [2025-04-25 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:47:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:48:05 [end_date_ymd] => 2025-04-25 23:48:05 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:48:05' and `end` < '2025-04-25 23: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-04-25 23:48:18] Production.INFO: count ==1548 [2025-04-25 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:48:05 - End Time 2025-04-25 23:48:05 [2025-04-25 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990400', 'tblTempUsageDetail_20' ) start [2025-04-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990400', 'tblTempUsageDetail_20' ) end [2025-04-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990400', 'tblTempVendorCDR_20' ) start [2025-04-25 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990400', 'tblTempVendorCDR_20' ) end [2025-04-25 23:48:18] Production.INFO: ProcessCDR(1,14990400,1,1,2) [2025-04-25 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990400', 'tblTempUsageDetail_20' ) start [2025-04-25 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990400', 'tblTempUsageDetail_20' ) end [2025-04-25 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:48:23] Production.INFO: ==17952== Releasing lock... [2025-04-25 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:48:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:49:05 [end_date_ymd] => 2025-04-25 23:49:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:49:05' and `end` < '2025-04-25 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-04-25 23:49:18] Production.INFO: count ==1541 [2025-04-25 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:49:05 - End Time 2025-04-25 23:49:05 [2025-04-25 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990405', 'tblTempUsageDetail_20' ) start [2025-04-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990405', 'tblTempUsageDetail_20' ) end [2025-04-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990405', 'tblTempVendorCDR_20' ) start [2025-04-25 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990405', 'tblTempVendorCDR_20' ) end [2025-04-25 23:49:18] Production.INFO: ProcessCDR(1,14990405,1,1,2) [2025-04-25 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990405', 'tblTempUsageDetail_20' ) start [2025-04-25 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990405', 'tblTempUsageDetail_20' ) end [2025-04-25 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:49:22] Production.INFO: ==18022== Releasing lock... [2025-04-25 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-25 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:50:05 [end_date_ymd] => 2025-04-25 23:50:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:50:05' and `end` < '2025-04-25 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-04-25 23:50:18] Production.INFO: count ==1535 [2025-04-25 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:50:05 - End Time 2025-04-25 23:50:05 [2025-04-25 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990411', 'tblTempUsageDetail_20' ) start [2025-04-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990411', 'tblTempUsageDetail_20' ) end [2025-04-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990411', 'tblTempVendorCDR_20' ) start [2025-04-25 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990411', 'tblTempVendorCDR_20' ) end [2025-04-25 23:50:19] Production.INFO: ProcessCDR(1,14990411,1,1,2) [2025-04-25 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990411', 'tblTempUsageDetail_20' ) start [2025-04-25 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990411', 'tblTempUsageDetail_20' ) end [2025-04-25 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:50:24] Production.INFO: ==18097== Releasing lock... [2025-04-25 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:50:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:51:05 [end_date_ymd] => 2025-04-25 23:51:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:51:05' and `end` < '2025-04-25 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-04-25 23:51:17] Production.INFO: count ==1497 [2025-04-25 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:51:05 - End Time 2025-04-25 23:51:05 [2025-04-25 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990416', 'tblTempUsageDetail_20' ) start [2025-04-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990416', 'tblTempUsageDetail_20' ) end [2025-04-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990416', 'tblTempVendorCDR_20' ) start [2025-04-25 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990416', 'tblTempVendorCDR_20' ) end [2025-04-25 23:51:18] Production.INFO: ProcessCDR(1,14990416,1,1,2) [2025-04-25 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990416', 'tblTempUsageDetail_20' ) start [2025-04-25 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990416', 'tblTempUsageDetail_20' ) end [2025-04-25 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:51:21] Production.INFO: ==18173== Releasing lock... [2025-04-25 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:51:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-25 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:52:05 [end_date_ymd] => 2025-04-25 23:52:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:52:05' and `end` < '2025-04-25 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-04-25 23:52:17] Production.INFO: count ==1494 [2025-04-25 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:52:05 - End Time 2025-04-25 23:52:05 [2025-04-25 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990421', 'tblTempUsageDetail_20' ) start [2025-04-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990421', 'tblTempUsageDetail_20' ) end [2025-04-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990421', 'tblTempVendorCDR_20' ) start [2025-04-25 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990421', 'tblTempVendorCDR_20' ) end [2025-04-25 23:52:18] Production.INFO: ProcessCDR(1,14990421,1,1,2) [2025-04-25 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990421', 'tblTempUsageDetail_20' ) start [2025-04-25 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990421', 'tblTempUsageDetail_20' ) end [2025-04-25 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:52:21] Production.INFO: ==18244== Releasing lock... [2025-04-25 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:52:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:53:05 [end_date_ymd] => 2025-04-25 23:53:05 [RateCDR] => 1 ) [2025-04-25 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:53:05' and `end` < '2025-04-25 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:53:18] Production.INFO: count ==1486 [2025-04-25 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:53:05 - End Time 2025-04-25 23:53:05 [2025-04-25 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990426', 'tblTempUsageDetail_20' ) start [2025-04-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990426', 'tblTempUsageDetail_20' ) end [2025-04-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990426', 'tblTempVendorCDR_20' ) start [2025-04-25 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990426', 'tblTempVendorCDR_20' ) end [2025-04-25 23:53:18] Production.INFO: ProcessCDR(1,14990426,1,1,2) [2025-04-25 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990426', 'tblTempUsageDetail_20' ) start [2025-04-25 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990426', 'tblTempUsageDetail_20' ) end [2025-04-25 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:53:21] Production.INFO: ==18323== Releasing lock... [2025-04-25 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:53:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-25 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:54:06 [end_date_ymd] => 2025-04-25 23:54:06 [RateCDR] => 1 ) [2025-04-25 23: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-04-25 20:54:06' and `end` < '2025-04-25 23: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-04-25 23:54:18] Production.INFO: count ==1485 [2025-04-25 23:54:19] Production.ERROR: pbx CDR StartTime 2025-04-25 20:54:06 - End Time 2025-04-25 23:54:06 [2025-04-25 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990431', 'tblTempUsageDetail_20' ) start [2025-04-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990431', 'tblTempUsageDetail_20' ) end [2025-04-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990431', 'tblTempVendorCDR_20' ) start [2025-04-25 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990431', 'tblTempVendorCDR_20' ) end [2025-04-25 23:54:19] Production.INFO: ProcessCDR(1,14990431,1,1,2) [2025-04-25 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990431', 'tblTempUsageDetail_20' ) start [2025-04-25 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990431', 'tblTempUsageDetail_20' ) end [2025-04-25 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:54:22] Production.INFO: ==18396== Releasing lock... [2025-04-25 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:54:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-25 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:55:05 [end_date_ymd] => 2025-04-25 23:55:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:55:05' and `end` < '2025-04-25 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-04-25 23:55:17] Production.INFO: count ==1481 [2025-04-25 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:55:05 - End Time 2025-04-25 23:55:05 [2025-04-25 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990436', 'tblTempUsageDetail_20' ) start [2025-04-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990436', 'tblTempUsageDetail_20' ) end [2025-04-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990436', 'tblTempVendorCDR_20' ) start [2025-04-25 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990436', 'tblTempVendorCDR_20' ) end [2025-04-25 23:55:18] Production.INFO: ProcessCDR(1,14990436,1,1,2) [2025-04-25 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990436', 'tblTempUsageDetail_20' ) start [2025-04-25 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990436', 'tblTempUsageDetail_20' ) end [2025-04-25 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:55:21] Production.INFO: ==18505== Releasing lock... [2025-04-25 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:55:21] Production.INFO: 39.75 MB #Memory Used# [2025-04-25 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:56:05 [end_date_ymd] => 2025-04-25 23:56:05 [RateCDR] => 1 ) [2025-04-25 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-04-25 20:56:05' and `end` < '2025-04-25 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-04-25 23:56:18] Production.INFO: count ==1476 [2025-04-25 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:56:05 - End Time 2025-04-25 23:56:05 [2025-04-25 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990441', 'tblTempUsageDetail_20' ) start [2025-04-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990441', 'tblTempUsageDetail_20' ) end [2025-04-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990441', 'tblTempVendorCDR_20' ) start [2025-04-25 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990441', 'tblTempVendorCDR_20' ) end [2025-04-25 23:56:18] Production.INFO: ProcessCDR(1,14990441,1,1,2) [2025-04-25 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990441', 'tblTempUsageDetail_20' ) start [2025-04-25 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990441', 'tblTempUsageDetail_20' ) end [2025-04-25 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:56:22] Production.INFO: ==18583== Releasing lock... [2025-04-25 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:56:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-25 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:57:05 [end_date_ymd] => 2025-04-25 23:57:05 [RateCDR] => 1 ) [2025-04-25 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:57:05' and `end` < '2025-04-25 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:57:18] Production.INFO: count ==1477 [2025-04-25 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:57:05 - End Time 2025-04-25 23:57:05 [2025-04-25 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990446', 'tblTempUsageDetail_20' ) start [2025-04-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990446', 'tblTempUsageDetail_20' ) end [2025-04-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990446', 'tblTempVendorCDR_20' ) start [2025-04-25 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990446', 'tblTempVendorCDR_20' ) end [2025-04-25 23:57:18] Production.INFO: ProcessCDR(1,14990446,1,1,2) [2025-04-25 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990446', 'tblTempUsageDetail_20' ) start [2025-04-25 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990446', 'tblTempUsageDetail_20' ) end [2025-04-25 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:57:23] Production.INFO: ==18662== Releasing lock... [2025-04-25 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:57:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-25 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:58:05 [end_date_ymd] => 2025-04-25 23:58:05 [RateCDR] => 1 ) [2025-04-25 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:58:05' and `end` < '2025-04-25 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:58:18] Production.INFO: count ==1472 [2025-04-25 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:58:05 - End Time 2025-04-25 23:58:05 [2025-04-25 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990451', 'tblTempUsageDetail_20' ) start [2025-04-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990451', 'tblTempUsageDetail_20' ) end [2025-04-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990451', 'tblTempVendorCDR_20' ) start [2025-04-25 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990451', 'tblTempVendorCDR_20' ) end [2025-04-25 23:58:18] Production.INFO: ProcessCDR(1,14990451,1,1,2) [2025-04-25 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990451', 'tblTempUsageDetail_20' ) start [2025-04-25 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990451', 'tblTempUsageDetail_20' ) end [2025-04-25 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:58:22] Production.INFO: ==18741== Releasing lock... [2025-04-25 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:58:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-25 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-25 20:59:05 [end_date_ymd] => 2025-04-25 23:59:05 [RateCDR] => 1 ) [2025-04-25 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-25 20:59:05' and `end` < '2025-04-25 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-25 23:59:17] Production.INFO: count ==1471 [2025-04-25 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-25 20:59:05 - End Time 2025-04-25 23:59:05 [2025-04-25 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990456', 'tblTempUsageDetail_20' ) start [2025-04-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14990456', 'tblTempUsageDetail_20' ) end [2025-04-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990456', 'tblTempVendorCDR_20' ) start [2025-04-25 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14990456', 'tblTempVendorCDR_20' ) end [2025-04-25 23:59:18] Production.INFO: ProcessCDR(1,14990456,1,1,2) [2025-04-25 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14990456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14990456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-25 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14990456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14990456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-25 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990456', 'tblTempUsageDetail_20' ) start [2025-04-25 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14990456', 'tblTempUsageDetail_20' ) end [2025-04-25 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-25 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-25 23:59:22] Production.INFO: ==18818== Releasing lock... [2025-04-25 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-25 23:59:22] Production.INFO: 39 MB #Memory Used#