[2025-04-03 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:00:06 [end_date_ymd] => 2025-04-03 00:00:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:00:06' and `end` < '2025-04-03 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-03 00:00:20] Production.INFO: count ==1240 [2025-04-03 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-02 21:00:06 - End Time 2025-04-03 00:00:06 [2025-04-03 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821695', 'tblTempUsageDetail_20' ) start [2025-04-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821695', 'tblTempUsageDetail_20' ) end [2025-04-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821695', 'tblTempVendorCDR_20' ) start [2025-04-03 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821695', 'tblTempVendorCDR_20' ) end [2025-04-03 00:00:20] Production.INFO: ProcessCDR(1,14821695,1,1,2) [2025-04-03 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821695', 'tblTempUsageDetail_20' ) start [2025-04-03 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821695', 'tblTempUsageDetail_20' ) end [2025-04-03 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:00:27] Production.INFO: ==24219== Releasing lock... [2025-04-03 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:00:27] Production.INFO: 39.75 MB #Memory Used# [2025-04-03 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:01:06 [end_date_ymd] => 2025-04-03 00:01:06 [RateCDR] => 1 ) [2025-04-03 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:01:06' and `end` < '2025-04-03 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:01:19] Production.INFO: count ==777 [2025-04-03 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-02 21:01:06 - End Time 2025-04-03 00:01:06 [2025-04-03 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821700', 'tblTempUsageDetail_20' ) start [2025-04-03 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821700', 'tblTempUsageDetail_20' ) end [2025-04-03 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821700', 'tblTempVendorCDR_20' ) start [2025-04-03 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821700', 'tblTempVendorCDR_20' ) end [2025-04-03 00:01:20] Production.INFO: ProcessCDR(1,14821700,1,1,2) [2025-04-03 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821700', 'tblTempUsageDetail_20' ) start [2025-04-03 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821700', 'tblTempUsageDetail_20' ) end [2025-04-03 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:01:26] Production.INFO: ==24308== Releasing lock... [2025-04-03 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:01:26] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:02:05 [end_date_ymd] => 2025-04-03 00:02:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:02:05' and `end` < '2025-04-03 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-03 00:02:18] Production.INFO: count ==764 [2025-04-03 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:02:05 - End Time 2025-04-03 00:02:05 [2025-04-03 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821705', 'tblTempUsageDetail_20' ) start [2025-04-03 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821705', 'tblTempUsageDetail_20' ) end [2025-04-03 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821705', 'tblTempVendorCDR_20' ) start [2025-04-03 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821705', 'tblTempVendorCDR_20' ) end [2025-04-03 00:02:18] Production.INFO: ProcessCDR(1,14821705,1,1,2) [2025-04-03 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821705', 'tblTempUsageDetail_20' ) start [2025-04-03 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821705', 'tblTempUsageDetail_20' ) end [2025-04-03 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:02:23] Production.INFO: ==24378== Releasing lock... [2025-04-03 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:02:23] Production.INFO: 35 MB #Memory Used# [2025-04-03 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:03:05 [end_date_ymd] => 2025-04-03 00:03:05 [RateCDR] => 1 ) [2025-04-03 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:03:05' and `end` < '2025-04-03 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:03:19] Production.INFO: count ==762 [2025-04-03 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:03:05 - End Time 2025-04-03 00:03:05 [2025-04-03 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821710', 'tblTempUsageDetail_20' ) start [2025-04-03 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821710', 'tblTempUsageDetail_20' ) end [2025-04-03 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821710', 'tblTempVendorCDR_20' ) start [2025-04-03 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821710', 'tblTempVendorCDR_20' ) end [2025-04-03 00:03:19] Production.INFO: ProcessCDR(1,14821710,1,1,2) [2025-04-03 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821710', 'tblTempUsageDetail_20' ) start [2025-04-03 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821710', 'tblTempUsageDetail_20' ) end [2025-04-03 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:03:22] Production.INFO: ==24450== Releasing lock... [2025-04-03 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:03:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:04:05 [end_date_ymd] => 2025-04-03 00:04:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:04:05' and `end` < '2025-04-03 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-03 00:04:21] Production.INFO: count ==749 [2025-04-03 00:04:21] Production.ERROR: pbx CDR StartTime 2025-04-02 21:04:05 - End Time 2025-04-03 00:04:05 [2025-04-03 00:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821715', 'tblTempUsageDetail_20' ) start [2025-04-03 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821715', 'tblTempUsageDetail_20' ) end [2025-04-03 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821715', 'tblTempVendorCDR_20' ) start [2025-04-03 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821715', 'tblTempVendorCDR_20' ) end [2025-04-03 00:04:21] Production.INFO: ProcessCDR(1,14821715,1,1,2) [2025-04-03 00:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821715', 'tblTempUsageDetail_20' ) start [2025-04-03 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821715', 'tblTempUsageDetail_20' ) end [2025-04-03 00:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:04:25] Production.INFO: ==24520== Releasing lock... [2025-04-03 00:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:04:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:05:06 [end_date_ymd] => 2025-04-03 00:05:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:05:06' and `end` < '2025-04-03 00: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-03 00:05:29] Production.INFO: count ==750 [2025-04-03 00:05:29] Production.ERROR: pbx CDR StartTime 2025-04-02 21:05:06 - End Time 2025-04-03 00:05:06 [2025-04-03 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821720', 'tblTempUsageDetail_20' ) start [2025-04-03 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821720', 'tblTempUsageDetail_20' ) end [2025-04-03 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821720', 'tblTempVendorCDR_20' ) start [2025-04-03 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821720', 'tblTempVendorCDR_20' ) end [2025-04-03 00:05:29] Production.INFO: ProcessCDR(1,14821720,1,1,2) [2025-04-03 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821720', 'tblTempUsageDetail_20' ) start [2025-04-03 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821720', 'tblTempUsageDetail_20' ) end [2025-04-03 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:05:33] Production.INFO: ==24592== Releasing lock... [2025-04-03 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:05:33] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:06:05 [end_date_ymd] => 2025-04-03 00:06:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:06:05' and `end` < '2025-04-03 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-03 00:06:29] Production.INFO: count ==747 [2025-04-03 00:06:29] Production.ERROR: pbx CDR StartTime 2025-04-02 21:06:05 - End Time 2025-04-03 00:06:05 [2025-04-03 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821725', 'tblTempUsageDetail_20' ) start [2025-04-03 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821725', 'tblTempUsageDetail_20' ) end [2025-04-03 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821725', 'tblTempVendorCDR_20' ) start [2025-04-03 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821725', 'tblTempVendorCDR_20' ) end [2025-04-03 00:06:29] Production.INFO: ProcessCDR(1,14821725,1,1,2) [2025-04-03 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821725', 'tblTempUsageDetail_20' ) start [2025-04-03 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821725', 'tblTempUsageDetail_20' ) end [2025-04-03 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:06:33] Production.INFO: ==24663== Releasing lock... [2025-04-03 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:06:33] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:07:06 [end_date_ymd] => 2025-04-03 00:07:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:07:06' and `end` < '2025-04-03 00: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-03 00:07:29] Production.INFO: count ==747 [2025-04-03 00:07:30] Production.ERROR: pbx CDR StartTime 2025-04-02 21:07:06 - End Time 2025-04-03 00:07:06 [2025-04-03 00:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821730', 'tblTempUsageDetail_20' ) start [2025-04-03 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821730', 'tblTempUsageDetail_20' ) end [2025-04-03 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821730', 'tblTempVendorCDR_20' ) start [2025-04-03 00:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821730', 'tblTempVendorCDR_20' ) end [2025-04-03 00:07:30] Production.INFO: ProcessCDR(1,14821730,1,1,2) [2025-04-03 00:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821730', 'tblTempUsageDetail_20' ) start [2025-04-03 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821730', 'tblTempUsageDetail_20' ) end [2025-04-03 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:07:33] Production.INFO: ==24740== Releasing lock... [2025-04-03 00:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:07:33] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:08:05 [end_date_ymd] => 2025-04-03 00:08:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:08:05' and `end` < '2025-04-03 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-03 00:08:27] Production.INFO: count ==751 [2025-04-03 00:08:28] Production.ERROR: pbx CDR StartTime 2025-04-02 21:08:05 - End Time 2025-04-03 00:08:05 [2025-04-03 00:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821735', 'tblTempUsageDetail_20' ) start [2025-04-03 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821735', 'tblTempUsageDetail_20' ) end [2025-04-03 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821735', 'tblTempVendorCDR_20' ) start [2025-04-03 00:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821735', 'tblTempVendorCDR_20' ) end [2025-04-03 00:08:28] Production.INFO: ProcessCDR(1,14821735,1,1,2) [2025-04-03 00:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821735', 'tblTempUsageDetail_20' ) start [2025-04-03 00:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821735', 'tblTempUsageDetail_20' ) end [2025-04-03 00:08:33] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:08:33] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:08:33] Production.INFO: ==24812== Releasing lock... [2025-04-03 00:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:08:33] Production.INFO: 35 MB #Memory Used# [2025-04-03 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:09:06 [end_date_ymd] => 2025-04-03 00:09:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:09:06' and `end` < '2025-04-03 00: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-03 00:09:19] Production.INFO: count ==745 [2025-04-03 00:09:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:09:06 - End Time 2025-04-03 00:09:06 [2025-04-03 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821740', 'tblTempUsageDetail_20' ) start [2025-04-03 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821740', 'tblTempUsageDetail_20' ) end [2025-04-03 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821740', 'tblTempVendorCDR_20' ) start [2025-04-03 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821740', 'tblTempVendorCDR_20' ) end [2025-04-03 00:09:19] Production.INFO: ProcessCDR(1,14821740,1,1,2) [2025-04-03 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821740', 'tblTempUsageDetail_20' ) start [2025-04-03 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821740', 'tblTempUsageDetail_20' ) end [2025-04-03 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:09:23] Production.INFO: ==24884== Releasing lock... [2025-04-03 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:10:06 [end_date_ymd] => 2025-04-03 00:10:06 [RateCDR] => 1 ) [2025-04-03 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:10:06' and `end` < '2025-04-03 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:10:19] Production.INFO: count ==756 [2025-04-03 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:10:06 - End Time 2025-04-03 00:10:06 [2025-04-03 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821746', 'tblTempUsageDetail_20' ) start [2025-04-03 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821746', 'tblTempUsageDetail_20' ) end [2025-04-03 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821746', 'tblTempVendorCDR_20' ) start [2025-04-03 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821746', 'tblTempVendorCDR_20' ) end [2025-04-03 00:10:19] Production.INFO: ProcessCDR(1,14821746,1,1,2) [2025-04-03 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821746', 'tblTempUsageDetail_20' ) start [2025-04-03 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821746', 'tblTempUsageDetail_20' ) end [2025-04-03 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:10:23] Production.INFO: ==24957== Releasing lock... [2025-04-03 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:11:06 [end_date_ymd] => 2025-04-03 00:11:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:11:06' and `end` < '2025-04-03 00: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-03 00:11:19] Production.INFO: count ==760 [2025-04-03 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:11:06 - End Time 2025-04-03 00:11:06 [2025-04-03 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821751', 'tblTempUsageDetail_20' ) start [2025-04-03 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821751', 'tblTempUsageDetail_20' ) end [2025-04-03 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821751', 'tblTempVendorCDR_20' ) start [2025-04-03 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821751', 'tblTempVendorCDR_20' ) end [2025-04-03 00:11:19] Production.INFO: ProcessCDR(1,14821751,1,1,2) [2025-04-03 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821751', 'tblTempUsageDetail_20' ) start [2025-04-03 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821751', 'tblTempUsageDetail_20' ) end [2025-04-03 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:11:22] Production.INFO: ==25035== Releasing lock... [2025-04-03 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:12:05 [end_date_ymd] => 2025-04-03 00:12:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:12:05' and `end` < '2025-04-03 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-03 00:12:18] Production.INFO: count ==761 [2025-04-03 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:12:05 - End Time 2025-04-03 00:12:05 [2025-04-03 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821756', 'tblTempUsageDetail_20' ) start [2025-04-03 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821756', 'tblTempUsageDetail_20' ) end [2025-04-03 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821756', 'tblTempVendorCDR_20' ) start [2025-04-03 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821756', 'tblTempVendorCDR_20' ) end [2025-04-03 00:12:18] Production.INFO: ProcessCDR(1,14821756,1,1,2) [2025-04-03 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821756', 'tblTempUsageDetail_20' ) start [2025-04-03 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821756', 'tblTempUsageDetail_20' ) end [2025-04-03 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:12:21] Production.INFO: ==25106== Releasing lock... [2025-04-03 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:12:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:13:06 [end_date_ymd] => 2025-04-03 00:13:06 [RateCDR] => 1 ) [2025-04-03 00:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:13:06' and `end` < '2025-04-03 00:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:13:19] Production.INFO: count ==761 [2025-04-03 00:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:13:06 - End Time 2025-04-03 00:13:06 [2025-04-03 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821761', 'tblTempUsageDetail_20' ) start [2025-04-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821761', 'tblTempUsageDetail_20' ) end [2025-04-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821761', 'tblTempVendorCDR_20' ) start [2025-04-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821761', 'tblTempVendorCDR_20' ) end [2025-04-03 00:13:19] Production.INFO: ProcessCDR(1,14821761,1,1,2) [2025-04-03 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821761', 'tblTempUsageDetail_20' ) start [2025-04-03 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821761', 'tblTempUsageDetail_20' ) end [2025-04-03 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:13:23] Production.INFO: ==25177== Releasing lock... [2025-04-03 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:14:06 [end_date_ymd] => 2025-04-03 00:14:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:14:06' and `end` < '2025-04-03 00: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-03 00:14:18] Production.INFO: count ==754 [2025-04-03 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:14:06 - End Time 2025-04-03 00:14:06 [2025-04-03 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821766', 'tblTempUsageDetail_20' ) start [2025-04-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821766', 'tblTempUsageDetail_20' ) end [2025-04-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821766', 'tblTempVendorCDR_20' ) start [2025-04-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821766', 'tblTempVendorCDR_20' ) end [2025-04-03 00:14:19] Production.INFO: ProcessCDR(1,14821766,1,1,2) [2025-04-03 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821766', 'tblTempUsageDetail_20' ) start [2025-04-03 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821766', 'tblTempUsageDetail_20' ) end [2025-04-03 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:14:22] Production.INFO: ==25246== Releasing lock... [2025-04-03 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:14:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:15:05 [end_date_ymd] => 2025-04-03 00:15:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:15:05' and `end` < '2025-04-03 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-03 00:15:18] Production.INFO: count ==744 [2025-04-03 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:15:05 - End Time 2025-04-03 00:15:05 [2025-04-03 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821771', 'tblTempUsageDetail_20' ) start [2025-04-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821771', 'tblTempUsageDetail_20' ) end [2025-04-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821771', 'tblTempVendorCDR_20' ) start [2025-04-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821771', 'tblTempVendorCDR_20' ) end [2025-04-03 00:15:18] Production.INFO: ProcessCDR(1,14821771,1,1,2) [2025-04-03 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821771', 'tblTempUsageDetail_20' ) start [2025-04-03 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821771', 'tblTempUsageDetail_20' ) end [2025-04-03 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:15:22] Production.INFO: ==25357== Releasing lock... [2025-04-03 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:16:05 [end_date_ymd] => 2025-04-03 00:16:05 [RateCDR] => 1 ) [2025-04-03 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:16:05' and `end` < '2025-04-03 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:16:18] Production.INFO: count ==721 [2025-04-03 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:16:05 - End Time 2025-04-03 00:16:05 [2025-04-03 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821776', 'tblTempUsageDetail_20' ) start [2025-04-03 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821776', 'tblTempUsageDetail_20' ) end [2025-04-03 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821776', 'tblTempVendorCDR_20' ) start [2025-04-03 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821776', 'tblTempVendorCDR_20' ) end [2025-04-03 00:16:18] Production.INFO: ProcessCDR(1,14821776,1,1,2) [2025-04-03 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821776', 'tblTempUsageDetail_20' ) start [2025-04-03 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821776', 'tblTempUsageDetail_20' ) end [2025-04-03 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:16:21] Production.INFO: ==25428== Releasing lock... [2025-04-03 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:17:06 [end_date_ymd] => 2025-04-03 00:17:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:17:06' and `end` < '2025-04-03 00: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-03 00:17:18] Production.INFO: count ==708 [2025-04-03 00:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:17:06 - End Time 2025-04-03 00:17:06 [2025-04-03 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821781', 'tblTempUsageDetail_20' ) start [2025-04-03 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821781', 'tblTempUsageDetail_20' ) end [2025-04-03 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821781', 'tblTempVendorCDR_20' ) start [2025-04-03 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821781', 'tblTempVendorCDR_20' ) end [2025-04-03 00:17:19] Production.INFO: ProcessCDR(1,14821781,1,1,2) [2025-04-03 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821781', 'tblTempUsageDetail_20' ) start [2025-04-03 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821781', 'tblTempUsageDetail_20' ) end [2025-04-03 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:17:22] Production.INFO: ==25500== Releasing lock... [2025-04-03 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:17:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:18:05 [end_date_ymd] => 2025-04-03 00:18:05 [RateCDR] => 1 ) [2025-04-03 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:18:05' and `end` < '2025-04-03 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:18:18] Production.INFO: count ==708 [2025-04-03 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:18:05 - End Time 2025-04-03 00:18:05 [2025-04-03 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821786', 'tblTempUsageDetail_20' ) start [2025-04-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821786', 'tblTempUsageDetail_20' ) end [2025-04-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821786', 'tblTempVendorCDR_20' ) start [2025-04-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821786', 'tblTempVendorCDR_20' ) end [2025-04-03 00:18:18] Production.INFO: ProcessCDR(1,14821786,1,1,2) [2025-04-03 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821786', 'tblTempUsageDetail_20' ) start [2025-04-03 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821786', 'tblTempUsageDetail_20' ) end [2025-04-03 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:18:22] Production.INFO: ==25570== Releasing lock... [2025-04-03 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:18:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:19:05 [end_date_ymd] => 2025-04-03 00:19:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:19:05' and `end` < '2025-04-03 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-03 00:19:18] Production.INFO: count ==701 [2025-04-03 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:19:05 - End Time 2025-04-03 00:19:05 [2025-04-03 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821791', 'tblTempUsageDetail_20' ) start [2025-04-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821791', 'tblTempUsageDetail_20' ) end [2025-04-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821791', 'tblTempVendorCDR_20' ) start [2025-04-03 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821791', 'tblTempVendorCDR_20' ) end [2025-04-03 00:19:18] Production.INFO: ProcessCDR(1,14821791,1,1,2) [2025-04-03 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821791', 'tblTempUsageDetail_20' ) start [2025-04-03 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821791', 'tblTempUsageDetail_20' ) end [2025-04-03 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:19:22] Production.INFO: ==25642== Releasing lock... [2025-04-03 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:19:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:20:06 [end_date_ymd] => 2025-04-03 00:20:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:20:06' and `end` < '2025-04-03 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-03 00:20:18] Production.INFO: count ==702 [2025-04-03 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:20:06 - End Time 2025-04-03 00:20:06 [2025-04-03 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821797', 'tblTempUsageDetail_20' ) start [2025-04-03 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821797', 'tblTempUsageDetail_20' ) end [2025-04-03 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821797', 'tblTempVendorCDR_20' ) start [2025-04-03 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821797', 'tblTempVendorCDR_20' ) end [2025-04-03 00:20:19] Production.INFO: ProcessCDR(1,14821797,1,1,2) [2025-04-03 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821797', 'tblTempUsageDetail_20' ) start [2025-04-03 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821797', 'tblTempUsageDetail_20' ) end [2025-04-03 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:20:22] Production.INFO: ==25714== Releasing lock... [2025-04-03 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:21:05 [end_date_ymd] => 2025-04-03 00:21:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:21:05' and `end` < '2025-04-03 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-03 00:21:18] Production.INFO: count ==694 [2025-04-03 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:21:05 - End Time 2025-04-03 00:21:05 [2025-04-03 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821802', 'tblTempUsageDetail_20' ) start [2025-04-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821802', 'tblTempUsageDetail_20' ) end [2025-04-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821802', 'tblTempVendorCDR_20' ) start [2025-04-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821802', 'tblTempVendorCDR_20' ) end [2025-04-03 00:21:18] Production.INFO: ProcessCDR(1,14821802,1,1,2) [2025-04-03 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821802', 'tblTempUsageDetail_20' ) start [2025-04-03 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821802', 'tblTempUsageDetail_20' ) end [2025-04-03 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:21:22] Production.INFO: ==25787== Releasing lock... [2025-04-03 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:22:05 [end_date_ymd] => 2025-04-03 00:22:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:22:05' and `end` < '2025-04-03 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-03 00:22:18] Production.INFO: count ==680 [2025-04-03 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:22:05 - End Time 2025-04-03 00:22:05 [2025-04-03 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821807', 'tblTempUsageDetail_20' ) start [2025-04-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821807', 'tblTempUsageDetail_20' ) end [2025-04-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821807', 'tblTempVendorCDR_20' ) start [2025-04-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821807', 'tblTempVendorCDR_20' ) end [2025-04-03 00:22:18] Production.INFO: ProcessCDR(1,14821807,1,1,2) [2025-04-03 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821807', 'tblTempUsageDetail_20' ) start [2025-04-03 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821807', 'tblTempUsageDetail_20' ) end [2025-04-03 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:22:22] Production.INFO: ==25856== Releasing lock... [2025-04-03 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:22:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:23:05 [end_date_ymd] => 2025-04-03 00:23:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:23:05' and `end` < '2025-04-03 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-03 00:23:18] Production.INFO: count ==670 [2025-04-03 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:23:05 - End Time 2025-04-03 00:23:05 [2025-04-03 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821812', 'tblTempUsageDetail_20' ) start [2025-04-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821812', 'tblTempUsageDetail_20' ) end [2025-04-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821812', 'tblTempVendorCDR_20' ) start [2025-04-03 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821812', 'tblTempVendorCDR_20' ) end [2025-04-03 00:23:18] Production.INFO: ProcessCDR(1,14821812,1,1,2) [2025-04-03 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821812', 'tblTempUsageDetail_20' ) start [2025-04-03 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821812', 'tblTempUsageDetail_20' ) end [2025-04-03 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:23:22] Production.INFO: ==25928== Releasing lock... [2025-04-03 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:23:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:24:05 [end_date_ymd] => 2025-04-03 00:24:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:24:05' and `end` < '2025-04-03 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-03 00:24:18] Production.INFO: count ==667 [2025-04-03 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:24:05 - End Time 2025-04-03 00:24:05 [2025-04-03 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821817', 'tblTempUsageDetail_20' ) start [2025-04-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821817', 'tblTempUsageDetail_20' ) end [2025-04-03 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821817', 'tblTempVendorCDR_20' ) start [2025-04-03 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821817', 'tblTempVendorCDR_20' ) end [2025-04-03 00:24:19] Production.INFO: ProcessCDR(1,14821817,1,1,2) [2025-04-03 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821817', 'tblTempUsageDetail_20' ) start [2025-04-03 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821817', 'tblTempUsageDetail_20' ) end [2025-04-03 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:24:22] Production.INFO: ==25997== Releasing lock... [2025-04-03 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:24:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:25:06 [end_date_ymd] => 2025-04-03 00:25:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:25:06' and `end` < '2025-04-03 00: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-03 00:25:18] Production.INFO: count ==667 [2025-04-03 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:25:06 - End Time 2025-04-03 00:25:06 [2025-04-03 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821822', 'tblTempUsageDetail_20' ) start [2025-04-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821822', 'tblTempUsageDetail_20' ) end [2025-04-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821822', 'tblTempVendorCDR_20' ) start [2025-04-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821822', 'tblTempVendorCDR_20' ) end [2025-04-03 00:25:19] Production.INFO: ProcessCDR(1,14821822,1,1,2) [2025-04-03 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821822', 'tblTempUsageDetail_20' ) start [2025-04-03 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821822', 'tblTempUsageDetail_20' ) end [2025-04-03 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:25:22] Production.INFO: ==26074== Releasing lock... [2025-04-03 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:25:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:26:06 [end_date_ymd] => 2025-04-03 00:26:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:26:06' and `end` < '2025-04-03 00: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-03 00:26:19] Production.INFO: count ==664 [2025-04-03 00:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:26:06 - End Time 2025-04-03 00:26:06 [2025-04-03 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821827', 'tblTempUsageDetail_20' ) start [2025-04-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821827', 'tblTempUsageDetail_20' ) end [2025-04-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821827', 'tblTempVendorCDR_20' ) start [2025-04-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821827', 'tblTempVendorCDR_20' ) end [2025-04-03 00:26:19] Production.INFO: ProcessCDR(1,14821827,1,1,2) [2025-04-03 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821827', 'tblTempUsageDetail_20' ) start [2025-04-03 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821827', 'tblTempUsageDetail_20' ) end [2025-04-03 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:26:22] Production.INFO: ==26153== Releasing lock... [2025-04-03 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:27:05 [end_date_ymd] => 2025-04-03 00:27:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:27:05' and `end` < '2025-04-03 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-03 00:27:18] Production.INFO: count ==658 [2025-04-03 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:27:05 - End Time 2025-04-03 00:27:05 [2025-04-03 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821832', 'tblTempUsageDetail_20' ) start [2025-04-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821832', 'tblTempUsageDetail_20' ) end [2025-04-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821832', 'tblTempVendorCDR_20' ) start [2025-04-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821832', 'tblTempVendorCDR_20' ) end [2025-04-03 00:27:18] Production.INFO: ProcessCDR(1,14821832,1,1,2) [2025-04-03 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821832', 'tblTempUsageDetail_20' ) start [2025-04-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821832', 'tblTempUsageDetail_20' ) end [2025-04-03 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:27:21] Production.INFO: ==26225== Releasing lock... [2025-04-03 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:27:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:28:05 [end_date_ymd] => 2025-04-03 00:28:05 [RateCDR] => 1 ) [2025-04-03 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:28:05' and `end` < '2025-04-03 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:28:18] Production.INFO: count ==653 [2025-04-03 00:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:28:05 - End Time 2025-04-03 00:28:05 [2025-04-03 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821837', 'tblTempUsageDetail_20' ) start [2025-04-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821837', 'tblTempUsageDetail_20' ) end [2025-04-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821837', 'tblTempVendorCDR_20' ) start [2025-04-03 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821837', 'tblTempVendorCDR_20' ) end [2025-04-03 00:28:18] Production.INFO: ProcessCDR(1,14821837,1,1,2) [2025-04-03 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821837', 'tblTempUsageDetail_20' ) start [2025-04-03 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821837', 'tblTempUsageDetail_20' ) end [2025-04-03 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:28:22] Production.INFO: ==26296== Releasing lock... [2025-04-03 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:28:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:29:05 [end_date_ymd] => 2025-04-03 00:29:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:29:05' and `end` < '2025-04-03 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-03 00:29:17] Production.INFO: count ==641 [2025-04-03 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:29:05 - End Time 2025-04-03 00:29:05 [2025-04-03 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821842', 'tblTempUsageDetail_20' ) start [2025-04-03 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821842', 'tblTempUsageDetail_20' ) end [2025-04-03 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821842', 'tblTempVendorCDR_20' ) start [2025-04-03 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821842', 'tblTempVendorCDR_20' ) end [2025-04-03 00:29:18] Production.INFO: ProcessCDR(1,14821842,1,1,2) [2025-04-03 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821842', 'tblTempUsageDetail_20' ) start [2025-04-03 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821842', 'tblTempUsageDetail_20' ) end [2025-04-03 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:29:21] Production.INFO: ==26366== Releasing lock... [2025-04-03 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:30:06 [end_date_ymd] => 2025-04-03 00:30:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:30:06' and `end` < '2025-04-03 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-03 00:30:19] Production.INFO: count ==646 [2025-04-03 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:30:06 - End Time 2025-04-03 00:30:06 [2025-04-03 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821848', 'tblTempUsageDetail_20' ) start [2025-04-03 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821848', 'tblTempUsageDetail_20' ) end [2025-04-03 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821848', 'tblTempVendorCDR_20' ) start [2025-04-03 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821848', 'tblTempVendorCDR_20' ) end [2025-04-03 00:30:19] Production.INFO: ProcessCDR(1,14821848,1,1,2) [2025-04-03 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821848', 'tblTempUsageDetail_20' ) start [2025-04-03 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821848', 'tblTempUsageDetail_20' ) end [2025-04-03 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:30:22] Production.INFO: ==26438== Releasing lock... [2025-04-03 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:31:05 [end_date_ymd] => 2025-04-03 00:31:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:31:05' and `end` < '2025-04-03 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-03 00:31:18] Production.INFO: count ==645 [2025-04-03 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:31:05 - End Time 2025-04-03 00:31:05 [2025-04-03 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821853', 'tblTempUsageDetail_20' ) start [2025-04-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821853', 'tblTempUsageDetail_20' ) end [2025-04-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821853', 'tblTempVendorCDR_20' ) start [2025-04-03 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821853', 'tblTempVendorCDR_20' ) end [2025-04-03 00:31:18] Production.INFO: ProcessCDR(1,14821853,1,1,2) [2025-04-03 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821853', 'tblTempUsageDetail_20' ) start [2025-04-03 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821853', 'tblTempUsageDetail_20' ) end [2025-04-03 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:31:21] Production.INFO: ==26550== Releasing lock... [2025-04-03 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:32:05 [end_date_ymd] => 2025-04-03 00:32:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:32:05' and `end` < '2025-04-03 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-03 00:32:18] Production.INFO: count ==645 [2025-04-03 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:32:05 - End Time 2025-04-03 00:32:05 [2025-04-03 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821858', 'tblTempUsageDetail_20' ) start [2025-04-03 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821858', 'tblTempUsageDetail_20' ) end [2025-04-03 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821858', 'tblTempVendorCDR_20' ) start [2025-04-03 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821858', 'tblTempVendorCDR_20' ) end [2025-04-03 00:32:18] Production.INFO: ProcessCDR(1,14821858,1,1,2) [2025-04-03 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821858', 'tblTempUsageDetail_20' ) start [2025-04-03 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821858', 'tblTempUsageDetail_20' ) end [2025-04-03 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:32:22] Production.INFO: ==26620== Releasing lock... [2025-04-03 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:33:05 [end_date_ymd] => 2025-04-03 00:33:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:33:05' and `end` < '2025-04-03 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-03 00:33:17] Production.INFO: count ==644 [2025-04-03 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:33:05 - End Time 2025-04-03 00:33:05 [2025-04-03 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821863', 'tblTempUsageDetail_20' ) start [2025-04-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821863', 'tblTempUsageDetail_20' ) end [2025-04-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821863', 'tblTempVendorCDR_20' ) start [2025-04-03 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821863', 'tblTempVendorCDR_20' ) end [2025-04-03 00:33:18] Production.INFO: ProcessCDR(1,14821863,1,1,2) [2025-04-03 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821863', 'tblTempUsageDetail_20' ) start [2025-04-03 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821863', 'tblTempUsageDetail_20' ) end [2025-04-03 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:33:21] Production.INFO: ==26690== Releasing lock... [2025-04-03 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:34:05 [end_date_ymd] => 2025-04-03 00:34:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:34:05' and `end` < '2025-04-03 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-03 00:34:18] Production.INFO: count ==644 [2025-04-03 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:34:05 - End Time 2025-04-03 00:34:05 [2025-04-03 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821868', 'tblTempUsageDetail_20' ) start [2025-04-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821868', 'tblTempUsageDetail_20' ) end [2025-04-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821868', 'tblTempVendorCDR_20' ) start [2025-04-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821868', 'tblTempVendorCDR_20' ) end [2025-04-03 00:34:19] Production.INFO: ProcessCDR(1,14821868,1,1,2) [2025-04-03 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821868', 'tblTempUsageDetail_20' ) start [2025-04-03 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821868', 'tblTempUsageDetail_20' ) end [2025-04-03 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:34:22] Production.INFO: ==26762== Releasing lock... [2025-04-03 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:35:05 [end_date_ymd] => 2025-04-03 00:35:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:35:05' and `end` < '2025-04-03 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-03 00:35:18] Production.INFO: count ==644 [2025-04-03 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:35:05 - End Time 2025-04-03 00:35:05 [2025-04-03 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821873', 'tblTempUsageDetail_20' ) start [2025-04-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821873', 'tblTempUsageDetail_20' ) end [2025-04-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821873', 'tblTempVendorCDR_20' ) start [2025-04-03 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821873', 'tblTempVendorCDR_20' ) end [2025-04-03 00:35:18] Production.INFO: ProcessCDR(1,14821873,1,1,2) [2025-04-03 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821873', 'tblTempUsageDetail_20' ) start [2025-04-03 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821873', 'tblTempUsageDetail_20' ) end [2025-04-03 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:35:22] Production.INFO: ==26832== Releasing lock... [2025-04-03 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:36:05 [end_date_ymd] => 2025-04-03 00:36:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:36:05' and `end` < '2025-04-03 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-03 00:36:18] Production.INFO: count ==646 [2025-04-03 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:36:05 - End Time 2025-04-03 00:36:05 [2025-04-03 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821878', 'tblTempUsageDetail_20' ) start [2025-04-03 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821878', 'tblTempUsageDetail_20' ) end [2025-04-03 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821878', 'tblTempVendorCDR_20' ) start [2025-04-03 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821878', 'tblTempVendorCDR_20' ) end [2025-04-03 00:36:18] Production.INFO: ProcessCDR(1,14821878,1,1,2) [2025-04-03 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821878', 'tblTempUsageDetail_20' ) start [2025-04-03 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821878', 'tblTempUsageDetail_20' ) end [2025-04-03 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:36:22] Production.INFO: ==26903== Releasing lock... [2025-04-03 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:36:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:37:05 [end_date_ymd] => 2025-04-03 00:37:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:37:05' and `end` < '2025-04-03 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-03 00:37:18] Production.INFO: count ==645 [2025-04-03 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:37:05 - End Time 2025-04-03 00:37:05 [2025-04-03 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821883', 'tblTempUsageDetail_20' ) start [2025-04-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821883', 'tblTempUsageDetail_20' ) end [2025-04-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821883', 'tblTempVendorCDR_20' ) start [2025-04-03 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821883', 'tblTempVendorCDR_20' ) end [2025-04-03 00:37:18] Production.INFO: ProcessCDR(1,14821883,1,1,2) [2025-04-03 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821883', 'tblTempUsageDetail_20' ) start [2025-04-03 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821883', 'tblTempUsageDetail_20' ) end [2025-04-03 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:37:21] Production.INFO: ==26975== Releasing lock... [2025-04-03 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:38:06 [end_date_ymd] => 2025-04-03 00:38:06 [RateCDR] => 1 ) [2025-04-03 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:38:06' and `end` < '2025-04-03 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:38:18] Production.INFO: count ==635 [2025-04-03 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:38:06 - End Time 2025-04-03 00:38:06 [2025-04-03 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821888', 'tblTempUsageDetail_20' ) start [2025-04-03 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821888', 'tblTempUsageDetail_20' ) end [2025-04-03 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821888', 'tblTempVendorCDR_20' ) start [2025-04-03 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821888', 'tblTempVendorCDR_20' ) end [2025-04-03 00:38:19] Production.INFO: ProcessCDR(1,14821888,1,1,2) [2025-04-03 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821888', 'tblTempUsageDetail_20' ) start [2025-04-03 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821888', 'tblTempUsageDetail_20' ) end [2025-04-03 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:38:22] Production.INFO: ==27047== Releasing lock... [2025-04-03 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:39:05 [end_date_ymd] => 2025-04-03 00:39:05 [RateCDR] => 1 ) [2025-04-03 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:39:05' and `end` < '2025-04-03 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:39:18] Production.INFO: count ==634 [2025-04-03 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:39:05 - End Time 2025-04-03 00:39:05 [2025-04-03 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821893', 'tblTempUsageDetail_20' ) start [2025-04-03 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821893', 'tblTempUsageDetail_20' ) end [2025-04-03 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821893', 'tblTempVendorCDR_20' ) start [2025-04-03 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821893', 'tblTempVendorCDR_20' ) end [2025-04-03 00:39:18] Production.INFO: ProcessCDR(1,14821893,1,1,2) [2025-04-03 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821893', 'tblTempUsageDetail_20' ) start [2025-04-03 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821893', 'tblTempUsageDetail_20' ) end [2025-04-03 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:39:22] Production.INFO: ==27142== Releasing lock... [2025-04-03 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:40:06 [end_date_ymd] => 2025-04-03 00:40:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:40:06' and `end` < '2025-04-03 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-03 00:40:18] Production.INFO: count ==633 [2025-04-03 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:40:06 - End Time 2025-04-03 00:40:06 [2025-04-03 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821899', 'tblTempUsageDetail_20' ) start [2025-04-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821899', 'tblTempUsageDetail_20' ) end [2025-04-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821899', 'tblTempVendorCDR_20' ) start [2025-04-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821899', 'tblTempVendorCDR_20' ) end [2025-04-03 00:40:19] Production.INFO: ProcessCDR(1,14821899,1,1,2) [2025-04-03 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821899', 'tblTempUsageDetail_20' ) start [2025-04-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821899', 'tblTempUsageDetail_20' ) end [2025-04-03 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:40:22] Production.INFO: ==27214== Releasing lock... [2025-04-03 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:41:05 [end_date_ymd] => 2025-04-03 00:41:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:41:05' and `end` < '2025-04-03 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-03 00:41:18] Production.INFO: count ==619 [2025-04-03 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:41:05 - End Time 2025-04-03 00:41:05 [2025-04-03 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821904', 'tblTempUsageDetail_20' ) start [2025-04-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821904', 'tblTempUsageDetail_20' ) end [2025-04-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821904', 'tblTempVendorCDR_20' ) start [2025-04-03 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821904', 'tblTempVendorCDR_20' ) end [2025-04-03 00:41:18] Production.INFO: ProcessCDR(1,14821904,1,1,2) [2025-04-03 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821904', 'tblTempUsageDetail_20' ) start [2025-04-03 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821904', 'tblTempUsageDetail_20' ) end [2025-04-03 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:41:21] Production.INFO: ==27287== Releasing lock... [2025-04-03 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:42:05 [end_date_ymd] => 2025-04-03 00:42:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:42:05' and `end` < '2025-04-03 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-03 00:42:18] Production.INFO: count ==615 [2025-04-03 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:42:05 - End Time 2025-04-03 00:42:05 [2025-04-03 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821909', 'tblTempUsageDetail_20' ) start [2025-04-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821909', 'tblTempUsageDetail_20' ) end [2025-04-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821909', 'tblTempVendorCDR_20' ) start [2025-04-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821909', 'tblTempVendorCDR_20' ) end [2025-04-03 00:42:18] Production.INFO: ProcessCDR(1,14821909,1,1,2) [2025-04-03 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821909', 'tblTempUsageDetail_20' ) start [2025-04-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821909', 'tblTempUsageDetail_20' ) end [2025-04-03 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:42:22] Production.INFO: ==27360== Releasing lock... [2025-04-03 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:43:05 [end_date_ymd] => 2025-04-03 00:43:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:43:05' and `end` < '2025-04-03 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-03 00:43:17] Production.INFO: count ==614 [2025-04-03 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:43:05 - End Time 2025-04-03 00:43:05 [2025-04-03 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821914', 'tblTempUsageDetail_20' ) start [2025-04-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821914', 'tblTempUsageDetail_20' ) end [2025-04-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821914', 'tblTempVendorCDR_20' ) start [2025-04-03 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821914', 'tblTempVendorCDR_20' ) end [2025-04-03 00:43:18] Production.INFO: ProcessCDR(1,14821914,1,1,2) [2025-04-03 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821914', 'tblTempUsageDetail_20' ) start [2025-04-03 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821914', 'tblTempUsageDetail_20' ) end [2025-04-03 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:43:21] Production.INFO: ==27431== Releasing lock... [2025-04-03 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:44:05 [end_date_ymd] => 2025-04-03 00:44:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:44:05' and `end` < '2025-04-03 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-03 00:44:18] Production.INFO: count ==600 [2025-04-03 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:44:05 - End Time 2025-04-03 00:44:05 [2025-04-03 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821919', 'tblTempUsageDetail_20' ) start [2025-04-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821919', 'tblTempUsageDetail_20' ) end [2025-04-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821919', 'tblTempVendorCDR_20' ) start [2025-04-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821919', 'tblTempVendorCDR_20' ) end [2025-04-03 00:44:18] Production.INFO: ProcessCDR(1,14821919,1,1,2) [2025-04-03 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821919', 'tblTempUsageDetail_20' ) start [2025-04-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821919', 'tblTempUsageDetail_20' ) end [2025-04-03 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:44:21] Production.INFO: ==27501== Releasing lock... [2025-04-03 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:44:21] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:45:04 [end_date_ymd] => 2025-04-03 00:45:04 [RateCDR] => 1 ) [2025-04-03 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-02 21:45:04' and `end` < '2025-04-03 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:45:17] Production.INFO: count ==604 [2025-04-03 00:45:17] Production.ERROR: pbx CDR StartTime 2025-04-02 21:45:04 - End Time 2025-04-03 00:45:04 [2025-04-03 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821924', 'tblTempUsageDetail_20' ) start [2025-04-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821924', 'tblTempUsageDetail_20' ) end [2025-04-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821924', 'tblTempVendorCDR_20' ) start [2025-04-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821924', 'tblTempVendorCDR_20' ) end [2025-04-03 00:45:18] Production.INFO: ProcessCDR(1,14821924,1,1,2) [2025-04-03 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821924', 'tblTempUsageDetail_20' ) start [2025-04-03 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821924', 'tblTempUsageDetail_20' ) end [2025-04-03 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:45:21] Production.INFO: ==27576== Releasing lock... [2025-04-03 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:46:05 [end_date_ymd] => 2025-04-03 00:46:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:46:05' and `end` < '2025-04-03 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-03 00:46:18] Production.INFO: count ==600 [2025-04-03 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:46:05 - End Time 2025-04-03 00:46:05 [2025-04-03 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821929', 'tblTempUsageDetail_20' ) start [2025-04-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821929', 'tblTempUsageDetail_20' ) end [2025-04-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821929', 'tblTempVendorCDR_20' ) start [2025-04-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821929', 'tblTempVendorCDR_20' ) end [2025-04-03 00:46:19] Production.INFO: ProcessCDR(1,14821929,1,1,2) [2025-04-03 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821929', 'tblTempUsageDetail_20' ) start [2025-04-03 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821929', 'tblTempUsageDetail_20' ) end [2025-04-03 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:46:22] Production.INFO: ==27688== Releasing lock... [2025-04-03 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:47:05 [end_date_ymd] => 2025-04-03 00:47:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:47:05' and `end` < '2025-04-03 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-03 00:47:18] Production.INFO: count ==598 [2025-04-03 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:47:05 - End Time 2025-04-03 00:47:05 [2025-04-03 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821934', 'tblTempUsageDetail_20' ) start [2025-04-03 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821934', 'tblTempUsageDetail_20' ) end [2025-04-03 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821934', 'tblTempVendorCDR_20' ) start [2025-04-03 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821934', 'tblTempVendorCDR_20' ) end [2025-04-03 00:47:18] Production.INFO: ProcessCDR(1,14821934,1,1,2) [2025-04-03 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821934', 'tblTempUsageDetail_20' ) start [2025-04-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821934', 'tblTempUsageDetail_20' ) end [2025-04-03 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:47:22] Production.INFO: ==27758== Releasing lock... [2025-04-03 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:48:05 [end_date_ymd] => 2025-04-03 00:48:05 [RateCDR] => 1 ) [2025-04-03 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:48:05' and `end` < '2025-04-03 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:48:18] Production.INFO: count ==598 [2025-04-03 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:48:05 - End Time 2025-04-03 00:48:05 [2025-04-03 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821939', 'tblTempUsageDetail_20' ) start [2025-04-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821939', 'tblTempUsageDetail_20' ) end [2025-04-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821939', 'tblTempVendorCDR_20' ) start [2025-04-03 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821939', 'tblTempVendorCDR_20' ) end [2025-04-03 00:48:18] Production.INFO: ProcessCDR(1,14821939,1,1,2) [2025-04-03 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821939', 'tblTempUsageDetail_20' ) start [2025-04-03 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821939', 'tblTempUsageDetail_20' ) end [2025-04-03 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:48:21] Production.INFO: ==27828== Releasing lock... [2025-04-03 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:48:21] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:49:05 [end_date_ymd] => 2025-04-03 00:49:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:49:05' and `end` < '2025-04-03 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-03 00:49:17] Production.INFO: count ==594 [2025-04-03 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:49:05 - End Time 2025-04-03 00:49:05 [2025-04-03 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821944', 'tblTempUsageDetail_20' ) start [2025-04-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821944', 'tblTempUsageDetail_20' ) end [2025-04-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821944', 'tblTempVendorCDR_20' ) start [2025-04-03 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821944', 'tblTempVendorCDR_20' ) end [2025-04-03 00:49:18] Production.INFO: ProcessCDR(1,14821944,1,1,2) [2025-04-03 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821944', 'tblTempUsageDetail_20' ) start [2025-04-03 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821944', 'tblTempUsageDetail_20' ) end [2025-04-03 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:49:21] Production.INFO: ==27900== Releasing lock... [2025-04-03 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:50:06 [end_date_ymd] => 2025-04-03 00:50:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:50:06' and `end` < '2025-04-03 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-03 00:50:19] Production.INFO: count ==592 [2025-04-03 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:50:06 - End Time 2025-04-03 00:50:06 [2025-04-03 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821950', 'tblTempUsageDetail_20' ) start [2025-04-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821950', 'tblTempUsageDetail_20' ) end [2025-04-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821950', 'tblTempVendorCDR_20' ) start [2025-04-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821950', 'tblTempVendorCDR_20' ) end [2025-04-03 00:50:19] Production.INFO: ProcessCDR(1,14821950,1,1,2) [2025-04-03 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821950', 'tblTempUsageDetail_20' ) start [2025-04-03 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821950', 'tblTempUsageDetail_20' ) end [2025-04-03 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:50:23] Production.INFO: ==27972== Releasing lock... [2025-04-03 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:50:23] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:51:06 [end_date_ymd] => 2025-04-03 00:51:06 [RateCDR] => 1 ) [2025-04-03 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:51:06' and `end` < '2025-04-03 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:51:18] Production.INFO: count ==582 [2025-04-03 00:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:51:06 - End Time 2025-04-03 00:51:06 [2025-04-03 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821955', 'tblTempUsageDetail_20' ) start [2025-04-03 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821955', 'tblTempUsageDetail_20' ) end [2025-04-03 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821955', 'tblTempVendorCDR_20' ) start [2025-04-03 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821955', 'tblTempVendorCDR_20' ) end [2025-04-03 00:51:19] Production.INFO: ProcessCDR(1,14821955,1,1,2) [2025-04-03 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821955', 'tblTempUsageDetail_20' ) start [2025-04-03 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821955', 'tblTempUsageDetail_20' ) end [2025-04-03 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:51:22] Production.INFO: ==28045== Releasing lock... [2025-04-03 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:51:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:52:05 [end_date_ymd] => 2025-04-03 00:52:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:52:05' and `end` < '2025-04-03 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-03 00:52:18] Production.INFO: count ==592 [2025-04-03 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:52:05 - End Time 2025-04-03 00:52:05 [2025-04-03 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821960', 'tblTempUsageDetail_20' ) start [2025-04-03 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821960', 'tblTempUsageDetail_20' ) end [2025-04-03 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821960', 'tblTempVendorCDR_20' ) start [2025-04-03 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821960', 'tblTempVendorCDR_20' ) end [2025-04-03 00:52:18] Production.INFO: ProcessCDR(1,14821960,1,1,2) [2025-04-03 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821960', 'tblTempUsageDetail_20' ) start [2025-04-03 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821960', 'tblTempUsageDetail_20' ) end [2025-04-03 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:52:22] Production.INFO: ==28116== Releasing lock... [2025-04-03 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:52:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:53:06 [end_date_ymd] => 2025-04-03 00:53:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:53:06' and `end` < '2025-04-03 00: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-03 00:53:18] Production.INFO: count ==597 [2025-04-03 00:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:53:06 - End Time 2025-04-03 00:53:06 [2025-04-03 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821965', 'tblTempUsageDetail_20' ) start [2025-04-03 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821965', 'tblTempUsageDetail_20' ) end [2025-04-03 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821965', 'tblTempVendorCDR_20' ) start [2025-04-03 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821965', 'tblTempVendorCDR_20' ) end [2025-04-03 00:53:19] Production.INFO: ProcessCDR(1,14821965,1,1,2) [2025-04-03 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821965', 'tblTempUsageDetail_20' ) start [2025-04-03 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821965', 'tblTempUsageDetail_20' ) end [2025-04-03 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:53:22] Production.INFO: ==28190== Releasing lock... [2025-04-03 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:53:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:54:06 [end_date_ymd] => 2025-04-03 00:54:06 [RateCDR] => 1 ) [2025-04-03 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-02 21:54:06' and `end` < '2025-04-03 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-03 00:54:18] Production.INFO: count ==600 [2025-04-03 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:54:06 - End Time 2025-04-03 00:54:06 [2025-04-03 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821970', 'tblTempUsageDetail_20' ) start [2025-04-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821970', 'tblTempUsageDetail_20' ) end [2025-04-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821970', 'tblTempVendorCDR_20' ) start [2025-04-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821970', 'tblTempVendorCDR_20' ) end [2025-04-03 00:54:19] Production.INFO: ProcessCDR(1,14821970,1,1,2) [2025-04-03 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821970', 'tblTempUsageDetail_20' ) start [2025-04-03 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821970', 'tblTempUsageDetail_20' ) end [2025-04-03 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:54:22] Production.INFO: ==28262== Releasing lock... [2025-04-03 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:55:06 [end_date_ymd] => 2025-04-03 00:55:06 [RateCDR] => 1 ) [2025-04-03 00: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-02 21:55:06' and `end` < '2025-04-03 00: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-03 00:55:18] Production.INFO: count ==606 [2025-04-03 00:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 21:55:06 - End Time 2025-04-03 00:55:06 [2025-04-03 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821975', 'tblTempUsageDetail_20' ) start [2025-04-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821975', 'tblTempUsageDetail_20' ) end [2025-04-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821975', 'tblTempVendorCDR_20' ) start [2025-04-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821975', 'tblTempVendorCDR_20' ) end [2025-04-03 00:55:19] Production.INFO: ProcessCDR(1,14821975,1,1,2) [2025-04-03 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821975', 'tblTempUsageDetail_20' ) start [2025-04-03 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821975', 'tblTempUsageDetail_20' ) end [2025-04-03 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:55:22] Production.INFO: ==28332== Releasing lock... [2025-04-03 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:56:05 [end_date_ymd] => 2025-04-03 00:56:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:56:05' and `end` < '2025-04-03 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-03 00:56:18] Production.INFO: count ==607 [2025-04-03 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:56:05 - End Time 2025-04-03 00:56:05 [2025-04-03 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821980', 'tblTempUsageDetail_20' ) start [2025-04-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821980', 'tblTempUsageDetail_20' ) end [2025-04-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821980', 'tblTempVendorCDR_20' ) start [2025-04-03 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821980', 'tblTempVendorCDR_20' ) end [2025-04-03 00:56:18] Production.INFO: ProcessCDR(1,14821980,1,1,2) [2025-04-03 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821980', 'tblTempUsageDetail_20' ) start [2025-04-03 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821980', 'tblTempUsageDetail_20' ) end [2025-04-03 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:56:23] Production.INFO: ==28403== Releasing lock... [2025-04-03 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:57:05 [end_date_ymd] => 2025-04-03 00:57:05 [RateCDR] => 1 ) [2025-04-03 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 21:57:05' and `end` < '2025-04-03 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 00:57:18] Production.INFO: count ==585 [2025-04-03 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:57:05 - End Time 2025-04-03 00:57:05 [2025-04-03 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821985', 'tblTempUsageDetail_20' ) start [2025-04-03 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821985', 'tblTempUsageDetail_20' ) end [2025-04-03 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821985', 'tblTempVendorCDR_20' ) start [2025-04-03 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821985', 'tblTempVendorCDR_20' ) end [2025-04-03 00:57:18] Production.INFO: ProcessCDR(1,14821985,1,1,2) [2025-04-03 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821985', 'tblTempUsageDetail_20' ) start [2025-04-03 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821985', 'tblTempUsageDetail_20' ) end [2025-04-03 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:57:22] Production.INFO: ==28474== Releasing lock... [2025-04-03 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:58:05 [end_date_ymd] => 2025-04-03 00:58:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:58:05' and `end` < '2025-04-03 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-03 00:58:18] Production.INFO: count ==589 [2025-04-03 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:58:05 - End Time 2025-04-03 00:58:05 [2025-04-03 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821990', 'tblTempUsageDetail_20' ) start [2025-04-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821990', 'tblTempUsageDetail_20' ) end [2025-04-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821990', 'tblTempVendorCDR_20' ) start [2025-04-03 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821990', 'tblTempVendorCDR_20' ) end [2025-04-03 00:58:18] Production.INFO: ProcessCDR(1,14821990,1,1,2) [2025-04-03 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821990', 'tblTempUsageDetail_20' ) start [2025-04-03 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821990', 'tblTempUsageDetail_20' ) end [2025-04-03 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:58:21] Production.INFO: ==28545== Releasing lock... [2025-04-03 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 21:59:05 [end_date_ymd] => 2025-04-03 00:59:05 [RateCDR] => 1 ) [2025-04-03 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-02 21:59:05' and `end` < '2025-04-03 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-03 00:59:18] Production.INFO: count ==595 [2025-04-03 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 21:59:05 - End Time 2025-04-03 00:59:05 [2025-04-03 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821995', 'tblTempUsageDetail_20' ) start [2025-04-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14821995', 'tblTempUsageDetail_20' ) end [2025-04-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821995', 'tblTempVendorCDR_20' ) start [2025-04-03 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14821995', 'tblTempVendorCDR_20' ) end [2025-04-03 00:59:18] Production.INFO: ProcessCDR(1,14821995,1,1,2) [2025-04-03 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14821995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14821995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14821995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14821995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821995', 'tblTempUsageDetail_20' ) start [2025-04-03 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14821995', 'tblTempUsageDetail_20' ) end [2025-04-03 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 00:59:22] Production.INFO: ==28616== Releasing lock... [2025-04-03 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 00:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:00:05 [end_date_ymd] => 2025-04-03 01:00:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:00:05' and `end` < '2025-04-03 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-03 01:00:18] Production.INFO: count ==604 [2025-04-03 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:00:05 - End Time 2025-04-03 01:00:05 [2025-04-03 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822000', 'tblTempUsageDetail_20' ) start [2025-04-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822000', 'tblTempUsageDetail_20' ) end [2025-04-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822000', 'tblTempVendorCDR_20' ) start [2025-04-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822000', 'tblTempVendorCDR_20' ) end [2025-04-03 01:00:19] Production.INFO: ProcessCDR(1,14822000,1,1,2) [2025-04-03 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822000', 'tblTempUsageDetail_20' ) start [2025-04-03 01:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822000', 'tblTempUsageDetail_20' ) end [2025-04-03 01:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:00:24] Production.INFO: ==28688== Releasing lock... [2025-04-03 01:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:01:05 [end_date_ymd] => 2025-04-03 01:01:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:01:05' and `end` < '2025-04-03 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-03 01:01:18] Production.INFO: count ==622 [2025-04-03 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:01:05 - End Time 2025-04-03 01:01:05 [2025-04-03 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822006', 'tblTempUsageDetail_20' ) start [2025-04-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822006', 'tblTempUsageDetail_20' ) end [2025-04-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822006', 'tblTempVendorCDR_20' ) start [2025-04-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822006', 'tblTempVendorCDR_20' ) end [2025-04-03 01:01:18] Production.INFO: ProcessCDR(1,14822006,1,1,2) [2025-04-03 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822006', 'tblTempUsageDetail_20' ) start [2025-04-03 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822006', 'tblTempUsageDetail_20' ) end [2025-04-03 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:01:22] Production.INFO: ==28815== Releasing lock... [2025-04-03 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:01:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:02:05 [end_date_ymd] => 2025-04-03 01:02:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:02:05' and `end` < '2025-04-03 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-03 01:02:18] Production.INFO: count ==626 [2025-04-03 01:02:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:02:05 - End Time 2025-04-03 01:02:05 [2025-04-03 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822011', 'tblTempUsageDetail_20' ) start [2025-04-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822011', 'tblTempUsageDetail_20' ) end [2025-04-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822011', 'tblTempVendorCDR_20' ) start [2025-04-03 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822011', 'tblTempVendorCDR_20' ) end [2025-04-03 01:02:18] Production.INFO: ProcessCDR(1,14822011,1,1,2) [2025-04-03 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822011', 'tblTempUsageDetail_20' ) start [2025-04-03 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822011', 'tblTempUsageDetail_20' ) end [2025-04-03 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:02:22] Production.INFO: ==28884== Releasing lock... [2025-04-03 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:03:05 [end_date_ymd] => 2025-04-03 01:03:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:03:05' and `end` < '2025-04-03 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-03 01:03:18] Production.INFO: count ==618 [2025-04-03 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:03:05 - End Time 2025-04-03 01:03:05 [2025-04-03 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822016', 'tblTempUsageDetail_20' ) start [2025-04-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822016', 'tblTempUsageDetail_20' ) end [2025-04-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822016', 'tblTempVendorCDR_20' ) start [2025-04-03 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822016', 'tblTempVendorCDR_20' ) end [2025-04-03 01:03:18] Production.INFO: ProcessCDR(1,14822016,1,1,2) [2025-04-03 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822016', 'tblTempUsageDetail_20' ) start [2025-04-03 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822016', 'tblTempUsageDetail_20' ) end [2025-04-03 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:03:22] Production.INFO: ==28957== Releasing lock... [2025-04-03 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:04:05 [end_date_ymd] => 2025-04-03 01:04:05 [RateCDR] => 1 ) [2025-04-03 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:04:05' and `end` < '2025-04-03 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:04:17] Production.INFO: count ==621 [2025-04-03 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:04:05 - End Time 2025-04-03 01:04:05 [2025-04-03 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822021', 'tblTempUsageDetail_20' ) start [2025-04-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822021', 'tblTempUsageDetail_20' ) end [2025-04-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822021', 'tblTempVendorCDR_20' ) start [2025-04-03 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822021', 'tblTempVendorCDR_20' ) end [2025-04-03 01:04:18] Production.INFO: ProcessCDR(1,14822021,1,1,2) [2025-04-03 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822021', 'tblTempUsageDetail_20' ) start [2025-04-03 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822021', 'tblTempUsageDetail_20' ) end [2025-04-03 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:04:21] Production.INFO: ==29026== Releasing lock... [2025-04-03 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:05:05 [end_date_ymd] => 2025-04-03 01:05:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:05:05' and `end` < '2025-04-03 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-03 01:05:18] Production.INFO: count ==632 [2025-04-03 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:05:05 - End Time 2025-04-03 01:05:05 [2025-04-03 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822026', 'tblTempUsageDetail_20' ) start [2025-04-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822026', 'tblTempUsageDetail_20' ) end [2025-04-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822026', 'tblTempVendorCDR_20' ) start [2025-04-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822026', 'tblTempVendorCDR_20' ) end [2025-04-03 01:05:18] Production.INFO: ProcessCDR(1,14822026,1,1,2) [2025-04-03 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822026', 'tblTempUsageDetail_20' ) start [2025-04-03 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822026', 'tblTempUsageDetail_20' ) end [2025-04-03 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:05:22] Production.INFO: ==29105== Releasing lock... [2025-04-03 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:06:06 [end_date_ymd] => 2025-04-03 01:06:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:06:06' and `end` < '2025-04-03 01: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-03 01:06:19] Production.INFO: count ==637 [2025-04-03 01:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:06:06 - End Time 2025-04-03 01:06:06 [2025-04-03 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822031', 'tblTempUsageDetail_20' ) start [2025-04-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822031', 'tblTempUsageDetail_20' ) end [2025-04-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822031', 'tblTempVendorCDR_20' ) start [2025-04-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822031', 'tblTempVendorCDR_20' ) end [2025-04-03 01:06:19] Production.INFO: ProcessCDR(1,14822031,1,1,2) [2025-04-03 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822031', 'tblTempUsageDetail_20' ) start [2025-04-03 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822031', 'tblTempUsageDetail_20' ) end [2025-04-03 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:06:22] Production.INFO: ==29175== Releasing lock... [2025-04-03 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:07:05 [end_date_ymd] => 2025-04-03 01:07:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:07:05' and `end` < '2025-04-03 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-03 01:07:18] Production.INFO: count ==632 [2025-04-03 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:07:05 - End Time 2025-04-03 01:07:05 [2025-04-03 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822036', 'tblTempUsageDetail_20' ) start [2025-04-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822036', 'tblTempUsageDetail_20' ) end [2025-04-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822036', 'tblTempVendorCDR_20' ) start [2025-04-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822036', 'tblTempVendorCDR_20' ) end [2025-04-03 01:07:18] Production.INFO: ProcessCDR(1,14822036,1,1,2) [2025-04-03 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822036', 'tblTempUsageDetail_20' ) start [2025-04-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822036', 'tblTempUsageDetail_20' ) end [2025-04-03 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:07:21] Production.INFO: ==29247== Releasing lock... [2025-04-03 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:08:05 [end_date_ymd] => 2025-04-03 01:08:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:08:05' and `end` < '2025-04-03 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-03 01:08:18] Production.INFO: count ==630 [2025-04-03 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:08:05 - End Time 2025-04-03 01:08:05 [2025-04-03 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822041', 'tblTempUsageDetail_20' ) start [2025-04-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822041', 'tblTempUsageDetail_20' ) end [2025-04-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822041', 'tblTempVendorCDR_20' ) start [2025-04-03 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822041', 'tblTempVendorCDR_20' ) end [2025-04-03 01:08:18] Production.INFO: ProcessCDR(1,14822041,1,1,2) [2025-04-03 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822041', 'tblTempUsageDetail_20' ) start [2025-04-03 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822041', 'tblTempUsageDetail_20' ) end [2025-04-03 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:08:21] Production.INFO: ==29324== Releasing lock... [2025-04-03 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:09:05 [end_date_ymd] => 2025-04-03 01:09:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:09:05' and `end` < '2025-04-03 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-03 01:09:18] Production.INFO: count ==629 [2025-04-03 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:09:05 - End Time 2025-04-03 01:09:05 [2025-04-03 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822046', 'tblTempUsageDetail_20' ) start [2025-04-03 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822046', 'tblTempUsageDetail_20' ) end [2025-04-03 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822046', 'tblTempVendorCDR_20' ) start [2025-04-03 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822046', 'tblTempVendorCDR_20' ) end [2025-04-03 01:09:18] Production.INFO: ProcessCDR(1,14822046,1,1,2) [2025-04-03 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822046', 'tblTempUsageDetail_20' ) start [2025-04-03 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822046', 'tblTempUsageDetail_20' ) end [2025-04-03 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:09:22] Production.INFO: ==29399== Releasing lock... [2025-04-03 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:10:06 [end_date_ymd] => 2025-04-03 01:10:06 [RateCDR] => 1 ) [2025-04-03 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:10:06' and `end` < '2025-04-03 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:10:19] Production.INFO: count ==641 [2025-04-03 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:10:06 - End Time 2025-04-03 01:10:06 [2025-04-03 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822052', 'tblTempUsageDetail_20' ) start [2025-04-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822052', 'tblTempUsageDetail_20' ) end [2025-04-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822052', 'tblTempVendorCDR_20' ) start [2025-04-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822052', 'tblTempVendorCDR_20' ) end [2025-04-03 01:10:19] Production.INFO: ProcessCDR(1,14822052,1,1,2) [2025-04-03 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822052', 'tblTempUsageDetail_20' ) start [2025-04-03 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822052', 'tblTempUsageDetail_20' ) end [2025-04-03 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:10:22] Production.INFO: ==29471== Releasing lock... [2025-04-03 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:11:05 [end_date_ymd] => 2025-04-03 01:11:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:11:05' and `end` < '2025-04-03 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-03 01:11:18] Production.INFO: count ==634 [2025-04-03 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:11:05 - End Time 2025-04-03 01:11:05 [2025-04-03 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822057', 'tblTempUsageDetail_20' ) start [2025-04-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822057', 'tblTempUsageDetail_20' ) end [2025-04-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822057', 'tblTempVendorCDR_20' ) start [2025-04-03 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822057', 'tblTempVendorCDR_20' ) end [2025-04-03 01:11:19] Production.INFO: ProcessCDR(1,14822057,1,1,2) [2025-04-03 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822057', 'tblTempUsageDetail_20' ) start [2025-04-03 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822057', 'tblTempUsageDetail_20' ) end [2025-04-03 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:11:22] Production.INFO: ==29544== Releasing lock... [2025-04-03 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:12:06 [end_date_ymd] => 2025-04-03 01:12:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:12:06' and `end` < '2025-04-03 01: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-03 01:12:19] Production.INFO: count ==631 [2025-04-03 01:12:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:12:06 - End Time 2025-04-03 01:12:06 [2025-04-03 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822062', 'tblTempUsageDetail_20' ) start [2025-04-03 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822062', 'tblTempUsageDetail_20' ) end [2025-04-03 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822062', 'tblTempVendorCDR_20' ) start [2025-04-03 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822062', 'tblTempVendorCDR_20' ) end [2025-04-03 01:12:19] Production.INFO: ProcessCDR(1,14822062,1,1,2) [2025-04-03 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822062', 'tblTempUsageDetail_20' ) start [2025-04-03 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822062', 'tblTempUsageDetail_20' ) end [2025-04-03 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:12:22] Production.INFO: ==29614== Releasing lock... [2025-04-03 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:12:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:13:05 [end_date_ymd] => 2025-04-03 01:13:05 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:13:05' and `end` < '2025-04-03 01: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-03 01:13:18] Production.INFO: count ==629 [2025-04-03 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:13:05 - End Time 2025-04-03 01:13:05 [2025-04-03 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822067', 'tblTempUsageDetail_20' ) start [2025-04-03 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822067', 'tblTempUsageDetail_20' ) end [2025-04-03 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822067', 'tblTempVendorCDR_20' ) start [2025-04-03 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822067', 'tblTempVendorCDR_20' ) end [2025-04-03 01:13:18] Production.INFO: ProcessCDR(1,14822067,1,1,2) [2025-04-03 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822067', 'tblTempUsageDetail_20' ) start [2025-04-03 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822067', 'tblTempUsageDetail_20' ) end [2025-04-03 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:13:22] Production.INFO: ==29685== Releasing lock... [2025-04-03 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:14:06 [end_date_ymd] => 2025-04-03 01:14:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:14:06' and `end` < '2025-04-03 01: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-03 01:14:19] Production.INFO: count ==626 [2025-04-03 01:14:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:14:06 - End Time 2025-04-03 01:14:06 [2025-04-03 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822072', 'tblTempUsageDetail_20' ) start [2025-04-03 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822072', 'tblTempUsageDetail_20' ) end [2025-04-03 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822072', 'tblTempVendorCDR_20' ) start [2025-04-03 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822072', 'tblTempVendorCDR_20' ) end [2025-04-03 01:14:19] Production.INFO: ProcessCDR(1,14822072,1,1,2) [2025-04-03 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822072', 'tblTempUsageDetail_20' ) start [2025-04-03 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822072', 'tblTempUsageDetail_20' ) end [2025-04-03 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:14:22] Production.INFO: ==29757== Releasing lock... [2025-04-03 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:14:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:15:05 [end_date_ymd] => 2025-04-03 01:15:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:15:05' and `end` < '2025-04-03 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-03 01:15:18] Production.INFO: count ==636 [2025-04-03 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:15:05 - End Time 2025-04-03 01:15:05 [2025-04-03 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822077', 'tblTempUsageDetail_20' ) start [2025-04-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822077', 'tblTempUsageDetail_20' ) end [2025-04-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822077', 'tblTempVendorCDR_20' ) start [2025-04-03 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822077', 'tblTempVendorCDR_20' ) end [2025-04-03 01:15:18] Production.INFO: ProcessCDR(1,14822077,1,1,2) [2025-04-03 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822077', 'tblTempUsageDetail_20' ) start [2025-04-03 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822077', 'tblTempUsageDetail_20' ) end [2025-04-03 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:15:22] Production.INFO: ==29830== Releasing lock... [2025-04-03 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:16:05 [end_date_ymd] => 2025-04-03 01:16:05 [RateCDR] => 1 ) [2025-04-03 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:16:05' and `end` < '2025-04-03 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:16:18] Production.INFO: count ==644 [2025-04-03 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:16:05 - End Time 2025-04-03 01:16:05 [2025-04-03 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822082', 'tblTempUsageDetail_20' ) start [2025-04-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822082', 'tblTempUsageDetail_20' ) end [2025-04-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822082', 'tblTempVendorCDR_20' ) start [2025-04-03 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822082', 'tblTempVendorCDR_20' ) end [2025-04-03 01:16:18] Production.INFO: ProcessCDR(1,14822082,1,1,2) [2025-04-03 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822082', 'tblTempUsageDetail_20' ) start [2025-04-03 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822082', 'tblTempUsageDetail_20' ) end [2025-04-03 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:16:22] Production.INFO: ==29901== Releasing lock... [2025-04-03 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:17:05 [end_date_ymd] => 2025-04-03 01:17:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:17:05' and `end` < '2025-04-03 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-03 01:17:18] Production.INFO: count ==643 [2025-04-03 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:17:05 - End Time 2025-04-03 01:17:05 [2025-04-03 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822087', 'tblTempUsageDetail_20' ) start [2025-04-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822087', 'tblTempUsageDetail_20' ) end [2025-04-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822087', 'tblTempVendorCDR_20' ) start [2025-04-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822087', 'tblTempVendorCDR_20' ) end [2025-04-03 01:17:18] Production.INFO: ProcessCDR(1,14822087,1,1,2) [2025-04-03 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822087', 'tblTempUsageDetail_20' ) start [2025-04-03 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822087', 'tblTempUsageDetail_20' ) end [2025-04-03 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:17:21] Production.INFO: ==30011== Releasing lock... [2025-04-03 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:18:06 [end_date_ymd] => 2025-04-03 01:18:06 [RateCDR] => 1 ) [2025-04-03 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-02 22:18:06' and `end` < '2025-04-03 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-03 01:18:19] Production.INFO: count ==642 [2025-04-03 01:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:18:06 - End Time 2025-04-03 01:18:06 [2025-04-03 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822092', 'tblTempUsageDetail_20' ) start [2025-04-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822092', 'tblTempUsageDetail_20' ) end [2025-04-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822092', 'tblTempVendorCDR_20' ) start [2025-04-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822092', 'tblTempVendorCDR_20' ) end [2025-04-03 01:18:19] Production.INFO: ProcessCDR(1,14822092,1,1,2) [2025-04-03 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822092', 'tblTempUsageDetail_20' ) start [2025-04-03 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822092', 'tblTempUsageDetail_20' ) end [2025-04-03 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:18:22] Production.INFO: ==30097== Releasing lock... [2025-04-03 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:19:05 [end_date_ymd] => 2025-04-03 01:19:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:19:05' and `end` < '2025-04-03 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-03 01:19:18] Production.INFO: count ==645 [2025-04-03 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:19:05 - End Time 2025-04-03 01:19:05 [2025-04-03 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822097', 'tblTempUsageDetail_20' ) start [2025-04-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822097', 'tblTempUsageDetail_20' ) end [2025-04-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822097', 'tblTempVendorCDR_20' ) start [2025-04-03 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822097', 'tblTempVendorCDR_20' ) end [2025-04-03 01:19:18] Production.INFO: ProcessCDR(1,14822097,1,1,2) [2025-04-03 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822097', 'tblTempUsageDetail_20' ) start [2025-04-03 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822097', 'tblTempUsageDetail_20' ) end [2025-04-03 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:19:21] Production.INFO: ==30168== Releasing lock... [2025-04-03 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:20:07 [end_date_ymd] => 2025-04-03 01:20:07 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:20:07' and `end` < '2025-04-03 01: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-03 01:20:20] Production.INFO: count ==656 [2025-04-03 01:20:20] Production.ERROR: pbx CDR StartTime 2025-04-02 22:20:07 - End Time 2025-04-03 01:20:07 [2025-04-03 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822103', 'tblTempUsageDetail_20' ) start [2025-04-03 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822103', 'tblTempUsageDetail_20' ) end [2025-04-03 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822103', 'tblTempVendorCDR_20' ) start [2025-04-03 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822103', 'tblTempVendorCDR_20' ) end [2025-04-03 01:20:20] Production.INFO: ProcessCDR(1,14822103,1,1,2) [2025-04-03 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822103', 'tblTempUsageDetail_20' ) start [2025-04-03 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822103', 'tblTempUsageDetail_20' ) end [2025-04-03 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:20:24] Production.INFO: ==30241== Releasing lock... [2025-04-03 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:20:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:21:05 [end_date_ymd] => 2025-04-03 01:21:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:21:05' and `end` < '2025-04-03 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-03 01:21:18] Production.INFO: count ==667 [2025-04-03 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:21:05 - End Time 2025-04-03 01:21:05 [2025-04-03 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822108', 'tblTempUsageDetail_20' ) start [2025-04-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822108', 'tblTempUsageDetail_20' ) end [2025-04-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822108', 'tblTempVendorCDR_20' ) start [2025-04-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822108', 'tblTempVendorCDR_20' ) end [2025-04-03 01:21:18] Production.INFO: ProcessCDR(1,14822108,1,1,2) [2025-04-03 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822108', 'tblTempUsageDetail_20' ) start [2025-04-03 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822108', 'tblTempUsageDetail_20' ) end [2025-04-03 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:21:22] Production.INFO: ==30314== Releasing lock... [2025-04-03 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:21:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:22:05 [end_date_ymd] => 2025-04-03 01:22:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:22:05' and `end` < '2025-04-03 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-03 01:22:18] Production.INFO: count ==661 [2025-04-03 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:22:05 - End Time 2025-04-03 01:22:05 [2025-04-03 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822113', 'tblTempUsageDetail_20' ) start [2025-04-03 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822113', 'tblTempUsageDetail_20' ) end [2025-04-03 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822113', 'tblTempVendorCDR_20' ) start [2025-04-03 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822113', 'tblTempVendorCDR_20' ) end [2025-04-03 01:22:18] Production.INFO: ProcessCDR(1,14822113,1,1,2) [2025-04-03 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822113', 'tblTempUsageDetail_20' ) start [2025-04-03 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822113', 'tblTempUsageDetail_20' ) end [2025-04-03 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:22:22] Production.INFO: ==30391== Releasing lock... [2025-04-03 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:22:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:23:05 [end_date_ymd] => 2025-04-03 01:23:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:23:05' and `end` < '2025-04-03 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-03 01:23:17] Production.INFO: count ==658 [2025-04-03 01:23:17] Production.ERROR: pbx CDR StartTime 2025-04-02 22:23:05 - End Time 2025-04-03 01:23:05 [2025-04-03 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822118', 'tblTempUsageDetail_20' ) start [2025-04-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822118', 'tblTempUsageDetail_20' ) end [2025-04-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822118', 'tblTempVendorCDR_20' ) start [2025-04-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822118', 'tblTempVendorCDR_20' ) end [2025-04-03 01:23:18] Production.INFO: ProcessCDR(1,14822118,1,1,2) [2025-04-03 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822118', 'tblTempUsageDetail_20' ) start [2025-04-03 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822118', 'tblTempUsageDetail_20' ) end [2025-04-03 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:23:21] Production.INFO: ==30469== Releasing lock... [2025-04-03 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:24:06 [end_date_ymd] => 2025-04-03 01:24:06 [RateCDR] => 1 ) [2025-04-03 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:24:06' and `end` < '2025-04-03 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:24:18] Production.INFO: count ==656 [2025-04-03 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:24:06 - End Time 2025-04-03 01:24:06 [2025-04-03 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822123', 'tblTempUsageDetail_20' ) start [2025-04-03 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822123', 'tblTempUsageDetail_20' ) end [2025-04-03 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822123', 'tblTempVendorCDR_20' ) start [2025-04-03 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822123', 'tblTempVendorCDR_20' ) end [2025-04-03 01:24:18] Production.INFO: ProcessCDR(1,14822123,1,1,2) [2025-04-03 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822123', 'tblTempUsageDetail_20' ) start [2025-04-03 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822123', 'tblTempUsageDetail_20' ) end [2025-04-03 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:24:22] Production.INFO: ==30557== Releasing lock... [2025-04-03 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:25:05 [end_date_ymd] => 2025-04-03 01:25:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:25:05' and `end` < '2025-04-03 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-03 01:25:18] Production.INFO: count ==656 [2025-04-03 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:25:05 - End Time 2025-04-03 01:25:05 [2025-04-03 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822128', 'tblTempUsageDetail_20' ) start [2025-04-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822128', 'tblTempUsageDetail_20' ) end [2025-04-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822128', 'tblTempVendorCDR_20' ) start [2025-04-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822128', 'tblTempVendorCDR_20' ) end [2025-04-03 01:25:18] Production.INFO: ProcessCDR(1,14822128,1,1,2) [2025-04-03 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822128', 'tblTempUsageDetail_20' ) start [2025-04-03 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822128', 'tblTempUsageDetail_20' ) end [2025-04-03 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:25:21] Production.INFO: ==30632== Releasing lock... [2025-04-03 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:26:05 [end_date_ymd] => 2025-04-03 01:26:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:26:05' and `end` < '2025-04-03 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-03 01:26:18] Production.INFO: count ==641 [2025-04-03 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:26:05 - End Time 2025-04-03 01:26:05 [2025-04-03 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822133', 'tblTempUsageDetail_20' ) start [2025-04-03 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822133', 'tblTempUsageDetail_20' ) end [2025-04-03 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822133', 'tblTempVendorCDR_20' ) start [2025-04-03 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822133', 'tblTempVendorCDR_20' ) end [2025-04-03 01:26:18] Production.INFO: ProcessCDR(1,14822133,1,1,2) [2025-04-03 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822133', 'tblTempUsageDetail_20' ) start [2025-04-03 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822133', 'tblTempUsageDetail_20' ) end [2025-04-03 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:26:21] Production.INFO: ==30714== Releasing lock... [2025-04-03 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:27:05 [end_date_ymd] => 2025-04-03 01:27:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:27:05' and `end` < '2025-04-03 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-03 01:27:18] Production.INFO: count ==637 [2025-04-03 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:27:05 - End Time 2025-04-03 01:27:05 [2025-04-03 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822138', 'tblTempUsageDetail_20' ) start [2025-04-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822138', 'tblTempUsageDetail_20' ) end [2025-04-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822138', 'tblTempVendorCDR_20' ) start [2025-04-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822138', 'tblTempVendorCDR_20' ) end [2025-04-03 01:27:18] Production.INFO: ProcessCDR(1,14822138,1,1,2) [2025-04-03 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822138', 'tblTempUsageDetail_20' ) start [2025-04-03 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822138', 'tblTempUsageDetail_20' ) end [2025-04-03 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:27:22] Production.INFO: ==30790== Releasing lock... [2025-04-03 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:28:05 [end_date_ymd] => 2025-04-03 01:28:05 [RateCDR] => 1 ) [2025-04-03 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:28:05' and `end` < '2025-04-03 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:28:17] Production.INFO: count ==637 [2025-04-03 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:28:05 - End Time 2025-04-03 01:28:05 [2025-04-03 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822143', 'tblTempUsageDetail_20' ) start [2025-04-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822143', 'tblTempUsageDetail_20' ) end [2025-04-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822143', 'tblTempVendorCDR_20' ) start [2025-04-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822143', 'tblTempVendorCDR_20' ) end [2025-04-03 01:28:18] Production.INFO: ProcessCDR(1,14822143,1,1,2) [2025-04-03 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822143', 'tblTempUsageDetail_20' ) start [2025-04-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822143', 'tblTempUsageDetail_20' ) end [2025-04-03 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:28:21] Production.INFO: ==30869== Releasing lock... [2025-04-03 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:28:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:29:06 [end_date_ymd] => 2025-04-03 01:29:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:29:06' and `end` < '2025-04-03 01: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-03 01:29:18] Production.INFO: count ==636 [2025-04-03 01:29:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:29:06 - End Time 2025-04-03 01:29:06 [2025-04-03 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822148', 'tblTempUsageDetail_20' ) start [2025-04-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822148', 'tblTempUsageDetail_20' ) end [2025-04-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822148', 'tblTempVendorCDR_20' ) start [2025-04-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822148', 'tblTempVendorCDR_20' ) end [2025-04-03 01:29:19] Production.INFO: ProcessCDR(1,14822148,1,1,2) [2025-04-03 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822148', 'tblTempUsageDetail_20' ) start [2025-04-03 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822148', 'tblTempUsageDetail_20' ) end [2025-04-03 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:29:22] Production.INFO: ==30952== Releasing lock... [2025-04-03 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:30:06 [end_date_ymd] => 2025-04-03 01:30:06 [RateCDR] => 1 ) [2025-04-03 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-02 22:30:06' and `end` < '2025-04-03 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-03 01:30:19] Production.INFO: count ==642 [2025-04-03 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:30:06 - End Time 2025-04-03 01:30:06 [2025-04-03 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822153', 'tblTempUsageDetail_20' ) start [2025-04-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822153', 'tblTempUsageDetail_20' ) end [2025-04-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822153', 'tblTempVendorCDR_20' ) start [2025-04-03 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822153', 'tblTempVendorCDR_20' ) end [2025-04-03 01:30:19] Production.INFO: ProcessCDR(1,14822153,1,1,2) [2025-04-03 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822153', 'tblTempUsageDetail_20' ) start [2025-04-03 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822153', 'tblTempUsageDetail_20' ) end [2025-04-03 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:30:22] Production.INFO: ==31034== Releasing lock... [2025-04-03 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:31:05 [end_date_ymd] => 2025-04-03 01:31:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:31:05' and `end` < '2025-04-03 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-03 01:31:18] Production.INFO: count ==691 [2025-04-03 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:31:05 - End Time 2025-04-03 01:31:05 [2025-04-03 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822159', 'tblTempUsageDetail_20' ) start [2025-04-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822159', 'tblTempUsageDetail_20' ) end [2025-04-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822159', 'tblTempVendorCDR_20' ) start [2025-04-03 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822159', 'tblTempVendorCDR_20' ) end [2025-04-03 01:31:18] Production.INFO: ProcessCDR(1,14822159,1,1,2) [2025-04-03 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822159', 'tblTempUsageDetail_20' ) start [2025-04-03 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822159', 'tblTempUsageDetail_20' ) end [2025-04-03 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:31:23] Production.INFO: ==31116== Releasing lock... [2025-04-03 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:31:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:32:05 [end_date_ymd] => 2025-04-03 01:32:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:32:05' and `end` < '2025-04-03 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-03 01:32:18] Production.INFO: count ==686 [2025-04-03 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:32:05 - End Time 2025-04-03 01:32:05 [2025-04-03 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822164', 'tblTempUsageDetail_20' ) start [2025-04-03 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822164', 'tblTempUsageDetail_20' ) end [2025-04-03 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822164', 'tblTempVendorCDR_20' ) start [2025-04-03 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822164', 'tblTempVendorCDR_20' ) end [2025-04-03 01:32:18] Production.INFO: ProcessCDR(1,14822164,1,1,2) [2025-04-03 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822164', 'tblTempUsageDetail_20' ) start [2025-04-03 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822164', 'tblTempUsageDetail_20' ) end [2025-04-03 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:32:22] Production.INFO: ==31235== Releasing lock... [2025-04-03 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:33:06 [end_date_ymd] => 2025-04-03 01:33:06 [RateCDR] => 1 ) [2025-04-03 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:33:06' and `end` < '2025-04-03 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:33:19] Production.INFO: count ==685 [2025-04-03 01:33:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:33:06 - End Time 2025-04-03 01:33:06 [2025-04-03 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822169', 'tblTempUsageDetail_20' ) start [2025-04-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822169', 'tblTempUsageDetail_20' ) end [2025-04-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822169', 'tblTempVendorCDR_20' ) start [2025-04-03 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822169', 'tblTempVendorCDR_20' ) end [2025-04-03 01:33:19] Production.INFO: ProcessCDR(1,14822169,1,1,2) [2025-04-03 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822169', 'tblTempUsageDetail_20' ) start [2025-04-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822169', 'tblTempUsageDetail_20' ) end [2025-04-03 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:33:22] Production.INFO: ==31314== Releasing lock... [2025-04-03 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:33:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:34:05 [end_date_ymd] => 2025-04-03 01:34:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:34:05' and `end` < '2025-04-03 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-03 01:34:18] Production.INFO: count ==688 [2025-04-03 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:34:05 - End Time 2025-04-03 01:34:05 [2025-04-03 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822174', 'tblTempUsageDetail_20' ) start [2025-04-03 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822174', 'tblTempUsageDetail_20' ) end [2025-04-03 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822174', 'tblTempVendorCDR_20' ) start [2025-04-03 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822174', 'tblTempVendorCDR_20' ) end [2025-04-03 01:34:18] Production.INFO: ProcessCDR(1,14822174,1,1,2) [2025-04-03 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822174', 'tblTempUsageDetail_20' ) start [2025-04-03 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822174', 'tblTempUsageDetail_20' ) end [2025-04-03 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:34:22] Production.INFO: ==31395== Releasing lock... [2025-04-03 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:35:06 [end_date_ymd] => 2025-04-03 01:35:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:35:06' and `end` < '2025-04-03 01: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-03 01:35:18] Production.INFO: count ==691 [2025-04-03 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:35:06 - End Time 2025-04-03 01:35:06 [2025-04-03 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822179', 'tblTempUsageDetail_20' ) start [2025-04-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822179', 'tblTempUsageDetail_20' ) end [2025-04-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822179', 'tblTempVendorCDR_20' ) start [2025-04-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822179', 'tblTempVendorCDR_20' ) end [2025-04-03 01:35:19] Production.INFO: ProcessCDR(1,14822179,1,1,2) [2025-04-03 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822179', 'tblTempUsageDetail_20' ) start [2025-04-03 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822179', 'tblTempUsageDetail_20' ) end [2025-04-03 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:35:22] Production.INFO: ==31473== Releasing lock... [2025-04-03 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:36:05 [end_date_ymd] => 2025-04-03 01:36:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:36:05' and `end` < '2025-04-03 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:36:18] Production.INFO: count ==701 [2025-04-03 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:36:05 - End Time 2025-04-03 01:36:05 [2025-04-03 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822184', 'tblTempUsageDetail_20' ) start [2025-04-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822184', 'tblTempUsageDetail_20' ) end [2025-04-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822184', 'tblTempVendorCDR_20' ) start [2025-04-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822184', 'tblTempVendorCDR_20' ) end [2025-04-03 01:36:19] Production.INFO: ProcessCDR(1,14822184,1,1,2) [2025-04-03 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822184', 'tblTempUsageDetail_20' ) start [2025-04-03 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822184', 'tblTempUsageDetail_20' ) end [2025-04-03 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:36:22] Production.INFO: ==31545== Releasing lock... [2025-04-03 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:37:05 [end_date_ymd] => 2025-04-03 01:37:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:37:05' and `end` < '2025-04-03 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-03 01:37:18] Production.INFO: count ==701 [2025-04-03 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:37:05 - End Time 2025-04-03 01:37:05 [2025-04-03 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822189', 'tblTempUsageDetail_20' ) start [2025-04-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822189', 'tblTempUsageDetail_20' ) end [2025-04-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822189', 'tblTempVendorCDR_20' ) start [2025-04-03 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822189', 'tblTempVendorCDR_20' ) end [2025-04-03 01:37:18] Production.INFO: ProcessCDR(1,14822189,1,1,2) [2025-04-03 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822189', 'tblTempUsageDetail_20' ) start [2025-04-03 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822189', 'tblTempUsageDetail_20' ) end [2025-04-03 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:37:22] Production.INFO: ==31624== Releasing lock... [2025-04-03 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:37:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:38:05 [end_date_ymd] => 2025-04-03 01:38:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:38:05' and `end` < '2025-04-03 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-03 01:38:18] Production.INFO: count ==701 [2025-04-03 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:38:05 - End Time 2025-04-03 01:38:05 [2025-04-03 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822194', 'tblTempUsageDetail_20' ) start [2025-04-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822194', 'tblTempUsageDetail_20' ) end [2025-04-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822194', 'tblTempVendorCDR_20' ) start [2025-04-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822194', 'tblTempVendorCDR_20' ) end [2025-04-03 01:38:18] Production.INFO: ProcessCDR(1,14822194,1,1,2) [2025-04-03 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822194', 'tblTempUsageDetail_20' ) start [2025-04-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822194', 'tblTempUsageDetail_20' ) end [2025-04-03 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:38:22] Production.INFO: ==31699== Releasing lock... [2025-04-03 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:39:06 [end_date_ymd] => 2025-04-03 01:39:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:39:06' and `end` < '2025-04-03 01: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-03 01:39:18] Production.INFO: count ==687 [2025-04-03 01:39:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:39:06 - End Time 2025-04-03 01:39:06 [2025-04-03 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822199', 'tblTempUsageDetail_20' ) start [2025-04-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822199', 'tblTempUsageDetail_20' ) end [2025-04-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822199', 'tblTempVendorCDR_20' ) start [2025-04-03 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822199', 'tblTempVendorCDR_20' ) end [2025-04-03 01:39:19] Production.INFO: ProcessCDR(1,14822199,1,1,2) [2025-04-03 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822199', 'tblTempUsageDetail_20' ) start [2025-04-03 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822199', 'tblTempUsageDetail_20' ) end [2025-04-03 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:39:22] Production.INFO: ==31773== Releasing lock... [2025-04-03 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:40:06 [end_date_ymd] => 2025-04-03 01:40:06 [RateCDR] => 1 ) [2025-04-03 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:40:06' and `end` < '2025-04-03 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:40:18] Production.INFO: count ==703 [2025-04-03 01:40:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:40:06 - End Time 2025-04-03 01:40:06 [2025-04-03 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822204', 'tblTempUsageDetail_20' ) start [2025-04-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822204', 'tblTempUsageDetail_20' ) end [2025-04-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822204', 'tblTempVendorCDR_20' ) start [2025-04-03 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822204', 'tblTempVendorCDR_20' ) end [2025-04-03 01:40:18] Production.INFO: ProcessCDR(1,14822204,1,1,2) [2025-04-03 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822204', 'tblTempUsageDetail_20' ) start [2025-04-03 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822204', 'tblTempUsageDetail_20' ) end [2025-04-03 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:40:22] Production.INFO: ==31848== Releasing lock... [2025-04-03 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:41:05 [end_date_ymd] => 2025-04-03 01:41:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:41:05' and `end` < '2025-04-03 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-03 01:41:18] Production.INFO: count ==716 [2025-04-03 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:41:05 - End Time 2025-04-03 01:41:05 [2025-04-03 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822210', 'tblTempUsageDetail_20' ) start [2025-04-03 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822210', 'tblTempUsageDetail_20' ) end [2025-04-03 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822210', 'tblTempVendorCDR_20' ) start [2025-04-03 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822210', 'tblTempVendorCDR_20' ) end [2025-04-03 01:41:18] Production.INFO: ProcessCDR(1,14822210,1,1,2) [2025-04-03 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822210', 'tblTempUsageDetail_20' ) start [2025-04-03 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822210', 'tblTempUsageDetail_20' ) end [2025-04-03 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:41:22] Production.INFO: ==31925== Releasing lock... [2025-04-03 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:42:05 [end_date_ymd] => 2025-04-03 01:42:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:42:05' and `end` < '2025-04-03 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-03 01:42:18] Production.INFO: count ==721 [2025-04-03 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:42:05 - End Time 2025-04-03 01:42:05 [2025-04-03 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822215', 'tblTempUsageDetail_20' ) start [2025-04-03 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822215', 'tblTempUsageDetail_20' ) end [2025-04-03 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822215', 'tblTempVendorCDR_20' ) start [2025-04-03 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822215', 'tblTempVendorCDR_20' ) end [2025-04-03 01:42:18] Production.INFO: ProcessCDR(1,14822215,1,1,2) [2025-04-03 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822215', 'tblTempUsageDetail_20' ) start [2025-04-03 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822215', 'tblTempUsageDetail_20' ) end [2025-04-03 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:42:22] Production.INFO: ==31997== Releasing lock... [2025-04-03 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:43:05 [end_date_ymd] => 2025-04-03 01:43:05 [RateCDR] => 1 ) [2025-04-03 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:43:05' and `end` < '2025-04-03 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:43:18] Production.INFO: count ==725 [2025-04-03 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:43:05 - End Time 2025-04-03 01:43:05 [2025-04-03 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822218', 'tblTempUsageDetail_20' ) start [2025-04-03 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822218', 'tblTempUsageDetail_20' ) end [2025-04-03 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822218', 'tblTempVendorCDR_20' ) start [2025-04-03 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822218', 'tblTempVendorCDR_20' ) end [2025-04-03 01:43:18] Production.INFO: ProcessCDR(1,14822218,1,1,2) [2025-04-03 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822218', 'tblTempUsageDetail_20' ) start [2025-04-03 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822218', 'tblTempUsageDetail_20' ) end [2025-04-03 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:43:22] Production.INFO: ==32072== Releasing lock... [2025-04-03 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:44:05 [end_date_ymd] => 2025-04-03 01:44:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:44:05' and `end` < '2025-04-03 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-03 01:44:18] Production.INFO: count ==731 [2025-04-03 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:44:05 - End Time 2025-04-03 01:44:05 [2025-04-03 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822225', 'tblTempUsageDetail_20' ) start [2025-04-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822225', 'tblTempUsageDetail_20' ) end [2025-04-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822225', 'tblTempVendorCDR_20' ) start [2025-04-03 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822225', 'tblTempVendorCDR_20' ) end [2025-04-03 01:44:18] Production.INFO: ProcessCDR(1,14822225,1,1,2) [2025-04-03 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822225', 'tblTempUsageDetail_20' ) start [2025-04-03 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822225', 'tblTempUsageDetail_20' ) end [2025-04-03 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:44:21] Production.INFO: ==32150== Releasing lock... [2025-04-03 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:44:21] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:45:05 [end_date_ymd] => 2025-04-03 01:45:05 [RateCDR] => 1 ) [2025-04-03 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:45:05' and `end` < '2025-04-03 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:45:18] Production.INFO: count ==727 [2025-04-03 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:45:05 - End Time 2025-04-03 01:45:05 [2025-04-03 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822230', 'tblTempUsageDetail_20' ) start [2025-04-03 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822230', 'tblTempUsageDetail_20' ) end [2025-04-03 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822230', 'tblTempVendorCDR_20' ) start [2025-04-03 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822230', 'tblTempVendorCDR_20' ) end [2025-04-03 01:45:18] Production.INFO: ProcessCDR(1,14822230,1,1,2) [2025-04-03 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822230', 'tblTempUsageDetail_20' ) start [2025-04-03 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822230', 'tblTempUsageDetail_20' ) end [2025-04-03 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:45:22] Production.INFO: ==32223== Releasing lock... [2025-04-03 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:46:05 [end_date_ymd] => 2025-04-03 01:46:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:46:05' and `end` < '2025-04-03 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-03 01:46:18] Production.INFO: count ==727 [2025-04-03 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:46:05 - End Time 2025-04-03 01:46:05 [2025-04-03 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822235', 'tblTempUsageDetail_20' ) start [2025-04-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822235', 'tblTempUsageDetail_20' ) end [2025-04-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822235', 'tblTempVendorCDR_20' ) start [2025-04-03 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822235', 'tblTempVendorCDR_20' ) end [2025-04-03 01:46:18] Production.INFO: ProcessCDR(1,14822235,1,1,2) [2025-04-03 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822235', 'tblTempUsageDetail_20' ) start [2025-04-03 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822235', 'tblTempUsageDetail_20' ) end [2025-04-03 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:46:21] Production.INFO: ==32300== Releasing lock... [2025-04-03 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:47:06 [end_date_ymd] => 2025-04-03 01:47:06 [RateCDR] => 1 ) [2025-04-03 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-02 22:47:06' and `end` < '2025-04-03 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-03 01:47:18] Production.INFO: count ==732 [2025-04-03 01:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:47:06 - End Time 2025-04-03 01:47:06 [2025-04-03 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822240', 'tblTempUsageDetail_20' ) start [2025-04-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822240', 'tblTempUsageDetail_20' ) end [2025-04-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822240', 'tblTempVendorCDR_20' ) start [2025-04-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822240', 'tblTempVendorCDR_20' ) end [2025-04-03 01:47:19] Production.INFO: ProcessCDR(1,14822240,1,1,2) [2025-04-03 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822240', 'tblTempUsageDetail_20' ) start [2025-04-03 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822240', 'tblTempUsageDetail_20' ) end [2025-04-03 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:47:22] Production.INFO: ==32376== Releasing lock... [2025-04-03 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:48:05 [end_date_ymd] => 2025-04-03 01:48:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:48:05' and `end` < '2025-04-03 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-03 01:48:18] Production.INFO: count ==731 [2025-04-03 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:48:05 - End Time 2025-04-03 01:48:05 [2025-04-03 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822245', 'tblTempUsageDetail_20' ) start [2025-04-03 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822245', 'tblTempUsageDetail_20' ) end [2025-04-03 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822245', 'tblTempVendorCDR_20' ) start [2025-04-03 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822245', 'tblTempVendorCDR_20' ) end [2025-04-03 01:48:18] Production.INFO: ProcessCDR(1,14822245,1,1,2) [2025-04-03 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822245', 'tblTempUsageDetail_20' ) start [2025-04-03 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822245', 'tblTempUsageDetail_20' ) end [2025-04-03 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:48:21] Production.INFO: ==32493== Releasing lock... [2025-04-03 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:48:21] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:49:05 [end_date_ymd] => 2025-04-03 01:49:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:49:05' and `end` < '2025-04-03 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-03 01:49:18] Production.INFO: count ==730 [2025-04-03 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:49:05 - End Time 2025-04-03 01:49:05 [2025-04-03 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822250', 'tblTempUsageDetail_20' ) start [2025-04-03 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822250', 'tblTempUsageDetail_20' ) end [2025-04-03 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822250', 'tblTempVendorCDR_20' ) start [2025-04-03 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822250', 'tblTempVendorCDR_20' ) end [2025-04-03 01:49:18] Production.INFO: ProcessCDR(1,14822250,1,1,2) [2025-04-03 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822250', 'tblTempUsageDetail_20' ) start [2025-04-03 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822250', 'tblTempUsageDetail_20' ) end [2025-04-03 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:49:22] Production.INFO: ==32569== Releasing lock... [2025-04-03 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:49:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:50:05 [end_date_ymd] => 2025-04-03 01:50:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:50:05' and `end` < '2025-04-03 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-03 01:50:18] Production.INFO: count ==739 [2025-04-03 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:50:05 - End Time 2025-04-03 01:50:05 [2025-04-03 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822256', 'tblTempUsageDetail_20' ) start [2025-04-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822256', 'tblTempUsageDetail_20' ) end [2025-04-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822256', 'tblTempVendorCDR_20' ) start [2025-04-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822256', 'tblTempVendorCDR_20' ) end [2025-04-03 01:50:19] Production.INFO: ProcessCDR(1,14822256,1,1,2) [2025-04-03 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822256', 'tblTempUsageDetail_20' ) start [2025-04-03 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822256', 'tblTempUsageDetail_20' ) end [2025-04-03 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:50:24] Production.INFO: ==32649== Releasing lock... [2025-04-03 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:51:05 [end_date_ymd] => 2025-04-03 01:51:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:51:05' and `end` < '2025-04-03 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-03 01:51:18] Production.INFO: count ==754 [2025-04-03 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:51:05 - End Time 2025-04-03 01:51:05 [2025-04-03 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822261', 'tblTempUsageDetail_20' ) start [2025-04-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822261', 'tblTempUsageDetail_20' ) end [2025-04-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822261', 'tblTempVendorCDR_20' ) start [2025-04-03 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822261', 'tblTempVendorCDR_20' ) end [2025-04-03 01:51:18] Production.INFO: ProcessCDR(1,14822261,1,1,2) [2025-04-03 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822261', 'tblTempUsageDetail_20' ) start [2025-04-03 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822261', 'tblTempUsageDetail_20' ) end [2025-04-03 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:51:22] Production.INFO: ==32734== Releasing lock... [2025-04-03 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:52:06 [end_date_ymd] => 2025-04-03 01:52:06 [RateCDR] => 1 ) [2025-04-03 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 22:52:06' and `end` < '2025-04-03 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 01:52:18] Production.INFO: count ==757 [2025-04-03 01:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:52:06 - End Time 2025-04-03 01:52:06 [2025-04-03 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822266', 'tblTempUsageDetail_20' ) start [2025-04-03 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822266', 'tblTempUsageDetail_20' ) end [2025-04-03 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822266', 'tblTempVendorCDR_20' ) start [2025-04-03 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822266', 'tblTempVendorCDR_20' ) end [2025-04-03 01:52:19] Production.INFO: ProcessCDR(1,14822266,1,1,2) [2025-04-03 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822266', 'tblTempUsageDetail_20' ) start [2025-04-03 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822266', 'tblTempUsageDetail_20' ) end [2025-04-03 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:52:22] Production.INFO: ==371== Releasing lock... [2025-04-03 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:52:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:53:05 [end_date_ymd] => 2025-04-03 01:53:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:53:05' and `end` < '2025-04-03 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-03 01:53:18] Production.INFO: count ==749 [2025-04-03 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:53:05 - End Time 2025-04-03 01:53:05 [2025-04-03 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822271', 'tblTempUsageDetail_20' ) start [2025-04-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822271', 'tblTempUsageDetail_20' ) end [2025-04-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822271', 'tblTempVendorCDR_20' ) start [2025-04-03 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822271', 'tblTempVendorCDR_20' ) end [2025-04-03 01:53:18] Production.INFO: ProcessCDR(1,14822271,1,1,2) [2025-04-03 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822271', 'tblTempUsageDetail_20' ) start [2025-04-03 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822271', 'tblTempUsageDetail_20' ) end [2025-04-03 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:53:21] Production.INFO: ==453== Releasing lock... [2025-04-03 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:54:06 [end_date_ymd] => 2025-04-03 01:54:06 [RateCDR] => 1 ) [2025-04-03 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-02 22:54:06' and `end` < '2025-04-03 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-03 01:54:18] Production.INFO: count ==752 [2025-04-03 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:54:06 - End Time 2025-04-03 01:54:06 [2025-04-03 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822276', 'tblTempUsageDetail_20' ) start [2025-04-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822276', 'tblTempUsageDetail_20' ) end [2025-04-03 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822276', 'tblTempVendorCDR_20' ) start [2025-04-03 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822276', 'tblTempVendorCDR_20' ) end [2025-04-03 01:54:19] Production.INFO: ProcessCDR(1,14822276,1,1,2) [2025-04-03 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822276', 'tblTempUsageDetail_20' ) start [2025-04-03 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822276', 'tblTempUsageDetail_20' ) end [2025-04-03 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:54:22] Production.INFO: ==537== Releasing lock... [2025-04-03 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:54:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:55:05 [end_date_ymd] => 2025-04-03 01:55:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:55:05' and `end` < '2025-04-03 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-03 01:55:18] Production.INFO: count ==757 [2025-04-03 01:55:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:55:05 - End Time 2025-04-03 01:55:05 [2025-04-03 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822281', 'tblTempUsageDetail_20' ) start [2025-04-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822281', 'tblTempUsageDetail_20' ) end [2025-04-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822281', 'tblTempVendorCDR_20' ) start [2025-04-03 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822281', 'tblTempVendorCDR_20' ) end [2025-04-03 01:55:18] Production.INFO: ProcessCDR(1,14822281,1,1,2) [2025-04-03 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822281', 'tblTempUsageDetail_20' ) start [2025-04-03 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822281', 'tblTempUsageDetail_20' ) end [2025-04-03 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:55:22] Production.INFO: ==627== Releasing lock... [2025-04-03 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:55:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:56:06 [end_date_ymd] => 2025-04-03 01:56:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:56:06' and `end` < '2025-04-03 01: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-03 01:56:18] Production.INFO: count ==763 [2025-04-03 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:56:06 - End Time 2025-04-03 01:56:06 [2025-04-03 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822286', 'tblTempUsageDetail_20' ) start [2025-04-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822286', 'tblTempUsageDetail_20' ) end [2025-04-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822286', 'tblTempVendorCDR_20' ) start [2025-04-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822286', 'tblTempVendorCDR_20' ) end [2025-04-03 01:56:19] Production.INFO: ProcessCDR(1,14822286,1,1,2) [2025-04-03 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822286', 'tblTempUsageDetail_20' ) start [2025-04-03 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822286', 'tblTempUsageDetail_20' ) end [2025-04-03 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:56:22] Production.INFO: ==743== Releasing lock... [2025-04-03 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:57:06 [end_date_ymd] => 2025-04-03 01:57:06 [RateCDR] => 1 ) [2025-04-03 01: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-02 22:57:06' and `end` < '2025-04-03 01: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-03 01:57:18] Production.INFO: count ==755 [2025-04-03 01:57:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:57:06 - End Time 2025-04-03 01:57:06 [2025-04-03 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822291', 'tblTempUsageDetail_20' ) start [2025-04-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822291', 'tblTempUsageDetail_20' ) end [2025-04-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822291', 'tblTempVendorCDR_20' ) start [2025-04-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822291', 'tblTempVendorCDR_20' ) end [2025-04-03 01:57:19] Production.INFO: ProcessCDR(1,14822291,1,1,2) [2025-04-03 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822291', 'tblTempUsageDetail_20' ) start [2025-04-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822291', 'tblTempUsageDetail_20' ) end [2025-04-03 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:57:22] Production.INFO: ==828== Releasing lock... [2025-04-03 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:58:06 [end_date_ymd] => 2025-04-03 01:58:06 [RateCDR] => 1 ) [2025-04-03 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-02 22:58:06' and `end` < '2025-04-03 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-03 01:58:19] Production.INFO: count ==766 [2025-04-03 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-02 22:58:06 - End Time 2025-04-03 01:58:06 [2025-04-03 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822296', 'tblTempUsageDetail_20' ) start [2025-04-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822296', 'tblTempUsageDetail_20' ) end [2025-04-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822296', 'tblTempVendorCDR_20' ) start [2025-04-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822296', 'tblTempVendorCDR_20' ) end [2025-04-03 01:58:19] Production.INFO: ProcessCDR(1,14822296,1,1,2) [2025-04-03 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822296', 'tblTempUsageDetail_20' ) start [2025-04-03 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822296', 'tblTempUsageDetail_20' ) end [2025-04-03 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:58:23] Production.INFO: ==907== Releasing lock... [2025-04-03 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:58:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 22:59:05 [end_date_ymd] => 2025-04-03 01:59:05 [RateCDR] => 1 ) [2025-04-03 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-02 22:59:05' and `end` < '2025-04-03 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-03 01:59:18] Production.INFO: count ==771 [2025-04-03 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-02 22:59:05 - End Time 2025-04-03 01:59:05 [2025-04-03 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822301', 'tblTempUsageDetail_20' ) start [2025-04-03 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822301', 'tblTempUsageDetail_20' ) end [2025-04-03 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822301', 'tblTempVendorCDR_20' ) start [2025-04-03 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822301', 'tblTempVendorCDR_20' ) end [2025-04-03 01:59:18] Production.INFO: ProcessCDR(1,14822301,1,1,2) [2025-04-03 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822301', 'tblTempUsageDetail_20' ) start [2025-04-03 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822301', 'tblTempUsageDetail_20' ) end [2025-04-03 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 01:59:22] Production.INFO: ==999== Releasing lock... [2025-04-03 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 01:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:00:06 [end_date_ymd] => 2025-04-03 02:00:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:00:06' and `end` < '2025-04-03 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-03 02:00:19] Production.INFO: count ==776 [2025-04-03 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:00:06 - End Time 2025-04-03 02:00:06 [2025-04-03 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822307', 'tblTempUsageDetail_20' ) start [2025-04-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822307', 'tblTempUsageDetail_20' ) end [2025-04-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822307', 'tblTempVendorCDR_20' ) start [2025-04-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822307', 'tblTempVendorCDR_20' ) end [2025-04-03 02:00:19] Production.INFO: ProcessCDR(1,14822307,1,1,2) [2025-04-03 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822307', 'tblTempUsageDetail_20' ) start [2025-04-03 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822307', 'tblTempUsageDetail_20' ) end [2025-04-03 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:00:22] Production.INFO: ==1086== Releasing lock... [2025-04-03 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:01:05 [end_date_ymd] => 2025-04-03 02:01:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:01:05' and `end` < '2025-04-03 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-03 02:01:18] Production.INFO: count ==781 [2025-04-03 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:01:05 - End Time 2025-04-03 02:01:05 [2025-04-03 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822312', 'tblTempUsageDetail_20' ) start [2025-04-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822312', 'tblTempUsageDetail_20' ) end [2025-04-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822312', 'tblTempVendorCDR_20' ) start [2025-04-03 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822312', 'tblTempVendorCDR_20' ) end [2025-04-03 02:01:18] Production.INFO: ProcessCDR(1,14822312,1,1,2) [2025-04-03 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822312', 'tblTempUsageDetail_20' ) start [2025-04-03 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822312', 'tblTempUsageDetail_20' ) end [2025-04-03 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:01:22] Production.INFO: ==1203== Releasing lock... [2025-04-03 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:02:06 [end_date_ymd] => 2025-04-03 02:02:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:02:06' and `end` < '2025-04-03 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-03 02:02:18] Production.INFO: count ==777 [2025-04-03 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:02:06 - End Time 2025-04-03 02:02:06 [2025-04-03 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822317', 'tblTempUsageDetail_20' ) start [2025-04-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822317', 'tblTempUsageDetail_20' ) end [2025-04-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822317', 'tblTempVendorCDR_20' ) start [2025-04-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822317', 'tblTempVendorCDR_20' ) end [2025-04-03 02:02:19] Production.INFO: ProcessCDR(1,14822317,1,1,2) [2025-04-03 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822317', 'tblTempUsageDetail_20' ) start [2025-04-03 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822317', 'tblTempUsageDetail_20' ) end [2025-04-03 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:02:22] Production.INFO: ==1424== Releasing lock... [2025-04-03 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:03:05 [end_date_ymd] => 2025-04-03 02:03:05 [RateCDR] => 1 ) [2025-04-03 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:03:05' and `end` < '2025-04-03 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:03:18] Production.INFO: count ==785 [2025-04-03 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:03:05 - End Time 2025-04-03 02:03:05 [2025-04-03 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822322', 'tblTempUsageDetail_20' ) start [2025-04-03 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822322', 'tblTempUsageDetail_20' ) end [2025-04-03 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822322', 'tblTempVendorCDR_20' ) start [2025-04-03 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822322', 'tblTempVendorCDR_20' ) end [2025-04-03 02:03:18] Production.INFO: ProcessCDR(1,14822322,1,1,2) [2025-04-03 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822322', 'tblTempUsageDetail_20' ) start [2025-04-03 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822322', 'tblTempUsageDetail_20' ) end [2025-04-03 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:03:22] Production.INFO: ==1626== Releasing lock... [2025-04-03 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:04:06 [end_date_ymd] => 2025-04-03 02:04:06 [RateCDR] => 1 ) [2025-04-03 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:04:06' and `end` < '2025-04-03 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:04:18] Production.INFO: count ==791 [2025-04-03 02:04:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:04:06 - End Time 2025-04-03 02:04:06 [2025-04-03 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822327', 'tblTempUsageDetail_20' ) start [2025-04-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822327', 'tblTempUsageDetail_20' ) end [2025-04-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822327', 'tblTempVendorCDR_20' ) start [2025-04-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822327', 'tblTempVendorCDR_20' ) end [2025-04-03 02:04:19] Production.INFO: ProcessCDR(1,14822327,1,1,2) [2025-04-03 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822327', 'tblTempUsageDetail_20' ) start [2025-04-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822327', 'tblTempUsageDetail_20' ) end [2025-04-03 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:04:22] Production.INFO: ==1714== Releasing lock... [2025-04-03 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:05:06 [end_date_ymd] => 2025-04-03 02:05:06 [RateCDR] => 1 ) [2025-04-03 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:05:06' and `end` < '2025-04-03 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:05:18] Production.INFO: count ==824 [2025-04-03 02:05:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:05:06 - End Time 2025-04-03 02:05:06 [2025-04-03 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822332', 'tblTempUsageDetail_20' ) start [2025-04-03 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822332', 'tblTempUsageDetail_20' ) end [2025-04-03 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822332', 'tblTempVendorCDR_20' ) start [2025-04-03 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822332', 'tblTempVendorCDR_20' ) end [2025-04-03 02:05:19] Production.INFO: ProcessCDR(1,14822332,1,1,2) [2025-04-03 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822332', 'tblTempUsageDetail_20' ) start [2025-04-03 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822332', 'tblTempUsageDetail_20' ) end [2025-04-03 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:05:22] Production.INFO: ==1798== Releasing lock... [2025-04-03 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:05:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:06:06 [end_date_ymd] => 2025-04-03 02:06:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:06:06' and `end` < '2025-04-03 02: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-03 02:06:18] Production.INFO: count ==830 [2025-04-03 02:06:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:06:06 - End Time 2025-04-03 02:06:06 [2025-04-03 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822337', 'tblTempUsageDetail_20' ) start [2025-04-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822337', 'tblTempUsageDetail_20' ) end [2025-04-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822337', 'tblTempVendorCDR_20' ) start [2025-04-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822337', 'tblTempVendorCDR_20' ) end [2025-04-03 02:06:19] Production.INFO: ProcessCDR(1,14822337,1,1,2) [2025-04-03 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822337', 'tblTempUsageDetail_20' ) start [2025-04-03 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822337', 'tblTempUsageDetail_20' ) end [2025-04-03 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:06:22] Production.INFO: ==1886== Releasing lock... [2025-04-03 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:06:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:07:05 [end_date_ymd] => 2025-04-03 02:07:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:07:05' and `end` < '2025-04-03 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-03 02:07:18] Production.INFO: count ==845 [2025-04-03 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:07:05 - End Time 2025-04-03 02:07:05 [2025-04-03 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822342', 'tblTempUsageDetail_20' ) start [2025-04-03 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822342', 'tblTempUsageDetail_20' ) end [2025-04-03 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822342', 'tblTempVendorCDR_20' ) start [2025-04-03 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822342', 'tblTempVendorCDR_20' ) end [2025-04-03 02:07:18] Production.INFO: ProcessCDR(1,14822342,1,1,2) [2025-04-03 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822342', 'tblTempUsageDetail_20' ) start [2025-04-03 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822342', 'tblTempUsageDetail_20' ) end [2025-04-03 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:07:22] Production.INFO: ==1973== Releasing lock... [2025-04-03 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:08:06 [end_date_ymd] => 2025-04-03 02:08:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:08:06' and `end` < '2025-04-03 02: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-03 02:08:18] Production.INFO: count ==844 [2025-04-03 02:08:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:08:06 - End Time 2025-04-03 02:08:06 [2025-04-03 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822347', 'tblTempUsageDetail_20' ) start [2025-04-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822347', 'tblTempUsageDetail_20' ) end [2025-04-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822347', 'tblTempVendorCDR_20' ) start [2025-04-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822347', 'tblTempVendorCDR_20' ) end [2025-04-03 02:08:19] Production.INFO: ProcessCDR(1,14822347,1,1,2) [2025-04-03 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822347', 'tblTempUsageDetail_20' ) start [2025-04-03 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822347', 'tblTempUsageDetail_20' ) end [2025-04-03 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:08:22] Production.INFO: ==2061== Releasing lock... [2025-04-03 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:09:05 [end_date_ymd] => 2025-04-03 02:09:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:09:05' and `end` < '2025-04-03 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-03 02:09:17] Production.INFO: count ==851 [2025-04-03 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:09:05 - End Time 2025-04-03 02:09:05 [2025-04-03 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822352', 'tblTempUsageDetail_20' ) start [2025-04-03 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822352', 'tblTempUsageDetail_20' ) end [2025-04-03 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822352', 'tblTempVendorCDR_20' ) start [2025-04-03 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822352', 'tblTempVendorCDR_20' ) end [2025-04-03 02:09:18] Production.INFO: ProcessCDR(1,14822352,1,1,2) [2025-04-03 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822352', 'tblTempUsageDetail_20' ) start [2025-04-03 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822352', 'tblTempUsageDetail_20' ) end [2025-04-03 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:09:21] Production.INFO: ==2141== Releasing lock... [2025-04-03 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:09:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:10:06 [end_date_ymd] => 2025-04-03 02:10:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:10:06' and `end` < '2025-04-03 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-03 02:10:19] Production.INFO: count ==865 [2025-04-03 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:10:06 - End Time 2025-04-03 02:10:06 [2025-04-03 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822358', 'tblTempUsageDetail_20' ) start [2025-04-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822358', 'tblTempUsageDetail_20' ) end [2025-04-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822358', 'tblTempVendorCDR_20' ) start [2025-04-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822358', 'tblTempVendorCDR_20' ) end [2025-04-03 02:10:19] Production.INFO: ProcessCDR(1,14822358,1,1,2) [2025-04-03 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822358', 'tblTempUsageDetail_20' ) start [2025-04-03 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822358', 'tblTempUsageDetail_20' ) end [2025-04-03 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:10:23] Production.INFO: ==2227== Releasing lock... [2025-04-03 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-03 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:11:05 [end_date_ymd] => 2025-04-03 02:11:05 [RateCDR] => 1 ) [2025-04-03 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:11:05' and `end` < '2025-04-03 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:11:18] Production.INFO: count ==880 [2025-04-03 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:11:05 - End Time 2025-04-03 02:11:05 [2025-04-03 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822363', 'tblTempUsageDetail_20' ) start [2025-04-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822363', 'tblTempUsageDetail_20' ) end [2025-04-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822363', 'tblTempVendorCDR_20' ) start [2025-04-03 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822363', 'tblTempVendorCDR_20' ) end [2025-04-03 02:11:18] Production.INFO: ProcessCDR(1,14822363,1,1,2) [2025-04-03 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822363', 'tblTempUsageDetail_20' ) start [2025-04-03 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822363', 'tblTempUsageDetail_20' ) end [2025-04-03 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:11:22] Production.INFO: ==2315== Releasing lock... [2025-04-03 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:12:05 [end_date_ymd] => 2025-04-03 02:12:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:12:05' and `end` < '2025-04-03 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-03 02:12:18] Production.INFO: count ==885 [2025-04-03 02:12:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:12:05 - End Time 2025-04-03 02:12:05 [2025-04-03 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822368', 'tblTempUsageDetail_20' ) start [2025-04-03 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822368', 'tblTempUsageDetail_20' ) end [2025-04-03 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822368', 'tblTempVendorCDR_20' ) start [2025-04-03 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822368', 'tblTempVendorCDR_20' ) end [2025-04-03 02:12:18] Production.INFO: ProcessCDR(1,14822368,1,1,2) [2025-04-03 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822368', 'tblTempUsageDetail_20' ) start [2025-04-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822368', 'tblTempUsageDetail_20' ) end [2025-04-03 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:12:22] Production.INFO: ==2394== Releasing lock... [2025-04-03 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:13:06 [end_date_ymd] => 2025-04-03 02:13:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:13:06' and `end` < '2025-04-03 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-03 02:13:19] Production.INFO: count ==889 [2025-04-03 02:13:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:13:06 - End Time 2025-04-03 02:13:06 [2025-04-03 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822373', 'tblTempUsageDetail_20' ) start [2025-04-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822373', 'tblTempUsageDetail_20' ) end [2025-04-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822373', 'tblTempVendorCDR_20' ) start [2025-04-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822373', 'tblTempVendorCDR_20' ) end [2025-04-03 02:13:19] Production.INFO: ProcessCDR(1,14822373,1,1,2) [2025-04-03 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822373', 'tblTempUsageDetail_20' ) start [2025-04-03 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822373', 'tblTempUsageDetail_20' ) end [2025-04-03 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:13:23] Production.INFO: ==2480== Releasing lock... [2025-04-03 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:13:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:14:05 [end_date_ymd] => 2025-04-03 02:14:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:14:05' and `end` < '2025-04-03 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-03 02:14:17] Production.INFO: count ==880 [2025-04-03 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:14:05 - End Time 2025-04-03 02:14:05 [2025-04-03 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822378', 'tblTempUsageDetail_20' ) start [2025-04-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822378', 'tblTempUsageDetail_20' ) end [2025-04-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822378', 'tblTempVendorCDR_20' ) start [2025-04-03 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822378', 'tblTempVendorCDR_20' ) end [2025-04-03 02:14:18] Production.INFO: ProcessCDR(1,14822378,1,1,2) [2025-04-03 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822378', 'tblTempUsageDetail_20' ) start [2025-04-03 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822378', 'tblTempUsageDetail_20' ) end [2025-04-03 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:14:21] Production.INFO: ==2563== Releasing lock... [2025-04-03 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:14:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:15:05 [end_date_ymd] => 2025-04-03 02:15:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:15:05' and `end` < '2025-04-03 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-03 02:15:18] Production.INFO: count ==878 [2025-04-03 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:15:05 - End Time 2025-04-03 02:15:05 [2025-04-03 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822383', 'tblTempUsageDetail_20' ) start [2025-04-03 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822383', 'tblTempUsageDetail_20' ) end [2025-04-03 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822383', 'tblTempVendorCDR_20' ) start [2025-04-03 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822383', 'tblTempVendorCDR_20' ) end [2025-04-03 02:15:18] Production.INFO: ProcessCDR(1,14822383,1,1,2) [2025-04-03 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822383', 'tblTempUsageDetail_20' ) start [2025-04-03 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822383', 'tblTempUsageDetail_20' ) end [2025-04-03 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:15:22] Production.INFO: ==2646== Releasing lock... [2025-04-03 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:15:22] Production.INFO: 35 MB #Memory Used# [2025-04-03 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:16:05 [end_date_ymd] => 2025-04-03 02:16:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:16:05' and `end` < '2025-04-03 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-03 02:16:18] Production.INFO: count ==878 [2025-04-03 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:16:05 - End Time 2025-04-03 02:16:05 [2025-04-03 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822388', 'tblTempUsageDetail_20' ) start [2025-04-03 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822388', 'tblTempUsageDetail_20' ) end [2025-04-03 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822388', 'tblTempVendorCDR_20' ) start [2025-04-03 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822388', 'tblTempVendorCDR_20' ) end [2025-04-03 02:16:18] Production.INFO: ProcessCDR(1,14822388,1,1,2) [2025-04-03 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822388', 'tblTempUsageDetail_20' ) start [2025-04-03 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822388', 'tblTempUsageDetail_20' ) end [2025-04-03 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:16:22] Production.INFO: ==2729== Releasing lock... [2025-04-03 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:16:22] Production.INFO: 35 MB #Memory Used# [2025-04-03 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:17:06 [end_date_ymd] => 2025-04-03 02:17:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:17:06' and `end` < '2025-04-03 02: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-03 02:17:18] Production.INFO: count ==877 [2025-04-03 02:17:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:17:06 - End Time 2025-04-03 02:17:06 [2025-04-03 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822393', 'tblTempUsageDetail_20' ) start [2025-04-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822393', 'tblTempUsageDetail_20' ) end [2025-04-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822393', 'tblTempVendorCDR_20' ) start [2025-04-03 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822393', 'tblTempVendorCDR_20' ) end [2025-04-03 02:17:19] Production.INFO: ProcessCDR(1,14822393,1,1,2) [2025-04-03 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822393', 'tblTempUsageDetail_20' ) start [2025-04-03 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822393', 'tblTempUsageDetail_20' ) end [2025-04-03 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:17:22] Production.INFO: ==2812== Releasing lock... [2025-04-03 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:17:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:18:06 [end_date_ymd] => 2025-04-03 02:18:06 [RateCDR] => 1 ) [2025-04-03 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:18:06' and `end` < '2025-04-03 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:18:18] Production.INFO: count ==877 [2025-04-03 02:18:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:18:06 - End Time 2025-04-03 02:18:06 [2025-04-03 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822398', 'tblTempUsageDetail_20' ) start [2025-04-03 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822398', 'tblTempUsageDetail_20' ) end [2025-04-03 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822398', 'tblTempVendorCDR_20' ) start [2025-04-03 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822398', 'tblTempVendorCDR_20' ) end [2025-04-03 02:18:19] Production.INFO: ProcessCDR(1,14822398,1,1,2) [2025-04-03 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822398', 'tblTempUsageDetail_20' ) start [2025-04-03 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822398', 'tblTempUsageDetail_20' ) end [2025-04-03 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:18:22] Production.INFO: ==2901== Releasing lock... [2025-04-03 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:18:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:19:05 [end_date_ymd] => 2025-04-03 02:19:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:19:05' and `end` < '2025-04-03 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-03 02:19:18] Production.INFO: count ==877 [2025-04-03 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:19:05 - End Time 2025-04-03 02:19:05 [2025-04-03 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822403', 'tblTempUsageDetail_20' ) start [2025-04-03 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822403', 'tblTempUsageDetail_20' ) end [2025-04-03 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822403', 'tblTempVendorCDR_20' ) start [2025-04-03 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822403', 'tblTempVendorCDR_20' ) end [2025-04-03 02:19:18] Production.INFO: ProcessCDR(1,14822403,1,1,2) [2025-04-03 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822403', 'tblTempUsageDetail_20' ) start [2025-04-03 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822403', 'tblTempUsageDetail_20' ) end [2025-04-03 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:19:22] Production.INFO: ==3022== Releasing lock... [2025-04-03 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:20:06 [end_date_ymd] => 2025-04-03 02:20:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:20:06' and `end` < '2025-04-03 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-03 02:20:19] Production.INFO: count ==877 [2025-04-03 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:20:06 - End Time 2025-04-03 02:20:06 [2025-04-03 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822409', 'tblTempUsageDetail_20' ) start [2025-04-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822409', 'tblTempUsageDetail_20' ) end [2025-04-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822409', 'tblTempVendorCDR_20' ) start [2025-04-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822409', 'tblTempVendorCDR_20' ) end [2025-04-03 02:20:19] Production.INFO: ProcessCDR(1,14822409,1,1,2) [2025-04-03 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822409', 'tblTempUsageDetail_20' ) start [2025-04-03 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822409', 'tblTempUsageDetail_20' ) end [2025-04-03 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:20:23] Production.INFO: ==3114== Releasing lock... [2025-04-03 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:21:04 [end_date_ymd] => 2025-04-03 02:21:04 [RateCDR] => 1 ) [2025-04-03 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-02 23:21:04' and `end` < '2025-04-03 02: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-03 02:21:17] Production.INFO: count ==877 [2025-04-03 02:21:17] Production.ERROR: pbx CDR StartTime 2025-04-02 23:21:04 - End Time 2025-04-03 02:21:04 [2025-04-03 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822414', 'tblTempUsageDetail_20' ) start [2025-04-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822414', 'tblTempUsageDetail_20' ) end [2025-04-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822414', 'tblTempVendorCDR_20' ) start [2025-04-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822414', 'tblTempVendorCDR_20' ) end [2025-04-03 02:21:18] Production.INFO: ProcessCDR(1,14822414,1,1,2) [2025-04-03 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822414', 'tblTempUsageDetail_20' ) start [2025-04-03 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822414', 'tblTempUsageDetail_20' ) end [2025-04-03 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:21:21] Production.INFO: ==3202== Releasing lock... [2025-04-03 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:22:06 [end_date_ymd] => 2025-04-03 02:22:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:22:06' and `end` < '2025-04-03 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-03 02:22:19] Production.INFO: count ==873 [2025-04-03 02:22:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:22:06 - End Time 2025-04-03 02:22:06 [2025-04-03 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822419', 'tblTempUsageDetail_20' ) start [2025-04-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822419', 'tblTempUsageDetail_20' ) end [2025-04-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822419', 'tblTempVendorCDR_20' ) start [2025-04-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822419', 'tblTempVendorCDR_20' ) end [2025-04-03 02:22:19] Production.INFO: ProcessCDR(1,14822419,1,1,2) [2025-04-03 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822419', 'tblTempUsageDetail_20' ) start [2025-04-03 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822419', 'tblTempUsageDetail_20' ) end [2025-04-03 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:22:22] Production.INFO: ==3291== Releasing lock... [2025-04-03 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:22:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:23:06 [end_date_ymd] => 2025-04-03 02:23:06 [RateCDR] => 1 ) [2025-04-03 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:23:06' and `end` < '2025-04-03 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:23:18] Production.INFO: count ==872 [2025-04-03 02:23:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:23:06 - End Time 2025-04-03 02:23:06 [2025-04-03 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822424', 'tblTempUsageDetail_20' ) start [2025-04-03 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822424', 'tblTempUsageDetail_20' ) end [2025-04-03 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822424', 'tblTempVendorCDR_20' ) start [2025-04-03 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822424', 'tblTempVendorCDR_20' ) end [2025-04-03 02:23:19] Production.INFO: ProcessCDR(1,14822424,1,1,2) [2025-04-03 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822424', 'tblTempUsageDetail_20' ) start [2025-04-03 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822424', 'tblTempUsageDetail_20' ) end [2025-04-03 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:23:22] Production.INFO: ==3372== Releasing lock... [2025-04-03 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:24:06 [end_date_ymd] => 2025-04-03 02:24:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:24:06' and `end` < '2025-04-03 02: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-03 02:24:18] Production.INFO: count ==868 [2025-04-03 02:24:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:24:06 - End Time 2025-04-03 02:24:06 [2025-04-03 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822429', 'tblTempUsageDetail_20' ) start [2025-04-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822429', 'tblTempUsageDetail_20' ) end [2025-04-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822429', 'tblTempVendorCDR_20' ) start [2025-04-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822429', 'tblTempVendorCDR_20' ) end [2025-04-03 02:24:19] Production.INFO: ProcessCDR(1,14822429,1,1,2) [2025-04-03 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822429', 'tblTempUsageDetail_20' ) start [2025-04-03 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822429', 'tblTempUsageDetail_20' ) end [2025-04-03 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:24:22] Production.INFO: ==3460== Releasing lock... [2025-04-03 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-03 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:25:05 [end_date_ymd] => 2025-04-03 02:25:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:25:05' and `end` < '2025-04-03 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-03 02:25:18] Production.INFO: count ==864 [2025-04-03 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:25:05 - End Time 2025-04-03 02:25:05 [2025-04-03 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822434', 'tblTempUsageDetail_20' ) start [2025-04-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822434', 'tblTempUsageDetail_20' ) end [2025-04-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822434', 'tblTempVendorCDR_20' ) start [2025-04-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822434', 'tblTempVendorCDR_20' ) end [2025-04-03 02:25:18] Production.INFO: ProcessCDR(1,14822434,1,1,2) [2025-04-03 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822434', 'tblTempUsageDetail_20' ) start [2025-04-03 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822434', 'tblTempUsageDetail_20' ) end [2025-04-03 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:25:22] Production.INFO: ==3547== Releasing lock... [2025-04-03 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:25:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:26:06 [end_date_ymd] => 2025-04-03 02:26:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:26:06' and `end` < '2025-04-03 02: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-03 02:26:18] Production.INFO: count ==868 [2025-04-03 02:26:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:26:06 - End Time 2025-04-03 02:26:06 [2025-04-03 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822439', 'tblTempUsageDetail_20' ) start [2025-04-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822439', 'tblTempUsageDetail_20' ) end [2025-04-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822439', 'tblTempVendorCDR_20' ) start [2025-04-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822439', 'tblTempVendorCDR_20' ) end [2025-04-03 02:26:19] Production.INFO: ProcessCDR(1,14822439,1,1,2) [2025-04-03 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822439', 'tblTempUsageDetail_20' ) start [2025-04-03 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822439', 'tblTempUsageDetail_20' ) end [2025-04-03 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:26:22] Production.INFO: ==3638== Releasing lock... [2025-04-03 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:27:05 [end_date_ymd] => 2025-04-03 02:27:05 [RateCDR] => 1 ) [2025-04-03 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:27:05' and `end` < '2025-04-03 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:27:18] Production.INFO: count ==868 [2025-04-03 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:27:05 - End Time 2025-04-03 02:27:05 [2025-04-03 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822444', 'tblTempUsageDetail_20' ) start [2025-04-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822444', 'tblTempUsageDetail_20' ) end [2025-04-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822444', 'tblTempVendorCDR_20' ) start [2025-04-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822444', 'tblTempVendorCDR_20' ) end [2025-04-03 02:27:18] Production.INFO: ProcessCDR(1,14822444,1,1,2) [2025-04-03 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822444', 'tblTempUsageDetail_20' ) start [2025-04-03 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822444', 'tblTempUsageDetail_20' ) end [2025-04-03 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:27:21] Production.INFO: ==3720== Releasing lock... [2025-04-03 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:28:06 [end_date_ymd] => 2025-04-03 02:28:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:28:06' and `end` < '2025-04-03 02: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-03 02:28:18] Production.INFO: count ==868 [2025-04-03 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:28:06 - End Time 2025-04-03 02:28:06 [2025-04-03 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822449', 'tblTempUsageDetail_20' ) start [2025-04-03 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822449', 'tblTempUsageDetail_20' ) end [2025-04-03 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822449', 'tblTempVendorCDR_20' ) start [2025-04-03 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822449', 'tblTempVendorCDR_20' ) end [2025-04-03 02:28:18] Production.INFO: ProcessCDR(1,14822449,1,1,2) [2025-04-03 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822449', 'tblTempUsageDetail_20' ) start [2025-04-03 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822449', 'tblTempUsageDetail_20' ) end [2025-04-03 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:28:22] Production.INFO: ==3806== Releasing lock... [2025-04-03 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:29:05 [end_date_ymd] => 2025-04-03 02:29:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:29:05' and `end` < '2025-04-03 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-03 02:29:18] Production.INFO: count ==868 [2025-04-03 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:29:05 - End Time 2025-04-03 02:29:05 [2025-04-03 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822454', 'tblTempUsageDetail_20' ) start [2025-04-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822454', 'tblTempUsageDetail_20' ) end [2025-04-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822454', 'tblTempVendorCDR_20' ) start [2025-04-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822454', 'tblTempVendorCDR_20' ) end [2025-04-03 02:29:18] Production.INFO: ProcessCDR(1,14822454,1,1,2) [2025-04-03 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822454', 'tblTempUsageDetail_20' ) start [2025-04-03 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822454', 'tblTempUsageDetail_20' ) end [2025-04-03 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:29:22] Production.INFO: ==3891== Releasing lock... [2025-04-03 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:30:06 [end_date_ymd] => 2025-04-03 02:30:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:30:06' and `end` < '2025-04-03 02: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-03 02:30:19] Production.INFO: count ==860 [2025-04-03 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:30:06 - End Time 2025-04-03 02:30:06 [2025-04-03 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822460', 'tblTempUsageDetail_20' ) start [2025-04-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822460', 'tblTempUsageDetail_20' ) end [2025-04-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822460', 'tblTempVendorCDR_20' ) start [2025-04-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822460', 'tblTempVendorCDR_20' ) end [2025-04-03 02:30:19] Production.INFO: ProcessCDR(1,14822460,1,1,2) [2025-04-03 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822460', 'tblTempUsageDetail_20' ) start [2025-04-03 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822460', 'tblTempUsageDetail_20' ) end [2025-04-03 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:30:23] Production.INFO: ==3975== Releasing lock... [2025-04-03 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:30:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:31:06 [end_date_ymd] => 2025-04-03 02:31:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:31:06' and `end` < '2025-04-03 02: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-03 02:31:19] Production.INFO: count ==860 [2025-04-03 02:31:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:31:06 - End Time 2025-04-03 02:31:06 [2025-04-03 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822465', 'tblTempUsageDetail_20' ) start [2025-04-03 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822465', 'tblTempUsageDetail_20' ) end [2025-04-03 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822465', 'tblTempVendorCDR_20' ) start [2025-04-03 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822465', 'tblTempVendorCDR_20' ) end [2025-04-03 02:31:19] Production.INFO: ProcessCDR(1,14822465,1,1,2) [2025-04-03 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822465', 'tblTempUsageDetail_20' ) start [2025-04-03 02:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822465', 'tblTempUsageDetail_20' ) end [2025-04-03 02:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:31:23] Production.INFO: ==4068== Releasing lock... [2025-04-03 02:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:32:05 [end_date_ymd] => 2025-04-03 02:32:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:32:05' and `end` < '2025-04-03 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-03 02:32:18] Production.INFO: count ==860 [2025-04-03 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:32:05 - End Time 2025-04-03 02:32:05 [2025-04-03 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822470', 'tblTempUsageDetail_20' ) start [2025-04-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822470', 'tblTempUsageDetail_20' ) end [2025-04-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822470', 'tblTempVendorCDR_20' ) start [2025-04-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822470', 'tblTempVendorCDR_20' ) end [2025-04-03 02:32:18] Production.INFO: ProcessCDR(1,14822470,1,1,2) [2025-04-03 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822470', 'tblTempUsageDetail_20' ) start [2025-04-03 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822470', 'tblTempUsageDetail_20' ) end [2025-04-03 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:32:22] Production.INFO: ==4153== Releasing lock... [2025-04-03 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:33:06 [end_date_ymd] => 2025-04-03 02:33:06 [RateCDR] => 1 ) [2025-04-03 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:33:06' and `end` < '2025-04-03 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:33:18] Production.INFO: count ==855 [2025-04-03 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:33:06 - End Time 2025-04-03 02:33:06 [2025-04-03 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822475', 'tblTempUsageDetail_20' ) start [2025-04-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822475', 'tblTempUsageDetail_20' ) end [2025-04-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822475', 'tblTempVendorCDR_20' ) start [2025-04-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822475', 'tblTempVendorCDR_20' ) end [2025-04-03 02:33:19] Production.INFO: ProcessCDR(1,14822475,1,1,2) [2025-04-03 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822475', 'tblTempUsageDetail_20' ) start [2025-04-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822475', 'tblTempUsageDetail_20' ) end [2025-04-03 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:33:22] Production.INFO: ==4232== Releasing lock... [2025-04-03 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:34:06 [end_date_ymd] => 2025-04-03 02:34:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:34:06' and `end` < '2025-04-03 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-03 02:34:19] Production.INFO: count ==845 [2025-04-03 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:34:06 - End Time 2025-04-03 02:34:06 [2025-04-03 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822480', 'tblTempUsageDetail_20' ) start [2025-04-03 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822480', 'tblTempUsageDetail_20' ) end [2025-04-03 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822480', 'tblTempVendorCDR_20' ) start [2025-04-03 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822480', 'tblTempVendorCDR_20' ) end [2025-04-03 02:34:19] Production.INFO: ProcessCDR(1,14822480,1,1,2) [2025-04-03 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822480', 'tblTempUsageDetail_20' ) start [2025-04-03 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822480', 'tblTempUsageDetail_20' ) end [2025-04-03 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:34:23] Production.INFO: ==4356== Releasing lock... [2025-04-03 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:34:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:35:07 [end_date_ymd] => 2025-04-03 02:35:07 [RateCDR] => 1 ) [2025-04-03 02:35: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-02 23:35:07' and `end` < '2025-04-03 02:35: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-03 02:35:20] Production.INFO: count ==841 [2025-04-03 02:35:20] Production.ERROR: pbx CDR StartTime 2025-04-02 23:35:07 - End Time 2025-04-03 02:35:07 [2025-04-03 02:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822485', 'tblTempUsageDetail_20' ) start [2025-04-03 02:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822485', 'tblTempUsageDetail_20' ) end [2025-04-03 02:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822485', 'tblTempVendorCDR_20' ) start [2025-04-03 02:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822485', 'tblTempVendorCDR_20' ) end [2025-04-03 02:35:20] Production.INFO: ProcessCDR(1,14822485,1,1,2) [2025-04-03 02:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822485', 'tblTempUsageDetail_20' ) start [2025-04-03 02:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822485', 'tblTempUsageDetail_20' ) end [2025-04-03 02:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:35:24] Production.INFO: ==4445== Releasing lock... [2025-04-03 02:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:35:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:36:06 [end_date_ymd] => 2025-04-03 02:36:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:36:06' and `end` < '2025-04-03 02: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-03 02:36:19] Production.INFO: count ==834 [2025-04-03 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:36:06 - End Time 2025-04-03 02:36:06 [2025-04-03 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822490', 'tblTempUsageDetail_20' ) start [2025-04-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822490', 'tblTempUsageDetail_20' ) end [2025-04-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822490', 'tblTempVendorCDR_20' ) start [2025-04-03 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822490', 'tblTempVendorCDR_20' ) end [2025-04-03 02:36:19] Production.INFO: ProcessCDR(1,14822490,1,1,2) [2025-04-03 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822490', 'tblTempUsageDetail_20' ) start [2025-04-03 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822490', 'tblTempUsageDetail_20' ) end [2025-04-03 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:36:23] Production.INFO: ==4527== Releasing lock... [2025-04-03 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:36:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:37:06 [end_date_ymd] => 2025-04-03 02:37:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:37:06' and `end` < '2025-04-03 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-03 02:37:19] Production.INFO: count ==832 [2025-04-03 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:37:06 - End Time 2025-04-03 02:37:06 [2025-04-03 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822495', 'tblTempUsageDetail_20' ) start [2025-04-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822495', 'tblTempUsageDetail_20' ) end [2025-04-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822495', 'tblTempVendorCDR_20' ) start [2025-04-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822495', 'tblTempVendorCDR_20' ) end [2025-04-03 02:37:19] Production.INFO: ProcessCDR(1,14822495,1,1,2) [2025-04-03 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822495', 'tblTempUsageDetail_20' ) start [2025-04-03 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822495', 'tblTempUsageDetail_20' ) end [2025-04-03 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:37:23] Production.INFO: ==4614== Releasing lock... [2025-04-03 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:37:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:38:06 [end_date_ymd] => 2025-04-03 02:38:06 [RateCDR] => 1 ) [2025-04-03 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:38:06' and `end` < '2025-04-03 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:38:18] Production.INFO: count ==830 [2025-04-03 02:38:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:38:06 - End Time 2025-04-03 02:38:06 [2025-04-03 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822500', 'tblTempUsageDetail_20' ) start [2025-04-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822500', 'tblTempUsageDetail_20' ) end [2025-04-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822500', 'tblTempVendorCDR_20' ) start [2025-04-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822500', 'tblTempVendorCDR_20' ) end [2025-04-03 02:38:19] Production.INFO: ProcessCDR(1,14822500,1,1,2) [2025-04-03 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822500', 'tblTempUsageDetail_20' ) start [2025-04-03 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822500', 'tblTempUsageDetail_20' ) end [2025-04-03 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:38:22] Production.INFO: ==4694== Releasing lock... [2025-04-03 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:39:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:39:07 [end_date_ymd] => 2025-04-03 02:39:07 [RateCDR] => 1 ) [2025-04-03 02:39: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-02 23:39:07' and `end` < '2025-04-03 02:39: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-03 02:39:19] Production.INFO: count ==827 [2025-04-03 02:39:20] Production.ERROR: pbx CDR StartTime 2025-04-02 23:39:07 - End Time 2025-04-03 02:39:07 [2025-04-03 02:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822505', 'tblTempUsageDetail_20' ) start [2025-04-03 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822505', 'tblTempUsageDetail_20' ) end [2025-04-03 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822505', 'tblTempVendorCDR_20' ) start [2025-04-03 02:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822505', 'tblTempVendorCDR_20' ) end [2025-04-03 02:39:20] Production.INFO: ProcessCDR(1,14822505,1,1,2) [2025-04-03 02:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822505', 'tblTempUsageDetail_20' ) start [2025-04-03 02:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822505', 'tblTempUsageDetail_20' ) end [2025-04-03 02:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:39:24] Production.INFO: ==4779== Releasing lock... [2025-04-03 02:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:39:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:40:06 [end_date_ymd] => 2025-04-03 02:40:06 [RateCDR] => 1 ) [2025-04-03 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:40:06' and `end` < '2025-04-03 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:40:19] Production.INFO: count ==831 [2025-04-03 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-02 23:40:06 - End Time 2025-04-03 02:40:06 [2025-04-03 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822511', 'tblTempUsageDetail_20' ) start [2025-04-03 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822511', 'tblTempUsageDetail_20' ) end [2025-04-03 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822511', 'tblTempVendorCDR_20' ) start [2025-04-03 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822511', 'tblTempVendorCDR_20' ) end [2025-04-03 02:40:20] Production.INFO: ProcessCDR(1,14822511,1,1,2) [2025-04-03 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822511', 'tblTempUsageDetail_20' ) start [2025-04-03 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822511', 'tblTempUsageDetail_20' ) end [2025-04-03 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:40:23] Production.INFO: ==4865== Releasing lock... [2025-04-03 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:41:05 [end_date_ymd] => 2025-04-03 02:41:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:41:05' and `end` < '2025-04-03 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-03 02:41:18] Production.INFO: count ==832 [2025-04-03 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:41:05 - End Time 2025-04-03 02:41:05 [2025-04-03 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822516', 'tblTempUsageDetail_20' ) start [2025-04-03 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822516', 'tblTempUsageDetail_20' ) end [2025-04-03 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822516', 'tblTempVendorCDR_20' ) start [2025-04-03 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822516', 'tblTempVendorCDR_20' ) end [2025-04-03 02:41:18] Production.INFO: ProcessCDR(1,14822516,1,1,2) [2025-04-03 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822516', 'tblTempUsageDetail_20' ) start [2025-04-03 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822516', 'tblTempUsageDetail_20' ) end [2025-04-03 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:41:22] Production.INFO: ==4947== Releasing lock... [2025-04-03 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:42:06 [end_date_ymd] => 2025-04-03 02:42:06 [RateCDR] => 1 ) [2025-04-03 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:42:06' and `end` < '2025-04-03 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:42:18] Production.INFO: count ==821 [2025-04-03 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:42:06 - End Time 2025-04-03 02:42:06 [2025-04-03 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822521', 'tblTempUsageDetail_20' ) start [2025-04-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822521', 'tblTempUsageDetail_20' ) end [2025-04-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822521', 'tblTempVendorCDR_20' ) start [2025-04-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822521', 'tblTempVendorCDR_20' ) end [2025-04-03 02:42:19] Production.INFO: ProcessCDR(1,14822521,1,1,2) [2025-04-03 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822521', 'tblTempUsageDetail_20' ) start [2025-04-03 02:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822521', 'tblTempUsageDetail_20' ) end [2025-04-03 02:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:42:23] Production.INFO: ==5031== Releasing lock... [2025-04-03 02:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:42:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:43:05 [end_date_ymd] => 2025-04-03 02:43:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:43:05' and `end` < '2025-04-03 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-03 02:43:17] Production.INFO: count ==813 [2025-04-03 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:43:05 - End Time 2025-04-03 02:43:05 [2025-04-03 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822526', 'tblTempUsageDetail_20' ) start [2025-04-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822526', 'tblTempUsageDetail_20' ) end [2025-04-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822526', 'tblTempVendorCDR_20' ) start [2025-04-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822526', 'tblTempVendorCDR_20' ) end [2025-04-03 02:43:18] Production.INFO: ProcessCDR(1,14822526,1,1,2) [2025-04-03 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822526', 'tblTempUsageDetail_20' ) start [2025-04-03 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822526', 'tblTempUsageDetail_20' ) end [2025-04-03 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:43:22] Production.INFO: ==5112== Releasing lock... [2025-04-03 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:43:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:44:06 [end_date_ymd] => 2025-04-03 02:44:06 [RateCDR] => 1 ) [2025-04-03 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:44:06' and `end` < '2025-04-03 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:44:19] Production.INFO: count ==810 [2025-04-03 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:44:06 - End Time 2025-04-03 02:44:06 [2025-04-03 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822531', 'tblTempUsageDetail_20' ) start [2025-04-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822531', 'tblTempUsageDetail_20' ) end [2025-04-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822531', 'tblTempVendorCDR_20' ) start [2025-04-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822531', 'tblTempVendorCDR_20' ) end [2025-04-03 02:44:19] Production.INFO: ProcessCDR(1,14822531,1,1,2) [2025-04-03 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822531', 'tblTempUsageDetail_20' ) start [2025-04-03 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822531', 'tblTempUsageDetail_20' ) end [2025-04-03 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:44:23] Production.INFO: ==5186== Releasing lock... [2025-04-03 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:44:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:45:05 [end_date_ymd] => 2025-04-03 02:45:05 [RateCDR] => 1 ) [2025-04-03 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-02 23:45:05' and `end` < '2025-04-03 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-03 02:45:18] Production.INFO: count ==815 [2025-04-03 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:45:05 - End Time 2025-04-03 02:45:05 [2025-04-03 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822536', 'tblTempUsageDetail_20' ) start [2025-04-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822536', 'tblTempUsageDetail_20' ) end [2025-04-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822536', 'tblTempVendorCDR_20' ) start [2025-04-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822536', 'tblTempVendorCDR_20' ) end [2025-04-03 02:45:18] Production.INFO: ProcessCDR(1,14822536,1,1,2) [2025-04-03 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822536', 'tblTempUsageDetail_20' ) start [2025-04-03 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822536', 'tblTempUsageDetail_20' ) end [2025-04-03 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:45:22] Production.INFO: ==5265== Releasing lock... [2025-04-03 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:45:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:46:06 [end_date_ymd] => 2025-04-03 02:46:06 [RateCDR] => 1 ) [2025-04-03 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-02 23:46:06' and `end` < '2025-04-03 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-03 02:46:18] Production.INFO: count ==815 [2025-04-03 02:46:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:46:06 - End Time 2025-04-03 02:46:06 [2025-04-03 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822541', 'tblTempUsageDetail_20' ) start [2025-04-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822541', 'tblTempUsageDetail_20' ) end [2025-04-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822541', 'tblTempVendorCDR_20' ) start [2025-04-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822541', 'tblTempVendorCDR_20' ) end [2025-04-03 02:46:19] Production.INFO: ProcessCDR(1,14822541,1,1,2) [2025-04-03 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822541', 'tblTempUsageDetail_20' ) start [2025-04-03 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822541', 'tblTempUsageDetail_20' ) end [2025-04-03 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:46:23] Production.INFO: ==5341== Releasing lock... [2025-04-03 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:47:06 [end_date_ymd] => 2025-04-03 02:47:06 [RateCDR] => 1 ) [2025-04-03 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:47:06' and `end` < '2025-04-03 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:47:19] Production.INFO: count ==814 [2025-04-03 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:47:06 - End Time 2025-04-03 02:47:06 [2025-04-03 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822546', 'tblTempUsageDetail_20' ) start [2025-04-03 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822546', 'tblTempUsageDetail_20' ) end [2025-04-03 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822546', 'tblTempVendorCDR_20' ) start [2025-04-03 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822546', 'tblTempVendorCDR_20' ) end [2025-04-03 02:47:19] Production.INFO: ProcessCDR(1,14822546,1,1,2) [2025-04-03 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822546', 'tblTempUsageDetail_20' ) start [2025-04-03 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822546', 'tblTempUsageDetail_20' ) end [2025-04-03 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:47:23] Production.INFO: ==5415== Releasing lock... [2025-04-03 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:47:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:48:06 [end_date_ymd] => 2025-04-03 02:48:06 [RateCDR] => 1 ) [2025-04-03 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:48:06' and `end` < '2025-04-03 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:48:19] Production.INFO: count ==814 [2025-04-03 02:48:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:48:06 - End Time 2025-04-03 02:48:06 [2025-04-03 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822551', 'tblTempUsageDetail_20' ) start [2025-04-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822551', 'tblTempUsageDetail_20' ) end [2025-04-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822551', 'tblTempVendorCDR_20' ) start [2025-04-03 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822551', 'tblTempVendorCDR_20' ) end [2025-04-03 02:48:19] Production.INFO: ProcessCDR(1,14822551,1,1,2) [2025-04-03 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822551', 'tblTempUsageDetail_20' ) start [2025-04-03 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822551', 'tblTempUsageDetail_20' ) end [2025-04-03 02:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:48:23] Production.INFO: ==5489== Releasing lock... [2025-04-03 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:49:06 [end_date_ymd] => 2025-04-03 02:49:06 [RateCDR] => 1 ) [2025-04-03 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:49:06' and `end` < '2025-04-03 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:49:18] Production.INFO: count ==808 [2025-04-03 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:49:06 - End Time 2025-04-03 02:49:06 [2025-04-03 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822556', 'tblTempUsageDetail_20' ) start [2025-04-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822556', 'tblTempUsageDetail_20' ) end [2025-04-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822556', 'tblTempVendorCDR_20' ) start [2025-04-03 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822556', 'tblTempVendorCDR_20' ) end [2025-04-03 02:49:19] Production.INFO: ProcessCDR(1,14822556,1,1,2) [2025-04-03 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822556', 'tblTempUsageDetail_20' ) start [2025-04-03 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822556', 'tblTempUsageDetail_20' ) end [2025-04-03 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:49:22] Production.INFO: ==5566== Releasing lock... [2025-04-03 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:49:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:50:07 [end_date_ymd] => 2025-04-03 02:50:07 [RateCDR] => 1 ) [2025-04-03 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:50:07' and `end` < '2025-04-03 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:50:19] Production.INFO: count ==806 [2025-04-03 02:50:20] Production.ERROR: pbx CDR StartTime 2025-04-02 23:50:07 - End Time 2025-04-03 02:50:07 [2025-04-03 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822561', 'tblTempUsageDetail_20' ) start [2025-04-03 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822561', 'tblTempUsageDetail_20' ) end [2025-04-03 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822561', 'tblTempVendorCDR_20' ) start [2025-04-03 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822561', 'tblTempVendorCDR_20' ) end [2025-04-03 02:50:20] Production.INFO: ProcessCDR(1,14822561,1,1,2) [2025-04-03 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822561', 'tblTempUsageDetail_20' ) start [2025-04-03 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822561', 'tblTempUsageDetail_20' ) end [2025-04-03 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:50:24] Production.INFO: ==5686== Releasing lock... [2025-04-03 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:50:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:51:06 [end_date_ymd] => 2025-04-03 02:51:06 [RateCDR] => 1 ) [2025-04-03 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:51:06' and `end` < '2025-04-03 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:51:19] Production.INFO: count ==805 [2025-04-03 02:51:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:51:06 - End Time 2025-04-03 02:51:06 [2025-04-03 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822567', 'tblTempUsageDetail_20' ) start [2025-04-03 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822567', 'tblTempUsageDetail_20' ) end [2025-04-03 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822567', 'tblTempVendorCDR_20' ) start [2025-04-03 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822567', 'tblTempVendorCDR_20' ) end [2025-04-03 02:51:19] Production.INFO: ProcessCDR(1,14822567,1,1,2) [2025-04-03 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822567', 'tblTempUsageDetail_20' ) start [2025-04-03 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822567', 'tblTempUsageDetail_20' ) end [2025-04-03 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:51:23] Production.INFO: ==5761== Releasing lock... [2025-04-03 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:52:06 [end_date_ymd] => 2025-04-03 02:52:06 [RateCDR] => 1 ) [2025-04-03 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:52:06' and `end` < '2025-04-03 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:52:19] Production.INFO: count ==805 [2025-04-03 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:52:06 - End Time 2025-04-03 02:52:06 [2025-04-03 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822572', 'tblTempUsageDetail_20' ) start [2025-04-03 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822572', 'tblTempUsageDetail_20' ) end [2025-04-03 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822572', 'tblTempVendorCDR_20' ) start [2025-04-03 02:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822572', 'tblTempVendorCDR_20' ) end [2025-04-03 02:52:20] Production.INFO: ProcessCDR(1,14822572,1,1,2) [2025-04-03 02:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822572', 'tblTempUsageDetail_20' ) start [2025-04-03 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822572', 'tblTempUsageDetail_20' ) end [2025-04-03 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:52:23] Production.INFO: ==5836== Releasing lock... [2025-04-03 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:52:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:53:06 [end_date_ymd] => 2025-04-03 02:53:06 [RateCDR] => 1 ) [2025-04-03 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:53:06' and `end` < '2025-04-03 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:53:19] Production.INFO: count ==809 [2025-04-03 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:53:06 - End Time 2025-04-03 02:53:06 [2025-04-03 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822577', 'tblTempUsageDetail_20' ) start [2025-04-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822577', 'tblTempUsageDetail_20' ) end [2025-04-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822577', 'tblTempVendorCDR_20' ) start [2025-04-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822577', 'tblTempVendorCDR_20' ) end [2025-04-03 02:53:19] Production.INFO: ProcessCDR(1,14822577,1,1,2) [2025-04-03 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822577', 'tblTempUsageDetail_20' ) start [2025-04-03 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822577', 'tblTempUsageDetail_20' ) end [2025-04-03 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:53:23] Production.INFO: ==5909== Releasing lock... [2025-04-03 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:53:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:54:06 [end_date_ymd] => 2025-04-03 02:54:06 [RateCDR] => 1 ) [2025-04-03 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:54:06' and `end` < '2025-04-03 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:54:19] Production.INFO: count ==810 [2025-04-03 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:54:06 - End Time 2025-04-03 02:54:06 [2025-04-03 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822582', 'tblTempUsageDetail_20' ) start [2025-04-03 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822582', 'tblTempUsageDetail_20' ) end [2025-04-03 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822582', 'tblTempVendorCDR_20' ) start [2025-04-03 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822582', 'tblTempVendorCDR_20' ) end [2025-04-03 02:54:20] Production.INFO: ProcessCDR(1,14822582,1,1,2) [2025-04-03 02:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822582', 'tblTempUsageDetail_20' ) start [2025-04-03 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822582', 'tblTempUsageDetail_20' ) end [2025-04-03 02:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:54:24] Production.INFO: ==5984== Releasing lock... [2025-04-03 02:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:54:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:55:06 [end_date_ymd] => 2025-04-03 02:55:06 [RateCDR] => 1 ) [2025-04-03 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:55:06' and `end` < '2025-04-03 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:55:19] Production.INFO: count ==806 [2025-04-03 02:55:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:55:06 - End Time 2025-04-03 02:55:06 [2025-04-03 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822587', 'tblTempUsageDetail_20' ) start [2025-04-03 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822587', 'tblTempUsageDetail_20' ) end [2025-04-03 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822587', 'tblTempVendorCDR_20' ) start [2025-04-03 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822587', 'tblTempVendorCDR_20' ) end [2025-04-03 02:55:19] Production.INFO: ProcessCDR(1,14822587,1,1,2) [2025-04-03 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822587', 'tblTempUsageDetail_20' ) start [2025-04-03 02:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822587', 'tblTempUsageDetail_20' ) end [2025-04-03 02:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:55:25] Production.INFO: ==6056== Releasing lock... [2025-04-03 02:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:55:25] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:56:06 [end_date_ymd] => 2025-04-03 02:56:06 [RateCDR] => 1 ) [2025-04-03 02: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-02 23:56:06' and `end` < '2025-04-03 02: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-03 02:56:18] Production.INFO: count ==805 [2025-04-03 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:56:06 - End Time 2025-04-03 02:56:06 [2025-04-03 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822592', 'tblTempUsageDetail_20' ) start [2025-04-03 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822592', 'tblTempUsageDetail_20' ) end [2025-04-03 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822592', 'tblTempVendorCDR_20' ) start [2025-04-03 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822592', 'tblTempVendorCDR_20' ) end [2025-04-03 02:56:19] Production.INFO: ProcessCDR(1,14822592,1,1,2) [2025-04-03 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822592', 'tblTempUsageDetail_20' ) start [2025-04-03 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822592', 'tblTempUsageDetail_20' ) end [2025-04-03 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:56:22] Production.INFO: ==6129== Releasing lock... [2025-04-03 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:57:06 [end_date_ymd] => 2025-04-03 02:57:06 [RateCDR] => 1 ) [2025-04-03 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:57:06' and `end` < '2025-04-03 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:57:18] Production.INFO: count ==782 [2025-04-03 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:57:06 - End Time 2025-04-03 02:57:06 [2025-04-03 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822597', 'tblTempUsageDetail_20' ) start [2025-04-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822597', 'tblTempUsageDetail_20' ) end [2025-04-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822597', 'tblTempVendorCDR_20' ) start [2025-04-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822597', 'tblTempVendorCDR_20' ) end [2025-04-03 02:57:19] Production.INFO: ProcessCDR(1,14822597,1,1,2) [2025-04-03 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822597', 'tblTempUsageDetail_20' ) start [2025-04-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822597', 'tblTempUsageDetail_20' ) end [2025-04-03 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:57:22] Production.INFO: ==6202== Releasing lock... [2025-04-03 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:57:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:58:05 [end_date_ymd] => 2025-04-03 02:58:05 [RateCDR] => 1 ) [2025-04-03 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:58:05' and `end` < '2025-04-03 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:58:18] Production.INFO: count ==774 [2025-04-03 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-02 23:58:05 - End Time 2025-04-03 02:58:05 [2025-04-03 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822602', 'tblTempUsageDetail_20' ) start [2025-04-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822602', 'tblTempUsageDetail_20' ) end [2025-04-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822602', 'tblTempVendorCDR_20' ) start [2025-04-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822602', 'tblTempVendorCDR_20' ) end [2025-04-03 02:58:18] Production.INFO: ProcessCDR(1,14822602,1,1,2) [2025-04-03 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822602', 'tblTempUsageDetail_20' ) start [2025-04-03 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822602', 'tblTempUsageDetail_20' ) end [2025-04-03 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:58:22] Production.INFO: ==6273== Releasing lock... [2025-04-03 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:58:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-02 23:59:06 [end_date_ymd] => 2025-04-03 02:59:06 [RateCDR] => 1 ) [2025-04-03 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-02 23:59:06' and `end` < '2025-04-03 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 02:59:19] Production.INFO: count ==774 [2025-04-03 02:59:19] Production.ERROR: pbx CDR StartTime 2025-04-02 23:59:06 - End Time 2025-04-03 02:59:06 [2025-04-03 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822607', 'tblTempUsageDetail_20' ) start [2025-04-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822607', 'tblTempUsageDetail_20' ) end [2025-04-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822607', 'tblTempVendorCDR_20' ) start [2025-04-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822607', 'tblTempVendorCDR_20' ) end [2025-04-03 02:59:19] Production.INFO: ProcessCDR(1,14822607,1,1,2) [2025-04-03 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822607', 'tblTempUsageDetail_20' ) start [2025-04-03 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822607', 'tblTempUsageDetail_20' ) end [2025-04-03 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 02:59:23] Production.INFO: ==6351== Releasing lock... [2025-04-03 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 02:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:00:06 [end_date_ymd] => 2025-04-03 03:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:00:06' and `end` < '2025-04-03 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-03 03:00:19] Production.INFO: count ==770 [2025-04-03 03:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 00:00:06 - End Time 2025-04-03 03:00:06 [2025-04-03 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822613', 'tblTempUsageDetail_20' ) start [2025-04-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822613', 'tblTempUsageDetail_20' ) end [2025-04-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822613', 'tblTempVendorCDR_20' ) start [2025-04-03 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822613', 'tblTempVendorCDR_20' ) end [2025-04-03 03:00:20] Production.INFO: ProcessCDR(1,14822613,1,1,2) [2025-04-03 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822613', 'tblTempUsageDetail_20' ) start [2025-04-03 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822613', 'tblTempUsageDetail_20' ) end [2025-04-03 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:00:23] Production.INFO: ==6426== Releasing lock... [2025-04-03 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:00:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:01:06 [end_date_ymd] => 2025-04-03 03:01:06 [RateCDR] => 1 ) [2025-04-03 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:01:06' and `end` < '2025-04-03 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:01:18] Production.INFO: count ==762 [2025-04-03 03:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:01:06 - End Time 2025-04-03 03:01:06 [2025-04-03 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822618', 'tblTempUsageDetail_20' ) start [2025-04-03 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822618', 'tblTempUsageDetail_20' ) end [2025-04-03 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822618', 'tblTempVendorCDR_20' ) start [2025-04-03 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822618', 'tblTempVendorCDR_20' ) end [2025-04-03 03:01:19] Production.INFO: ProcessCDR(1,14822618,1,1,2) [2025-04-03 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822618', 'tblTempUsageDetail_20' ) start [2025-04-03 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822618', 'tblTempUsageDetail_20' ) end [2025-04-03 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:01:23] Production.INFO: ==6518== Releasing lock... [2025-04-03 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:01:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:02:05 [end_date_ymd] => 2025-04-03 03:02:05 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:02:05' and `end` < '2025-04-03 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-03 03:02:18] Production.INFO: count ==757 [2025-04-03 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:02:05 - End Time 2025-04-03 03:02:05 [2025-04-03 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822623', 'tblTempUsageDetail_20' ) start [2025-04-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822623', 'tblTempUsageDetail_20' ) end [2025-04-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822623', 'tblTempVendorCDR_20' ) start [2025-04-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822623', 'tblTempVendorCDR_20' ) end [2025-04-03 03:02:18] Production.INFO: ProcessCDR(1,14822623,1,1,2) [2025-04-03 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822623', 'tblTempUsageDetail_20' ) start [2025-04-03 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822623', 'tblTempUsageDetail_20' ) end [2025-04-03 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:02:22] Production.INFO: ==6667== Releasing lock... [2025-04-03 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:03:06 [end_date_ymd] => 2025-04-03 03:03:06 [RateCDR] => 1 ) [2025-04-03 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:03:06' and `end` < '2025-04-03 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:03:18] Production.INFO: count ==757 [2025-04-03 03:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:03:06 - End Time 2025-04-03 03:03:06 [2025-04-03 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822628', 'tblTempUsageDetail_20' ) start [2025-04-03 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822628', 'tblTempUsageDetail_20' ) end [2025-04-03 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822628', 'tblTempVendorCDR_20' ) start [2025-04-03 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822628', 'tblTempVendorCDR_20' ) end [2025-04-03 03:03:19] Production.INFO: ProcessCDR(1,14822628,1,1,2) [2025-04-03 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822628', 'tblTempUsageDetail_20' ) start [2025-04-03 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822628', 'tblTempUsageDetail_20' ) end [2025-04-03 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:03:23] Production.INFO: ==6742== Releasing lock... [2025-04-03 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:03:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:04:05 [end_date_ymd] => 2025-04-03 03:04:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:04:05' and `end` < '2025-04-03 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-03 03:04:18] Production.INFO: count ==751 [2025-04-03 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:04:05 - End Time 2025-04-03 03:04:05 [2025-04-03 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822633', 'tblTempUsageDetail_20' ) start [2025-04-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822633', 'tblTempUsageDetail_20' ) end [2025-04-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822633', 'tblTempVendorCDR_20' ) start [2025-04-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822633', 'tblTempVendorCDR_20' ) end [2025-04-03 03:04:18] Production.INFO: ProcessCDR(1,14822633,1,1,2) [2025-04-03 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822633', 'tblTempUsageDetail_20' ) start [2025-04-03 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822633', 'tblTempUsageDetail_20' ) end [2025-04-03 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:04:22] Production.INFO: ==6820== Releasing lock... [2025-04-03 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:05:06 [end_date_ymd] => 2025-04-03 03:05:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:05:06' and `end` < '2025-04-03 03: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-03 03:05:18] Production.INFO: count ==749 [2025-04-03 03:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:05:06 - End Time 2025-04-03 03:05:06 [2025-04-03 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822638', 'tblTempUsageDetail_20' ) start [2025-04-03 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822638', 'tblTempUsageDetail_20' ) end [2025-04-03 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822638', 'tblTempVendorCDR_20' ) start [2025-04-03 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822638', 'tblTempVendorCDR_20' ) end [2025-04-03 03:05:19] Production.INFO: ProcessCDR(1,14822638,1,1,2) [2025-04-03 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822638', 'tblTempUsageDetail_20' ) start [2025-04-03 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822638', 'tblTempUsageDetail_20' ) end [2025-04-03 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:05:22] Production.INFO: ==6929== Releasing lock... [2025-04-03 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:06:05 [end_date_ymd] => 2025-04-03 03:06:05 [RateCDR] => 1 ) [2025-04-03 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:06:05' and `end` < '2025-04-03 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:06:18] Production.INFO: count ==858 [2025-04-03 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:06:05 - End Time 2025-04-03 03:06:05 [2025-04-03 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822643', 'tblTempUsageDetail_20' ) start [2025-04-03 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822643', 'tblTempUsageDetail_20' ) end [2025-04-03 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822643', 'tblTempVendorCDR_20' ) start [2025-04-03 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822643', 'tblTempVendorCDR_20' ) end [2025-04-03 03:06:18] Production.INFO: ProcessCDR(1,14822643,1,1,2) [2025-04-03 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822643', 'tblTempUsageDetail_20' ) start [2025-04-03 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822643', 'tblTempUsageDetail_20' ) end [2025-04-03 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:06:22] Production.INFO: ==7077== Releasing lock... [2025-04-03 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:06:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:07:06 [end_date_ymd] => 2025-04-03 03:07:06 [RateCDR] => 1 ) [2025-04-03 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:07:06' and `end` < '2025-04-03 03:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:07:19] Production.INFO: count ==858 [2025-04-03 03:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:07:06 - End Time 2025-04-03 03:07:06 [2025-04-03 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822648', 'tblTempUsageDetail_20' ) start [2025-04-03 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822648', 'tblTempUsageDetail_20' ) end [2025-04-03 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822648', 'tblTempVendorCDR_20' ) start [2025-04-03 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822648', 'tblTempVendorCDR_20' ) end [2025-04-03 03:07:19] Production.INFO: ProcessCDR(1,14822648,1,1,2) [2025-04-03 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822648', 'tblTempUsageDetail_20' ) start [2025-04-03 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822648', 'tblTempUsageDetail_20' ) end [2025-04-03 03:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:07:23] Production.INFO: ==7148== Releasing lock... [2025-04-03 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:07:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:08:05 [end_date_ymd] => 2025-04-03 03:08:05 [RateCDR] => 1 ) [2025-04-03 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:08:05' and `end` < '2025-04-03 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:08:18] Production.INFO: count ==857 [2025-04-03 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:08:05 - End Time 2025-04-03 03:08:05 [2025-04-03 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822653', 'tblTempUsageDetail_20' ) start [2025-04-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822653', 'tblTempUsageDetail_20' ) end [2025-04-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822653', 'tblTempVendorCDR_20' ) start [2025-04-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822653', 'tblTempVendorCDR_20' ) end [2025-04-03 03:08:18] Production.INFO: ProcessCDR(1,14822653,1,1,2) [2025-04-03 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822653', 'tblTempUsageDetail_20' ) start [2025-04-03 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822653', 'tblTempUsageDetail_20' ) end [2025-04-03 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:08:22] Production.INFO: ==7219== Releasing lock... [2025-04-03 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:09:06 [end_date_ymd] => 2025-04-03 03:09:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:09:06' and `end` < '2025-04-03 03: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-03 03:09:18] Production.INFO: count ==854 [2025-04-03 03:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:09:06 - End Time 2025-04-03 03:09:06 [2025-04-03 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822658', 'tblTempUsageDetail_20' ) start [2025-04-03 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822658', 'tblTempUsageDetail_20' ) end [2025-04-03 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822658', 'tblTempVendorCDR_20' ) start [2025-04-03 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822658', 'tblTempVendorCDR_20' ) end [2025-04-03 03:09:19] Production.INFO: ProcessCDR(1,14822658,1,1,2) [2025-04-03 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822658', 'tblTempUsageDetail_20' ) start [2025-04-03 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822658', 'tblTempUsageDetail_20' ) end [2025-04-03 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:09:22] Production.INFO: ==7369== Releasing lock... [2025-04-03 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:10:06 [end_date_ymd] => 2025-04-03 03:10:06 [RateCDR] => 1 ) [2025-04-03 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:10:06' and `end` < '2025-04-03 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:10:19] Production.INFO: count ==844 [2025-04-03 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:10:06 - End Time 2025-04-03 03:10:06 [2025-04-03 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822664', 'tblTempUsageDetail_20' ) start [2025-04-03 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822664', 'tblTempUsageDetail_20' ) end [2025-04-03 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822664', 'tblTempVendorCDR_20' ) start [2025-04-03 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822664', 'tblTempVendorCDR_20' ) end [2025-04-03 03:10:19] Production.INFO: ProcessCDR(1,14822664,1,1,2) [2025-04-03 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822664', 'tblTempUsageDetail_20' ) start [2025-04-03 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822664', 'tblTempUsageDetail_20' ) end [2025-04-03 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:10:23] Production.INFO: ==7441== Releasing lock... [2025-04-03 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:10:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:11:06 [end_date_ymd] => 2025-04-03 03:11:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:11:06' and `end` < '2025-04-03 03: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-03 03:11:19] Production.INFO: count ==837 [2025-04-03 03:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:11:06 - End Time 2025-04-03 03:11:06 [2025-04-03 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822669', 'tblTempUsageDetail_20' ) start [2025-04-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822669', 'tblTempUsageDetail_20' ) end [2025-04-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822669', 'tblTempVendorCDR_20' ) start [2025-04-03 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822669', 'tblTempVendorCDR_20' ) end [2025-04-03 03:11:19] Production.INFO: ProcessCDR(1,14822669,1,1,2) [2025-04-03 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822669', 'tblTempUsageDetail_20' ) start [2025-04-03 03:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822669', 'tblTempUsageDetail_20' ) end [2025-04-03 03:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:11:23] Production.INFO: ==7515== Releasing lock... [2025-04-03 03:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:11:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:12:06 [end_date_ymd] => 2025-04-03 03:12:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:12:06' and `end` < '2025-04-03 03: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-03 03:12:18] Production.INFO: count ==837 [2025-04-03 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:12:06 - End Time 2025-04-03 03:12:06 [2025-04-03 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822674', 'tblTempUsageDetail_20' ) start [2025-04-03 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822674', 'tblTempUsageDetail_20' ) end [2025-04-03 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822674', 'tblTempVendorCDR_20' ) start [2025-04-03 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822674', 'tblTempVendorCDR_20' ) end [2025-04-03 03:12:19] Production.INFO: ProcessCDR(1,14822674,1,1,2) [2025-04-03 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822674', 'tblTempUsageDetail_20' ) start [2025-04-03 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822674', 'tblTempUsageDetail_20' ) end [2025-04-03 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:12:22] Production.INFO: ==7588== Releasing lock... [2025-04-03 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:13:06 [end_date_ymd] => 2025-04-03 03:13:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:13:06' and `end` < '2025-04-03 03: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-03 03:13:19] Production.INFO: count ==837 [2025-04-03 03:13:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:13:06 - End Time 2025-04-03 03:13:06 [2025-04-03 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822679', 'tblTempUsageDetail_20' ) start [2025-04-03 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822679', 'tblTempUsageDetail_20' ) end [2025-04-03 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822679', 'tblTempVendorCDR_20' ) start [2025-04-03 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822679', 'tblTempVendorCDR_20' ) end [2025-04-03 03:13:19] Production.INFO: ProcessCDR(1,14822679,1,1,2) [2025-04-03 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822679', 'tblTempUsageDetail_20' ) start [2025-04-03 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822679', 'tblTempUsageDetail_20' ) end [2025-04-03 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:13:22] Production.INFO: ==7735== Releasing lock... [2025-04-03 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:14:05 [end_date_ymd] => 2025-04-03 03:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:14:05' and `end` < '2025-04-03 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-03 03:14:17] Production.INFO: count ==837 [2025-04-03 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:14:05 - End Time 2025-04-03 03:14:05 [2025-04-03 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822684', 'tblTempUsageDetail_20' ) start [2025-04-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822684', 'tblTempUsageDetail_20' ) end [2025-04-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822684', 'tblTempVendorCDR_20' ) start [2025-04-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822684', 'tblTempVendorCDR_20' ) end [2025-04-03 03:14:18] Production.INFO: ProcessCDR(1,14822684,1,1,2) [2025-04-03 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822684', 'tblTempUsageDetail_20' ) start [2025-04-03 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822684', 'tblTempUsageDetail_20' ) end [2025-04-03 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:14:21] Production.INFO: ==7806== Releasing lock... [2025-04-03 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:15:05 [end_date_ymd] => 2025-04-03 03:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:15:05' and `end` < '2025-04-03 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-03 03:15:18] Production.INFO: count ==837 [2025-04-03 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:15:05 - End Time 2025-04-03 03:15:05 [2025-04-03 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822689', 'tblTempUsageDetail_20' ) start [2025-04-03 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822689', 'tblTempUsageDetail_20' ) end [2025-04-03 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822689', 'tblTempVendorCDR_20' ) start [2025-04-03 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822689', 'tblTempVendorCDR_20' ) end [2025-04-03 03:15:18] Production.INFO: ProcessCDR(1,14822689,1,1,2) [2025-04-03 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822689', 'tblTempUsageDetail_20' ) start [2025-04-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822689', 'tblTempUsageDetail_20' ) end [2025-04-03 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:15:22] Production.INFO: ==7877== Releasing lock... [2025-04-03 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:15:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:16:05 [end_date_ymd] => 2025-04-03 03:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:16:05' and `end` < '2025-04-03 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-03 03:16:18] Production.INFO: count ==837 [2025-04-03 03:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:16:05 - End Time 2025-04-03 03:16:05 [2025-04-03 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822694', 'tblTempUsageDetail_20' ) start [2025-04-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822694', 'tblTempUsageDetail_20' ) end [2025-04-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822694', 'tblTempVendorCDR_20' ) start [2025-04-03 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822694', 'tblTempVendorCDR_20' ) end [2025-04-03 03:16:19] Production.INFO: ProcessCDR(1,14822694,1,1,2) [2025-04-03 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822694', 'tblTempUsageDetail_20' ) start [2025-04-03 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822694', 'tblTempUsageDetail_20' ) end [2025-04-03 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:16:22] Production.INFO: ==7945== Releasing lock... [2025-04-03 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:16:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:17:06 [end_date_ymd] => 2025-04-03 03:17:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:17:06' and `end` < '2025-04-03 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-03 03:17:18] Production.INFO: count ==834 [2025-04-03 03:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:17:06 - End Time 2025-04-03 03:17:06 [2025-04-03 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822699', 'tblTempUsageDetail_20' ) start [2025-04-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822699', 'tblTempUsageDetail_20' ) end [2025-04-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822699', 'tblTempVendorCDR_20' ) start [2025-04-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822699', 'tblTempVendorCDR_20' ) end [2025-04-03 03:17:19] Production.INFO: ProcessCDR(1,14822699,1,1,2) [2025-04-03 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822699', 'tblTempUsageDetail_20' ) start [2025-04-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822699', 'tblTempUsageDetail_20' ) end [2025-04-03 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:17:22] Production.INFO: ==8096== Releasing lock... [2025-04-03 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:17:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:18:05 [end_date_ymd] => 2025-04-03 03:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:18:05' and `end` < '2025-04-03 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-03 03:18:18] Production.INFO: count ==833 [2025-04-03 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:18:05 - End Time 2025-04-03 03:18:05 [2025-04-03 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822704', 'tblTempUsageDetail_20' ) start [2025-04-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822704', 'tblTempUsageDetail_20' ) end [2025-04-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822704', 'tblTempVendorCDR_20' ) start [2025-04-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822704', 'tblTempVendorCDR_20' ) end [2025-04-03 03:18:18] Production.INFO: ProcessCDR(1,14822704,1,1,2) [2025-04-03 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822704', 'tblTempUsageDetail_20' ) start [2025-04-03 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822704', 'tblTempUsageDetail_20' ) end [2025-04-03 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:18:21] Production.INFO: ==8168== Releasing lock... [2025-04-03 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:19:05 [end_date_ymd] => 2025-04-03 03:19:05 [RateCDR] => 1 ) [2025-04-03 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:19:05' and `end` < '2025-04-03 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:19:18] Production.INFO: count ==834 [2025-04-03 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:19:05 - End Time 2025-04-03 03:19:05 [2025-04-03 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822709', 'tblTempUsageDetail_20' ) start [2025-04-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822709', 'tblTempUsageDetail_20' ) end [2025-04-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822709', 'tblTempVendorCDR_20' ) start [2025-04-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822709', 'tblTempVendorCDR_20' ) end [2025-04-03 03:19:18] Production.INFO: ProcessCDR(1,14822709,1,1,2) [2025-04-03 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822709', 'tblTempUsageDetail_20' ) start [2025-04-03 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822709', 'tblTempUsageDetail_20' ) end [2025-04-03 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:19:23] Production.INFO: ==8238== Releasing lock... [2025-04-03 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:19:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:20:06 [end_date_ymd] => 2025-04-03 03:20:06 [RateCDR] => 1 ) [2025-04-03 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:20:06' and `end` < '2025-04-03 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:20:19] Production.INFO: count ==832 [2025-04-03 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:20:06 - End Time 2025-04-03 03:20:06 [2025-04-03 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822715', 'tblTempUsageDetail_20' ) start [2025-04-03 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822715', 'tblTempUsageDetail_20' ) end [2025-04-03 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822715', 'tblTempVendorCDR_20' ) start [2025-04-03 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822715', 'tblTempVendorCDR_20' ) end [2025-04-03 03:20:19] Production.INFO: ProcessCDR(1,14822715,1,1,2) [2025-04-03 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822715', 'tblTempUsageDetail_20' ) start [2025-04-03 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822715', 'tblTempUsageDetail_20' ) end [2025-04-03 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:20:23] Production.INFO: ==8315== Releasing lock... [2025-04-03 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:21:05 [end_date_ymd] => 2025-04-03 03:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:21:05' and `end` < '2025-04-03 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-03 03:21:18] Production.INFO: count ==832 [2025-04-03 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:21:05 - End Time 2025-04-03 03:21:05 [2025-04-03 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822720', 'tblTempUsageDetail_20' ) start [2025-04-03 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822720', 'tblTempUsageDetail_20' ) end [2025-04-03 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822720', 'tblTempVendorCDR_20' ) start [2025-04-03 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822720', 'tblTempVendorCDR_20' ) end [2025-04-03 03:21:18] Production.INFO: ProcessCDR(1,14822720,1,1,2) [2025-04-03 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822720', 'tblTempUsageDetail_20' ) start [2025-04-03 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822720', 'tblTempUsageDetail_20' ) end [2025-04-03 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:21:22] Production.INFO: ==8387== Releasing lock... [2025-04-03 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:22:06 [end_date_ymd] => 2025-04-03 03:22:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:22:06' and `end` < '2025-04-03 03: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-03 03:22:19] Production.INFO: count ==832 [2025-04-03 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:22:06 - End Time 2025-04-03 03:22:06 [2025-04-03 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822725', 'tblTempUsageDetail_20' ) start [2025-04-03 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822725', 'tblTempUsageDetail_20' ) end [2025-04-03 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822725', 'tblTempVendorCDR_20' ) start [2025-04-03 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822725', 'tblTempVendorCDR_20' ) end [2025-04-03 03:22:19] Production.INFO: ProcessCDR(1,14822725,1,1,2) [2025-04-03 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822725', 'tblTempUsageDetail_20' ) start [2025-04-03 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822725', 'tblTempUsageDetail_20' ) end [2025-04-03 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:22:23] Production.INFO: ==8497== Releasing lock... [2025-04-03 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:22:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:23:05 [end_date_ymd] => 2025-04-03 03:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:23:05' and `end` < '2025-04-03 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-03 03:23:18] Production.INFO: count ==832 [2025-04-03 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:23:05 - End Time 2025-04-03 03:23:05 [2025-04-03 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822730', 'tblTempUsageDetail_20' ) start [2025-04-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822730', 'tblTempUsageDetail_20' ) end [2025-04-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822730', 'tblTempVendorCDR_20' ) start [2025-04-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822730', 'tblTempVendorCDR_20' ) end [2025-04-03 03:23:18] Production.INFO: ProcessCDR(1,14822730,1,1,2) [2025-04-03 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822730', 'tblTempUsageDetail_20' ) start [2025-04-03 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822730', 'tblTempUsageDetail_20' ) end [2025-04-03 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:23:22] Production.INFO: ==8566== Releasing lock... [2025-04-03 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:24:06 [end_date_ymd] => 2025-04-03 03:24:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:24:06' and `end` < '2025-04-03 03: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-03 03:24:18] Production.INFO: count ==832 [2025-04-03 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:24:06 - End Time 2025-04-03 03:24:06 [2025-04-03 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822735', 'tblTempUsageDetail_20' ) start [2025-04-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822735', 'tblTempUsageDetail_20' ) end [2025-04-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822735', 'tblTempVendorCDR_20' ) start [2025-04-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822735', 'tblTempVendorCDR_20' ) end [2025-04-03 03:24:19] Production.INFO: ProcessCDR(1,14822735,1,1,2) [2025-04-03 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822735', 'tblTempUsageDetail_20' ) start [2025-04-03 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822735', 'tblTempUsageDetail_20' ) end [2025-04-03 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:24:22] Production.INFO: ==8640== Releasing lock... [2025-04-03 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:25:05 [end_date_ymd] => 2025-04-03 03:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:25:05' and `end` < '2025-04-03 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-03 03:25:18] Production.INFO: count ==833 [2025-04-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:25:05 - End Time 2025-04-03 03:25:05 [2025-04-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822740', 'tblTempUsageDetail_20' ) start [2025-04-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822740', 'tblTempUsageDetail_20' ) end [2025-04-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822740', 'tblTempVendorCDR_20' ) start [2025-04-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822740', 'tblTempVendorCDR_20' ) end [2025-04-03 03:25:18] Production.INFO: ProcessCDR(1,14822740,1,1,2) [2025-04-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822740', 'tblTempUsageDetail_20' ) start [2025-04-03 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822740', 'tblTempUsageDetail_20' ) end [2025-04-03 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:25:23] Production.INFO: ==8710== Releasing lock... [2025-04-03 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:25:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:26:05 [end_date_ymd] => 2025-04-03 03:26:05 [RateCDR] => 1 ) [2025-04-03 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:26:05' and `end` < '2025-04-03 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:26:18] Production.INFO: count ==831 [2025-04-03 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:26:05 - End Time 2025-04-03 03:26:05 [2025-04-03 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822745', 'tblTempUsageDetail_20' ) start [2025-04-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822745', 'tblTempUsageDetail_20' ) end [2025-04-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822745', 'tblTempVendorCDR_20' ) start [2025-04-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822745', 'tblTempVendorCDR_20' ) end [2025-04-03 03:26:18] Production.INFO: ProcessCDR(1,14822745,1,1,2) [2025-04-03 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822745', 'tblTempUsageDetail_20' ) start [2025-04-03 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822745', 'tblTempUsageDetail_20' ) end [2025-04-03 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:26:22] Production.INFO: ==8784== Releasing lock... [2025-04-03 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:26:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:27:05 [end_date_ymd] => 2025-04-03 03:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:27:05' and `end` < '2025-04-03 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-03 03:27:18] Production.INFO: count ==830 [2025-04-03 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:27:05 - End Time 2025-04-03 03:27:05 [2025-04-03 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822750', 'tblTempUsageDetail_20' ) start [2025-04-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822750', 'tblTempUsageDetail_20' ) end [2025-04-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822750', 'tblTempVendorCDR_20' ) start [2025-04-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822750', 'tblTempVendorCDR_20' ) end [2025-04-03 03:27:18] Production.INFO: ProcessCDR(1,14822750,1,1,2) [2025-04-03 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822750', 'tblTempUsageDetail_20' ) start [2025-04-03 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822750', 'tblTempUsageDetail_20' ) end [2025-04-03 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:27:22] Production.INFO: ==8853== Releasing lock... [2025-04-03 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:27:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:28:06 [end_date_ymd] => 2025-04-03 03:28:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:28:06' and `end` < '2025-04-03 03: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-03 03:28:19] Production.INFO: count ==830 [2025-04-03 03:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:28:06 - End Time 2025-04-03 03:28:06 [2025-04-03 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822755', 'tblTempUsageDetail_20' ) start [2025-04-03 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822755', 'tblTempUsageDetail_20' ) end [2025-04-03 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822755', 'tblTempVendorCDR_20' ) start [2025-04-03 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822755', 'tblTempVendorCDR_20' ) end [2025-04-03 03:28:19] Production.INFO: ProcessCDR(1,14822755,1,1,2) [2025-04-03 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822755', 'tblTempUsageDetail_20' ) start [2025-04-03 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822755', 'tblTempUsageDetail_20' ) end [2025-04-03 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:28:23] Production.INFO: ==8925== Releasing lock... [2025-04-03 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:28:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:29:05 [end_date_ymd] => 2025-04-03 03:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:29:05' and `end` < '2025-04-03 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-03 03:29:18] Production.INFO: count ==830 [2025-04-03 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:29:05 - End Time 2025-04-03 03:29:05 [2025-04-03 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822760', 'tblTempUsageDetail_20' ) start [2025-04-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822760', 'tblTempUsageDetail_20' ) end [2025-04-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822760', 'tblTempVendorCDR_20' ) start [2025-04-03 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822760', 'tblTempVendorCDR_20' ) end [2025-04-03 03:29:18] Production.INFO: ProcessCDR(1,14822760,1,1,2) [2025-04-03 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822760', 'tblTempUsageDetail_20' ) start [2025-04-03 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822760', 'tblTempUsageDetail_20' ) end [2025-04-03 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:29:22] Production.INFO: ==8993== Releasing lock... [2025-04-03 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:29:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:30:07 [end_date_ymd] => 2025-04-03 03:30:07 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:30:07' and `end` < '2025-04-03 03: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-03 03:30:19] Production.INFO: count ==816 [2025-04-03 03:30:20] Production.ERROR: pbx CDR StartTime 2025-04-03 00:30:07 - End Time 2025-04-03 03:30:07 [2025-04-03 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822765', 'tblTempUsageDetail_20' ) start [2025-04-03 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822765', 'tblTempUsageDetail_20' ) end [2025-04-03 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822765', 'tblTempVendorCDR_20' ) start [2025-04-03 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822765', 'tblTempVendorCDR_20' ) end [2025-04-03 03:30:20] Production.INFO: ProcessCDR(1,14822765,1,1,2) [2025-04-03 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822765', 'tblTempUsageDetail_20' ) start [2025-04-03 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822765', 'tblTempUsageDetail_20' ) end [2025-04-03 03:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:30:24] Production.INFO: ==9067== Releasing lock... [2025-04-03 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:30:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:31:05 [end_date_ymd] => 2025-04-03 03:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:31:05' and `end` < '2025-04-03 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-03 03:31:18] Production.INFO: count ==817 [2025-04-03 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:31:05 - End Time 2025-04-03 03:31:05 [2025-04-03 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822771', 'tblTempUsageDetail_20' ) start [2025-04-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822771', 'tblTempUsageDetail_20' ) end [2025-04-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822771', 'tblTempVendorCDR_20' ) start [2025-04-03 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822771', 'tblTempVendorCDR_20' ) end [2025-04-03 03:31:18] Production.INFO: ProcessCDR(1,14822771,1,1,2) [2025-04-03 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822771', 'tblTempUsageDetail_20' ) start [2025-04-03 03:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822771', 'tblTempUsageDetail_20' ) end [2025-04-03 03:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:31:24] Production.INFO: ==9141== Releasing lock... [2025-04-03 03:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:31:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:32:06 [end_date_ymd] => 2025-04-03 03:32:06 [RateCDR] => 1 ) [2025-04-03 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:32:06' and `end` < '2025-04-03 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:32:19] Production.INFO: count ==816 [2025-04-03 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:32:06 - End Time 2025-04-03 03:32:06 [2025-04-03 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822776', 'tblTempUsageDetail_20' ) start [2025-04-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822776', 'tblTempUsageDetail_20' ) end [2025-04-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822776', 'tblTempVendorCDR_20' ) start [2025-04-03 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822776', 'tblTempVendorCDR_20' ) end [2025-04-03 03:32:19] Production.INFO: ProcessCDR(1,14822776,1,1,2) [2025-04-03 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822776', 'tblTempUsageDetail_20' ) start [2025-04-03 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822776', 'tblTempUsageDetail_20' ) end [2025-04-03 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:32:23] Production.INFO: ==9210== Releasing lock... [2025-04-03 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:32:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:33:06 [end_date_ymd] => 2025-04-03 03:33:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:33:06' and `end` < '2025-04-03 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-03 03:33:18] Production.INFO: count ==816 [2025-04-03 03:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:33:06 - End Time 2025-04-03 03:33:06 [2025-04-03 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822781', 'tblTempUsageDetail_20' ) start [2025-04-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822781', 'tblTempUsageDetail_20' ) end [2025-04-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822781', 'tblTempVendorCDR_20' ) start [2025-04-03 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822781', 'tblTempVendorCDR_20' ) end [2025-04-03 03:33:19] Production.INFO: ProcessCDR(1,14822781,1,1,2) [2025-04-03 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822781', 'tblTempUsageDetail_20' ) start [2025-04-03 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822781', 'tblTempUsageDetail_20' ) end [2025-04-03 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:33:22] Production.INFO: ==9278== Releasing lock... [2025-04-03 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:34:06 [end_date_ymd] => 2025-04-03 03:34:06 [RateCDR] => 1 ) [2025-04-03 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:34:06' and `end` < '2025-04-03 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:34:18] Production.INFO: count ==816 [2025-04-03 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:34:06 - End Time 2025-04-03 03:34:06 [2025-04-03 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822786', 'tblTempUsageDetail_20' ) start [2025-04-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822786', 'tblTempUsageDetail_20' ) end [2025-04-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822786', 'tblTempVendorCDR_20' ) start [2025-04-03 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822786', 'tblTempVendorCDR_20' ) end [2025-04-03 03:34:19] Production.INFO: ProcessCDR(1,14822786,1,1,2) [2025-04-03 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822786', 'tblTempUsageDetail_20' ) start [2025-04-03 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822786', 'tblTempUsageDetail_20' ) end [2025-04-03 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:34:22] Production.INFO: ==9352== Releasing lock... [2025-04-03 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:34:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:35:06 [end_date_ymd] => 2025-04-03 03:35:06 [RateCDR] => 1 ) [2025-04-03 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:35:06' and `end` < '2025-04-03 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:35:18] Production.INFO: count ==815 [2025-04-03 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:35:06 - End Time 2025-04-03 03:35:06 [2025-04-03 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822791', 'tblTempUsageDetail_20' ) start [2025-04-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822791', 'tblTempUsageDetail_20' ) end [2025-04-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822791', 'tblTempVendorCDR_20' ) start [2025-04-03 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822791', 'tblTempVendorCDR_20' ) end [2025-04-03 03:35:19] Production.INFO: ProcessCDR(1,14822791,1,1,2) [2025-04-03 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822791', 'tblTempUsageDetail_20' ) start [2025-04-03 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822791', 'tblTempUsageDetail_20' ) end [2025-04-03 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:35:23] Production.INFO: ==9424== Releasing lock... [2025-04-03 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:35:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:36:06 [end_date_ymd] => 2025-04-03 03:36:06 [RateCDR] => 1 ) [2025-04-03 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:36:06' and `end` < '2025-04-03 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:36:19] Production.INFO: count ==814 [2025-04-03 03:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:36:06 - End Time 2025-04-03 03:36:06 [2025-04-03 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822796', 'tblTempUsageDetail_20' ) start [2025-04-03 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822796', 'tblTempUsageDetail_20' ) end [2025-04-03 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822796', 'tblTempVendorCDR_20' ) start [2025-04-03 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822796', 'tblTempVendorCDR_20' ) end [2025-04-03 03:36:19] Production.INFO: ProcessCDR(1,14822796,1,1,2) [2025-04-03 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822796', 'tblTempUsageDetail_20' ) start [2025-04-03 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822796', 'tblTempUsageDetail_20' ) end [2025-04-03 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:36:23] Production.INFO: ==9494== Releasing lock... [2025-04-03 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:36:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:37:05 [end_date_ymd] => 2025-04-03 03:37:05 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:37:05' and `end` < '2025-04-03 03: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-03 03:37:18] Production.INFO: count ==814 [2025-04-03 03:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:37:05 - End Time 2025-04-03 03:37:05 [2025-04-03 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822801', 'tblTempUsageDetail_20' ) start [2025-04-03 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822801', 'tblTempUsageDetail_20' ) end [2025-04-03 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822801', 'tblTempVendorCDR_20' ) start [2025-04-03 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822801', 'tblTempVendorCDR_20' ) end [2025-04-03 03:37:19] Production.INFO: ProcessCDR(1,14822801,1,1,2) [2025-04-03 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822801', 'tblTempUsageDetail_20' ) start [2025-04-03 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822801', 'tblTempUsageDetail_20' ) end [2025-04-03 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:37:22] Production.INFO: ==9578== Releasing lock... [2025-04-03 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:37:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:38:06 [end_date_ymd] => 2025-04-03 03:38:06 [RateCDR] => 1 ) [2025-04-03 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:38:06' and `end` < '2025-04-03 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:38:18] Production.INFO: count ==814 [2025-04-03 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:38:06 - End Time 2025-04-03 03:38:06 [2025-04-03 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822806', 'tblTempUsageDetail_20' ) start [2025-04-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822806', 'tblTempUsageDetail_20' ) end [2025-04-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822806', 'tblTempVendorCDR_20' ) start [2025-04-03 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822806', 'tblTempVendorCDR_20' ) end [2025-04-03 03:38:19] Production.INFO: ProcessCDR(1,14822806,1,1,2) [2025-04-03 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822806', 'tblTempUsageDetail_20' ) start [2025-04-03 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822806', 'tblTempUsageDetail_20' ) end [2025-04-03 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:38:23] Production.INFO: ==9710== Releasing lock... [2025-04-03 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:38:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:39:06 [end_date_ymd] => 2025-04-03 03:39:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:39:06' and `end` < '2025-04-03 03: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-03 03:39:19] Production.INFO: count ==814 [2025-04-03 03:39:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:39:06 - End Time 2025-04-03 03:39:06 [2025-04-03 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822811', 'tblTempUsageDetail_20' ) start [2025-04-03 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822811', 'tblTempUsageDetail_20' ) end [2025-04-03 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822811', 'tblTempVendorCDR_20' ) start [2025-04-03 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822811', 'tblTempVendorCDR_20' ) end [2025-04-03 03:39:19] Production.INFO: ProcessCDR(1,14822811,1,1,2) [2025-04-03 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822811', 'tblTempUsageDetail_20' ) start [2025-04-03 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822811', 'tblTempUsageDetail_20' ) end [2025-04-03 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:39:23] Production.INFO: ==9782== Releasing lock... [2025-04-03 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:39:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:40:07 [end_date_ymd] => 2025-04-03 03:40:07 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:40:07' and `end` < '2025-04-03 03: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-03 03:40:20] Production.INFO: count ==822 [2025-04-03 03:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 00:40:07 - End Time 2025-04-03 03:40:07 [2025-04-03 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822817', 'tblTempUsageDetail_20' ) start [2025-04-03 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822817', 'tblTempUsageDetail_20' ) end [2025-04-03 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822817', 'tblTempVendorCDR_20' ) start [2025-04-03 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822817', 'tblTempVendorCDR_20' ) end [2025-04-03 03:40:20] Production.INFO: ProcessCDR(1,14822817,1,1,2) [2025-04-03 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822817', 'tblTempUsageDetail_20' ) start [2025-04-03 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822817', 'tblTempUsageDetail_20' ) end [2025-04-03 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:40:24] Production.INFO: ==9860== Releasing lock... [2025-04-03 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:40:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:41:05 [end_date_ymd] => 2025-04-03 03:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:41:05' and `end` < '2025-04-03 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-03 03:41:18] Production.INFO: count ==822 [2025-04-03 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:41:05 - End Time 2025-04-03 03:41:05 [2025-04-03 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822822', 'tblTempUsageDetail_20' ) start [2025-04-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822822', 'tblTempUsageDetail_20' ) end [2025-04-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822822', 'tblTempVendorCDR_20' ) start [2025-04-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822822', 'tblTempVendorCDR_20' ) end [2025-04-03 03:41:18] Production.INFO: ProcessCDR(1,14822822,1,1,2) [2025-04-03 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822822', 'tblTempUsageDetail_20' ) start [2025-04-03 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822822', 'tblTempUsageDetail_20' ) end [2025-04-03 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:41:22] Production.INFO: ==9932== Releasing lock... [2025-04-03 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:41:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:42:06 [end_date_ymd] => 2025-04-03 03:42:06 [RateCDR] => 1 ) [2025-04-03 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:42:06' and `end` < '2025-04-03 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:42:18] Production.INFO: count ==849 [2025-04-03 03:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:42:06 - End Time 2025-04-03 03:42:06 [2025-04-03 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822827', 'tblTempUsageDetail_20' ) start [2025-04-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822827', 'tblTempUsageDetail_20' ) end [2025-04-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822827', 'tblTempVendorCDR_20' ) start [2025-04-03 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822827', 'tblTempVendorCDR_20' ) end [2025-04-03 03:42:19] Production.INFO: ProcessCDR(1,14822827,1,1,2) [2025-04-03 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822827', 'tblTempUsageDetail_20' ) start [2025-04-03 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822827', 'tblTempUsageDetail_20' ) end [2025-04-03 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:42:23] Production.INFO: ==10002== Releasing lock... [2025-04-03 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:42:23] Production.INFO: 35 MB #Memory Used# [2025-04-03 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:43:06 [end_date_ymd] => 2025-04-03 03:43:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:43:06' and `end` < '2025-04-03 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-03 03:43:19] Production.INFO: count ==855 [2025-04-03 03:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:43:06 - End Time 2025-04-03 03:43:06 [2025-04-03 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822832', 'tblTempUsageDetail_20' ) start [2025-04-03 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822832', 'tblTempUsageDetail_20' ) end [2025-04-03 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822832', 'tblTempVendorCDR_20' ) start [2025-04-03 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822832', 'tblTempVendorCDR_20' ) end [2025-04-03 03:43:19] Production.INFO: ProcessCDR(1,14822832,1,1,2) [2025-04-03 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822832', 'tblTempUsageDetail_20' ) start [2025-04-03 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822832', 'tblTempUsageDetail_20' ) end [2025-04-03 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:43:23] Production.INFO: ==10079== Releasing lock... [2025-04-03 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:43:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:44:06 [end_date_ymd] => 2025-04-03 03:44:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:44:06' and `end` < '2025-04-03 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-03 03:44:19] Production.INFO: count ==863 [2025-04-03 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:44:06 - End Time 2025-04-03 03:44:06 [2025-04-03 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822837', 'tblTempUsageDetail_20' ) start [2025-04-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822837', 'tblTempUsageDetail_20' ) end [2025-04-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822837', 'tblTempVendorCDR_20' ) start [2025-04-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822837', 'tblTempVendorCDR_20' ) end [2025-04-03 03:44:19] Production.INFO: ProcessCDR(1,14822837,1,1,2) [2025-04-03 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822837', 'tblTempUsageDetail_20' ) start [2025-04-03 03:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822837', 'tblTempUsageDetail_20' ) end [2025-04-03 03:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:44:23] Production.INFO: ==10151== Releasing lock... [2025-04-03 03:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:44:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:45:06 [end_date_ymd] => 2025-04-03 03:45:06 [RateCDR] => 1 ) [2025-04-03 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-03 00:45:06' and `end` < '2025-04-03 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-03 03:45:18] Production.INFO: count ==858 [2025-04-03 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:45:06 - End Time 2025-04-03 03:45:06 [2025-04-03 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822842', 'tblTempUsageDetail_20' ) start [2025-04-03 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822842', 'tblTempUsageDetail_20' ) end [2025-04-03 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822842', 'tblTempVendorCDR_20' ) start [2025-04-03 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822842', 'tblTempVendorCDR_20' ) end [2025-04-03 03:45:19] Production.INFO: ProcessCDR(1,14822842,1,1,2) [2025-04-03 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822842', 'tblTempUsageDetail_20' ) start [2025-04-03 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822842', 'tblTempUsageDetail_20' ) end [2025-04-03 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:45:22] Production.INFO: ==10226== Releasing lock... [2025-04-03 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:45:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:46:06 [end_date_ymd] => 2025-04-03 03:46:06 [RateCDR] => 1 ) [2025-04-03 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:46:06' and `end` < '2025-04-03 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:46:19] Production.INFO: count ==858 [2025-04-03 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:46:06 - End Time 2025-04-03 03:46:06 [2025-04-03 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822847', 'tblTempUsageDetail_20' ) start [2025-04-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822847', 'tblTempUsageDetail_20' ) end [2025-04-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822847', 'tblTempVendorCDR_20' ) start [2025-04-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822847', 'tblTempVendorCDR_20' ) end [2025-04-03 03:46:19] Production.INFO: ProcessCDR(1,14822847,1,1,2) [2025-04-03 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822847', 'tblTempUsageDetail_20' ) start [2025-04-03 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822847', 'tblTempUsageDetail_20' ) end [2025-04-03 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:46:23] Production.INFO: ==10302== Releasing lock... [2025-04-03 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:47:05 [end_date_ymd] => 2025-04-03 03:47:05 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:47:05' and `end` < '2025-04-03 03: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-03 03:47:18] Production.INFO: count ==858 [2025-04-03 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:47:05 - End Time 2025-04-03 03:47:05 [2025-04-03 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822852', 'tblTempUsageDetail_20' ) start [2025-04-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822852', 'tblTempUsageDetail_20' ) end [2025-04-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822852', 'tblTempVendorCDR_20' ) start [2025-04-03 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822852', 'tblTempVendorCDR_20' ) end [2025-04-03 03:47:18] Production.INFO: ProcessCDR(1,14822852,1,1,2) [2025-04-03 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822852', 'tblTempUsageDetail_20' ) start [2025-04-03 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822852', 'tblTempUsageDetail_20' ) end [2025-04-03 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:47:22] Production.INFO: ==10372== Releasing lock... [2025-04-03 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:48:06 [end_date_ymd] => 2025-04-03 03:48:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:48:06' and `end` < '2025-04-03 03: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-03 03:48:19] Production.INFO: count ==858 [2025-04-03 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:48:06 - End Time 2025-04-03 03:48:06 [2025-04-03 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822857', 'tblTempUsageDetail_20' ) start [2025-04-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822857', 'tblTempUsageDetail_20' ) end [2025-04-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822857', 'tblTempVendorCDR_20' ) start [2025-04-03 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822857', 'tblTempVendorCDR_20' ) end [2025-04-03 03:48:19] Production.INFO: ProcessCDR(1,14822857,1,1,2) [2025-04-03 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822857', 'tblTempUsageDetail_20' ) start [2025-04-03 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822857', 'tblTempUsageDetail_20' ) end [2025-04-03 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:48:23] Production.INFO: ==10444== Releasing lock... [2025-04-03 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:49:06 [end_date_ymd] => 2025-04-03 03:49:06 [RateCDR] => 1 ) [2025-04-03 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:49:06' and `end` < '2025-04-03 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:49:18] Production.INFO: count ==858 [2025-04-03 03:49:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:49:06 - End Time 2025-04-03 03:49:06 [2025-04-03 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822861', 'tblTempUsageDetail_20' ) start [2025-04-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822861', 'tblTempUsageDetail_20' ) end [2025-04-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822861', 'tblTempVendorCDR_20' ) start [2025-04-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822861', 'tblTempVendorCDR_20' ) end [2025-04-03 03:49:19] Production.INFO: ProcessCDR(1,14822861,1,1,2) [2025-04-03 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822861', 'tblTempUsageDetail_20' ) start [2025-04-03 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822861', 'tblTempUsageDetail_20' ) end [2025-04-03 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:49:23] Production.INFO: ==10516== Releasing lock... [2025-04-03 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:49:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:50:07 [end_date_ymd] => 2025-04-03 03:50:07 [RateCDR] => 1 ) [2025-04-03 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:50:07' and `end` < '2025-04-03 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:50:19] Production.INFO: count ==859 [2025-04-03 03:50:20] Production.ERROR: pbx CDR StartTime 2025-04-03 00:50:07 - End Time 2025-04-03 03:50:07 [2025-04-03 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822867', 'tblTempUsageDetail_20' ) start [2025-04-03 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822867', 'tblTempUsageDetail_20' ) end [2025-04-03 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822867', 'tblTempVendorCDR_20' ) start [2025-04-03 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822867', 'tblTempVendorCDR_20' ) end [2025-04-03 03:50:20] Production.INFO: ProcessCDR(1,14822867,1,1,2) [2025-04-03 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822867', 'tblTempUsageDetail_20' ) start [2025-04-03 03:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822867', 'tblTempUsageDetail_20' ) end [2025-04-03 03:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:50:25] Production.INFO: ==10590== Releasing lock... [2025-04-03 03:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:50:25] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:51:06 [end_date_ymd] => 2025-04-03 03:51:06 [RateCDR] => 1 ) [2025-04-03 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:51:06' and `end` < '2025-04-03 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:51:18] Production.INFO: count ==859 [2025-04-03 03:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:51:06 - End Time 2025-04-03 03:51:06 [2025-04-03 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822873', 'tblTempUsageDetail_20' ) start [2025-04-03 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822873', 'tblTempUsageDetail_20' ) end [2025-04-03 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822873', 'tblTempVendorCDR_20' ) start [2025-04-03 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822873', 'tblTempVendorCDR_20' ) end [2025-04-03 03:51:19] Production.INFO: ProcessCDR(1,14822873,1,1,2) [2025-04-03 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822873', 'tblTempUsageDetail_20' ) start [2025-04-03 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822873', 'tblTempUsageDetail_20' ) end [2025-04-03 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:51:23] Production.INFO: ==10662== Releasing lock... [2025-04-03 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:51:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:52:06 [end_date_ymd] => 2025-04-03 03:52:06 [RateCDR] => 1 ) [2025-04-03 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:52:06' and `end` < '2025-04-03 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:52:19] Production.INFO: count ==851 [2025-04-03 03:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:52:06 - End Time 2025-04-03 03:52:06 [2025-04-03 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822878', 'tblTempUsageDetail_20' ) start [2025-04-03 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822878', 'tblTempUsageDetail_20' ) end [2025-04-03 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822878', 'tblTempVendorCDR_20' ) start [2025-04-03 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822878', 'tblTempVendorCDR_20' ) end [2025-04-03 03:52:19] Production.INFO: ProcessCDR(1,14822878,1,1,2) [2025-04-03 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822878', 'tblTempUsageDetail_20' ) start [2025-04-03 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822878', 'tblTempUsageDetail_20' ) end [2025-04-03 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:52:23] Production.INFO: ==10734== Releasing lock... [2025-04-03 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:52:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:53:05 [end_date_ymd] => 2025-04-03 03:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 00:53:05' and `end` < '2025-04-03 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-03 03:53:18] Production.INFO: count ==843 [2025-04-03 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:53:05 - End Time 2025-04-03 03:53:05 [2025-04-03 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822883', 'tblTempUsageDetail_20' ) start [2025-04-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822883', 'tblTempUsageDetail_20' ) end [2025-04-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822883', 'tblTempVendorCDR_20' ) start [2025-04-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822883', 'tblTempVendorCDR_20' ) end [2025-04-03 03:53:18] Production.INFO: ProcessCDR(1,14822883,1,1,2) [2025-04-03 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822883', 'tblTempUsageDetail_20' ) start [2025-04-03 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822883', 'tblTempUsageDetail_20' ) end [2025-04-03 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:53:22] Production.INFO: ==10845== Releasing lock... [2025-04-03 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:54:06 [end_date_ymd] => 2025-04-03 03:54:06 [RateCDR] => 1 ) [2025-04-03 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:54:06' and `end` < '2025-04-03 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:54:19] Production.INFO: count ==837 [2025-04-03 03:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:54:06 - End Time 2025-04-03 03:54:06 [2025-04-03 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822888', 'tblTempUsageDetail_20' ) start [2025-04-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822888', 'tblTempUsageDetail_20' ) end [2025-04-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822888', 'tblTempVendorCDR_20' ) start [2025-04-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822888', 'tblTempVendorCDR_20' ) end [2025-04-03 03:54:19] Production.INFO: ProcessCDR(1,14822888,1,1,2) [2025-04-03 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822888', 'tblTempUsageDetail_20' ) start [2025-04-03 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822888', 'tblTempUsageDetail_20' ) end [2025-04-03 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:54:23] Production.INFO: ==10928== Releasing lock... [2025-04-03 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:54:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:55:06 [end_date_ymd] => 2025-04-03 03:55:06 [RateCDR] => 1 ) [2025-04-03 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:55:06' and `end` < '2025-04-03 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:55:18] Production.INFO: count ==829 [2025-04-03 03:55:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:55:06 - End Time 2025-04-03 03:55:06 [2025-04-03 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822893', 'tblTempUsageDetail_20' ) start [2025-04-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822893', 'tblTempUsageDetail_20' ) end [2025-04-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822893', 'tblTempVendorCDR_20' ) start [2025-04-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822893', 'tblTempVendorCDR_20' ) end [2025-04-03 03:55:19] Production.INFO: ProcessCDR(1,14822893,1,1,2) [2025-04-03 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822893', 'tblTempUsageDetail_20' ) start [2025-04-03 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822893', 'tblTempUsageDetail_20' ) end [2025-04-03 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:55:22] Production.INFO: ==11027== Releasing lock... [2025-04-03 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:56:05 [end_date_ymd] => 2025-04-03 03:56:05 [RateCDR] => 1 ) [2025-04-03 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:56:05' and `end` < '2025-04-03 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-03 03:56:18] Production.INFO: count ==826 [2025-04-03 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 00:56:05 - End Time 2025-04-03 03:56:05 [2025-04-03 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822898', 'tblTempUsageDetail_20' ) start [2025-04-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822898', 'tblTempUsageDetail_20' ) end [2025-04-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822898', 'tblTempVendorCDR_20' ) start [2025-04-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822898', 'tblTempVendorCDR_20' ) end [2025-04-03 03:56:18] Production.INFO: ProcessCDR(1,14822898,1,1,2) [2025-04-03 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822898', 'tblTempUsageDetail_20' ) start [2025-04-03 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822898', 'tblTempUsageDetail_20' ) end [2025-04-03 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:56:22] Production.INFO: ==11128== Releasing lock... [2025-04-03 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:57:06 [end_date_ymd] => 2025-04-03 03:57:06 [RateCDR] => 1 ) [2025-04-03 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 00:57:06' and `end` < '2025-04-03 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 03:57:19] Production.INFO: count ==826 [2025-04-03 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:57:06 - End Time 2025-04-03 03:57:06 [2025-04-03 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822903', 'tblTempUsageDetail_20' ) start [2025-04-03 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822903', 'tblTempUsageDetail_20' ) end [2025-04-03 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822903', 'tblTempVendorCDR_20' ) start [2025-04-03 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822903', 'tblTempVendorCDR_20' ) end [2025-04-03 03:57:19] Production.INFO: ProcessCDR(1,14822903,1,1,2) [2025-04-03 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822903', 'tblTempUsageDetail_20' ) start [2025-04-03 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822903', 'tblTempUsageDetail_20' ) end [2025-04-03 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:57:23] Production.INFO: ==11223== Releasing lock... [2025-04-03 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:57:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 03:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:58:07 [end_date_ymd] => 2025-04-03 03:58:07 [RateCDR] => 1 ) [2025-04-03 03:58: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-03 00:58:07' and `end` < '2025-04-03 03:58: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-03 03:58:19] Production.INFO: count ==825 [2025-04-03 03:58:20] Production.ERROR: pbx CDR StartTime 2025-04-03 00:58:07 - End Time 2025-04-03 03:58:07 [2025-04-03 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822908', 'tblTempUsageDetail_20' ) start [2025-04-03 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822908', 'tblTempUsageDetail_20' ) end [2025-04-03 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822908', 'tblTempVendorCDR_20' ) start [2025-04-03 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822908', 'tblTempVendorCDR_20' ) end [2025-04-03 03:58:20] Production.INFO: ProcessCDR(1,14822908,1,1,2) [2025-04-03 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822908', 'tblTempUsageDetail_20' ) start [2025-04-03 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822908', 'tblTempUsageDetail_20' ) end [2025-04-03 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:58:23] Production.INFO: ==11323== Releasing lock... [2025-04-03 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:58:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 00:59:06 [end_date_ymd] => 2025-04-03 03:59:06 [RateCDR] => 1 ) [2025-04-03 03: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-03 00:59:06' and `end` < '2025-04-03 03: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-03 03:59:19] Production.INFO: count ==819 [2025-04-03 03:59:19] Production.ERROR: pbx CDR StartTime 2025-04-03 00:59:06 - End Time 2025-04-03 03:59:06 [2025-04-03 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822913', 'tblTempUsageDetail_20' ) start [2025-04-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822913', 'tblTempUsageDetail_20' ) end [2025-04-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822913', 'tblTempVendorCDR_20' ) start [2025-04-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822913', 'tblTempVendorCDR_20' ) end [2025-04-03 03:59:19] Production.INFO: ProcessCDR(1,14822913,1,1,2) [2025-04-03 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822913', 'tblTempUsageDetail_20' ) start [2025-04-03 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822913', 'tblTempUsageDetail_20' ) end [2025-04-03 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 03:59:23] Production.INFO: ==11427== Releasing lock... [2025-04-03 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 03:59:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:00:07 [end_date_ymd] => 2025-04-03 04:00:07 [RateCDR] => 1 ) [2025-04-03 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:00:07' and `end` < '2025-04-03 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:00:20] Production.INFO: count ==812 [2025-04-03 04:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 01:00:07 - End Time 2025-04-03 04:00:07 [2025-04-03 04:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822919', 'tblTempUsageDetail_20' ) start [2025-04-03 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822919', 'tblTempUsageDetail_20' ) end [2025-04-03 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822919', 'tblTempVendorCDR_20' ) start [2025-04-03 04:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822919', 'tblTempVendorCDR_20' ) end [2025-04-03 04:00:21] Production.INFO: ProcessCDR(1,14822919,1,1,2) [2025-04-03 04:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822919', 'tblTempUsageDetail_20' ) start [2025-04-03 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822919', 'tblTempUsageDetail_20' ) end [2025-04-03 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:00:24] Production.INFO: ==11541== Releasing lock... [2025-04-03 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:00:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:01:06 [end_date_ymd] => 2025-04-03 04:01:06 [RateCDR] => 1 ) [2025-04-03 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:01:06' and `end` < '2025-04-03 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:01:19] Production.INFO: count ==859 [2025-04-03 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:01:06 - End Time 2025-04-03 04:01:06 [2025-04-03 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822925', 'tblTempUsageDetail_20' ) start [2025-04-03 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822925', 'tblTempUsageDetail_20' ) end [2025-04-03 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822925', 'tblTempVendorCDR_20' ) start [2025-04-03 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822925', 'tblTempVendorCDR_20' ) end [2025-04-03 04:01:19] Production.INFO: ProcessCDR(1,14822925,1,1,2) [2025-04-03 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822925', 'tblTempUsageDetail_20' ) start [2025-04-03 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822925', 'tblTempUsageDetail_20' ) end [2025-04-03 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:01:24] Production.INFO: ==11659== Releasing lock... [2025-04-03 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:01:24] Production.INFO: 35 MB #Memory Used# [2025-04-03 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:02:06 [end_date_ymd] => 2025-04-03 04:02:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:02:06' and `end` < '2025-04-03 04: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-03 04:02:18] Production.INFO: count ==852 [2025-04-03 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:02:06 - End Time 2025-04-03 04:02:06 [2025-04-03 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822930', 'tblTempUsageDetail_20' ) start [2025-04-03 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822930', 'tblTempUsageDetail_20' ) end [2025-04-03 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822930', 'tblTempVendorCDR_20' ) start [2025-04-03 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822930', 'tblTempVendorCDR_20' ) end [2025-04-03 04:02:19] Production.INFO: ProcessCDR(1,14822930,1,1,2) [2025-04-03 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822930', 'tblTempUsageDetail_20' ) start [2025-04-03 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822930', 'tblTempUsageDetail_20' ) end [2025-04-03 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:02:22] Production.INFO: ==11753== Releasing lock... [2025-04-03 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:02:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:03:06 [end_date_ymd] => 2025-04-03 04:03:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:03:06' and `end` < '2025-04-03 04: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-03 04:03:18] Production.INFO: count ==844 [2025-04-03 04:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:03:06 - End Time 2025-04-03 04:03:06 [2025-04-03 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822935', 'tblTempUsageDetail_20' ) start [2025-04-03 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822935', 'tblTempUsageDetail_20' ) end [2025-04-03 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822935', 'tblTempVendorCDR_20' ) start [2025-04-03 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822935', 'tblTempVendorCDR_20' ) end [2025-04-03 04:03:19] Production.INFO: ProcessCDR(1,14822935,1,1,2) [2025-04-03 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822935', 'tblTempUsageDetail_20' ) start [2025-04-03 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822935', 'tblTempUsageDetail_20' ) end [2025-04-03 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:03:22] Production.INFO: ==11829== Releasing lock... [2025-04-03 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:04:05 [end_date_ymd] => 2025-04-03 04:04:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:04:05' and `end` < '2025-04-03 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-03 04:04:18] Production.INFO: count ==834 [2025-04-03 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:04:05 - End Time 2025-04-03 04:04:05 [2025-04-03 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822940', 'tblTempUsageDetail_20' ) start [2025-04-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822940', 'tblTempUsageDetail_20' ) end [2025-04-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822940', 'tblTempVendorCDR_20' ) start [2025-04-03 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822940', 'tblTempVendorCDR_20' ) end [2025-04-03 04:04:18] Production.INFO: ProcessCDR(1,14822940,1,1,2) [2025-04-03 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822940', 'tblTempUsageDetail_20' ) start [2025-04-03 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822940', 'tblTempUsageDetail_20' ) end [2025-04-03 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:04:22] Production.INFO: ==11900== Releasing lock... [2025-04-03 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:04:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:05:06 [end_date_ymd] => 2025-04-03 04:05:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:05:06' and `end` < '2025-04-03 04: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-03 04:05:19] Production.INFO: count ==831 [2025-04-03 04:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:05:06 - End Time 2025-04-03 04:05:06 [2025-04-03 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822945', 'tblTempUsageDetail_20' ) start [2025-04-03 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822945', 'tblTempUsageDetail_20' ) end [2025-04-03 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822945', 'tblTempVendorCDR_20' ) start [2025-04-03 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822945', 'tblTempVendorCDR_20' ) end [2025-04-03 04:05:19] Production.INFO: ProcessCDR(1,14822945,1,1,2) [2025-04-03 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822945', 'tblTempUsageDetail_20' ) start [2025-04-03 04:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822945', 'tblTempUsageDetail_20' ) end [2025-04-03 04:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:05:23] Production.INFO: ==11974== Releasing lock... [2025-04-03 04:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:06:05 [end_date_ymd] => 2025-04-03 04:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:06:05' and `end` < '2025-04-03 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-03 04:06:18] Production.INFO: count ==824 [2025-04-03 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:06:05 - End Time 2025-04-03 04:06:05 [2025-04-03 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822950', 'tblTempUsageDetail_20' ) start [2025-04-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822950', 'tblTempUsageDetail_20' ) end [2025-04-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822950', 'tblTempVendorCDR_20' ) start [2025-04-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822950', 'tblTempVendorCDR_20' ) end [2025-04-03 04:06:18] Production.INFO: ProcessCDR(1,14822950,1,1,2) [2025-04-03 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822950', 'tblTempUsageDetail_20' ) start [2025-04-03 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822950', 'tblTempUsageDetail_20' ) end [2025-04-03 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:06:22] Production.INFO: ==12043== Releasing lock... [2025-04-03 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:06:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:07:05 [end_date_ymd] => 2025-04-03 04:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:07:05' and `end` < '2025-04-03 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-03 04:07:18] Production.INFO: count ==824 [2025-04-03 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:07:05 - End Time 2025-04-03 04:07:05 [2025-04-03 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822955', 'tblTempUsageDetail_20' ) start [2025-04-03 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822955', 'tblTempUsageDetail_20' ) end [2025-04-03 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822955', 'tblTempVendorCDR_20' ) start [2025-04-03 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822955', 'tblTempVendorCDR_20' ) end [2025-04-03 04:07:18] Production.INFO: ProcessCDR(1,14822955,1,1,2) [2025-04-03 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822955', 'tblTempUsageDetail_20' ) start [2025-04-03 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822955', 'tblTempUsageDetail_20' ) end [2025-04-03 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:07:22] Production.INFO: ==12118== Releasing lock... [2025-04-03 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:08:05 [end_date_ymd] => 2025-04-03 04:08:05 [RateCDR] => 1 ) [2025-04-03 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:08:05' and `end` < '2025-04-03 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:08:18] Production.INFO: count ==824 [2025-04-03 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:08:05 - End Time 2025-04-03 04:08:05 [2025-04-03 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822960', 'tblTempUsageDetail_20' ) start [2025-04-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822960', 'tblTempUsageDetail_20' ) end [2025-04-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822960', 'tblTempVendorCDR_20' ) start [2025-04-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822960', 'tblTempVendorCDR_20' ) end [2025-04-03 04:08:18] Production.INFO: ProcessCDR(1,14822960,1,1,2) [2025-04-03 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822960', 'tblTempUsageDetail_20' ) start [2025-04-03 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822960', 'tblTempUsageDetail_20' ) end [2025-04-03 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:08:22] Production.INFO: ==12189== Releasing lock... [2025-04-03 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:09:06 [end_date_ymd] => 2025-04-03 04:09:06 [RateCDR] => 1 ) [2025-04-03 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:09:06' and `end` < '2025-04-03 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:09:19] Production.INFO: count ==824 [2025-04-03 04:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:09:06 - End Time 2025-04-03 04:09:06 [2025-04-03 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822965', 'tblTempUsageDetail_20' ) start [2025-04-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822965', 'tblTempUsageDetail_20' ) end [2025-04-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822965', 'tblTempVendorCDR_20' ) start [2025-04-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822965', 'tblTempVendorCDR_20' ) end [2025-04-03 04:09:19] Production.INFO: ProcessCDR(1,14822965,1,1,2) [2025-04-03 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822965', 'tblTempUsageDetail_20' ) start [2025-04-03 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822965', 'tblTempUsageDetail_20' ) end [2025-04-03 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:09:22] Production.INFO: ==12301== Releasing lock... [2025-04-03 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:09:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:10:06 [end_date_ymd] => 2025-04-03 04:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:10:06' and `end` < '2025-04-03 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-03 04:10:18] Production.INFO: count ==811 [2025-04-03 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:10:06 - End Time 2025-04-03 04:10:06 [2025-04-03 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822971', 'tblTempUsageDetail_20' ) start [2025-04-03 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822971', 'tblTempUsageDetail_20' ) end [2025-04-03 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822971', 'tblTempVendorCDR_20' ) start [2025-04-03 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822971', 'tblTempVendorCDR_20' ) end [2025-04-03 04:10:19] Production.INFO: ProcessCDR(1,14822971,1,1,2) [2025-04-03 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822971', 'tblTempUsageDetail_20' ) start [2025-04-03 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822971', 'tblTempUsageDetail_20' ) end [2025-04-03 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:10:22] Production.INFO: ==12375== Releasing lock... [2025-04-03 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:10:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:11:06 [end_date_ymd] => 2025-04-03 04:11:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:11:06' and `end` < '2025-04-03 04: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-03 04:11:19] Production.INFO: count ==802 [2025-04-03 04:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:11:06 - End Time 2025-04-03 04:11:06 [2025-04-03 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822976', 'tblTempUsageDetail_20' ) start [2025-04-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822976', 'tblTempUsageDetail_20' ) end [2025-04-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822976', 'tblTempVendorCDR_20' ) start [2025-04-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822976', 'tblTempVendorCDR_20' ) end [2025-04-03 04:11:19] Production.INFO: ProcessCDR(1,14822976,1,1,2) [2025-04-03 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822976', 'tblTempUsageDetail_20' ) start [2025-04-03 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822976', 'tblTempUsageDetail_20' ) end [2025-04-03 04:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:11:23] Production.INFO: ==12452== Releasing lock... [2025-04-03 04:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:11:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:12:05 [end_date_ymd] => 2025-04-03 04:12:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:12:05' and `end` < '2025-04-03 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-03 04:12:18] Production.INFO: count ==802 [2025-04-03 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:12:05 - End Time 2025-04-03 04:12:05 [2025-04-03 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822981', 'tblTempUsageDetail_20' ) start [2025-04-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822981', 'tblTempUsageDetail_20' ) end [2025-04-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822981', 'tblTempVendorCDR_20' ) start [2025-04-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822981', 'tblTempVendorCDR_20' ) end [2025-04-03 04:12:18] Production.INFO: ProcessCDR(1,14822981,1,1,2) [2025-04-03 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822981', 'tblTempUsageDetail_20' ) start [2025-04-03 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822981', 'tblTempUsageDetail_20' ) end [2025-04-03 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:12:22] Production.INFO: ==12524== Releasing lock... [2025-04-03 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:13:05 [end_date_ymd] => 2025-04-03 04:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:13:05' and `end` < '2025-04-03 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-03 04:13:18] Production.INFO: count ==801 [2025-04-03 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:13:05 - End Time 2025-04-03 04:13:05 [2025-04-03 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822986', 'tblTempUsageDetail_20' ) start [2025-04-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822986', 'tblTempUsageDetail_20' ) end [2025-04-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822986', 'tblTempVendorCDR_20' ) start [2025-04-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822986', 'tblTempVendorCDR_20' ) end [2025-04-03 04:13:18] Production.INFO: ProcessCDR(1,14822986,1,1,2) [2025-04-03 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822986', 'tblTempUsageDetail_20' ) start [2025-04-03 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822986', 'tblTempUsageDetail_20' ) end [2025-04-03 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:13:22] Production.INFO: ==12594== Releasing lock... [2025-04-03 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:13:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:14:05 [end_date_ymd] => 2025-04-03 04:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:14:05' and `end` < '2025-04-03 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-03 04:14:18] Production.INFO: count ==801 [2025-04-03 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:14:05 - End Time 2025-04-03 04:14:05 [2025-04-03 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822990', 'tblTempUsageDetail_20' ) start [2025-04-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822990', 'tblTempUsageDetail_20' ) end [2025-04-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822990', 'tblTempVendorCDR_20' ) start [2025-04-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822990', 'tblTempVendorCDR_20' ) end [2025-04-03 04:14:18] Production.INFO: ProcessCDR(1,14822990,1,1,2) [2025-04-03 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822990', 'tblTempUsageDetail_20' ) start [2025-04-03 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822990', 'tblTempUsageDetail_20' ) end [2025-04-03 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:14:22] Production.INFO: ==12670== Releasing lock... [2025-04-03 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:14:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:15:06 [end_date_ymd] => 2025-04-03 04:15:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:15:06' and `end` < '2025-04-03 04: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-03 04:15:18] Production.INFO: count ==787 [2025-04-03 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:15:06 - End Time 2025-04-03 04:15:06 [2025-04-03 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822996', 'tblTempUsageDetail_20' ) start [2025-04-03 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14822996', 'tblTempUsageDetail_20' ) end [2025-04-03 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822996', 'tblTempVendorCDR_20' ) start [2025-04-03 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14822996', 'tblTempVendorCDR_20' ) end [2025-04-03 04:15:19] Production.INFO: ProcessCDR(1,14822996,1,1,2) [2025-04-03 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14822996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14822996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14822996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14822996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822996', 'tblTempUsageDetail_20' ) start [2025-04-03 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14822996', 'tblTempUsageDetail_20' ) end [2025-04-03 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:15:22] Production.INFO: ==12744== Releasing lock... [2025-04-03 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:16:05 [end_date_ymd] => 2025-04-03 04:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:16:05' and `end` < '2025-04-03 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-03 04:16:18] Production.INFO: count ==785 [2025-04-03 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:16:05 - End Time 2025-04-03 04:16:05 [2025-04-03 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823001', 'tblTempUsageDetail_20' ) start [2025-04-03 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823001', 'tblTempUsageDetail_20' ) end [2025-04-03 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823001', 'tblTempVendorCDR_20' ) start [2025-04-03 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823001', 'tblTempVendorCDR_20' ) end [2025-04-03 04:16:18] Production.INFO: ProcessCDR(1,14823001,1,1,2) [2025-04-03 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823001', 'tblTempUsageDetail_20' ) start [2025-04-03 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823001', 'tblTempUsageDetail_20' ) end [2025-04-03 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:16:22] Production.INFO: ==12813== Releasing lock... [2025-04-03 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:17:06 [end_date_ymd] => 2025-04-03 04:17:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:17:06' and `end` < '2025-04-03 04: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-03 04:17:18] Production.INFO: count ==781 [2025-04-03 04:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:17:06 - End Time 2025-04-03 04:17:06 [2025-04-03 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823006', 'tblTempUsageDetail_20' ) start [2025-04-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823006', 'tblTempUsageDetail_20' ) end [2025-04-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823006', 'tblTempVendorCDR_20' ) start [2025-04-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823006', 'tblTempVendorCDR_20' ) end [2025-04-03 04:17:19] Production.INFO: ProcessCDR(1,14823006,1,1,2) [2025-04-03 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823006', 'tblTempUsageDetail_20' ) start [2025-04-03 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823006', 'tblTempUsageDetail_20' ) end [2025-04-03 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:17:22] Production.INFO: ==12888== Releasing lock... [2025-04-03 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:17:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:18:05 [end_date_ymd] => 2025-04-03 04:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:18:05' and `end` < '2025-04-03 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-03 04:18:17] Production.INFO: count ==781 [2025-04-03 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:18:05 - End Time 2025-04-03 04:18:05 [2025-04-03 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823011', 'tblTempUsageDetail_20' ) start [2025-04-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823011', 'tblTempUsageDetail_20' ) end [2025-04-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823011', 'tblTempVendorCDR_20' ) start [2025-04-03 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823011', 'tblTempVendorCDR_20' ) end [2025-04-03 04:18:18] Production.INFO: ProcessCDR(1,14823011,1,1,2) [2025-04-03 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823011', 'tblTempUsageDetail_20' ) start [2025-04-03 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823011', 'tblTempUsageDetail_20' ) end [2025-04-03 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:18:22] Production.INFO: ==12965== Releasing lock... [2025-04-03 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:18:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:19:06 [end_date_ymd] => 2025-04-03 04:19:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:19:06' and `end` < '2025-04-03 04: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-03 04:19:19] Production.INFO: count ==779 [2025-04-03 04:19:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:19:06 - End Time 2025-04-03 04:19:06 [2025-04-03 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823016', 'tblTempUsageDetail_20' ) start [2025-04-03 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823016', 'tblTempUsageDetail_20' ) end [2025-04-03 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823016', 'tblTempVendorCDR_20' ) start [2025-04-03 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823016', 'tblTempVendorCDR_20' ) end [2025-04-03 04:19:19] Production.INFO: ProcessCDR(1,14823016,1,1,2) [2025-04-03 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823016', 'tblTempUsageDetail_20' ) start [2025-04-03 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823016', 'tblTempUsageDetail_20' ) end [2025-04-03 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:19:22] Production.INFO: ==13037== Releasing lock... [2025-04-03 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:19:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:20:05 [end_date_ymd] => 2025-04-03 04:20:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:20:05' and `end` < '2025-04-03 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-03 04:20:18] Production.INFO: count ==771 [2025-04-03 04:20:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:20:05 - End Time 2025-04-03 04:20:05 [2025-04-03 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823022', 'tblTempUsageDetail_20' ) start [2025-04-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823022', 'tblTempUsageDetail_20' ) end [2025-04-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823022', 'tblTempVendorCDR_20' ) start [2025-04-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823022', 'tblTempVendorCDR_20' ) end [2025-04-03 04:20:18] Production.INFO: ProcessCDR(1,14823022,1,1,2) [2025-04-03 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823022', 'tblTempUsageDetail_20' ) start [2025-04-03 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823022', 'tblTempUsageDetail_20' ) end [2025-04-03 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:20:22] Production.INFO: ==13111== Releasing lock... [2025-04-03 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:21:05 [end_date_ymd] => 2025-04-03 04:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:21:05' and `end` < '2025-04-03 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-03 04:21:18] Production.INFO: count ==758 [2025-04-03 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:21:05 - End Time 2025-04-03 04:21:05 [2025-04-03 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823027', 'tblTempUsageDetail_20' ) start [2025-04-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823027', 'tblTempUsageDetail_20' ) end [2025-04-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823027', 'tblTempVendorCDR_20' ) start [2025-04-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823027', 'tblTempVendorCDR_20' ) end [2025-04-03 04:21:18] Production.INFO: ProcessCDR(1,14823027,1,1,2) [2025-04-03 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823027', 'tblTempUsageDetail_20' ) start [2025-04-03 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823027', 'tblTempUsageDetail_20' ) end [2025-04-03 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:21:22] Production.INFO: ==13183== Releasing lock... [2025-04-03 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:22:06 [end_date_ymd] => 2025-04-03 04:22:06 [RateCDR] => 1 ) [2025-04-03 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:22:06' and `end` < '2025-04-03 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:22:19] Production.INFO: count ==758 [2025-04-03 04:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:22:06 - End Time 2025-04-03 04:22:06 [2025-04-03 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823032', 'tblTempUsageDetail_20' ) start [2025-04-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823032', 'tblTempUsageDetail_20' ) end [2025-04-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823032', 'tblTempVendorCDR_20' ) start [2025-04-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823032', 'tblTempVendorCDR_20' ) end [2025-04-03 04:22:19] Production.INFO: ProcessCDR(1,14823032,1,1,2) [2025-04-03 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823032', 'tblTempUsageDetail_20' ) start [2025-04-03 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823032', 'tblTempUsageDetail_20' ) end [2025-04-03 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:22:22] Production.INFO: ==13257== Releasing lock... [2025-04-03 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:22:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:23:05 [end_date_ymd] => 2025-04-03 04:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:23:05' and `end` < '2025-04-03 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-03 04:23:18] Production.INFO: count ==758 [2025-04-03 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:23:05 - End Time 2025-04-03 04:23:05 [2025-04-03 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823037', 'tblTempUsageDetail_20' ) start [2025-04-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823037', 'tblTempUsageDetail_20' ) end [2025-04-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823037', 'tblTempVendorCDR_20' ) start [2025-04-03 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823037', 'tblTempVendorCDR_20' ) end [2025-04-03 04:23:18] Production.INFO: ProcessCDR(1,14823037,1,1,2) [2025-04-03 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823037', 'tblTempUsageDetail_20' ) start [2025-04-03 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823037', 'tblTempUsageDetail_20' ) end [2025-04-03 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:23:22] Production.INFO: ==13327== Releasing lock... [2025-04-03 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:23:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:24:05 [end_date_ymd] => 2025-04-03 04:24:05 [RateCDR] => 1 ) [2025-04-03 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:24:05' and `end` < '2025-04-03 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:24:18] Production.INFO: count ==757 [2025-04-03 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:24:05 - End Time 2025-04-03 04:24:05 [2025-04-03 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823042', 'tblTempUsageDetail_20' ) start [2025-04-03 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823042', 'tblTempUsageDetail_20' ) end [2025-04-03 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823042', 'tblTempVendorCDR_20' ) start [2025-04-03 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823042', 'tblTempVendorCDR_20' ) end [2025-04-03 04:24:18] Production.INFO: ProcessCDR(1,14823042,1,1,2) [2025-04-03 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823042', 'tblTempUsageDetail_20' ) start [2025-04-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823042', 'tblTempUsageDetail_20' ) end [2025-04-03 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:24:22] Production.INFO: ==13440== Releasing lock... [2025-04-03 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:25:06 [end_date_ymd] => 2025-04-03 04:25:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:25:06' and `end` < '2025-04-03 04: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-03 04:25:18] Production.INFO: count ==757 [2025-04-03 04:25:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:25:06 - End Time 2025-04-03 04:25:06 [2025-04-03 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823047', 'tblTempUsageDetail_20' ) start [2025-04-03 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823047', 'tblTempUsageDetail_20' ) end [2025-04-03 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823047', 'tblTempVendorCDR_20' ) start [2025-04-03 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823047', 'tblTempVendorCDR_20' ) end [2025-04-03 04:25:19] Production.INFO: ProcessCDR(1,14823047,1,1,2) [2025-04-03 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823047', 'tblTempUsageDetail_20' ) start [2025-04-03 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823047', 'tblTempUsageDetail_20' ) end [2025-04-03 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:25:22] Production.INFO: ==13513== Releasing lock... [2025-04-03 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:25:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:26:05 [end_date_ymd] => 2025-04-03 04:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:26:05' and `end` < '2025-04-03 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-03 04:26:17] Production.INFO: count ==757 [2025-04-03 04:26:17] Production.ERROR: pbx CDR StartTime 2025-04-03 01:26:05 - End Time 2025-04-03 04:26:05 [2025-04-03 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823052', 'tblTempUsageDetail_20' ) start [2025-04-03 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823052', 'tblTempUsageDetail_20' ) end [2025-04-03 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823052', 'tblTempVendorCDR_20' ) start [2025-04-03 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823052', 'tblTempVendorCDR_20' ) end [2025-04-03 04:26:17] Production.INFO: ProcessCDR(1,14823052,1,1,2) [2025-04-03 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823052', 'tblTempUsageDetail_20' ) start [2025-04-03 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823052', 'tblTempUsageDetail_20' ) end [2025-04-03 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:26:21] Production.INFO: ==13587== Releasing lock... [2025-04-03 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:27:05 [end_date_ymd] => 2025-04-03 04:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:27:05' and `end` < '2025-04-03 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-03 04:27:18] Production.INFO: count ==757 [2025-04-03 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:27:05 - End Time 2025-04-03 04:27:05 [2025-04-03 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823057', 'tblTempUsageDetail_20' ) start [2025-04-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823057', 'tblTempUsageDetail_20' ) end [2025-04-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823057', 'tblTempVendorCDR_20' ) start [2025-04-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823057', 'tblTempVendorCDR_20' ) end [2025-04-03 04:27:18] Production.INFO: ProcessCDR(1,14823057,1,1,2) [2025-04-03 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823057', 'tblTempUsageDetail_20' ) start [2025-04-03 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823057', 'tblTempUsageDetail_20' ) end [2025-04-03 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:27:22] Production.INFO: ==13657== Releasing lock... [2025-04-03 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:28:05 [end_date_ymd] => 2025-04-03 04:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:28:05' and `end` < '2025-04-03 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-03 04:28:18] Production.INFO: count ==757 [2025-04-03 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:28:05 - End Time 2025-04-03 04:28:05 [2025-04-03 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823062', 'tblTempUsageDetail_20' ) start [2025-04-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823062', 'tblTempUsageDetail_20' ) end [2025-04-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823062', 'tblTempVendorCDR_20' ) start [2025-04-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823062', 'tblTempVendorCDR_20' ) end [2025-04-03 04:28:18] Production.INFO: ProcessCDR(1,14823062,1,1,2) [2025-04-03 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823062', 'tblTempUsageDetail_20' ) start [2025-04-03 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823062', 'tblTempUsageDetail_20' ) end [2025-04-03 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:28:22] Production.INFO: ==13736== Releasing lock... [2025-04-03 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:28:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:29:05 [end_date_ymd] => 2025-04-03 04:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:29:05' and `end` < '2025-04-03 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-03 04:29:18] Production.INFO: count ==773 [2025-04-03 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:29:05 - End Time 2025-04-03 04:29:05 [2025-04-03 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823067', 'tblTempUsageDetail_20' ) start [2025-04-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823067', 'tblTempUsageDetail_20' ) end [2025-04-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823067', 'tblTempVendorCDR_20' ) start [2025-04-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823067', 'tblTempVendorCDR_20' ) end [2025-04-03 04:29:18] Production.INFO: ProcessCDR(1,14823067,1,1,2) [2025-04-03 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823067', 'tblTempUsageDetail_20' ) start [2025-04-03 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823067', 'tblTempUsageDetail_20' ) end [2025-04-03 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:29:22] Production.INFO: ==13806== Releasing lock... [2025-04-03 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:29:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:30:05 [end_date_ymd] => 2025-04-03 04:30:05 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:30:05' and `end` < '2025-04-03 04: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-03 04:30:18] Production.INFO: count ==807 [2025-04-03 04:30:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:30:05 - End Time 2025-04-03 04:30:05 [2025-04-03 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823073', 'tblTempUsageDetail_20' ) start [2025-04-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823073', 'tblTempUsageDetail_20' ) end [2025-04-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823073', 'tblTempVendorCDR_20' ) start [2025-04-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823073', 'tblTempVendorCDR_20' ) end [2025-04-03 04:30:18] Production.INFO: ProcessCDR(1,14823073,1,1,2) [2025-04-03 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823073', 'tblTempUsageDetail_20' ) start [2025-04-03 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823073', 'tblTempUsageDetail_20' ) end [2025-04-03 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:30:22] Production.INFO: ==13885== Releasing lock... [2025-04-03 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:31:05 [end_date_ymd] => 2025-04-03 04:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:31:05' and `end` < '2025-04-03 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-03 04:31:18] Production.INFO: count ==804 [2025-04-03 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:31:05 - End Time 2025-04-03 04:31:05 [2025-04-03 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823079', 'tblTempUsageDetail_20' ) start [2025-04-03 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823079', 'tblTempUsageDetail_20' ) end [2025-04-03 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823079', 'tblTempVendorCDR_20' ) start [2025-04-03 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823079', 'tblTempVendorCDR_20' ) end [2025-04-03 04:31:18] Production.INFO: ProcessCDR(1,14823079,1,1,2) [2025-04-03 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823079', 'tblTempUsageDetail_20' ) start [2025-04-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823079', 'tblTempUsageDetail_20' ) end [2025-04-03 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:31:22] Production.INFO: ==13990== Releasing lock... [2025-04-03 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:32:06 [end_date_ymd] => 2025-04-03 04:32:06 [RateCDR] => 1 ) [2025-04-03 04:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:32:06' and `end` < '2025-04-03 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:32:19] Production.INFO: count ==809 [2025-04-03 04:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:32:06 - End Time 2025-04-03 04:32:06 [2025-04-03 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823084', 'tblTempUsageDetail_20' ) start [2025-04-03 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823084', 'tblTempUsageDetail_20' ) end [2025-04-03 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823084', 'tblTempVendorCDR_20' ) start [2025-04-03 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823084', 'tblTempVendorCDR_20' ) end [2025-04-03 04:32:19] Production.INFO: ProcessCDR(1,14823084,1,1,2) [2025-04-03 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823084', 'tblTempUsageDetail_20' ) start [2025-04-03 04:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823084', 'tblTempUsageDetail_20' ) end [2025-04-03 04:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:32:23] Production.INFO: ==14063== Releasing lock... [2025-04-03 04:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:33:05 [end_date_ymd] => 2025-04-03 04:33:05 [RateCDR] => 1 ) [2025-04-03 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:33:05' and `end` < '2025-04-03 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:33:18] Production.INFO: count ==809 [2025-04-03 04:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:33:05 - End Time 2025-04-03 04:33:05 [2025-04-03 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823089', 'tblTempUsageDetail_20' ) start [2025-04-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823089', 'tblTempUsageDetail_20' ) end [2025-04-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823089', 'tblTempVendorCDR_20' ) start [2025-04-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823089', 'tblTempVendorCDR_20' ) end [2025-04-03 04:33:19] Production.INFO: ProcessCDR(1,14823089,1,1,2) [2025-04-03 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823089', 'tblTempUsageDetail_20' ) start [2025-04-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823089', 'tblTempUsageDetail_20' ) end [2025-04-03 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:33:22] Production.INFO: ==14135== Releasing lock... [2025-04-03 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:33:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:34:05 [end_date_ymd] => 2025-04-03 04:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:34:05' and `end` < '2025-04-03 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-03 04:34:18] Production.INFO: count ==805 [2025-04-03 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:34:05 - End Time 2025-04-03 04:34:05 [2025-04-03 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823094', 'tblTempUsageDetail_20' ) start [2025-04-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823094', 'tblTempUsageDetail_20' ) end [2025-04-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823094', 'tblTempVendorCDR_20' ) start [2025-04-03 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823094', 'tblTempVendorCDR_20' ) end [2025-04-03 04:34:18] Production.INFO: ProcessCDR(1,14823094,1,1,2) [2025-04-03 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823094', 'tblTempUsageDetail_20' ) start [2025-04-03 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823094', 'tblTempUsageDetail_20' ) end [2025-04-03 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:34:22] Production.INFO: ==14207== Releasing lock... [2025-04-03 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:34:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:35:05 [end_date_ymd] => 2025-04-03 04:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:35:05' and `end` < '2025-04-03 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-03 04:35:17] Production.INFO: count ==801 [2025-04-03 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:35:05 - End Time 2025-04-03 04:35:05 [2025-04-03 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823099', 'tblTempUsageDetail_20' ) start [2025-04-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823099', 'tblTempUsageDetail_20' ) end [2025-04-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823099', 'tblTempVendorCDR_20' ) start [2025-04-03 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823099', 'tblTempVendorCDR_20' ) end [2025-04-03 04:35:18] Production.INFO: ProcessCDR(1,14823099,1,1,2) [2025-04-03 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823099', 'tblTempUsageDetail_20' ) start [2025-04-03 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823099', 'tblTempUsageDetail_20' ) end [2025-04-03 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:35:21] Production.INFO: ==14280== Releasing lock... [2025-04-03 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:36:06 [end_date_ymd] => 2025-04-03 04:36:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:36:06' and `end` < '2025-04-03 04: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-03 04:36:18] Production.INFO: count ==788 [2025-04-03 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:36:06 - End Time 2025-04-03 04:36:06 [2025-04-03 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823104', 'tblTempUsageDetail_20' ) start [2025-04-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823104', 'tblTempUsageDetail_20' ) end [2025-04-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823104', 'tblTempVendorCDR_20' ) start [2025-04-03 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823104', 'tblTempVendorCDR_20' ) end [2025-04-03 04:36:19] Production.INFO: ProcessCDR(1,14823104,1,1,2) [2025-04-03 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823104', 'tblTempUsageDetail_20' ) start [2025-04-03 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823104', 'tblTempUsageDetail_20' ) end [2025-04-03 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:36:22] Production.INFO: ==14350== Releasing lock... [2025-04-03 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:36:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:37:05 [end_date_ymd] => 2025-04-03 04:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:37:05' and `end` < '2025-04-03 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-03 04:37:18] Production.INFO: count ==784 [2025-04-03 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:37:05 - End Time 2025-04-03 04:37:05 [2025-04-03 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823109', 'tblTempUsageDetail_20' ) start [2025-04-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823109', 'tblTempUsageDetail_20' ) end [2025-04-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823109', 'tblTempVendorCDR_20' ) start [2025-04-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823109', 'tblTempVendorCDR_20' ) end [2025-04-03 04:37:18] Production.INFO: ProcessCDR(1,14823109,1,1,2) [2025-04-03 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823109', 'tblTempUsageDetail_20' ) start [2025-04-03 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823109', 'tblTempUsageDetail_20' ) end [2025-04-03 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:37:22] Production.INFO: ==14421== Releasing lock... [2025-04-03 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:37:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:38:06 [end_date_ymd] => 2025-04-03 04:38:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:38:06' and `end` < '2025-04-03 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-03 04:38:18] Production.INFO: count ==774 [2025-04-03 04:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:38:06 - End Time 2025-04-03 04:38:06 [2025-04-03 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823114', 'tblTempUsageDetail_20' ) start [2025-04-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823114', 'tblTempUsageDetail_20' ) end [2025-04-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823114', 'tblTempVendorCDR_20' ) start [2025-04-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823114', 'tblTempVendorCDR_20' ) end [2025-04-03 04:38:19] Production.INFO: ProcessCDR(1,14823114,1,1,2) [2025-04-03 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823114', 'tblTempUsageDetail_20' ) start [2025-04-03 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823114', 'tblTempUsageDetail_20' ) end [2025-04-03 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:38:22] Production.INFO: ==14498== Releasing lock... [2025-04-03 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:38:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:39:05 [end_date_ymd] => 2025-04-03 04:39:05 [RateCDR] => 1 ) [2025-04-03 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:39:05' and `end` < '2025-04-03 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:39:18] Production.INFO: count ==774 [2025-04-03 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:39:05 - End Time 2025-04-03 04:39:05 [2025-04-03 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823119', 'tblTempUsageDetail_20' ) start [2025-04-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823119', 'tblTempUsageDetail_20' ) end [2025-04-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823119', 'tblTempVendorCDR_20' ) start [2025-04-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823119', 'tblTempVendorCDR_20' ) end [2025-04-03 04:39:18] Production.INFO: ProcessCDR(1,14823119,1,1,2) [2025-04-03 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823119', 'tblTempUsageDetail_20' ) start [2025-04-03 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823119', 'tblTempUsageDetail_20' ) end [2025-04-03 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:39:22] Production.INFO: ==14610== Releasing lock... [2025-04-03 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:40:06 [end_date_ymd] => 2025-04-03 04:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:40:06' and `end` < '2025-04-03 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-03 04:40:19] Production.INFO: count ==756 [2025-04-03 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:40:06 - End Time 2025-04-03 04:40:06 [2025-04-03 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823125', 'tblTempUsageDetail_20' ) start [2025-04-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823125', 'tblTempUsageDetail_20' ) end [2025-04-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823125', 'tblTempVendorCDR_20' ) start [2025-04-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823125', 'tblTempVendorCDR_20' ) end [2025-04-03 04:40:19] Production.INFO: ProcessCDR(1,14823125,1,1,2) [2025-04-03 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823125', 'tblTempUsageDetail_20' ) start [2025-04-03 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823125', 'tblTempUsageDetail_20' ) end [2025-04-03 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:40:23] Production.INFO: ==14685== Releasing lock... [2025-04-03 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:40:23] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:41:05 [end_date_ymd] => 2025-04-03 04:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:41:05' and `end` < '2025-04-03 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-03 04:41:18] Production.INFO: count ==738 [2025-04-03 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:41:05 - End Time 2025-04-03 04:41:05 [2025-04-03 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823130', 'tblTempUsageDetail_20' ) start [2025-04-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823130', 'tblTempUsageDetail_20' ) end [2025-04-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823130', 'tblTempVendorCDR_20' ) start [2025-04-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823130', 'tblTempVendorCDR_20' ) end [2025-04-03 04:41:18] Production.INFO: ProcessCDR(1,14823130,1,1,2) [2025-04-03 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823130', 'tblTempUsageDetail_20' ) start [2025-04-03 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823130', 'tblTempUsageDetail_20' ) end [2025-04-03 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:41:21] Production.INFO: ==14759== Releasing lock... [2025-04-03 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:42:06 [end_date_ymd] => 2025-04-03 04:42:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:42:06' and `end` < '2025-04-03 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-03 04:42:19] Production.INFO: count ==734 [2025-04-03 04:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:42:06 - End Time 2025-04-03 04:42:06 [2025-04-03 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823135', 'tblTempUsageDetail_20' ) start [2025-04-03 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823135', 'tblTempUsageDetail_20' ) end [2025-04-03 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823135', 'tblTempVendorCDR_20' ) start [2025-04-03 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823135', 'tblTempVendorCDR_20' ) end [2025-04-03 04:42:19] Production.INFO: ProcessCDR(1,14823135,1,1,2) [2025-04-03 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823135', 'tblTempUsageDetail_20' ) start [2025-04-03 04:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823135', 'tblTempUsageDetail_20' ) end [2025-04-03 04:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:42:23] Production.INFO: ==14833== Releasing lock... [2025-04-03 04:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:43:06 [end_date_ymd] => 2025-04-03 04:43:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:43:06' and `end` < '2025-04-03 04: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-03 04:43:18] Production.INFO: count ==725 [2025-04-03 04:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:43:06 - End Time 2025-04-03 04:43:06 [2025-04-03 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823140', 'tblTempUsageDetail_20' ) start [2025-04-03 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823140', 'tblTempUsageDetail_20' ) end [2025-04-03 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823140', 'tblTempVendorCDR_20' ) start [2025-04-03 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823140', 'tblTempVendorCDR_20' ) end [2025-04-03 04:43:19] Production.INFO: ProcessCDR(1,14823140,1,1,2) [2025-04-03 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823140', 'tblTempUsageDetail_20' ) start [2025-04-03 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823140', 'tblTempUsageDetail_20' ) end [2025-04-03 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:43:22] Production.INFO: ==14905== Releasing lock... [2025-04-03 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:43:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:44:05 [end_date_ymd] => 2025-04-03 04:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:44:05' and `end` < '2025-04-03 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-03 04:44:18] Production.INFO: count ==715 [2025-04-03 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:44:05 - End Time 2025-04-03 04:44:05 [2025-04-03 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823145', 'tblTempUsageDetail_20' ) start [2025-04-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823145', 'tblTempUsageDetail_20' ) end [2025-04-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823145', 'tblTempVendorCDR_20' ) start [2025-04-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823145', 'tblTempVendorCDR_20' ) end [2025-04-03 04:44:18] Production.INFO: ProcessCDR(1,14823145,1,1,2) [2025-04-03 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823145', 'tblTempUsageDetail_20' ) start [2025-04-03 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823145', 'tblTempUsageDetail_20' ) end [2025-04-03 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:44:22] Production.INFO: ==14977== Releasing lock... [2025-04-03 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:45:06 [end_date_ymd] => 2025-04-03 04:45:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:45:06' and `end` < '2025-04-03 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-03 04:45:18] Production.INFO: count ==712 [2025-04-03 04:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:45:06 - End Time 2025-04-03 04:45:06 [2025-04-03 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823150', 'tblTempUsageDetail_20' ) start [2025-04-03 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823150', 'tblTempUsageDetail_20' ) end [2025-04-03 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823150', 'tblTempVendorCDR_20' ) start [2025-04-03 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823150', 'tblTempVendorCDR_20' ) end [2025-04-03 04:45:19] Production.INFO: ProcessCDR(1,14823150,1,1,2) [2025-04-03 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823150', 'tblTempUsageDetail_20' ) start [2025-04-03 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823150', 'tblTempUsageDetail_20' ) end [2025-04-03 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:45:22] Production.INFO: ==15051== Releasing lock... [2025-04-03 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:46:06 [end_date_ymd] => 2025-04-03 04:46:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:46:06' and `end` < '2025-04-03 04: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-03 04:46:18] Production.INFO: count ==710 [2025-04-03 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:46:06 - End Time 2025-04-03 04:46:06 [2025-04-03 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823155', 'tblTempUsageDetail_20' ) start [2025-04-03 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823155', 'tblTempUsageDetail_20' ) end [2025-04-03 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823155', 'tblTempVendorCDR_20' ) start [2025-04-03 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823155', 'tblTempVendorCDR_20' ) end [2025-04-03 04:46:19] Production.INFO: ProcessCDR(1,14823155,1,1,2) [2025-04-03 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823155', 'tblTempUsageDetail_20' ) start [2025-04-03 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823155', 'tblTempUsageDetail_20' ) end [2025-04-03 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:46:22] Production.INFO: ==15124== Releasing lock... [2025-04-03 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:47:06 [end_date_ymd] => 2025-04-03 04:47:06 [RateCDR] => 1 ) [2025-04-03 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:47:06' and `end` < '2025-04-03 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:47:19] Production.INFO: count ==696 [2025-04-03 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:47:06 - End Time 2025-04-03 04:47:06 [2025-04-03 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823160', 'tblTempUsageDetail_20' ) start [2025-04-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823160', 'tblTempUsageDetail_20' ) end [2025-04-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823160', 'tblTempVendorCDR_20' ) start [2025-04-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823160', 'tblTempVendorCDR_20' ) end [2025-04-03 04:47:19] Production.INFO: ProcessCDR(1,14823160,1,1,2) [2025-04-03 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823160', 'tblTempUsageDetail_20' ) start [2025-04-03 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823160', 'tblTempUsageDetail_20' ) end [2025-04-03 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:47:23] Production.INFO: ==15194== Releasing lock... [2025-04-03 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:47:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:48:05 [end_date_ymd] => 2025-04-03 04:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:48:05' and `end` < '2025-04-03 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-03 04:48:18] Production.INFO: count ==696 [2025-04-03 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:48:05 - End Time 2025-04-03 04:48:05 [2025-04-03 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823165', 'tblTempUsageDetail_20' ) start [2025-04-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823165', 'tblTempUsageDetail_20' ) end [2025-04-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823165', 'tblTempVendorCDR_20' ) start [2025-04-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823165', 'tblTempVendorCDR_20' ) end [2025-04-03 04:48:19] Production.INFO: ProcessCDR(1,14823165,1,1,2) [2025-04-03 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823165', 'tblTempUsageDetail_20' ) start [2025-04-03 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823165', 'tblTempUsageDetail_20' ) end [2025-04-03 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:48:22] Production.INFO: ==15267== Releasing lock... [2025-04-03 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:49:05 [end_date_ymd] => 2025-04-03 04:49:05 [RateCDR] => 1 ) [2025-04-03 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 01:49:05' and `end` < '2025-04-03 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 04:49:17] Production.INFO: count ==696 [2025-04-03 04:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:49:05 - End Time 2025-04-03 04:49:05 [2025-04-03 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823170', 'tblTempUsageDetail_20' ) start [2025-04-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823170', 'tblTempUsageDetail_20' ) end [2025-04-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823170', 'tblTempVendorCDR_20' ) start [2025-04-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823170', 'tblTempVendorCDR_20' ) end [2025-04-03 04:49:18] Production.INFO: ProcessCDR(1,14823170,1,1,2) [2025-04-03 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823170', 'tblTempUsageDetail_20' ) start [2025-04-03 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823170', 'tblTempUsageDetail_20' ) end [2025-04-03 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:49:21] Production.INFO: ==15340== Releasing lock... [2025-04-03 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:49:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:50:06 [end_date_ymd] => 2025-04-03 04:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:50:06' and `end` < '2025-04-03 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-03 04:50:21] Production.INFO: count ==685 [2025-04-03 04:50:21] Production.ERROR: pbx CDR StartTime 2025-04-03 01:50:06 - End Time 2025-04-03 04:50:06 [2025-04-03 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823176', 'tblTempUsageDetail_20' ) start [2025-04-03 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823176', 'tblTempUsageDetail_20' ) end [2025-04-03 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823176', 'tblTempVendorCDR_20' ) start [2025-04-03 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823176', 'tblTempVendorCDR_20' ) end [2025-04-03 04:50:21] Production.INFO: ProcessCDR(1,14823176,1,1,2) [2025-04-03 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823176', 'tblTempUsageDetail_20' ) start [2025-04-03 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823176', 'tblTempUsageDetail_20' ) end [2025-04-03 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:50:24] Production.INFO: ==15416== Releasing lock... [2025-04-03 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:50:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:51:05 [end_date_ymd] => 2025-04-03 04:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:51:05' and `end` < '2025-04-03 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-03 04:51:18] Production.INFO: count ==675 [2025-04-03 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:51:05 - End Time 2025-04-03 04:51:05 [2025-04-03 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823181', 'tblTempUsageDetail_20' ) start [2025-04-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823181', 'tblTempUsageDetail_20' ) end [2025-04-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823181', 'tblTempVendorCDR_20' ) start [2025-04-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823181', 'tblTempVendorCDR_20' ) end [2025-04-03 04:51:18] Production.INFO: ProcessCDR(1,14823181,1,1,2) [2025-04-03 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823181', 'tblTempUsageDetail_20' ) start [2025-04-03 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823181', 'tblTempUsageDetail_20' ) end [2025-04-03 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:51:22] Production.INFO: ==15490== Releasing lock... [2025-04-03 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:51:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:52:06 [end_date_ymd] => 2025-04-03 04:52:06 [RateCDR] => 1 ) [2025-04-03 04: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-03 01:52:06' and `end` < '2025-04-03 04: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-03 04:52:19] Production.INFO: count ==667 [2025-04-03 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:52:06 - End Time 2025-04-03 04:52:06 [2025-04-03 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823186', 'tblTempUsageDetail_20' ) start [2025-04-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823186', 'tblTempUsageDetail_20' ) end [2025-04-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823186', 'tblTempVendorCDR_20' ) start [2025-04-03 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823186', 'tblTempVendorCDR_20' ) end [2025-04-03 04:52:19] Production.INFO: ProcessCDR(1,14823186,1,1,2) [2025-04-03 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823186', 'tblTempUsageDetail_20' ) start [2025-04-03 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823186', 'tblTempUsageDetail_20' ) end [2025-04-03 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:52:23] Production.INFO: ==15562== Releasing lock... [2025-04-03 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:53:05 [end_date_ymd] => 2025-04-03 04:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:53:05' and `end` < '2025-04-03 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-03 04:53:18] Production.INFO: count ==657 [2025-04-03 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:53:05 - End Time 2025-04-03 04:53:05 [2025-04-03 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823191', 'tblTempUsageDetail_20' ) start [2025-04-03 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823191', 'tblTempUsageDetail_20' ) end [2025-04-03 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823191', 'tblTempVendorCDR_20' ) start [2025-04-03 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823191', 'tblTempVendorCDR_20' ) end [2025-04-03 04:53:19] Production.INFO: ProcessCDR(1,14823191,1,1,2) [2025-04-03 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823191', 'tblTempUsageDetail_20' ) start [2025-04-03 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823191', 'tblTempUsageDetail_20' ) end [2025-04-03 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:53:22] Production.INFO: ==15650== Releasing lock... [2025-04-03 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:54:05 [end_date_ymd] => 2025-04-03 04:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:54:05' and `end` < '2025-04-03 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-03 04:54:19] Production.INFO: count ==653 [2025-04-03 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:54:05 - End Time 2025-04-03 04:54:05 [2025-04-03 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823196', 'tblTempUsageDetail_20' ) start [2025-04-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823196', 'tblTempUsageDetail_20' ) end [2025-04-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823196', 'tblTempVendorCDR_20' ) start [2025-04-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823196', 'tblTempVendorCDR_20' ) end [2025-04-03 04:54:19] Production.INFO: ProcessCDR(1,14823196,1,1,2) [2025-04-03 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823196', 'tblTempUsageDetail_20' ) start [2025-04-03 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823196', 'tblTempUsageDetail_20' ) end [2025-04-03 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:54:22] Production.INFO: ==15722== Releasing lock... [2025-04-03 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:55:05 [end_date_ymd] => 2025-04-03 04:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:55:05' and `end` < '2025-04-03 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-03 04:55:18] Production.INFO: count ==640 [2025-04-03 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:55:05 - End Time 2025-04-03 04:55:05 [2025-04-03 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823201', 'tblTempUsageDetail_20' ) start [2025-04-03 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823201', 'tblTempUsageDetail_20' ) end [2025-04-03 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823201', 'tblTempVendorCDR_20' ) start [2025-04-03 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823201', 'tblTempVendorCDR_20' ) end [2025-04-03 04:55:18] Production.INFO: ProcessCDR(1,14823201,1,1,2) [2025-04-03 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823201', 'tblTempUsageDetail_20' ) start [2025-04-03 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823201', 'tblTempUsageDetail_20' ) end [2025-04-03 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:55:22] Production.INFO: ==15831== Releasing lock... [2025-04-03 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:56:05 [end_date_ymd] => 2025-04-03 04:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:56:05' and `end` < '2025-04-03 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-03 04:56:18] Production.INFO: count ==637 [2025-04-03 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:56:05 - End Time 2025-04-03 04:56:05 [2025-04-03 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823206', 'tblTempUsageDetail_20' ) start [2025-04-03 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823206', 'tblTempUsageDetail_20' ) end [2025-04-03 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823206', 'tblTempVendorCDR_20' ) start [2025-04-03 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823206', 'tblTempVendorCDR_20' ) end [2025-04-03 04:56:19] Production.INFO: ProcessCDR(1,14823206,1,1,2) [2025-04-03 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823206', 'tblTempUsageDetail_20' ) start [2025-04-03 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823206', 'tblTempUsageDetail_20' ) end [2025-04-03 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:56:22] Production.INFO: ==15906== Releasing lock... [2025-04-03 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:56:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:57:05 [end_date_ymd] => 2025-04-03 04:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:57:05' and `end` < '2025-04-03 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-03 04:57:18] Production.INFO: count ==633 [2025-04-03 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:57:05 - End Time 2025-04-03 04:57:05 [2025-04-03 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823211', 'tblTempUsageDetail_20' ) start [2025-04-03 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823211', 'tblTempUsageDetail_20' ) end [2025-04-03 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823211', 'tblTempVendorCDR_20' ) start [2025-04-03 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823211', 'tblTempVendorCDR_20' ) end [2025-04-03 04:57:18] Production.INFO: ProcessCDR(1,14823211,1,1,2) [2025-04-03 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823211', 'tblTempUsageDetail_20' ) start [2025-04-03 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823211', 'tblTempUsageDetail_20' ) end [2025-04-03 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:57:22] Production.INFO: ==15982== Releasing lock... [2025-04-03 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:58:06 [end_date_ymd] => 2025-04-03 04:58:06 [RateCDR] => 1 ) [2025-04-03 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-03 01:58:06' and `end` < '2025-04-03 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-03 04:58:19] Production.INFO: count ==618 [2025-04-03 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 01:58:06 - End Time 2025-04-03 04:58:06 [2025-04-03 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823216', 'tblTempUsageDetail_20' ) start [2025-04-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823216', 'tblTempUsageDetail_20' ) end [2025-04-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823216', 'tblTempVendorCDR_20' ) start [2025-04-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823216', 'tblTempVendorCDR_20' ) end [2025-04-03 04:58:19] Production.INFO: ProcessCDR(1,14823216,1,1,2) [2025-04-03 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823216', 'tblTempUsageDetail_20' ) start [2025-04-03 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823216', 'tblTempUsageDetail_20' ) end [2025-04-03 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:58:23] Production.INFO: ==16053== Releasing lock... [2025-04-03 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:58:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 01:59:05 [end_date_ymd] => 2025-04-03 04:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 01:59:05' and `end` < '2025-04-03 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-03 04:59:18] Production.INFO: count ==607 [2025-04-03 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 01:59:05 - End Time 2025-04-03 04:59:05 [2025-04-03 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823221', 'tblTempUsageDetail_20' ) start [2025-04-03 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823221', 'tblTempUsageDetail_20' ) end [2025-04-03 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823221', 'tblTempVendorCDR_20' ) start [2025-04-03 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823221', 'tblTempVendorCDR_20' ) end [2025-04-03 04:59:18] Production.INFO: ProcessCDR(1,14823221,1,1,2) [2025-04-03 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823221', 'tblTempUsageDetail_20' ) start [2025-04-03 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823221', 'tblTempUsageDetail_20' ) end [2025-04-03 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 04:59:21] Production.INFO: ==16123== Releasing lock... [2025-04-03 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 04:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:00:07 [end_date_ymd] => 2025-04-03 05:00:07 [RateCDR] => 1 ) [2025-04-03 05:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:00:07' and `end` < '2025-04-03 05:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:00:21] Production.INFO: count ==598 [2025-04-03 05:00:21] Production.ERROR: pbx CDR StartTime 2025-04-03 02:00:07 - End Time 2025-04-03 05:00:07 [2025-04-03 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823227', 'tblTempUsageDetail_20' ) start [2025-04-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823227', 'tblTempUsageDetail_20' ) end [2025-04-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823227', 'tblTempVendorCDR_20' ) start [2025-04-03 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823227', 'tblTempVendorCDR_20' ) end [2025-04-03 05:00:21] Production.INFO: ProcessCDR(1,14823227,1,1,2) [2025-04-03 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823227', 'tblTempUsageDetail_20' ) start [2025-04-03 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823227', 'tblTempUsageDetail_20' ) end [2025-04-03 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:00:24] Production.INFO: ==16197== Releasing lock... [2025-04-03 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:00:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:01:05 [end_date_ymd] => 2025-04-03 05:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:01:05' and `end` < '2025-04-03 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-03 05:01:18] Production.INFO: count ==580 [2025-04-03 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:01:05 - End Time 2025-04-03 05:01:05 [2025-04-03 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823232', 'tblTempUsageDetail_20' ) start [2025-04-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823232', 'tblTempUsageDetail_20' ) end [2025-04-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823232', 'tblTempVendorCDR_20' ) start [2025-04-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823232', 'tblTempVendorCDR_20' ) end [2025-04-03 05:01:18] Production.INFO: ProcessCDR(1,14823232,1,1,2) [2025-04-03 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823232', 'tblTempUsageDetail_20' ) start [2025-04-03 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823232', 'tblTempUsageDetail_20' ) end [2025-04-03 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:01:21] Production.INFO: ==16285== Releasing lock... [2025-04-03 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:01:21] Production.INFO: 33 MB #Memory Used# [2025-04-03 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:02:05 [end_date_ymd] => 2025-04-03 05:02:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:02:05' and `end` < '2025-04-03 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-03 05:02:20] Production.INFO: count ==572 [2025-04-03 05:02:20] Production.ERROR: pbx CDR StartTime 2025-04-03 02:02:05 - End Time 2025-04-03 05:02:05 [2025-04-03 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823237', 'tblTempUsageDetail_20' ) start [2025-04-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823237', 'tblTempUsageDetail_20' ) end [2025-04-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823237', 'tblTempVendorCDR_20' ) start [2025-04-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823237', 'tblTempVendorCDR_20' ) end [2025-04-03 05:02:20] Production.INFO: ProcessCDR(1,14823237,1,1,2) [2025-04-03 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823237', 'tblTempUsageDetail_20' ) start [2025-04-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823237', 'tblTempUsageDetail_20' ) end [2025-04-03 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:02:23] Production.INFO: ==16358== Releasing lock... [2025-04-03 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:02:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:03:05 [end_date_ymd] => 2025-04-03 05:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:03:05' and `end` < '2025-04-03 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-03 05:03:18] Production.INFO: count ==564 [2025-04-03 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:03:05 - End Time 2025-04-03 05:03:05 [2025-04-03 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823242', 'tblTempUsageDetail_20' ) start [2025-04-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823242', 'tblTempUsageDetail_20' ) end [2025-04-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823242', 'tblTempVendorCDR_20' ) start [2025-04-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823242', 'tblTempVendorCDR_20' ) end [2025-04-03 05:03:18] Production.INFO: ProcessCDR(1,14823242,1,1,2) [2025-04-03 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823242', 'tblTempUsageDetail_20' ) start [2025-04-03 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823242', 'tblTempUsageDetail_20' ) end [2025-04-03 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:03:22] Production.INFO: ==16427== Releasing lock... [2025-04-03 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:03:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:04:06 [end_date_ymd] => 2025-04-03 05:04:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:04:06' and `end` < '2025-04-03 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-03 05:04:18] Production.INFO: count ==561 [2025-04-03 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:04:06 - End Time 2025-04-03 05:04:06 [2025-04-03 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823247', 'tblTempUsageDetail_20' ) start [2025-04-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823247', 'tblTempUsageDetail_20' ) end [2025-04-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823247', 'tblTempVendorCDR_20' ) start [2025-04-03 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823247', 'tblTempVendorCDR_20' ) end [2025-04-03 05:04:18] Production.INFO: ProcessCDR(1,14823247,1,1,2) [2025-04-03 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823247', 'tblTempUsageDetail_20' ) start [2025-04-03 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823247', 'tblTempUsageDetail_20' ) end [2025-04-03 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:04:22] Production.INFO: ==16500== Releasing lock... [2025-04-03 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:04:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:05:05 [end_date_ymd] => 2025-04-03 05:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:05:05' and `end` < '2025-04-03 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-03 05:05:18] Production.INFO: count ==554 [2025-04-03 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:05:05 - End Time 2025-04-03 05:05:05 [2025-04-03 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823252', 'tblTempUsageDetail_20' ) start [2025-04-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823252', 'tblTempUsageDetail_20' ) end [2025-04-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823252', 'tblTempVendorCDR_20' ) start [2025-04-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823252', 'tblTempVendorCDR_20' ) end [2025-04-03 05:05:18] Production.INFO: ProcessCDR(1,14823252,1,1,2) [2025-04-03 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823252', 'tblTempUsageDetail_20' ) start [2025-04-03 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823252', 'tblTempUsageDetail_20' ) end [2025-04-03 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:05:21] Production.INFO: ==16572== Releasing lock... [2025-04-03 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:06:05 [end_date_ymd] => 2025-04-03 05:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:06:05' and `end` < '2025-04-03 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-03 05:06:18] Production.INFO: count ==545 [2025-04-03 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:06:05 - End Time 2025-04-03 05:06:05 [2025-04-03 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823257', 'tblTempUsageDetail_20' ) start [2025-04-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823257', 'tblTempUsageDetail_20' ) end [2025-04-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823257', 'tblTempVendorCDR_20' ) start [2025-04-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823257', 'tblTempVendorCDR_20' ) end [2025-04-03 05:06:18] Production.INFO: ProcessCDR(1,14823257,1,1,2) [2025-04-03 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823257', 'tblTempUsageDetail_20' ) start [2025-04-03 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823257', 'tblTempUsageDetail_20' ) end [2025-04-03 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:06:22] Production.INFO: ==16647== Releasing lock... [2025-04-03 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:07:05 [end_date_ymd] => 2025-04-03 05:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:07:05' and `end` < '2025-04-03 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-03 05:07:17] Production.INFO: count ==532 [2025-04-03 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:07:05 - End Time 2025-04-03 05:07:05 [2025-04-03 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823262', 'tblTempUsageDetail_20' ) start [2025-04-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823262', 'tblTempUsageDetail_20' ) end [2025-04-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823262', 'tblTempVendorCDR_20' ) start [2025-04-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823262', 'tblTempVendorCDR_20' ) end [2025-04-03 05:07:18] Production.INFO: ProcessCDR(1,14823262,1,1,2) [2025-04-03 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823262', 'tblTempUsageDetail_20' ) start [2025-04-03 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823262', 'tblTempUsageDetail_20' ) end [2025-04-03 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:07:21] Production.INFO: ==16717== Releasing lock... [2025-04-03 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:08:06 [end_date_ymd] => 2025-04-03 05:08:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:08:06' and `end` < '2025-04-03 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-03 05:08:18] Production.INFO: count ==532 [2025-04-03 05:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:08:06 - End Time 2025-04-03 05:08:06 [2025-04-03 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823267', 'tblTempUsageDetail_20' ) start [2025-04-03 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823267', 'tblTempUsageDetail_20' ) end [2025-04-03 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823267', 'tblTempVendorCDR_20' ) start [2025-04-03 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823267', 'tblTempVendorCDR_20' ) end [2025-04-03 05:08:19] Production.INFO: ProcessCDR(1,14823267,1,1,2) [2025-04-03 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823267', 'tblTempUsageDetail_20' ) start [2025-04-03 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823267', 'tblTempUsageDetail_20' ) end [2025-04-03 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:08:22] Production.INFO: ==16791== Releasing lock... [2025-04-03 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:08:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:09:05 [end_date_ymd] => 2025-04-03 05:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:09:05' and `end` < '2025-04-03 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-03 05:09:18] Production.INFO: count ==519 [2025-04-03 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:09:05 - End Time 2025-04-03 05:09:05 [2025-04-03 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823272', 'tblTempUsageDetail_20' ) start [2025-04-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823272', 'tblTempUsageDetail_20' ) end [2025-04-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823272', 'tblTempVendorCDR_20' ) start [2025-04-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823272', 'tblTempVendorCDR_20' ) end [2025-04-03 05:09:18] Production.INFO: ProcessCDR(1,14823272,1,1,2) [2025-04-03 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823272', 'tblTempUsageDetail_20' ) start [2025-04-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823272', 'tblTempUsageDetail_20' ) end [2025-04-03 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:09:21] Production.INFO: ==16860== Releasing lock... [2025-04-03 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:09:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:10:07 [end_date_ymd] => 2025-04-03 05:10:07 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:10:07' and `end` < '2025-04-03 05: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-03 05:10:19] Production.INFO: count ==505 [2025-04-03 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:10:07 - End Time 2025-04-03 05:10:07 [2025-04-03 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823277', 'tblTempUsageDetail_20' ) start [2025-04-03 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823277', 'tblTempUsageDetail_20' ) end [2025-04-03 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823277', 'tblTempVendorCDR_20' ) start [2025-04-03 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823277', 'tblTempVendorCDR_20' ) end [2025-04-03 05:10:20] Production.INFO: ProcessCDR(1,14823277,1,1,2) [2025-04-03 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823277', 'tblTempUsageDetail_20' ) start [2025-04-03 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823277', 'tblTempUsageDetail_20' ) end [2025-04-03 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:10:23] Production.INFO: ==16973== Releasing lock... [2025-04-03 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:10:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:11:05 [end_date_ymd] => 2025-04-03 05:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:11:05' and `end` < '2025-04-03 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-03 05:11:17] Production.INFO: count ==485 [2025-04-03 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:11:05 - End Time 2025-04-03 05:11:05 [2025-04-03 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823283', 'tblTempUsageDetail_20' ) start [2025-04-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823283', 'tblTempUsageDetail_20' ) end [2025-04-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823283', 'tblTempVendorCDR_20' ) start [2025-04-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823283', 'tblTempVendorCDR_20' ) end [2025-04-03 05:11:18] Production.INFO: ProcessCDR(1,14823283,1,1,2) [2025-04-03 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823283', 'tblTempUsageDetail_20' ) start [2025-04-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823283', 'tblTempUsageDetail_20' ) end [2025-04-03 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:11:21] Production.INFO: ==17048== Releasing lock... [2025-04-03 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:12:06 [end_date_ymd] => 2025-04-03 05:12:06 [RateCDR] => 1 ) [2025-04-03 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:12:06' and `end` < '2025-04-03 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:12:19] Production.INFO: count ==483 [2025-04-03 05:12:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:12:06 - End Time 2025-04-03 05:12:06 [2025-04-03 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823288', 'tblTempUsageDetail_20' ) start [2025-04-03 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823288', 'tblTempUsageDetail_20' ) end [2025-04-03 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823288', 'tblTempVendorCDR_20' ) start [2025-04-03 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823288', 'tblTempVendorCDR_20' ) end [2025-04-03 05:12:19] Production.INFO: ProcessCDR(1,14823288,1,1,2) [2025-04-03 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823288', 'tblTempUsageDetail_20' ) start [2025-04-03 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823288', 'tblTempUsageDetail_20' ) end [2025-04-03 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:12:22] Production.INFO: ==17121== Releasing lock... [2025-04-03 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:12:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:13:05 [end_date_ymd] => 2025-04-03 05:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:13:05' and `end` < '2025-04-03 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-03 05:13:18] Production.INFO: count ==482 [2025-04-03 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:13:05 - End Time 2025-04-03 05:13:05 [2025-04-03 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823293', 'tblTempUsageDetail_20' ) start [2025-04-03 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823293', 'tblTempUsageDetail_20' ) end [2025-04-03 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823293', 'tblTempVendorCDR_20' ) start [2025-04-03 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823293', 'tblTempVendorCDR_20' ) end [2025-04-03 05:13:18] Production.INFO: ProcessCDR(1,14823293,1,1,2) [2025-04-03 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823293', 'tblTempUsageDetail_20' ) start [2025-04-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823293', 'tblTempUsageDetail_20' ) end [2025-04-03 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:13:22] Production.INFO: ==17191== Releasing lock... [2025-04-03 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:14:05 [end_date_ymd] => 2025-04-03 05:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:14:05' and `end` < '2025-04-03 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-03 05:14:18] Production.INFO: count ==483 [2025-04-03 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:14:05 - End Time 2025-04-03 05:14:05 [2025-04-03 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823298', 'tblTempUsageDetail_20' ) start [2025-04-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823298', 'tblTempUsageDetail_20' ) end [2025-04-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823298', 'tblTempVendorCDR_20' ) start [2025-04-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823298', 'tblTempVendorCDR_20' ) end [2025-04-03 05:14:18] Production.INFO: ProcessCDR(1,14823298,1,1,2) [2025-04-03 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823298', 'tblTempUsageDetail_20' ) start [2025-04-03 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823298', 'tblTempUsageDetail_20' ) end [2025-04-03 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:14:22] Production.INFO: ==17262== Releasing lock... [2025-04-03 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:15:05 [end_date_ymd] => 2025-04-03 05:15:05 [RateCDR] => 1 ) [2025-04-03 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:15:05' and `end` < '2025-04-03 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:15:18] Production.INFO: count ==483 [2025-04-03 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:15:05 - End Time 2025-04-03 05:15:05 [2025-04-03 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823303', 'tblTempUsageDetail_20' ) start [2025-04-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823303', 'tblTempUsageDetail_20' ) end [2025-04-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823303', 'tblTempVendorCDR_20' ) start [2025-04-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823303', 'tblTempVendorCDR_20' ) end [2025-04-03 05:15:18] Production.INFO: ProcessCDR(1,14823303,1,1,2) [2025-04-03 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823303', 'tblTempUsageDetail_20' ) start [2025-04-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823303', 'tblTempUsageDetail_20' ) end [2025-04-03 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:15:21] Production.INFO: ==17333== Releasing lock... [2025-04-03 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:16:05 [end_date_ymd] => 2025-04-03 05:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:16:05' and `end` < '2025-04-03 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-03 05:16:18] Production.INFO: count ==483 [2025-04-03 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:16:05 - End Time 2025-04-03 05:16:05 [2025-04-03 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823308', 'tblTempUsageDetail_20' ) start [2025-04-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823308', 'tblTempUsageDetail_20' ) end [2025-04-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823308', 'tblTempVendorCDR_20' ) start [2025-04-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823308', 'tblTempVendorCDR_20' ) end [2025-04-03 05:16:18] Production.INFO: ProcessCDR(1,14823308,1,1,2) [2025-04-03 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823308', 'tblTempUsageDetail_20' ) start [2025-04-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823308', 'tblTempUsageDetail_20' ) end [2025-04-03 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:16:21] Production.INFO: ==17406== Releasing lock... [2025-04-03 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:17:05 [end_date_ymd] => 2025-04-03 05:17:05 [RateCDR] => 1 ) [2025-04-03 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:17:05' and `end` < '2025-04-03 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:17:18] Production.INFO: count ==483 [2025-04-03 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:17:05 - End Time 2025-04-03 05:17:05 [2025-04-03 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823313', 'tblTempUsageDetail_20' ) start [2025-04-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823313', 'tblTempUsageDetail_20' ) end [2025-04-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823313', 'tblTempVendorCDR_20' ) start [2025-04-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823313', 'tblTempVendorCDR_20' ) end [2025-04-03 05:17:18] Production.INFO: ProcessCDR(1,14823313,1,1,2) [2025-04-03 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823313', 'tblTempUsageDetail_20' ) start [2025-04-03 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823313', 'tblTempUsageDetail_20' ) end [2025-04-03 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:17:21] Production.INFO: ==17481== Releasing lock... [2025-04-03 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:18:06 [end_date_ymd] => 2025-04-03 05:18:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:18:06' and `end` < '2025-04-03 05: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-03 05:18:18] Production.INFO: count ==483 [2025-04-03 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:18:06 - End Time 2025-04-03 05:18:06 [2025-04-03 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823318', 'tblTempUsageDetail_20' ) start [2025-04-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823318', 'tblTempUsageDetail_20' ) end [2025-04-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823318', 'tblTempVendorCDR_20' ) start [2025-04-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823318', 'tblTempVendorCDR_20' ) end [2025-04-03 05:18:18] Production.INFO: ProcessCDR(1,14823318,1,1,2) [2025-04-03 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823318', 'tblTempUsageDetail_20' ) start [2025-04-03 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823318', 'tblTempUsageDetail_20' ) end [2025-04-03 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:18:22] Production.INFO: ==17562== Releasing lock... [2025-04-03 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:19:05 [end_date_ymd] => 2025-04-03 05:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:19:05' and `end` < '2025-04-03 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-03 05:19:18] Production.INFO: count ==483 [2025-04-03 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:19:05 - End Time 2025-04-03 05:19:05 [2025-04-03 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823323', 'tblTempUsageDetail_20' ) start [2025-04-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823323', 'tblTempUsageDetail_20' ) end [2025-04-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823323', 'tblTempVendorCDR_20' ) start [2025-04-03 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823323', 'tblTempVendorCDR_20' ) end [2025-04-03 05:19:18] Production.INFO: ProcessCDR(1,14823323,1,1,2) [2025-04-03 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823323', 'tblTempUsageDetail_20' ) start [2025-04-03 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823323', 'tblTempUsageDetail_20' ) end [2025-04-03 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:19:21] Production.INFO: ==17640== Releasing lock... [2025-04-03 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:20:06 [end_date_ymd] => 2025-04-03 05:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:20:06' and `end` < '2025-04-03 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-03 05:20:19] Production.INFO: count ==488 [2025-04-03 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:20:06 - End Time 2025-04-03 05:20:06 [2025-04-03 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823329', 'tblTempUsageDetail_20' ) start [2025-04-03 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823329', 'tblTempUsageDetail_20' ) end [2025-04-03 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823329', 'tblTempVendorCDR_20' ) start [2025-04-03 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823329', 'tblTempVendorCDR_20' ) end [2025-04-03 05:20:19] Production.INFO: ProcessCDR(1,14823329,1,1,2) [2025-04-03 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823329', 'tblTempUsageDetail_20' ) start [2025-04-03 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823329', 'tblTempUsageDetail_20' ) end [2025-04-03 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:20:23] Production.INFO: ==17715== Releasing lock... [2025-04-03 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:20:23] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:21:05 [end_date_ymd] => 2025-04-03 05:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:21:05' and `end` < '2025-04-03 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-03 05:21:18] Production.INFO: count ==488 [2025-04-03 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:21:05 - End Time 2025-04-03 05:21:05 [2025-04-03 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823334', 'tblTempUsageDetail_20' ) start [2025-04-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823334', 'tblTempUsageDetail_20' ) end [2025-04-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823334', 'tblTempVendorCDR_20' ) start [2025-04-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823334', 'tblTempVendorCDR_20' ) end [2025-04-03 05:21:18] Production.INFO: ProcessCDR(1,14823334,1,1,2) [2025-04-03 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823334', 'tblTempUsageDetail_20' ) start [2025-04-03 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823334', 'tblTempUsageDetail_20' ) end [2025-04-03 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:21:21] Production.INFO: ==17789== Releasing lock... [2025-04-03 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:22:06 [end_date_ymd] => 2025-04-03 05:22:06 [RateCDR] => 1 ) [2025-04-03 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:22:06' and `end` < '2025-04-03 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:22:18] Production.INFO: count ==488 [2025-04-03 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:22:06 - End Time 2025-04-03 05:22:06 [2025-04-03 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823339', 'tblTempUsageDetail_20' ) start [2025-04-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823339', 'tblTempUsageDetail_20' ) end [2025-04-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823339', 'tblTempVendorCDR_20' ) start [2025-04-03 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823339', 'tblTempVendorCDR_20' ) end [2025-04-03 05:22:18] Production.INFO: ProcessCDR(1,14823339,1,1,2) [2025-04-03 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823339', 'tblTempUsageDetail_20' ) start [2025-04-03 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823339', 'tblTempUsageDetail_20' ) end [2025-04-03 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:22:22] Production.INFO: ==17865== Releasing lock... [2025-04-03 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:22:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:23:05 [end_date_ymd] => 2025-04-03 05:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:23:05' and `end` < '2025-04-03 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-03 05:23:17] Production.INFO: count ==488 [2025-04-03 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:23:05 - End Time 2025-04-03 05:23:05 [2025-04-03 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823344', 'tblTempUsageDetail_20' ) start [2025-04-03 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823344', 'tblTempUsageDetail_20' ) end [2025-04-03 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823344', 'tblTempVendorCDR_20' ) start [2025-04-03 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823344', 'tblTempVendorCDR_20' ) end [2025-04-03 05:23:18] Production.INFO: ProcessCDR(1,14823344,1,1,2) [2025-04-03 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823344', 'tblTempUsageDetail_20' ) start [2025-04-03 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823344', 'tblTempUsageDetail_20' ) end [2025-04-03 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:23:21] Production.INFO: ==17942== Releasing lock... [2025-04-03 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:23:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:24:05 [end_date_ymd] => 2025-04-03 05:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:24:05' and `end` < '2025-04-03 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-03 05:24:18] Production.INFO: count ==486 [2025-04-03 05:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:24:05 - End Time 2025-04-03 05:24:05 [2025-04-03 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823349', 'tblTempUsageDetail_20' ) start [2025-04-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823349', 'tblTempUsageDetail_20' ) end [2025-04-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823349', 'tblTempVendorCDR_20' ) start [2025-04-03 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823349', 'tblTempVendorCDR_20' ) end [2025-04-03 05:24:18] Production.INFO: ProcessCDR(1,14823349,1,1,2) [2025-04-03 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823349', 'tblTempUsageDetail_20' ) start [2025-04-03 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823349', 'tblTempUsageDetail_20' ) end [2025-04-03 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:24:21] Production.INFO: ==18012== Releasing lock... [2025-04-03 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:25:05 [end_date_ymd] => 2025-04-03 05:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:25:05' and `end` < '2025-04-03 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-03 05:25:17] Production.INFO: count ==483 [2025-04-03 05:25:17] Production.ERROR: pbx CDR StartTime 2025-04-03 02:25:05 - End Time 2025-04-03 05:25:05 [2025-04-03 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823354', 'tblTempUsageDetail_20' ) start [2025-04-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823354', 'tblTempUsageDetail_20' ) end [2025-04-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823354', 'tblTempVendorCDR_20' ) start [2025-04-03 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823354', 'tblTempVendorCDR_20' ) end [2025-04-03 05:25:17] Production.INFO: ProcessCDR(1,14823354,1,1,2) [2025-04-03 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823354', 'tblTempUsageDetail_20' ) start [2025-04-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823354', 'tblTempUsageDetail_20' ) end [2025-04-03 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:25:21] Production.INFO: ==18086== Releasing lock... [2025-04-03 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:26:06 [end_date_ymd] => 2025-04-03 05:26:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:26:06' and `end` < '2025-04-03 05: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-03 05:26:18] Production.INFO: count ==479 [2025-04-03 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:26:06 - End Time 2025-04-03 05:26:06 [2025-04-03 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823359', 'tblTempUsageDetail_20' ) start [2025-04-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823359', 'tblTempUsageDetail_20' ) end [2025-04-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823359', 'tblTempVendorCDR_20' ) start [2025-04-03 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823359', 'tblTempVendorCDR_20' ) end [2025-04-03 05:26:18] Production.INFO: ProcessCDR(1,14823359,1,1,2) [2025-04-03 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823359', 'tblTempUsageDetail_20' ) start [2025-04-03 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823359', 'tblTempUsageDetail_20' ) end [2025-04-03 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:26:22] Production.INFO: ==18204== Releasing lock... [2025-04-03 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:26:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:27:05 [end_date_ymd] => 2025-04-03 05:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:27:05' and `end` < '2025-04-03 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-03 05:27:17] Production.INFO: count ==479 [2025-04-03 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:27:05 - End Time 2025-04-03 05:27:05 [2025-04-03 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823364', 'tblTempUsageDetail_20' ) start [2025-04-03 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823364', 'tblTempUsageDetail_20' ) end [2025-04-03 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823364', 'tblTempVendorCDR_20' ) start [2025-04-03 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823364', 'tblTempVendorCDR_20' ) end [2025-04-03 05:27:18] Production.INFO: ProcessCDR(1,14823364,1,1,2) [2025-04-03 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823364', 'tblTempUsageDetail_20' ) start [2025-04-03 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823364', 'tblTempUsageDetail_20' ) end [2025-04-03 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:27:21] Production.INFO: ==18277== Releasing lock... [2025-04-03 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:27:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:28:05 [end_date_ymd] => 2025-04-03 05:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:28:05' and `end` < '2025-04-03 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-03 05:28:18] Production.INFO: count ==479 [2025-04-03 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:28:05 - End Time 2025-04-03 05:28:05 [2025-04-03 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823369', 'tblTempUsageDetail_20' ) start [2025-04-03 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823369', 'tblTempUsageDetail_20' ) end [2025-04-03 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823369', 'tblTempVendorCDR_20' ) start [2025-04-03 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823369', 'tblTempVendorCDR_20' ) end [2025-04-03 05:28:18] Production.INFO: ProcessCDR(1,14823369,1,1,2) [2025-04-03 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823369', 'tblTempUsageDetail_20' ) start [2025-04-03 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823369', 'tblTempUsageDetail_20' ) end [2025-04-03 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:28:21] Production.INFO: ==18347== Releasing lock... [2025-04-03 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:28:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:29:05 [end_date_ymd] => 2025-04-03 05:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:29:05' and `end` < '2025-04-03 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-03 05:29:17] Production.INFO: count ==479 [2025-04-03 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:29:05 - End Time 2025-04-03 05:29:05 [2025-04-03 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823374', 'tblTempUsageDetail_20' ) start [2025-04-03 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823374', 'tblTempUsageDetail_20' ) end [2025-04-03 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823374', 'tblTempVendorCDR_20' ) start [2025-04-03 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823374', 'tblTempVendorCDR_20' ) end [2025-04-03 05:29:18] Production.INFO: ProcessCDR(1,14823374,1,1,2) [2025-04-03 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823374', 'tblTempUsageDetail_20' ) start [2025-04-03 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823374', 'tblTempUsageDetail_20' ) end [2025-04-03 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:29:21] Production.INFO: ==18418== Releasing lock... [2025-04-03 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:30:06 [end_date_ymd] => 2025-04-03 05:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:30:06' and `end` < '2025-04-03 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-03 05:30:19] Production.INFO: count ==477 [2025-04-03 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:30:06 - End Time 2025-04-03 05:30:06 [2025-04-03 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823380', 'tblTempUsageDetail_20' ) start [2025-04-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823380', 'tblTempUsageDetail_20' ) end [2025-04-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823380', 'tblTempVendorCDR_20' ) start [2025-04-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823380', 'tblTempVendorCDR_20' ) end [2025-04-03 05:30:19] Production.INFO: ProcessCDR(1,14823380,1,1,2) [2025-04-03 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823380', 'tblTempUsageDetail_20' ) start [2025-04-03 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823380', 'tblTempUsageDetail_20' ) end [2025-04-03 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:30:23] Production.INFO: ==18491== Releasing lock... [2025-04-03 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:30:23] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:31:05 [end_date_ymd] => 2025-04-03 05:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:31:05' and `end` < '2025-04-03 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-03 05:31:17] Production.INFO: count ==477 [2025-04-03 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-03 02:31:05 - End Time 2025-04-03 05:31:05 [2025-04-03 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823385', 'tblTempUsageDetail_20' ) start [2025-04-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823385', 'tblTempUsageDetail_20' ) end [2025-04-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823385', 'tblTempVendorCDR_20' ) start [2025-04-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823385', 'tblTempVendorCDR_20' ) end [2025-04-03 05:31:17] Production.INFO: ProcessCDR(1,14823385,1,1,2) [2025-04-03 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823385', 'tblTempUsageDetail_20' ) start [2025-04-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823385', 'tblTempUsageDetail_20' ) end [2025-04-03 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:31:21] Production.INFO: ==18565== Releasing lock... [2025-04-03 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:31:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:32:06 [end_date_ymd] => 2025-04-03 05:32:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:32:06' and `end` < '2025-04-03 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-03 05:32:19] Production.INFO: count ==477 [2025-04-03 05:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:32:06 - End Time 2025-04-03 05:32:06 [2025-04-03 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823390', 'tblTempUsageDetail_20' ) start [2025-04-03 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823390', 'tblTempUsageDetail_20' ) end [2025-04-03 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823390', 'tblTempVendorCDR_20' ) start [2025-04-03 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823390', 'tblTempVendorCDR_20' ) end [2025-04-03 05:32:19] Production.INFO: ProcessCDR(1,14823390,1,1,2) [2025-04-03 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823390', 'tblTempUsageDetail_20' ) start [2025-04-03 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823390', 'tblTempUsageDetail_20' ) end [2025-04-03 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:32:22] Production.INFO: ==18637== Releasing lock... [2025-04-03 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:32:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:33:05 [end_date_ymd] => 2025-04-03 05:33:05 [RateCDR] => 1 ) [2025-04-03 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:33:05' and `end` < '2025-04-03 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:33:17] Production.INFO: count ==477 [2025-04-03 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-03 02:33:05 - End Time 2025-04-03 05:33:05 [2025-04-03 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823395', 'tblTempUsageDetail_20' ) start [2025-04-03 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823395', 'tblTempUsageDetail_20' ) end [2025-04-03 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823395', 'tblTempVendorCDR_20' ) start [2025-04-03 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823395', 'tblTempVendorCDR_20' ) end [2025-04-03 05:33:17] Production.INFO: ProcessCDR(1,14823395,1,1,2) [2025-04-03 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823395', 'tblTempUsageDetail_20' ) start [2025-04-03 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823395', 'tblTempUsageDetail_20' ) end [2025-04-03 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:33:21] Production.INFO: ==18709== Releasing lock... [2025-04-03 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:33:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:34:05 [end_date_ymd] => 2025-04-03 05:34:05 [RateCDR] => 1 ) [2025-04-03 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:34:05' and `end` < '2025-04-03 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:34:18] Production.INFO: count ==473 [2025-04-03 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:34:05 - End Time 2025-04-03 05:34:05 [2025-04-03 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823400', 'tblTempUsageDetail_20' ) start [2025-04-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823400', 'tblTempUsageDetail_20' ) end [2025-04-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823400', 'tblTempVendorCDR_20' ) start [2025-04-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823400', 'tblTempVendorCDR_20' ) end [2025-04-03 05:34:18] Production.INFO: ProcessCDR(1,14823400,1,1,2) [2025-04-03 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823400', 'tblTempUsageDetail_20' ) start [2025-04-03 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823400', 'tblTempUsageDetail_20' ) end [2025-04-03 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:34:22] Production.INFO: ==18784== Releasing lock... [2025-04-03 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:35:06 [end_date_ymd] => 2025-04-03 05:35:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:35:06' and `end` < '2025-04-03 05: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-03 05:35:19] Production.INFO: count ==469 [2025-04-03 05:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:35:06 - End Time 2025-04-03 05:35:06 [2025-04-03 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823405', 'tblTempUsageDetail_20' ) start [2025-04-03 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823405', 'tblTempUsageDetail_20' ) end [2025-04-03 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823405', 'tblTempVendorCDR_20' ) start [2025-04-03 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823405', 'tblTempVendorCDR_20' ) end [2025-04-03 05:35:19] Production.INFO: ProcessCDR(1,14823405,1,1,2) [2025-04-03 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823405', 'tblTempUsageDetail_20' ) start [2025-04-03 05:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823405', 'tblTempUsageDetail_20' ) end [2025-04-03 05:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:35:23] Production.INFO: ==18856== Releasing lock... [2025-04-03 05:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:35:23] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:36:06 [end_date_ymd] => 2025-04-03 05:36:06 [RateCDR] => 1 ) [2025-04-03 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:36:06' and `end` < '2025-04-03 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:36:18] Production.INFO: count ==462 [2025-04-03 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:36:06 - End Time 2025-04-03 05:36:06 [2025-04-03 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823410', 'tblTempUsageDetail_20' ) start [2025-04-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823410', 'tblTempUsageDetail_20' ) end [2025-04-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823410', 'tblTempVendorCDR_20' ) start [2025-04-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823410', 'tblTempVendorCDR_20' ) end [2025-04-03 05:36:18] Production.INFO: ProcessCDR(1,14823410,1,1,2) [2025-04-03 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823410', 'tblTempUsageDetail_20' ) start [2025-04-03 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823410', 'tblTempUsageDetail_20' ) end [2025-04-03 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:36:22] Production.INFO: ==18932== Releasing lock... [2025-04-03 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:37:06 [end_date_ymd] => 2025-04-03 05:37:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:37:06' and `end` < '2025-04-03 05: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-03 05:37:18] Production.INFO: count ==451 [2025-04-03 05:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:37:06 - End Time 2025-04-03 05:37:06 [2025-04-03 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823415', 'tblTempUsageDetail_20' ) start [2025-04-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823415', 'tblTempUsageDetail_20' ) end [2025-04-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823415', 'tblTempVendorCDR_20' ) start [2025-04-03 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823415', 'tblTempVendorCDR_20' ) end [2025-04-03 05:37:19] Production.INFO: ProcessCDR(1,14823415,1,1,2) [2025-04-03 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823415', 'tblTempUsageDetail_20' ) start [2025-04-03 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823415', 'tblTempUsageDetail_20' ) end [2025-04-03 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:37:22] Production.INFO: ==19004== Releasing lock... [2025-04-03 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:38:06 [end_date_ymd] => 2025-04-03 05:38:06 [RateCDR] => 1 ) [2025-04-03 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:38:06' and `end` < '2025-04-03 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:38:18] Production.INFO: count ==447 [2025-04-03 05:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:38:06 - End Time 2025-04-03 05:38:06 [2025-04-03 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823420', 'tblTempUsageDetail_20' ) start [2025-04-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823420', 'tblTempUsageDetail_20' ) end [2025-04-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823420', 'tblTempVendorCDR_20' ) start [2025-04-03 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823420', 'tblTempVendorCDR_20' ) end [2025-04-03 05:38:19] Production.INFO: ProcessCDR(1,14823420,1,1,2) [2025-04-03 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823420', 'tblTempUsageDetail_20' ) start [2025-04-03 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823420', 'tblTempUsageDetail_20' ) end [2025-04-03 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:38:22] Production.INFO: ==19077== Releasing lock... [2025-04-03 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:39:05 [end_date_ymd] => 2025-04-03 05:39:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:39:05' and `end` < '2025-04-03 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-03 05:39:17] Production.INFO: count ==440 [2025-04-03 05:39:17] Production.ERROR: pbx CDR StartTime 2025-04-03 02:39:05 - End Time 2025-04-03 05:39:05 [2025-04-03 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823425', 'tblTempUsageDetail_20' ) start [2025-04-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823425', 'tblTempUsageDetail_20' ) end [2025-04-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823425', 'tblTempVendorCDR_20' ) start [2025-04-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823425', 'tblTempVendorCDR_20' ) end [2025-04-03 05:39:18] Production.INFO: ProcessCDR(1,14823425,1,1,2) [2025-04-03 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823425', 'tblTempUsageDetail_20' ) start [2025-04-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823425', 'tblTempUsageDetail_20' ) end [2025-04-03 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:39:21] Production.INFO: ==19152== Releasing lock... [2025-04-03 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:40:06 [end_date_ymd] => 2025-04-03 05:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:40:06' and `end` < '2025-04-03 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-03 05:40:18] Production.INFO: count ==430 [2025-04-03 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:40:06 - End Time 2025-04-03 05:40:06 [2025-04-03 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823431', 'tblTempUsageDetail_20' ) start [2025-04-03 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823431', 'tblTempUsageDetail_20' ) end [2025-04-03 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823431', 'tblTempVendorCDR_20' ) start [2025-04-03 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823431', 'tblTempVendorCDR_20' ) end [2025-04-03 05:40:19] Production.INFO: ProcessCDR(1,14823431,1,1,2) [2025-04-03 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823431', 'tblTempUsageDetail_20' ) start [2025-04-03 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823431', 'tblTempUsageDetail_20' ) end [2025-04-03 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:40:22] Production.INFO: ==19229== Releasing lock... [2025-04-03 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:41:05 [end_date_ymd] => 2025-04-03 05:41:05 [RateCDR] => 1 ) [2025-04-03 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:41:05' and `end` < '2025-04-03 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:41:17] Production.INFO: count ==427 [2025-04-03 05:41:17] Production.ERROR: pbx CDR StartTime 2025-04-03 02:41:05 - End Time 2025-04-03 05:41:05 [2025-04-03 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823436', 'tblTempUsageDetail_20' ) start [2025-04-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823436', 'tblTempUsageDetail_20' ) end [2025-04-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823436', 'tblTempVendorCDR_20' ) start [2025-04-03 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823436', 'tblTempVendorCDR_20' ) end [2025-04-03 05:41:17] Production.INFO: ProcessCDR(1,14823436,1,1,2) [2025-04-03 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823436', 'tblTempUsageDetail_20' ) start [2025-04-03 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823436', 'tblTempUsageDetail_20' ) end [2025-04-03 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:41:21] Production.INFO: ==19343== Releasing lock... [2025-04-03 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:42:05 [end_date_ymd] => 2025-04-03 05:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:42:05' and `end` < '2025-04-03 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-03 05:42:18] Production.INFO: count ==427 [2025-04-03 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:42:05 - End Time 2025-04-03 05:42:05 [2025-04-03 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823441', 'tblTempUsageDetail_20' ) start [2025-04-03 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823441', 'tblTempUsageDetail_20' ) end [2025-04-03 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823441', 'tblTempVendorCDR_20' ) start [2025-04-03 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823441', 'tblTempVendorCDR_20' ) end [2025-04-03 05:42:18] Production.INFO: ProcessCDR(1,14823441,1,1,2) [2025-04-03 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823441', 'tblTempUsageDetail_20' ) start [2025-04-03 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823441', 'tblTempUsageDetail_20' ) end [2025-04-03 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:42:22] Production.INFO: ==19415== Releasing lock... [2025-04-03 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:43:06 [end_date_ymd] => 2025-04-03 05:43:06 [RateCDR] => 1 ) [2025-04-03 05:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:43:06' and `end` < '2025-04-03 05:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:43:19] Production.INFO: count ==427 [2025-04-03 05:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:43:06 - End Time 2025-04-03 05:43:06 [2025-04-03 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823446', 'tblTempUsageDetail_20' ) start [2025-04-03 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823446', 'tblTempUsageDetail_20' ) end [2025-04-03 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823446', 'tblTempVendorCDR_20' ) start [2025-04-03 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823446', 'tblTempVendorCDR_20' ) end [2025-04-03 05:43:19] Production.INFO: ProcessCDR(1,14823446,1,1,2) [2025-04-03 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823446', 'tblTempUsageDetail_20' ) start [2025-04-03 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823446', 'tblTempUsageDetail_20' ) end [2025-04-03 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:43:22] Production.INFO: ==19487== Releasing lock... [2025-04-03 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:44:05 [end_date_ymd] => 2025-04-03 05:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:44:05' and `end` < '2025-04-03 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-03 05:44:18] Production.INFO: count ==427 [2025-04-03 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:44:05 - End Time 2025-04-03 05:44:05 [2025-04-03 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823451', 'tblTempUsageDetail_20' ) start [2025-04-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823451', 'tblTempUsageDetail_20' ) end [2025-04-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823451', 'tblTempVendorCDR_20' ) start [2025-04-03 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823451', 'tblTempVendorCDR_20' ) end [2025-04-03 05:44:18] Production.INFO: ProcessCDR(1,14823451,1,1,2) [2025-04-03 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823451', 'tblTempUsageDetail_20' ) start [2025-04-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823451', 'tblTempUsageDetail_20' ) end [2025-04-03 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:44:21] Production.INFO: ==19556== Releasing lock... [2025-04-03 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:45:06 [end_date_ymd] => 2025-04-03 05:45:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:45:06' and `end` < '2025-04-03 05: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-03 05:45:18] Production.INFO: count ==422 [2025-04-03 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:45:06 - End Time 2025-04-03 05:45:06 [2025-04-03 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823456', 'tblTempUsageDetail_20' ) start [2025-04-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823456', 'tblTempUsageDetail_20' ) end [2025-04-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823456', 'tblTempVendorCDR_20' ) start [2025-04-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823456', 'tblTempVendorCDR_20' ) end [2025-04-03 05:45:18] Production.INFO: ProcessCDR(1,14823456,1,1,2) [2025-04-03 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823456', 'tblTempUsageDetail_20' ) start [2025-04-03 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823456', 'tblTempUsageDetail_20' ) end [2025-04-03 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:45:22] Production.INFO: ==19632== Releasing lock... [2025-04-03 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:45:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:46:05 [end_date_ymd] => 2025-04-03 05:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:46:05' and `end` < '2025-04-03 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-03 05:46:18] Production.INFO: count ==422 [2025-04-03 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:46:05 - End Time 2025-04-03 05:46:05 [2025-04-03 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823461', 'tblTempUsageDetail_20' ) start [2025-04-03 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823461', 'tblTempUsageDetail_20' ) end [2025-04-03 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823461', 'tblTempVendorCDR_20' ) start [2025-04-03 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823461', 'tblTempVendorCDR_20' ) end [2025-04-03 05:46:18] Production.INFO: ProcessCDR(1,14823461,1,1,2) [2025-04-03 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823461', 'tblTempUsageDetail_20' ) start [2025-04-03 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823461', 'tblTempUsageDetail_20' ) end [2025-04-03 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:46:21] Production.INFO: ==19707== Releasing lock... [2025-04-03 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:47:05 [end_date_ymd] => 2025-04-03 05:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:47:05' and `end` < '2025-04-03 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-03 05:47:18] Production.INFO: count ==422 [2025-04-03 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:47:05 - End Time 2025-04-03 05:47:05 [2025-04-03 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823466', 'tblTempUsageDetail_20' ) start [2025-04-03 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823466', 'tblTempUsageDetail_20' ) end [2025-04-03 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823466', 'tblTempVendorCDR_20' ) start [2025-04-03 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823466', 'tblTempVendorCDR_20' ) end [2025-04-03 05:47:18] Production.INFO: ProcessCDR(1,14823466,1,1,2) [2025-04-03 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823466', 'tblTempUsageDetail_20' ) start [2025-04-03 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823466', 'tblTempUsageDetail_20' ) end [2025-04-03 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:47:21] Production.INFO: ==19785== Releasing lock... [2025-04-03 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:48:05 [end_date_ymd] => 2025-04-03 05:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:48:05' and `end` < '2025-04-03 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-03 05:48:18] Production.INFO: count ==422 [2025-04-03 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:48:05 - End Time 2025-04-03 05:48:05 [2025-04-03 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823471', 'tblTempUsageDetail_20' ) start [2025-04-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823471', 'tblTempUsageDetail_20' ) end [2025-04-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823471', 'tblTempVendorCDR_20' ) start [2025-04-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823471', 'tblTempVendorCDR_20' ) end [2025-04-03 05:48:18] Production.INFO: ProcessCDR(1,14823471,1,1,2) [2025-04-03 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823471', 'tblTempUsageDetail_20' ) start [2025-04-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823471', 'tblTempUsageDetail_20' ) end [2025-04-03 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:48:21] Production.INFO: ==19861== Releasing lock... [2025-04-03 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:49:05 [end_date_ymd] => 2025-04-03 05:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:49:05' and `end` < '2025-04-03 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-03 05:49:18] Production.INFO: count ==422 [2025-04-03 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:49:05 - End Time 2025-04-03 05:49:05 [2025-04-03 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823476', 'tblTempUsageDetail_20' ) start [2025-04-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823476', 'tblTempUsageDetail_20' ) end [2025-04-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823476', 'tblTempVendorCDR_20' ) start [2025-04-03 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823476', 'tblTempVendorCDR_20' ) end [2025-04-03 05:49:18] Production.INFO: ProcessCDR(1,14823476,1,1,2) [2025-04-03 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823476', 'tblTempUsageDetail_20' ) start [2025-04-03 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823476', 'tblTempUsageDetail_20' ) end [2025-04-03 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:49:22] Production.INFO: ==19935== Releasing lock... [2025-04-03 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:50:06 [end_date_ymd] => 2025-04-03 05:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 02:50:06' and `end` < '2025-04-03 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-03 05:50:18] Production.INFO: count ==422 [2025-04-03 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:50:06 - End Time 2025-04-03 05:50:06 [2025-04-03 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823481', 'tblTempUsageDetail_20' ) start [2025-04-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823481', 'tblTempUsageDetail_20' ) end [2025-04-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823481', 'tblTempVendorCDR_20' ) start [2025-04-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823481', 'tblTempVendorCDR_20' ) end [2025-04-03 05:50:18] Production.INFO: ProcessCDR(1,14823481,1,1,2) [2025-04-03 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823481', 'tblTempUsageDetail_20' ) start [2025-04-03 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823481', 'tblTempUsageDetail_20' ) end [2025-04-03 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:50:22] Production.INFO: ==20007== Releasing lock... [2025-04-03 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:51:06 [end_date_ymd] => 2025-04-03 05:51:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:51:06' and `end` < '2025-04-03 05: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-03 05:51:18] Production.INFO: count ==422 [2025-04-03 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:51:06 - End Time 2025-04-03 05:51:06 [2025-04-03 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823487', 'tblTempUsageDetail_20' ) start [2025-04-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823487', 'tblTempUsageDetail_20' ) end [2025-04-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823487', 'tblTempVendorCDR_20' ) start [2025-04-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823487', 'tblTempVendorCDR_20' ) end [2025-04-03 05:51:18] Production.INFO: ProcessCDR(1,14823487,1,1,2) [2025-04-03 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823487', 'tblTempUsageDetail_20' ) start [2025-04-03 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823487', 'tblTempUsageDetail_20' ) end [2025-04-03 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:51:22] Production.INFO: ==20079== Releasing lock... [2025-04-03 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:52:06 [end_date_ymd] => 2025-04-03 05:52:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:52:06' and `end` < '2025-04-03 05: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-03 05:52:19] Production.INFO: count ==422 [2025-04-03 05:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:52:06 - End Time 2025-04-03 05:52:06 [2025-04-03 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823492', 'tblTempUsageDetail_20' ) start [2025-04-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823492', 'tblTempUsageDetail_20' ) end [2025-04-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823492', 'tblTempVendorCDR_20' ) start [2025-04-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823492', 'tblTempVendorCDR_20' ) end [2025-04-03 05:52:19] Production.INFO: ProcessCDR(1,14823492,1,1,2) [2025-04-03 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823492', 'tblTempUsageDetail_20' ) start [2025-04-03 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823492', 'tblTempUsageDetail_20' ) end [2025-04-03 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:52:22] Production.INFO: ==20151== Releasing lock... [2025-04-03 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:53:05 [end_date_ymd] => 2025-04-03 05:53:05 [RateCDR] => 1 ) [2025-04-03 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:53:05' and `end` < '2025-04-03 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:53:18] Production.INFO: count ==419 [2025-04-03 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:53:05 - End Time 2025-04-03 05:53:05 [2025-04-03 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823497', 'tblTempUsageDetail_20' ) start [2025-04-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823497', 'tblTempUsageDetail_20' ) end [2025-04-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823497', 'tblTempVendorCDR_20' ) start [2025-04-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823497', 'tblTempVendorCDR_20' ) end [2025-04-03 05:53:18] Production.INFO: ProcessCDR(1,14823497,1,1,2) [2025-04-03 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823497', 'tblTempUsageDetail_20' ) start [2025-04-03 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823497', 'tblTempUsageDetail_20' ) end [2025-04-03 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:53:22] Production.INFO: ==20222== Releasing lock... [2025-04-03 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:54:06 [end_date_ymd] => 2025-04-03 05:54:06 [RateCDR] => 1 ) [2025-04-03 05: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-03 02:54:06' and `end` < '2025-04-03 05: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-03 05:54:18] Production.INFO: count ==421 [2025-04-03 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:54:06 - End Time 2025-04-03 05:54:06 [2025-04-03 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823502', 'tblTempUsageDetail_20' ) start [2025-04-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823502', 'tblTempUsageDetail_20' ) end [2025-04-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823502', 'tblTempVendorCDR_20' ) start [2025-04-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823502', 'tblTempVendorCDR_20' ) end [2025-04-03 05:54:18] Production.INFO: ProcessCDR(1,14823502,1,1,2) [2025-04-03 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823502', 'tblTempUsageDetail_20' ) start [2025-04-03 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823502', 'tblTempUsageDetail_20' ) end [2025-04-03 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:54:22] Production.INFO: ==20295== Releasing lock... [2025-04-03 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:55:05 [end_date_ymd] => 2025-04-03 05:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:55:05' and `end` < '2025-04-03 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-03 05:55:18] Production.INFO: count ==426 [2025-04-03 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:55:05 - End Time 2025-04-03 05:55:05 [2025-04-03 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823507', 'tblTempUsageDetail_20' ) start [2025-04-03 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823507', 'tblTempUsageDetail_20' ) end [2025-04-03 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823507', 'tblTempVendorCDR_20' ) start [2025-04-03 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823507', 'tblTempVendorCDR_20' ) end [2025-04-03 05:55:18] Production.INFO: ProcessCDR(1,14823507,1,1,2) [2025-04-03 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823507', 'tblTempUsageDetail_20' ) start [2025-04-03 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823507', 'tblTempUsageDetail_20' ) end [2025-04-03 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:55:21] Production.INFO: ==20380== Releasing lock... [2025-04-03 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:56:06 [end_date_ymd] => 2025-04-03 05:56:06 [RateCDR] => 1 ) [2025-04-03 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:56:06' and `end` < '2025-04-03 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:56:18] Production.INFO: count ==439 [2025-04-03 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:56:06 - End Time 2025-04-03 05:56:06 [2025-04-03 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823512', 'tblTempUsageDetail_20' ) start [2025-04-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823512', 'tblTempUsageDetail_20' ) end [2025-04-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823512', 'tblTempVendorCDR_20' ) start [2025-04-03 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823512', 'tblTempVendorCDR_20' ) end [2025-04-03 05:56:18] Production.INFO: ProcessCDR(1,14823512,1,1,2) [2025-04-03 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823512', 'tblTempUsageDetail_20' ) start [2025-04-03 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823512', 'tblTempUsageDetail_20' ) end [2025-04-03 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:56:22] Production.INFO: ==20453== Releasing lock... [2025-04-03 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:56:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:57:05 [end_date_ymd] => 2025-04-03 05:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:57:05' and `end` < '2025-04-03 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-03 05:57:18] Production.INFO: count ==439 [2025-04-03 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:57:05 - End Time 2025-04-03 05:57:05 [2025-04-03 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823517', 'tblTempUsageDetail_20' ) start [2025-04-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823517', 'tblTempUsageDetail_20' ) end [2025-04-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823517', 'tblTempVendorCDR_20' ) start [2025-04-03 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823517', 'tblTempVendorCDR_20' ) end [2025-04-03 05:57:18] Production.INFO: ProcessCDR(1,14823517,1,1,2) [2025-04-03 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823517', 'tblTempUsageDetail_20' ) start [2025-04-03 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823517', 'tblTempUsageDetail_20' ) end [2025-04-03 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:57:22] Production.INFO: ==20563== Releasing lock... [2025-04-03 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:57:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:58:06 [end_date_ymd] => 2025-04-03 05:58:06 [RateCDR] => 1 ) [2025-04-03 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 02:58:06' and `end` < '2025-04-03 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 05:58:19] Production.INFO: count ==431 [2025-04-03 05:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 02:58:06 - End Time 2025-04-03 05:58:06 [2025-04-03 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823522', 'tblTempUsageDetail_20' ) start [2025-04-03 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823522', 'tblTempUsageDetail_20' ) end [2025-04-03 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823522', 'tblTempVendorCDR_20' ) start [2025-04-03 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823522', 'tblTempVendorCDR_20' ) end [2025-04-03 05:58:19] Production.INFO: ProcessCDR(1,14823522,1,1,2) [2025-04-03 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823522', 'tblTempUsageDetail_20' ) start [2025-04-03 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823522', 'tblTempUsageDetail_20' ) end [2025-04-03 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:58:22] Production.INFO: ==20640== Releasing lock... [2025-04-03 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:58:22] Production.INFO: 32 MB #Memory Used# [2025-04-03 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 02:59:05 [end_date_ymd] => 2025-04-03 05:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 02:59:05' and `end` < '2025-04-03 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-03 05:59:18] Production.INFO: count ==431 [2025-04-03 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 02:59:05 - End Time 2025-04-03 05:59:05 [2025-04-03 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823527', 'tblTempUsageDetail_20' ) start [2025-04-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823527', 'tblTempUsageDetail_20' ) end [2025-04-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823527', 'tblTempVendorCDR_20' ) start [2025-04-03 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823527', 'tblTempVendorCDR_20' ) end [2025-04-03 05:59:18] Production.INFO: ProcessCDR(1,14823527,1,1,2) [2025-04-03 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823527', 'tblTempUsageDetail_20' ) start [2025-04-03 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823527', 'tblTempUsageDetail_20' ) end [2025-04-03 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 05:59:21] Production.INFO: ==20715== Releasing lock... [2025-04-03 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 05:59:21] Production.INFO: 32 MB #Memory Used# [2025-04-03 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:00:06 [end_date_ymd] => 2025-04-03 06:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:00:06' and `end` < '2025-04-03 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-03 06:00:19] Production.INFO: count ==446 [2025-04-03 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:00:06 - End Time 2025-04-03 06:00:06 [2025-04-03 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823533', 'tblTempUsageDetail_20' ) start [2025-04-03 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823533', 'tblTempUsageDetail_20' ) end [2025-04-03 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823533', 'tblTempVendorCDR_20' ) start [2025-04-03 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823533', 'tblTempVendorCDR_20' ) end [2025-04-03 06:00:19] Production.INFO: ProcessCDR(1,14823533,1,1,2) [2025-04-03 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823533', 'tblTempUsageDetail_20' ) start [2025-04-03 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823533', 'tblTempUsageDetail_20' ) end [2025-04-03 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:00:23] Production.INFO: ==20795== Releasing lock... [2025-04-03 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:00:23] Production.INFO: 32 MB #Memory Used# [2025-04-03 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:01:06 [end_date_ymd] => 2025-04-03 06:01:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:01:06' and `end` < '2025-04-03 06: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-03 06:01:18] Production.INFO: count ==451 [2025-04-03 06:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:01:06 - End Time 2025-04-03 06:01:06 [2025-04-03 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823538', 'tblTempUsageDetail_20' ) start [2025-04-03 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823538', 'tblTempUsageDetail_20' ) end [2025-04-03 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823538', 'tblTempVendorCDR_20' ) start [2025-04-03 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823538', 'tblTempVendorCDR_20' ) end [2025-04-03 06:01:19] Production.INFO: ProcessCDR(1,14823538,1,1,2) [2025-04-03 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823538', 'tblTempUsageDetail_20' ) start [2025-04-03 06:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823538', 'tblTempUsageDetail_20' ) end [2025-04-03 06:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:01:24] Production.INFO: ==20887== Releasing lock... [2025-04-03 06:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:01:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:02:05 [end_date_ymd] => 2025-04-03 06:02:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:02:05' and `end` < '2025-04-03 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-03 06:02:17] Production.INFO: count ==451 [2025-04-03 06:02:17] Production.ERROR: pbx CDR StartTime 2025-04-03 03:02:05 - End Time 2025-04-03 06:02:05 [2025-04-03 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823543', 'tblTempUsageDetail_20' ) start [2025-04-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823543', 'tblTempUsageDetail_20' ) end [2025-04-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823543', 'tblTempVendorCDR_20' ) start [2025-04-03 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823543', 'tblTempVendorCDR_20' ) end [2025-04-03 06:02:17] Production.INFO: ProcessCDR(1,14823543,1,1,2) [2025-04-03 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823543', 'tblTempUsageDetail_20' ) start [2025-04-03 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823543', 'tblTempUsageDetail_20' ) end [2025-04-03 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:02:21] Production.INFO: ==20966== Releasing lock... [2025-04-03 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:03:05 [end_date_ymd] => 2025-04-03 06:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:03:05' and `end` < '2025-04-03 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-03 06:03:18] Production.INFO: count ==451 [2025-04-03 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:03:05 - End Time 2025-04-03 06:03:05 [2025-04-03 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823548', 'tblTempUsageDetail_20' ) start [2025-04-03 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823548', 'tblTempUsageDetail_20' ) end [2025-04-03 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823548', 'tblTempVendorCDR_20' ) start [2025-04-03 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823548', 'tblTempVendorCDR_20' ) end [2025-04-03 06:03:18] Production.INFO: ProcessCDR(1,14823548,1,1,2) [2025-04-03 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823548', 'tblTempUsageDetail_20' ) start [2025-04-03 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823548', 'tblTempUsageDetail_20' ) end [2025-04-03 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:03:22] Production.INFO: ==21045== Releasing lock... [2025-04-03 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:03:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:04:06 [end_date_ymd] => 2025-04-03 06:04:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:04:06' and `end` < '2025-04-03 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-03 06:04:19] Production.INFO: count ==453 [2025-04-03 06:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:04:06 - End Time 2025-04-03 06:04:06 [2025-04-03 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823553', 'tblTempUsageDetail_20' ) start [2025-04-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823553', 'tblTempUsageDetail_20' ) end [2025-04-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823553', 'tblTempVendorCDR_20' ) start [2025-04-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823553', 'tblTempVendorCDR_20' ) end [2025-04-03 06:04:19] Production.INFO: ProcessCDR(1,14823553,1,1,2) [2025-04-03 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823553', 'tblTempUsageDetail_20' ) start [2025-04-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823553', 'tblTempUsageDetail_20' ) end [2025-04-03 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:04:22] Production.INFO: ==21122== Releasing lock... [2025-04-03 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:04:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:05:05 [end_date_ymd] => 2025-04-03 06:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:05:05' and `end` < '2025-04-03 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-03 06:05:18] Production.INFO: count ==407 [2025-04-03 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:05:05 - End Time 2025-04-03 06:05:05 [2025-04-03 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823558', 'tblTempUsageDetail_20' ) start [2025-04-03 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823558', 'tblTempUsageDetail_20' ) end [2025-04-03 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823558', 'tblTempVendorCDR_20' ) start [2025-04-03 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823558', 'tblTempVendorCDR_20' ) end [2025-04-03 06:05:18] Production.INFO: ProcessCDR(1,14823558,1,1,2) [2025-04-03 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823558', 'tblTempUsageDetail_20' ) start [2025-04-03 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823558', 'tblTempUsageDetail_20' ) end [2025-04-03 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:05:22] Production.INFO: ==21197== Releasing lock... [2025-04-03 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:06:06 [end_date_ymd] => 2025-04-03 06:06:06 [RateCDR] => 1 ) [2025-04-03 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:06:06' and `end` < '2025-04-03 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:06:18] Production.INFO: count ==347 [2025-04-03 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:06:06 - End Time 2025-04-03 06:06:06 [2025-04-03 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823563', 'tblTempUsageDetail_20' ) start [2025-04-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823563', 'tblTempUsageDetail_20' ) end [2025-04-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823563', 'tblTempVendorCDR_20' ) start [2025-04-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823563', 'tblTempVendorCDR_20' ) end [2025-04-03 06:06:18] Production.INFO: ProcessCDR(1,14823563,1,1,2) [2025-04-03 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823563', 'tblTempUsageDetail_20' ) start [2025-04-03 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823563', 'tblTempUsageDetail_20' ) end [2025-04-03 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:06:22] Production.INFO: ==21276== Releasing lock... [2025-04-03 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:07:05 [end_date_ymd] => 2025-04-03 06:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:07:05' and `end` < '2025-04-03 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-03 06:07:17] Production.INFO: count ==347 [2025-04-03 06:07:17] Production.ERROR: pbx CDR StartTime 2025-04-03 03:07:05 - End Time 2025-04-03 06:07:05 [2025-04-03 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823568', 'tblTempUsageDetail_20' ) start [2025-04-03 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823568', 'tblTempUsageDetail_20' ) end [2025-04-03 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823568', 'tblTempVendorCDR_20' ) start [2025-04-03 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823568', 'tblTempVendorCDR_20' ) end [2025-04-03 06:07:17] Production.INFO: ProcessCDR(1,14823568,1,1,2) [2025-04-03 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823568', 'tblTempUsageDetail_20' ) start [2025-04-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823568', 'tblTempUsageDetail_20' ) end [2025-04-03 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:07:21] Production.INFO: ==21352== Releasing lock... [2025-04-03 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:08:05 [end_date_ymd] => 2025-04-03 06:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:08:05' and `end` < '2025-04-03 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-03 06:08:18] Production.INFO: count ==347 [2025-04-03 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:08:05 - End Time 2025-04-03 06:08:05 [2025-04-03 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823573', 'tblTempUsageDetail_20' ) start [2025-04-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823573', 'tblTempUsageDetail_20' ) end [2025-04-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823573', 'tblTempVendorCDR_20' ) start [2025-04-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823573', 'tblTempVendorCDR_20' ) end [2025-04-03 06:08:18] Production.INFO: ProcessCDR(1,14823573,1,1,2) [2025-04-03 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823573', 'tblTempUsageDetail_20' ) start [2025-04-03 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823573', 'tblTempUsageDetail_20' ) end [2025-04-03 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:08:22] Production.INFO: ==21430== Releasing lock... [2025-04-03 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:09:05 [end_date_ymd] => 2025-04-03 06:09:05 [RateCDR] => 1 ) [2025-04-03 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:09:05' and `end` < '2025-04-03 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:09:17] Production.INFO: count ==347 [2025-04-03 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:09:05 - End Time 2025-04-03 06:09:05 [2025-04-03 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823578', 'tblTempUsageDetail_20' ) start [2025-04-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823578', 'tblTempUsageDetail_20' ) end [2025-04-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823578', 'tblTempVendorCDR_20' ) start [2025-04-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823578', 'tblTempVendorCDR_20' ) end [2025-04-03 06:09:18] Production.INFO: ProcessCDR(1,14823578,1,1,2) [2025-04-03 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823578', 'tblTempUsageDetail_20' ) start [2025-04-03 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823578', 'tblTempUsageDetail_20' ) end [2025-04-03 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:09:21] Production.INFO: ==21512== Releasing lock... [2025-04-03 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:10:06 [end_date_ymd] => 2025-04-03 06:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:10:06' and `end` < '2025-04-03 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-03 06:10:18] Production.INFO: count ==355 [2025-04-03 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:10:06 - End Time 2025-04-03 06:10:06 [2025-04-03 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823583', 'tblTempUsageDetail_20' ) start [2025-04-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823583', 'tblTempUsageDetail_20' ) end [2025-04-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823583', 'tblTempVendorCDR_20' ) start [2025-04-03 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823583', 'tblTempVendorCDR_20' ) end [2025-04-03 06:10:19] Production.INFO: ProcessCDR(1,14823583,1,1,2) [2025-04-03 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823583', 'tblTempUsageDetail_20' ) start [2025-04-03 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823583', 'tblTempUsageDetail_20' ) end [2025-04-03 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:10:22] Production.INFO: ==21591== Releasing lock... [2025-04-03 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:11:05 [end_date_ymd] => 2025-04-03 06:11:05 [RateCDR] => 1 ) [2025-04-03 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:11:05' and `end` < '2025-04-03 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:11:18] Production.INFO: count ==359 [2025-04-03 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:11:05 - End Time 2025-04-03 06:11:05 [2025-04-03 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823589', 'tblTempUsageDetail_20' ) start [2025-04-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823589', 'tblTempUsageDetail_20' ) end [2025-04-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823589', 'tblTempVendorCDR_20' ) start [2025-04-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823589', 'tblTempVendorCDR_20' ) end [2025-04-03 06:11:18] Production.INFO: ProcessCDR(1,14823589,1,1,2) [2025-04-03 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823589', 'tblTempUsageDetail_20' ) start [2025-04-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823589', 'tblTempUsageDetail_20' ) end [2025-04-03 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:11:21] Production.INFO: ==21669== Releasing lock... [2025-04-03 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:12:05 [end_date_ymd] => 2025-04-03 06:12:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:12:05' and `end` < '2025-04-03 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-03 06:12:18] Production.INFO: count ==360 [2025-04-03 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:12:05 - End Time 2025-04-03 06:12:05 [2025-04-03 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823594', 'tblTempUsageDetail_20' ) start [2025-04-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823594', 'tblTempUsageDetail_20' ) end [2025-04-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823594', 'tblTempVendorCDR_20' ) start [2025-04-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823594', 'tblTempVendorCDR_20' ) end [2025-04-03 06:12:18] Production.INFO: ProcessCDR(1,14823594,1,1,2) [2025-04-03 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823594', 'tblTempUsageDetail_20' ) start [2025-04-03 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823594', 'tblTempUsageDetail_20' ) end [2025-04-03 06:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:12:23] Production.INFO: ==21786== Releasing lock... [2025-04-03 06:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:12:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:13:05 [end_date_ymd] => 2025-04-03 06:13:05 [RateCDR] => 1 ) [2025-04-03 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:13:05' and `end` < '2025-04-03 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:13:18] Production.INFO: count ==360 [2025-04-03 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:13:05 - End Time 2025-04-03 06:13:05 [2025-04-03 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823599', 'tblTempUsageDetail_20' ) start [2025-04-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823599', 'tblTempUsageDetail_20' ) end [2025-04-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823599', 'tblTempVendorCDR_20' ) start [2025-04-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823599', 'tblTempVendorCDR_20' ) end [2025-04-03 06:13:18] Production.INFO: ProcessCDR(1,14823599,1,1,2) [2025-04-03 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823599', 'tblTempUsageDetail_20' ) start [2025-04-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823599', 'tblTempUsageDetail_20' ) end [2025-04-03 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:13:21] Production.INFO: ==21864== Releasing lock... [2025-04-03 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:14:06 [end_date_ymd] => 2025-04-03 06:14:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:14:06' and `end` < '2025-04-03 06: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-03 06:14:18] Production.INFO: count ==360 [2025-04-03 06:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:14:06 - End Time 2025-04-03 06:14:06 [2025-04-03 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823604', 'tblTempUsageDetail_20' ) start [2025-04-03 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823604', 'tblTempUsageDetail_20' ) end [2025-04-03 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823604', 'tblTempVendorCDR_20' ) start [2025-04-03 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823604', 'tblTempVendorCDR_20' ) end [2025-04-03 06:14:19] Production.INFO: ProcessCDR(1,14823604,1,1,2) [2025-04-03 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823604', 'tblTempUsageDetail_20' ) start [2025-04-03 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823604', 'tblTempUsageDetail_20' ) end [2025-04-03 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:14:22] Production.INFO: ==21943== Releasing lock... [2025-04-03 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:15:05 [end_date_ymd] => 2025-04-03 06:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:15:05' and `end` < '2025-04-03 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-03 06:15:18] Production.INFO: count ==360 [2025-04-03 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:15:05 - End Time 2025-04-03 06:15:05 [2025-04-03 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823609', 'tblTempUsageDetail_20' ) start [2025-04-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823609', 'tblTempUsageDetail_20' ) end [2025-04-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823609', 'tblTempVendorCDR_20' ) start [2025-04-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823609', 'tblTempVendorCDR_20' ) end [2025-04-03 06:15:18] Production.INFO: ProcessCDR(1,14823609,1,1,2) [2025-04-03 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823609', 'tblTempUsageDetail_20' ) start [2025-04-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823609', 'tblTempUsageDetail_20' ) end [2025-04-03 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:15:21] Production.INFO: ==22026== Releasing lock... [2025-04-03 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:16:06 [end_date_ymd] => 2025-04-03 06:16:06 [RateCDR] => 1 ) [2025-04-03 06:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:16:06' and `end` < '2025-04-03 06:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:16:18] Production.INFO: count ==360 [2025-04-03 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:16:06 - End Time 2025-04-03 06:16:06 [2025-04-03 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823614', 'tblTempUsageDetail_20' ) start [2025-04-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823614', 'tblTempUsageDetail_20' ) end [2025-04-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823614', 'tblTempVendorCDR_20' ) start [2025-04-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823614', 'tblTempVendorCDR_20' ) end [2025-04-03 06:16:18] Production.INFO: ProcessCDR(1,14823614,1,1,2) [2025-04-03 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823614', 'tblTempUsageDetail_20' ) start [2025-04-03 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823614', 'tblTempUsageDetail_20' ) end [2025-04-03 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:16:22] Production.INFO: ==22105== Releasing lock... [2025-04-03 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:17:05 [end_date_ymd] => 2025-04-03 06:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:17:05' and `end` < '2025-04-03 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-03 06:17:17] Production.INFO: count ==366 [2025-04-03 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:17:05 - End Time 2025-04-03 06:17:05 [2025-04-03 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823619', 'tblTempUsageDetail_20' ) start [2025-04-03 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823619', 'tblTempUsageDetail_20' ) end [2025-04-03 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823619', 'tblTempVendorCDR_20' ) start [2025-04-03 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823619', 'tblTempVendorCDR_20' ) end [2025-04-03 06:17:18] Production.INFO: ProcessCDR(1,14823619,1,1,2) [2025-04-03 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823619', 'tblTempUsageDetail_20' ) start [2025-04-03 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823619', 'tblTempUsageDetail_20' ) end [2025-04-03 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:17:21] Production.INFO: ==22178== Releasing lock... [2025-04-03 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:18:05 [end_date_ymd] => 2025-04-03 06:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:18:05' and `end` < '2025-04-03 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-03 06:18:18] Production.INFO: count ==372 [2025-04-03 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:18:05 - End Time 2025-04-03 06:18:05 [2025-04-03 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823624', 'tblTempUsageDetail_20' ) start [2025-04-03 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823624', 'tblTempUsageDetail_20' ) end [2025-04-03 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823624', 'tblTempVendorCDR_20' ) start [2025-04-03 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823624', 'tblTempVendorCDR_20' ) end [2025-04-03 06:18:18] Production.INFO: ProcessCDR(1,14823624,1,1,2) [2025-04-03 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823624', 'tblTempUsageDetail_20' ) start [2025-04-03 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823624', 'tblTempUsageDetail_20' ) end [2025-04-03 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:18:22] Production.INFO: ==22256== Releasing lock... [2025-04-03 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:19:05 [end_date_ymd] => 2025-04-03 06:19:05 [RateCDR] => 1 ) [2025-04-03 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:19:05' and `end` < '2025-04-03 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:19:18] Production.INFO: count ==368 [2025-04-03 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:19:05 - End Time 2025-04-03 06:19:05 [2025-04-03 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823629', 'tblTempUsageDetail_20' ) start [2025-04-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823629', 'tblTempUsageDetail_20' ) end [2025-04-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823629', 'tblTempVendorCDR_20' ) start [2025-04-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823629', 'tblTempVendorCDR_20' ) end [2025-04-03 06:19:18] Production.INFO: ProcessCDR(1,14823629,1,1,2) [2025-04-03 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823629', 'tblTempUsageDetail_20' ) start [2025-04-03 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823629', 'tblTempUsageDetail_20' ) end [2025-04-03 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:19:22] Production.INFO: ==22335== Releasing lock... [2025-04-03 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:20:06 [end_date_ymd] => 2025-04-03 06:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:20:06' and `end` < '2025-04-03 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-03 06:20:18] Production.INFO: count ==365 [2025-04-03 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:20:06 - End Time 2025-04-03 06:20:06 [2025-04-03 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823635', 'tblTempUsageDetail_20' ) start [2025-04-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823635', 'tblTempUsageDetail_20' ) end [2025-04-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823635', 'tblTempVendorCDR_20' ) start [2025-04-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823635', 'tblTempVendorCDR_20' ) end [2025-04-03 06:20:18] Production.INFO: ProcessCDR(1,14823635,1,1,2) [2025-04-03 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823635', 'tblTempUsageDetail_20' ) start [2025-04-03 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823635', 'tblTempUsageDetail_20' ) end [2025-04-03 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:20:22] Production.INFO: ==22415== Releasing lock... [2025-04-03 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:21:05 [end_date_ymd] => 2025-04-03 06:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:21:05' and `end` < '2025-04-03 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-03 06:21:18] Production.INFO: count ==365 [2025-04-03 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:21:05 - End Time 2025-04-03 06:21:05 [2025-04-03 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823640', 'tblTempUsageDetail_20' ) start [2025-04-03 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823640', 'tblTempUsageDetail_20' ) end [2025-04-03 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823640', 'tblTempVendorCDR_20' ) start [2025-04-03 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823640', 'tblTempVendorCDR_20' ) end [2025-04-03 06:21:18] Production.INFO: ProcessCDR(1,14823640,1,1,2) [2025-04-03 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823640', 'tblTempUsageDetail_20' ) start [2025-04-03 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823640', 'tblTempUsageDetail_20' ) end [2025-04-03 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:21:22] Production.INFO: ==22494== Releasing lock... [2025-04-03 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:21:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:22:05 [end_date_ymd] => 2025-04-03 06:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:22:05' and `end` < '2025-04-03 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-03 06:22:18] Production.INFO: count ==365 [2025-04-03 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:22:05 - End Time 2025-04-03 06:22:05 [2025-04-03 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823645', 'tblTempUsageDetail_20' ) start [2025-04-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823645', 'tblTempUsageDetail_20' ) end [2025-04-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823645', 'tblTempVendorCDR_20' ) start [2025-04-03 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823645', 'tblTempVendorCDR_20' ) end [2025-04-03 06:22:18] Production.INFO: ProcessCDR(1,14823645,1,1,2) [2025-04-03 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823645', 'tblTempUsageDetail_20' ) start [2025-04-03 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823645', 'tblTempUsageDetail_20' ) end [2025-04-03 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:22:21] Production.INFO: ==22570== Releasing lock... [2025-04-03 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:23:06 [end_date_ymd] => 2025-04-03 06:23:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:23:06' and `end` < '2025-04-03 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-03 06:23:19] Production.INFO: count ==365 [2025-04-03 06:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:23:06 - End Time 2025-04-03 06:23:06 [2025-04-03 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823650', 'tblTempUsageDetail_20' ) start [2025-04-03 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823650', 'tblTempUsageDetail_20' ) end [2025-04-03 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823650', 'tblTempVendorCDR_20' ) start [2025-04-03 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823650', 'tblTempVendorCDR_20' ) end [2025-04-03 06:23:19] Production.INFO: ProcessCDR(1,14823650,1,1,2) [2025-04-03 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823650', 'tblTempUsageDetail_20' ) start [2025-04-03 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823650', 'tblTempUsageDetail_20' ) end [2025-04-03 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:23:22] Production.INFO: ==22652== Releasing lock... [2025-04-03 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:24:05 [end_date_ymd] => 2025-04-03 06:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:24:05' and `end` < '2025-04-03 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-03 06:24:18] Production.INFO: count ==365 [2025-04-03 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:24:05 - End Time 2025-04-03 06:24:05 [2025-04-03 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823655', 'tblTempUsageDetail_20' ) start [2025-04-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823655', 'tblTempUsageDetail_20' ) end [2025-04-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823655', 'tblTempVendorCDR_20' ) start [2025-04-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823655', 'tblTempVendorCDR_20' ) end [2025-04-03 06:24:18] Production.INFO: ProcessCDR(1,14823655,1,1,2) [2025-04-03 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823655', 'tblTempUsageDetail_20' ) start [2025-04-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823655', 'tblTempUsageDetail_20' ) end [2025-04-03 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:24:21] Production.INFO: ==22729== Releasing lock... [2025-04-03 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:25:06 [end_date_ymd] => 2025-04-03 06:25:06 [RateCDR] => 1 ) [2025-04-03 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:25:06' and `end` < '2025-04-03 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:25:18] Production.INFO: count ==364 [2025-04-03 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:25:06 - End Time 2025-04-03 06:25:06 [2025-04-03 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823660', 'tblTempUsageDetail_20' ) start [2025-04-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823660', 'tblTempUsageDetail_20' ) end [2025-04-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823660', 'tblTempVendorCDR_20' ) start [2025-04-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823660', 'tblTempVendorCDR_20' ) end [2025-04-03 06:25:18] Production.INFO: ProcessCDR(1,14823660,1,1,2) [2025-04-03 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823660', 'tblTempUsageDetail_20' ) start [2025-04-03 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823660', 'tblTempUsageDetail_20' ) end [2025-04-03 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:25:22] Production.INFO: ==22806== Releasing lock... [2025-04-03 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:25:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:26:05 [end_date_ymd] => 2025-04-03 06:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:26:05' and `end` < '2025-04-03 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-03 06:26:18] Production.INFO: count ==370 [2025-04-03 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:26:05 - End Time 2025-04-03 06:26:05 [2025-04-03 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823665', 'tblTempUsageDetail_20' ) start [2025-04-03 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823665', 'tblTempUsageDetail_20' ) end [2025-04-03 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823665', 'tblTempVendorCDR_20' ) start [2025-04-03 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823665', 'tblTempVendorCDR_20' ) end [2025-04-03 06:26:18] Production.INFO: ProcessCDR(1,14823665,1,1,2) [2025-04-03 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823665', 'tblTempUsageDetail_20' ) start [2025-04-03 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823665', 'tblTempUsageDetail_20' ) end [2025-04-03 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:26:22] Production.INFO: ==22886== Releasing lock... [2025-04-03 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:27:05 [end_date_ymd] => 2025-04-03 06:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:27:05' and `end` < '2025-04-03 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-03 06:27:18] Production.INFO: count ==370 [2025-04-03 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:27:05 - End Time 2025-04-03 06:27:05 [2025-04-03 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823670', 'tblTempUsageDetail_20' ) start [2025-04-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823670', 'tblTempUsageDetail_20' ) end [2025-04-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823670', 'tblTempVendorCDR_20' ) start [2025-04-03 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823670', 'tblTempVendorCDR_20' ) end [2025-04-03 06:27:18] Production.INFO: ProcessCDR(1,14823670,1,1,2) [2025-04-03 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823670', 'tblTempUsageDetail_20' ) start [2025-04-03 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823670', 'tblTempUsageDetail_20' ) end [2025-04-03 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:27:21] Production.INFO: ==22965== Releasing lock... [2025-04-03 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:28:05 [end_date_ymd] => 2025-04-03 06:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:28:05' and `end` < '2025-04-03 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-03 06:28:18] Production.INFO: count ==370 [2025-04-03 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:28:05 - End Time 2025-04-03 06:28:05 [2025-04-03 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823675', 'tblTempUsageDetail_20' ) start [2025-04-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823675', 'tblTempUsageDetail_20' ) end [2025-04-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823675', 'tblTempVendorCDR_20' ) start [2025-04-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823675', 'tblTempVendorCDR_20' ) end [2025-04-03 06:28:18] Production.INFO: ProcessCDR(1,14823675,1,1,2) [2025-04-03 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823675', 'tblTempUsageDetail_20' ) start [2025-04-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823675', 'tblTempUsageDetail_20' ) end [2025-04-03 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:28:21] Production.INFO: ==23081== Releasing lock... [2025-04-03 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:29:06 [end_date_ymd] => 2025-04-03 06:29:06 [RateCDR] => 1 ) [2025-04-03 06:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:29:06' and `end` < '2025-04-03 06:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:29:18] Production.INFO: count ==370 [2025-04-03 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:29:06 - End Time 2025-04-03 06:29:06 [2025-04-03 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823680', 'tblTempUsageDetail_20' ) start [2025-04-03 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823680', 'tblTempUsageDetail_20' ) end [2025-04-03 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823680', 'tblTempVendorCDR_20' ) start [2025-04-03 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823680', 'tblTempVendorCDR_20' ) end [2025-04-03 06:29:18] Production.INFO: ProcessCDR(1,14823680,1,1,2) [2025-04-03 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823680', 'tblTempUsageDetail_20' ) start [2025-04-03 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823680', 'tblTempUsageDetail_20' ) end [2025-04-03 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:29:22] Production.INFO: ==23155== Releasing lock... [2025-04-03 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:30:07 [end_date_ymd] => 2025-04-03 06:30:07 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:30:07' and `end` < '2025-04-03 06: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-03 06:30:19] Production.INFO: count ==372 [2025-04-03 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:30:07 - End Time 2025-04-03 06:30:07 [2025-04-03 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823686', 'tblTempUsageDetail_20' ) start [2025-04-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823686', 'tblTempUsageDetail_20' ) end [2025-04-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823686', 'tblTempVendorCDR_20' ) start [2025-04-03 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823686', 'tblTempVendorCDR_20' ) end [2025-04-03 06:30:19] Production.INFO: ProcessCDR(1,14823686,1,1,2) [2025-04-03 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823686', 'tblTempUsageDetail_20' ) start [2025-04-03 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823686', 'tblTempUsageDetail_20' ) end [2025-04-03 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:30:23] Production.INFO: ==23235== Releasing lock... [2025-04-03 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:31:05 [end_date_ymd] => 2025-04-03 06:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:31:05' and `end` < '2025-04-03 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-03 06:31:18] Production.INFO: count ==371 [2025-04-03 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:31:05 - End Time 2025-04-03 06:31:05 [2025-04-03 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823691', 'tblTempUsageDetail_20' ) start [2025-04-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823691', 'tblTempUsageDetail_20' ) end [2025-04-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823691', 'tblTempVendorCDR_20' ) start [2025-04-03 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823691', 'tblTempVendorCDR_20' ) end [2025-04-03 06:31:18] Production.INFO: ProcessCDR(1,14823691,1,1,2) [2025-04-03 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823691', 'tblTempUsageDetail_20' ) start [2025-04-03 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823691', 'tblTempUsageDetail_20' ) end [2025-04-03 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:31:21] Production.INFO: ==23316== Releasing lock... [2025-04-03 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:32:05 [end_date_ymd] => 2025-04-03 06:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:32:05' and `end` < '2025-04-03 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-03 06:32:17] Production.INFO: count ==371 [2025-04-03 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:32:05 - End Time 2025-04-03 06:32:05 [2025-04-03 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823696', 'tblTempUsageDetail_20' ) start [2025-04-03 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823696', 'tblTempUsageDetail_20' ) end [2025-04-03 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823696', 'tblTempVendorCDR_20' ) start [2025-04-03 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823696', 'tblTempVendorCDR_20' ) end [2025-04-03 06:32:18] Production.INFO: ProcessCDR(1,14823696,1,1,2) [2025-04-03 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823696', 'tblTempUsageDetail_20' ) start [2025-04-03 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823696', 'tblTempUsageDetail_20' ) end [2025-04-03 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:32:21] Production.INFO: ==23391== Releasing lock... [2025-04-03 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:33:06 [end_date_ymd] => 2025-04-03 06:33:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:33:06' and `end` < '2025-04-03 06: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-03 06:33:18] Production.INFO: count ==371 [2025-04-03 06:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:33:06 - End Time 2025-04-03 06:33:06 [2025-04-03 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823701', 'tblTempUsageDetail_20' ) start [2025-04-03 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823701', 'tblTempUsageDetail_20' ) end [2025-04-03 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823701', 'tblTempVendorCDR_20' ) start [2025-04-03 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823701', 'tblTempVendorCDR_20' ) end [2025-04-03 06:33:19] Production.INFO: ProcessCDR(1,14823701,1,1,2) [2025-04-03 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823701', 'tblTempUsageDetail_20' ) start [2025-04-03 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823701', 'tblTempUsageDetail_20' ) end [2025-04-03 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:33:22] Production.INFO: ==23468== Releasing lock... [2025-04-03 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:34:05 [end_date_ymd] => 2025-04-03 06:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:34:05' and `end` < '2025-04-03 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-03 06:34:18] Production.INFO: count ==371 [2025-04-03 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:34:05 - End Time 2025-04-03 06:34:05 [2025-04-03 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823706', 'tblTempUsageDetail_20' ) start [2025-04-03 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823706', 'tblTempUsageDetail_20' ) end [2025-04-03 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823706', 'tblTempVendorCDR_20' ) start [2025-04-03 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823706', 'tblTempVendorCDR_20' ) end [2025-04-03 06:34:18] Production.INFO: ProcessCDR(1,14823706,1,1,2) [2025-04-03 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823706', 'tblTempUsageDetail_20' ) start [2025-04-03 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823706', 'tblTempUsageDetail_20' ) end [2025-04-03 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:34:21] Production.INFO: ==23548== Releasing lock... [2025-04-03 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:35:06 [end_date_ymd] => 2025-04-03 06:35:06 [RateCDR] => 1 ) [2025-04-03 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:35:06' and `end` < '2025-04-03 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:35:19] Production.INFO: count ==371 [2025-04-03 06:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:35:06 - End Time 2025-04-03 06:35:06 [2025-04-03 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823711', 'tblTempUsageDetail_20' ) start [2025-04-03 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823711', 'tblTempUsageDetail_20' ) end [2025-04-03 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823711', 'tblTempVendorCDR_20' ) start [2025-04-03 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823711', 'tblTempVendorCDR_20' ) end [2025-04-03 06:35:19] Production.INFO: ProcessCDR(1,14823711,1,1,2) [2025-04-03 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823711', 'tblTempUsageDetail_20' ) start [2025-04-03 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823711', 'tblTempUsageDetail_20' ) end [2025-04-03 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:35:22] Production.INFO: ==23627== Releasing lock... [2025-04-03 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:36:05 [end_date_ymd] => 2025-04-03 06:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:36:05' and `end` < '2025-04-03 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-03 06:36:18] Production.INFO: count ==371 [2025-04-03 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:36:05 - End Time 2025-04-03 06:36:05 [2025-04-03 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823716', 'tblTempUsageDetail_20' ) start [2025-04-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823716', 'tblTempUsageDetail_20' ) end [2025-04-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823716', 'tblTempVendorCDR_20' ) start [2025-04-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823716', 'tblTempVendorCDR_20' ) end [2025-04-03 06:36:18] Production.INFO: ProcessCDR(1,14823716,1,1,2) [2025-04-03 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823716', 'tblTempUsageDetail_20' ) start [2025-04-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823716', 'tblTempUsageDetail_20' ) end [2025-04-03 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:36:21] Production.INFO: ==23699== Releasing lock... [2025-04-03 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:37:05 [end_date_ymd] => 2025-04-03 06:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:37:05' and `end` < '2025-04-03 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-03 06:37:18] Production.INFO: count ==371 [2025-04-03 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:37:05 - End Time 2025-04-03 06:37:05 [2025-04-03 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823721', 'tblTempUsageDetail_20' ) start [2025-04-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823721', 'tblTempUsageDetail_20' ) end [2025-04-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823721', 'tblTempVendorCDR_20' ) start [2025-04-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823721', 'tblTempVendorCDR_20' ) end [2025-04-03 06:37:18] Production.INFO: ProcessCDR(1,14823721,1,1,2) [2025-04-03 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823721', 'tblTempUsageDetail_20' ) start [2025-04-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823721', 'tblTempUsageDetail_20' ) end [2025-04-03 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:37:21] Production.INFO: ==23783== Releasing lock... [2025-04-03 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:38:05 [end_date_ymd] => 2025-04-03 06:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:38:05' and `end` < '2025-04-03 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-03 06:38:18] Production.INFO: count ==371 [2025-04-03 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:38:05 - End Time 2025-04-03 06:38:05 [2025-04-03 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823726', 'tblTempUsageDetail_20' ) start [2025-04-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823726', 'tblTempUsageDetail_20' ) end [2025-04-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823726', 'tblTempVendorCDR_20' ) start [2025-04-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823726', 'tblTempVendorCDR_20' ) end [2025-04-03 06:38:18] Production.INFO: ProcessCDR(1,14823726,1,1,2) [2025-04-03 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823726', 'tblTempUsageDetail_20' ) start [2025-04-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823726', 'tblTempUsageDetail_20' ) end [2025-04-03 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:38:21] Production.INFO: ==23860== Releasing lock... [2025-04-03 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:39:05 [end_date_ymd] => 2025-04-03 06:39:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:39:05' and `end` < '2025-04-03 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-03 06:39:18] Production.INFO: count ==371 [2025-04-03 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:39:05 - End Time 2025-04-03 06:39:05 [2025-04-03 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823731', 'tblTempUsageDetail_20' ) start [2025-04-03 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823731', 'tblTempUsageDetail_20' ) end [2025-04-03 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823731', 'tblTempVendorCDR_20' ) start [2025-04-03 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823731', 'tblTempVendorCDR_20' ) end [2025-04-03 06:39:18] Production.INFO: ProcessCDR(1,14823731,1,1,2) [2025-04-03 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823731', 'tblTempUsageDetail_20' ) start [2025-04-03 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823731', 'tblTempUsageDetail_20' ) end [2025-04-03 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:39:21] Production.INFO: ==23937== Releasing lock... [2025-04-03 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:40:06 [end_date_ymd] => 2025-04-03 06:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:40:06' and `end` < '2025-04-03 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-03 06:40:18] Production.INFO: count ==364 [2025-04-03 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:40:06 - End Time 2025-04-03 06:40:06 [2025-04-03 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823737', 'tblTempUsageDetail_20' ) start [2025-04-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823737', 'tblTempUsageDetail_20' ) end [2025-04-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823737', 'tblTempVendorCDR_20' ) start [2025-04-03 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823737', 'tblTempVendorCDR_20' ) end [2025-04-03 06:40:19] Production.INFO: ProcessCDR(1,14823737,1,1,2) [2025-04-03 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823737', 'tblTempUsageDetail_20' ) start [2025-04-03 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823737', 'tblTempUsageDetail_20' ) end [2025-04-03 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:40:22] Production.INFO: ==24016== Releasing lock... [2025-04-03 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:41:05 [end_date_ymd] => 2025-04-03 06:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:41:05' and `end` < '2025-04-03 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-03 06:41:18] Production.INFO: count ==364 [2025-04-03 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:41:05 - End Time 2025-04-03 06:41:05 [2025-04-03 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823742', 'tblTempUsageDetail_20' ) start [2025-04-03 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823742', 'tblTempUsageDetail_20' ) end [2025-04-03 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823742', 'tblTempVendorCDR_20' ) start [2025-04-03 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823742', 'tblTempVendorCDR_20' ) end [2025-04-03 06:41:18] Production.INFO: ProcessCDR(1,14823742,1,1,2) [2025-04-03 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823742', 'tblTempUsageDetail_20' ) start [2025-04-03 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823742', 'tblTempUsageDetail_20' ) end [2025-04-03 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:41:21] Production.INFO: ==24090== Releasing lock... [2025-04-03 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:42:05 [end_date_ymd] => 2025-04-03 06:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:42:05' and `end` < '2025-04-03 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-03 06:42:18] Production.INFO: count ==327 [2025-04-03 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:42:05 - End Time 2025-04-03 06:42:05 [2025-04-03 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823747', 'tblTempUsageDetail_20' ) start [2025-04-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823747', 'tblTempUsageDetail_20' ) end [2025-04-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823747', 'tblTempVendorCDR_20' ) start [2025-04-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823747', 'tblTempVendorCDR_20' ) end [2025-04-03 06:42:18] Production.INFO: ProcessCDR(1,14823747,1,1,2) [2025-04-03 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823747', 'tblTempUsageDetail_20' ) start [2025-04-03 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823747', 'tblTempUsageDetail_20' ) end [2025-04-03 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:42:21] Production.INFO: ==24165== Releasing lock... [2025-04-03 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:43:05 [end_date_ymd] => 2025-04-03 06:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:43:05' and `end` < '2025-04-03 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-03 06:43:18] Production.INFO: count ==325 [2025-04-03 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:43:05 - End Time 2025-04-03 06:43:05 [2025-04-03 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823752', 'tblTempUsageDetail_20' ) start [2025-04-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823752', 'tblTempUsageDetail_20' ) end [2025-04-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823752', 'tblTempVendorCDR_20' ) start [2025-04-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823752', 'tblTempVendorCDR_20' ) end [2025-04-03 06:43:18] Production.INFO: ProcessCDR(1,14823752,1,1,2) [2025-04-03 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823752', 'tblTempUsageDetail_20' ) start [2025-04-03 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823752', 'tblTempUsageDetail_20' ) end [2025-04-03 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:43:21] Production.INFO: ==24275== Releasing lock... [2025-04-03 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:43:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:44:06 [end_date_ymd] => 2025-04-03 06:44:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:44:06' and `end` < '2025-04-03 06: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-03 06:44:18] Production.INFO: count ==323 [2025-04-03 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:44:06 - End Time 2025-04-03 06:44:06 [2025-04-03 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823757', 'tblTempUsageDetail_20' ) start [2025-04-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823757', 'tblTempUsageDetail_20' ) end [2025-04-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823757', 'tblTempVendorCDR_20' ) start [2025-04-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823757', 'tblTempVendorCDR_20' ) end [2025-04-03 06:44:18] Production.INFO: ProcessCDR(1,14823757,1,1,2) [2025-04-03 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823757', 'tblTempUsageDetail_20' ) start [2025-04-03 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823757', 'tblTempUsageDetail_20' ) end [2025-04-03 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:44:22] Production.INFO: ==24346== Releasing lock... [2025-04-03 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:44:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:45:05 [end_date_ymd] => 2025-04-03 06:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:45:05' and `end` < '2025-04-03 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-03 06:45:18] Production.INFO: count ==323 [2025-04-03 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:45:05 - End Time 2025-04-03 06:45:05 [2025-04-03 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823762', 'tblTempUsageDetail_20' ) start [2025-04-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823762', 'tblTempUsageDetail_20' ) end [2025-04-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823762', 'tblTempVendorCDR_20' ) start [2025-04-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823762', 'tblTempVendorCDR_20' ) end [2025-04-03 06:45:18] Production.INFO: ProcessCDR(1,14823762,1,1,2) [2025-04-03 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823762', 'tblTempUsageDetail_20' ) start [2025-04-03 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823762', 'tblTempUsageDetail_20' ) end [2025-04-03 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:45:21] Production.INFO: ==24419== Releasing lock... [2025-04-03 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:46:06 [end_date_ymd] => 2025-04-03 06:46:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:46:06' and `end` < '2025-04-03 06: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-03 06:46:19] Production.INFO: count ==323 [2025-04-03 06:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:46:06 - End Time 2025-04-03 06:46:06 [2025-04-03 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823767', 'tblTempUsageDetail_20' ) start [2025-04-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823767', 'tblTempUsageDetail_20' ) end [2025-04-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823767', 'tblTempVendorCDR_20' ) start [2025-04-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823767', 'tblTempVendorCDR_20' ) end [2025-04-03 06:46:19] Production.INFO: ProcessCDR(1,14823767,1,1,2) [2025-04-03 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823767', 'tblTempUsageDetail_20' ) start [2025-04-03 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823767', 'tblTempUsageDetail_20' ) end [2025-04-03 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:46:22] Production.INFO: ==24493== Releasing lock... [2025-04-03 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:47:05 [end_date_ymd] => 2025-04-03 06:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:47:05' and `end` < '2025-04-03 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-03 06:47:18] Production.INFO: count ==323 [2025-04-03 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:47:05 - End Time 2025-04-03 06:47:05 [2025-04-03 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823772', 'tblTempUsageDetail_20' ) start [2025-04-03 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823772', 'tblTempUsageDetail_20' ) end [2025-04-03 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823772', 'tblTempVendorCDR_20' ) start [2025-04-03 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823772', 'tblTempVendorCDR_20' ) end [2025-04-03 06:47:18] Production.INFO: ProcessCDR(1,14823772,1,1,2) [2025-04-03 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823772', 'tblTempUsageDetail_20' ) start [2025-04-03 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823772', 'tblTempUsageDetail_20' ) end [2025-04-03 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:47:21] Production.INFO: ==24563== Releasing lock... [2025-04-03 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:48:06 [end_date_ymd] => 2025-04-03 06:48:06 [RateCDR] => 1 ) [2025-04-03 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:48:06' and `end` < '2025-04-03 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:48:18] Production.INFO: count ==323 [2025-04-03 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:48:06 - End Time 2025-04-03 06:48:06 [2025-04-03 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823777', 'tblTempUsageDetail_20' ) start [2025-04-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823777', 'tblTempUsageDetail_20' ) end [2025-04-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823777', 'tblTempVendorCDR_20' ) start [2025-04-03 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823777', 'tblTempVendorCDR_20' ) end [2025-04-03 06:48:18] Production.INFO: ProcessCDR(1,14823777,1,1,2) [2025-04-03 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823777', 'tblTempUsageDetail_20' ) start [2025-04-03 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823777', 'tblTempUsageDetail_20' ) end [2025-04-03 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:48:22] Production.INFO: ==24633== Releasing lock... [2025-04-03 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:49:05 [end_date_ymd] => 2025-04-03 06:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:49:05' and `end` < '2025-04-03 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-03 06:49:18] Production.INFO: count ==323 [2025-04-03 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:49:05 - End Time 2025-04-03 06:49:05 [2025-04-03 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823782', 'tblTempUsageDetail_20' ) start [2025-04-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823782', 'tblTempUsageDetail_20' ) end [2025-04-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823782', 'tblTempVendorCDR_20' ) start [2025-04-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823782', 'tblTempVendorCDR_20' ) end [2025-04-03 06:49:18] Production.INFO: ProcessCDR(1,14823782,1,1,2) [2025-04-03 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823782', 'tblTempUsageDetail_20' ) start [2025-04-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823782', 'tblTempUsageDetail_20' ) end [2025-04-03 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:49:21] Production.INFO: ==24705== Releasing lock... [2025-04-03 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:50:06 [end_date_ymd] => 2025-04-03 06:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 03:50:06' and `end` < '2025-04-03 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-03 06:50:19] Production.INFO: count ==331 [2025-04-03 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:50:06 - End Time 2025-04-03 06:50:06 [2025-04-03 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823788', 'tblTempUsageDetail_20' ) start [2025-04-03 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823788', 'tblTempUsageDetail_20' ) end [2025-04-03 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823788', 'tblTempVendorCDR_20' ) start [2025-04-03 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823788', 'tblTempVendorCDR_20' ) end [2025-04-03 06:50:19] Production.INFO: ProcessCDR(1,14823788,1,1,2) [2025-04-03 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823788', 'tblTempUsageDetail_20' ) start [2025-04-03 06:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823788', 'tblTempUsageDetail_20' ) end [2025-04-03 06:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:50:24] Production.INFO: ==24778== Releasing lock... [2025-04-03 06:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:50:24] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:51:05 [end_date_ymd] => 2025-04-03 06:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:51:05' and `end` < '2025-04-03 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-03 06:51:18] Production.INFO: count ==331 [2025-04-03 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:51:05 - End Time 2025-04-03 06:51:05 [2025-04-03 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823793', 'tblTempUsageDetail_20' ) start [2025-04-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823793', 'tblTempUsageDetail_20' ) end [2025-04-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823793', 'tblTempVendorCDR_20' ) start [2025-04-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823793', 'tblTempVendorCDR_20' ) end [2025-04-03 06:51:18] Production.INFO: ProcessCDR(1,14823793,1,1,2) [2025-04-03 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823793', 'tblTempUsageDetail_20' ) start [2025-04-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823793', 'tblTempUsageDetail_20' ) end [2025-04-03 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:51:21] Production.INFO: ==24852== Releasing lock... [2025-04-03 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:51:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:52:05 [end_date_ymd] => 2025-04-03 06:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:52:05' and `end` < '2025-04-03 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-03 06:52:18] Production.INFO: count ==326 [2025-04-03 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:52:05 - End Time 2025-04-03 06:52:05 [2025-04-03 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823798', 'tblTempUsageDetail_20' ) start [2025-04-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823798', 'tblTempUsageDetail_20' ) end [2025-04-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823798', 'tblTempVendorCDR_20' ) start [2025-04-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823798', 'tblTempVendorCDR_20' ) end [2025-04-03 06:52:18] Production.INFO: ProcessCDR(1,14823798,1,1,2) [2025-04-03 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823798', 'tblTempUsageDetail_20' ) start [2025-04-03 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823798', 'tblTempUsageDetail_20' ) end [2025-04-03 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:52:22] Production.INFO: ==24925== Releasing lock... [2025-04-03 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:52:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:53:05 [end_date_ymd] => 2025-04-03 06:53:05 [RateCDR] => 1 ) [2025-04-03 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 03:53:05' and `end` < '2025-04-03 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 06:53:18] Production.INFO: count ==326 [2025-04-03 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:53:05 - End Time 2025-04-03 06:53:05 [2025-04-03 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823803', 'tblTempUsageDetail_20' ) start [2025-04-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823803', 'tblTempUsageDetail_20' ) end [2025-04-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823803', 'tblTempVendorCDR_20' ) start [2025-04-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823803', 'tblTempVendorCDR_20' ) end [2025-04-03 06:53:18] Production.INFO: ProcessCDR(1,14823803,1,1,2) [2025-04-03 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823803', 'tblTempUsageDetail_20' ) start [2025-04-03 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823803', 'tblTempUsageDetail_20' ) end [2025-04-03 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:53:21] Production.INFO: ==25003== Releasing lock... [2025-04-03 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:54:06 [end_date_ymd] => 2025-04-03 06:54:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:54:06' and `end` < '2025-04-03 06: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-03 06:54:18] Production.INFO: count ==331 [2025-04-03 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:54:06 - End Time 2025-04-03 06:54:06 [2025-04-03 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823808', 'tblTempUsageDetail_20' ) start [2025-04-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823808', 'tblTempUsageDetail_20' ) end [2025-04-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823808', 'tblTempVendorCDR_20' ) start [2025-04-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823808', 'tblTempVendorCDR_20' ) end [2025-04-03 06:54:18] Production.INFO: ProcessCDR(1,14823808,1,1,2) [2025-04-03 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823808', 'tblTempUsageDetail_20' ) start [2025-04-03 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823808', 'tblTempUsageDetail_20' ) end [2025-04-03 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:54:22] Production.INFO: ==25073== Releasing lock... [2025-04-03 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:54:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:55:05 [end_date_ymd] => 2025-04-03 06:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:55:05' and `end` < '2025-04-03 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-03 06:55:17] Production.INFO: count ==331 [2025-04-03 06:55:17] Production.ERROR: pbx CDR StartTime 2025-04-03 03:55:05 - End Time 2025-04-03 06:55:05 [2025-04-03 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823813', 'tblTempUsageDetail_20' ) start [2025-04-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823813', 'tblTempUsageDetail_20' ) end [2025-04-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823813', 'tblTempVendorCDR_20' ) start [2025-04-03 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823813', 'tblTempVendorCDR_20' ) end [2025-04-03 06:55:17] Production.INFO: ProcessCDR(1,14823813,1,1,2) [2025-04-03 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823813', 'tblTempUsageDetail_20' ) start [2025-04-03 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823813', 'tblTempUsageDetail_20' ) end [2025-04-03 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:55:21] Production.INFO: ==25146== Releasing lock... [2025-04-03 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:55:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:56:06 [end_date_ymd] => 2025-04-03 06:56:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:56:06' and `end` < '2025-04-03 06: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-03 06:56:18] Production.INFO: count ==336 [2025-04-03 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:56:06 - End Time 2025-04-03 06:56:06 [2025-04-03 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823818', 'tblTempUsageDetail_20' ) start [2025-04-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823818', 'tblTempUsageDetail_20' ) end [2025-04-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823818', 'tblTempVendorCDR_20' ) start [2025-04-03 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823818', 'tblTempVendorCDR_20' ) end [2025-04-03 06:56:18] Production.INFO: ProcessCDR(1,14823818,1,1,2) [2025-04-03 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823818', 'tblTempUsageDetail_20' ) start [2025-04-03 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823818', 'tblTempUsageDetail_20' ) end [2025-04-03 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:56:22] Production.INFO: ==25220== Releasing lock... [2025-04-03 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:57:05 [end_date_ymd] => 2025-04-03 06:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:57:05' and `end` < '2025-04-03 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-03 06:57:18] Production.INFO: count ==337 [2025-04-03 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 03:57:05 - End Time 2025-04-03 06:57:05 [2025-04-03 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823823', 'tblTempUsageDetail_20' ) start [2025-04-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823823', 'tblTempUsageDetail_20' ) end [2025-04-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823823', 'tblTempVendorCDR_20' ) start [2025-04-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823823', 'tblTempVendorCDR_20' ) end [2025-04-03 06:57:18] Production.INFO: ProcessCDR(1,14823823,1,1,2) [2025-04-03 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823823', 'tblTempUsageDetail_20' ) start [2025-04-03 06:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823823', 'tblTempUsageDetail_20' ) end [2025-04-03 06:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:57:23] Production.INFO: ==25294== Releasing lock... [2025-04-03 06:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:57:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:58:06 [end_date_ymd] => 2025-04-03 06:58:06 [RateCDR] => 1 ) [2025-04-03 06: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-03 03:58:06' and `end` < '2025-04-03 06: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-03 06:58:19] Production.INFO: count ==337 [2025-04-03 06:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 03:58:06 - End Time 2025-04-03 06:58:06 [2025-04-03 06:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823828', 'tblTempUsageDetail_20' ) start [2025-04-03 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823828', 'tblTempUsageDetail_20' ) end [2025-04-03 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823828', 'tblTempVendorCDR_20' ) start [2025-04-03 06:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823828', 'tblTempVendorCDR_20' ) end [2025-04-03 06:58:19] Production.INFO: ProcessCDR(1,14823828,1,1,2) [2025-04-03 06:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823828', 'tblTempUsageDetail_20' ) start [2025-04-03 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823828', 'tblTempUsageDetail_20' ) end [2025-04-03 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:58:22] Production.INFO: ==25408== Releasing lock... [2025-04-03 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:58:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 03:59:05 [end_date_ymd] => 2025-04-03 06:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 03:59:05' and `end` < '2025-04-03 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-03 06:59:17] Production.INFO: count ==337 [2025-04-03 06:59:17] Production.ERROR: pbx CDR StartTime 2025-04-03 03:59:05 - End Time 2025-04-03 06:59:05 [2025-04-03 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823833', 'tblTempUsageDetail_20' ) start [2025-04-03 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823833', 'tblTempUsageDetail_20' ) end [2025-04-03 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823833', 'tblTempVendorCDR_20' ) start [2025-04-03 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823833', 'tblTempVendorCDR_20' ) end [2025-04-03 06:59:17] Production.INFO: ProcessCDR(1,14823833,1,1,2) [2025-04-03 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823833', 'tblTempUsageDetail_20' ) start [2025-04-03 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823833', 'tblTempUsageDetail_20' ) end [2025-04-03 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 06:59:21] Production.INFO: ==25479== Releasing lock... [2025-04-03 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 06:59:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:00:06 [end_date_ymd] => 2025-04-03 07:00:06 [RateCDR] => 1 ) [2025-04-03 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:00:06' and `end` < '2025-04-03 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:00:19] Production.INFO: count ==329 [2025-04-03 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:00:06 - End Time 2025-04-03 07:00:06 [2025-04-03 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823839', 'tblTempUsageDetail_20' ) start [2025-04-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823839', 'tblTempUsageDetail_20' ) end [2025-04-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823839', 'tblTempVendorCDR_20' ) start [2025-04-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823839', 'tblTempVendorCDR_20' ) end [2025-04-03 07:00:19] Production.INFO: ProcessCDR(1,14823839,1,1,2) [2025-04-03 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823839', 'tblTempUsageDetail_20' ) start [2025-04-03 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823839', 'tblTempUsageDetail_20' ) end [2025-04-03 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:00:22] Production.INFO: ==25560== Releasing lock... [2025-04-03 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:00:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:01:05 [end_date_ymd] => 2025-04-03 07:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:01:05' and `end` < '2025-04-03 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-03 07:01:18] Production.INFO: count ==258 [2025-04-03 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:01:05 - End Time 2025-04-03 07:01:05 [2025-04-03 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823844', 'tblTempUsageDetail_20' ) start [2025-04-03 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823844', 'tblTempUsageDetail_20' ) end [2025-04-03 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823844', 'tblTempVendorCDR_20' ) start [2025-04-03 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823844', 'tblTempVendorCDR_20' ) end [2025-04-03 07:01:18] Production.INFO: ProcessCDR(1,14823844,1,1,2) [2025-04-03 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823844', 'tblTempUsageDetail_20' ) start [2025-04-03 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823844', 'tblTempUsageDetail_20' ) end [2025-04-03 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:01:22] Production.INFO: ==25726== Releasing lock... [2025-04-03 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:02:06 [end_date_ymd] => 2025-04-03 07:02:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:02:06' and `end` < '2025-04-03 07: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-03 07:02:18] Production.INFO: count ==258 [2025-04-03 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:02:06 - End Time 2025-04-03 07:02:06 [2025-04-03 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823849', 'tblTempUsageDetail_20' ) start [2025-04-03 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823849', 'tblTempUsageDetail_20' ) end [2025-04-03 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823849', 'tblTempVendorCDR_20' ) start [2025-04-03 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823849', 'tblTempVendorCDR_20' ) end [2025-04-03 07:02:18] Production.INFO: ProcessCDR(1,14823849,1,1,2) [2025-04-03 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823849', 'tblTempUsageDetail_20' ) start [2025-04-03 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823849', 'tblTempUsageDetail_20' ) end [2025-04-03 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:02:22] Production.INFO: ==25802== Releasing lock... [2025-04-03 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:03:05 [end_date_ymd] => 2025-04-03 07:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:03:05' and `end` < '2025-04-03 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-03 07:03:19] Production.INFO: count ==258 [2025-04-03 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:03:05 - End Time 2025-04-03 07:03:05 [2025-04-03 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823854', 'tblTempUsageDetail_20' ) start [2025-04-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823854', 'tblTempUsageDetail_20' ) end [2025-04-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823854', 'tblTempVendorCDR_20' ) start [2025-04-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823854', 'tblTempVendorCDR_20' ) end [2025-04-03 07:03:19] Production.INFO: ProcessCDR(1,14823854,1,1,2) [2025-04-03 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823854', 'tblTempUsageDetail_20' ) start [2025-04-03 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823854', 'tblTempUsageDetail_20' ) end [2025-04-03 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:03:23] Production.INFO: ==25877== Releasing lock... [2025-04-03 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:03:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:04:06 [end_date_ymd] => 2025-04-03 07:04:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:04:06' and `end` < '2025-04-03 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-03 07:04:20] Production.INFO: count ==264 [2025-04-03 07:04:20] Production.ERROR: pbx CDR StartTime 2025-04-03 04:04:06 - End Time 2025-04-03 07:04:06 [2025-04-03 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823859', 'tblTempUsageDetail_20' ) start [2025-04-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823859', 'tblTempUsageDetail_20' ) end [2025-04-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823859', 'tblTempVendorCDR_20' ) start [2025-04-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823859', 'tblTempVendorCDR_20' ) end [2025-04-03 07:04:20] Production.INFO: ProcessCDR(1,14823859,1,1,2) [2025-04-03 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823859', 'tblTempUsageDetail_20' ) start [2025-04-03 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823859', 'tblTempUsageDetail_20' ) end [2025-04-03 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:04:24] Production.INFO: ==25956== Releasing lock... [2025-04-03 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:04:24] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:05:05 [end_date_ymd] => 2025-04-03 07:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:05:05' and `end` < '2025-04-03 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-03 07:05:19] Production.INFO: count ==264 [2025-04-03 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:05:05 - End Time 2025-04-03 07:05:05 [2025-04-03 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823864', 'tblTempUsageDetail_20' ) start [2025-04-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823864', 'tblTempUsageDetail_20' ) end [2025-04-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823864', 'tblTempVendorCDR_20' ) start [2025-04-03 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823864', 'tblTempVendorCDR_20' ) end [2025-04-03 07:05:19] Production.INFO: ProcessCDR(1,14823864,1,1,2) [2025-04-03 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823864', 'tblTempUsageDetail_20' ) start [2025-04-03 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823864', 'tblTempUsageDetail_20' ) end [2025-04-03 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:05:23] Production.INFO: ==26109== Releasing lock... [2025-04-03 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:05:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:06:06 [end_date_ymd] => 2025-04-03 07:06:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:06:06' and `end` < '2025-04-03 07: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-03 07:06:20] Production.INFO: count ==264 [2025-04-03 07:06:20] Production.ERROR: pbx CDR StartTime 2025-04-03 04:06:06 - End Time 2025-04-03 07:06:06 [2025-04-03 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823869', 'tblTempUsageDetail_20' ) start [2025-04-03 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823869', 'tblTempUsageDetail_20' ) end [2025-04-03 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823869', 'tblTempVendorCDR_20' ) start [2025-04-03 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823869', 'tblTempVendorCDR_20' ) end [2025-04-03 07:06:20] Production.INFO: ProcessCDR(1,14823869,1,1,2) [2025-04-03 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823869', 'tblTempUsageDetail_20' ) start [2025-04-03 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823869', 'tblTempUsageDetail_20' ) end [2025-04-03 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:06:24] Production.INFO: ==26189== Releasing lock... [2025-04-03 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:06:24] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:07:05 [end_date_ymd] => 2025-04-03 07:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:07:05' and `end` < '2025-04-03 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-03 07:07:18] Production.INFO: count ==264 [2025-04-03 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:07:05 - End Time 2025-04-03 07:07:05 [2025-04-03 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823874', 'tblTempUsageDetail_20' ) start [2025-04-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823874', 'tblTempUsageDetail_20' ) end [2025-04-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823874', 'tblTempVendorCDR_20' ) start [2025-04-03 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823874', 'tblTempVendorCDR_20' ) end [2025-04-03 07:07:18] Production.INFO: ProcessCDR(1,14823874,1,1,2) [2025-04-03 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823874', 'tblTempUsageDetail_20' ) start [2025-04-03 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823874', 'tblTempUsageDetail_20' ) end [2025-04-03 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:07:22] Production.INFO: ==26266== Releasing lock... [2025-04-03 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:07:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:08:06 [end_date_ymd] => 2025-04-03 07:08:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:08:06' and `end` < '2025-04-03 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-03 07:08:19] Production.INFO: count ==264 [2025-04-03 07:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:08:06 - End Time 2025-04-03 07:08:06 [2025-04-03 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823879', 'tblTempUsageDetail_20' ) start [2025-04-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823879', 'tblTempUsageDetail_20' ) end [2025-04-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823879', 'tblTempVendorCDR_20' ) start [2025-04-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823879', 'tblTempVendorCDR_20' ) end [2025-04-03 07:08:19] Production.INFO: ProcessCDR(1,14823879,1,1,2) [2025-04-03 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823879', 'tblTempUsageDetail_20' ) start [2025-04-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823879', 'tblTempUsageDetail_20' ) end [2025-04-03 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:08:23] Production.INFO: ==26422== Releasing lock... [2025-04-03 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:08:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:09:05 [end_date_ymd] => 2025-04-03 07:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:09:05' and `end` < '2025-04-03 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-03 07:09:19] Production.INFO: count ==264 [2025-04-03 07:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:09:05 - End Time 2025-04-03 07:09:05 [2025-04-03 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823884', 'tblTempUsageDetail_20' ) start [2025-04-03 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823884', 'tblTempUsageDetail_20' ) end [2025-04-03 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823884', 'tblTempVendorCDR_20' ) start [2025-04-03 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823884', 'tblTempVendorCDR_20' ) end [2025-04-03 07:09:19] Production.INFO: ProcessCDR(1,14823884,1,1,2) [2025-04-03 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823884', 'tblTempUsageDetail_20' ) start [2025-04-03 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823884', 'tblTempUsageDetail_20' ) end [2025-04-03 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:09:23] Production.INFO: ==26497== Releasing lock... [2025-04-03 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:09:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:10:07 [end_date_ymd] => 2025-04-03 07:10:07 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:10:07' and `end` < '2025-04-03 07: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-03 07:10:20] Production.INFO: count ==264 [2025-04-03 07:10:20] Production.ERROR: pbx CDR StartTime 2025-04-03 04:10:07 - End Time 2025-04-03 07:10:07 [2025-04-03 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823890', 'tblTempUsageDetail_20' ) start [2025-04-03 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823890', 'tblTempUsageDetail_20' ) end [2025-04-03 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823890', 'tblTempVendorCDR_20' ) start [2025-04-03 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823890', 'tblTempVendorCDR_20' ) end [2025-04-03 07:10:20] Production.INFO: ProcessCDR(1,14823890,1,1,2) [2025-04-03 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823890', 'tblTempUsageDetail_20' ) start [2025-04-03 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823890', 'tblTempUsageDetail_20' ) end [2025-04-03 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:10:24] Production.INFO: ==26576== Releasing lock... [2025-04-03 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:10:24] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:11:05 [end_date_ymd] => 2025-04-03 07:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:11:05' and `end` < '2025-04-03 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-03 07:11:18] Production.INFO: count ==264 [2025-04-03 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:11:05 - End Time 2025-04-03 07:11:05 [2025-04-03 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823895', 'tblTempUsageDetail_20' ) start [2025-04-03 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823895', 'tblTempUsageDetail_20' ) end [2025-04-03 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823895', 'tblTempVendorCDR_20' ) start [2025-04-03 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823895', 'tblTempVendorCDR_20' ) end [2025-04-03 07:11:18] Production.INFO: ProcessCDR(1,14823895,1,1,2) [2025-04-03 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823895', 'tblTempUsageDetail_20' ) start [2025-04-03 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823895', 'tblTempUsageDetail_20' ) end [2025-04-03 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:11:22] Production.INFO: ==26653== Releasing lock... [2025-04-03 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:11:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:12:06 [end_date_ymd] => 2025-04-03 07:12:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:12:06' and `end` < '2025-04-03 07: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-03 07:12:19] Production.INFO: count ==264 [2025-04-03 07:12:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:12:06 - End Time 2025-04-03 07:12:06 [2025-04-03 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823900', 'tblTempUsageDetail_20' ) start [2025-04-03 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823900', 'tblTempUsageDetail_20' ) end [2025-04-03 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823900', 'tblTempVendorCDR_20' ) start [2025-04-03 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823900', 'tblTempVendorCDR_20' ) end [2025-04-03 07:12:19] Production.INFO: ProcessCDR(1,14823900,1,1,2) [2025-04-03 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823900', 'tblTempUsageDetail_20' ) start [2025-04-03 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823900', 'tblTempUsageDetail_20' ) end [2025-04-03 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:12:23] Production.INFO: ==26805== Releasing lock... [2025-04-03 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:12:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:13:05 [end_date_ymd] => 2025-04-03 07:13:05 [RateCDR] => 1 ) [2025-04-03 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:13:05' and `end` < '2025-04-03 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:13:18] Production.INFO: count ==264 [2025-04-03 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:13:05 - End Time 2025-04-03 07:13:05 [2025-04-03 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823905', 'tblTempUsageDetail_20' ) start [2025-04-03 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823905', 'tblTempUsageDetail_20' ) end [2025-04-03 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823905', 'tblTempVendorCDR_20' ) start [2025-04-03 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823905', 'tblTempVendorCDR_20' ) end [2025-04-03 07:13:18] Production.INFO: ProcessCDR(1,14823905,1,1,2) [2025-04-03 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823905', 'tblTempUsageDetail_20' ) start [2025-04-03 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823905', 'tblTempUsageDetail_20' ) end [2025-04-03 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:13:22] Production.INFO: ==26885== Releasing lock... [2025-04-03 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:14:05 [end_date_ymd] => 2025-04-03 07:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:14:05' and `end` < '2025-04-03 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-03 07:14:18] Production.INFO: count ==264 [2025-04-03 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:14:05 - End Time 2025-04-03 07:14:05 [2025-04-03 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823910', 'tblTempUsageDetail_20' ) start [2025-04-03 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823910', 'tblTempUsageDetail_20' ) end [2025-04-03 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823910', 'tblTempVendorCDR_20' ) start [2025-04-03 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823910', 'tblTempVendorCDR_20' ) end [2025-04-03 07:14:18] Production.INFO: ProcessCDR(1,14823910,1,1,2) [2025-04-03 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823910', 'tblTempUsageDetail_20' ) start [2025-04-03 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823910', 'tblTempUsageDetail_20' ) end [2025-04-03 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:14:22] Production.INFO: ==26997== Releasing lock... [2025-04-03 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:14:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:15:05 [end_date_ymd] => 2025-04-03 07:15:05 [RateCDR] => 1 ) [2025-04-03 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:15:05' and `end` < '2025-04-03 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:15:19] Production.INFO: count ==265 [2025-04-03 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:15:05 - End Time 2025-04-03 07:15:05 [2025-04-03 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823915', 'tblTempUsageDetail_20' ) start [2025-04-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823915', 'tblTempUsageDetail_20' ) end [2025-04-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823915', 'tblTempVendorCDR_20' ) start [2025-04-03 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823915', 'tblTempVendorCDR_20' ) end [2025-04-03 07:15:19] Production.INFO: ProcessCDR(1,14823915,1,1,2) [2025-04-03 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823915', 'tblTempUsageDetail_20' ) start [2025-04-03 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823915', 'tblTempUsageDetail_20' ) end [2025-04-03 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:15:23] Production.INFO: ==27153== Releasing lock... [2025-04-03 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:15:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:16:05 [end_date_ymd] => 2025-04-03 07:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:16:05' and `end` < '2025-04-03 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-03 07:16:19] Production.INFO: count ==265 [2025-04-03 07:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:16:05 - End Time 2025-04-03 07:16:05 [2025-04-03 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823920', 'tblTempUsageDetail_20' ) start [2025-04-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823920', 'tblTempUsageDetail_20' ) end [2025-04-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823920', 'tblTempVendorCDR_20' ) start [2025-04-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823920', 'tblTempVendorCDR_20' ) end [2025-04-03 07:16:19] Production.INFO: ProcessCDR(1,14823920,1,1,2) [2025-04-03 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823920', 'tblTempUsageDetail_20' ) start [2025-04-03 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823920', 'tblTempUsageDetail_20' ) end [2025-04-03 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:16:23] Production.INFO: ==27231== Releasing lock... [2025-04-03 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:17:05 [end_date_ymd] => 2025-04-03 07:17:05 [RateCDR] => 1 ) [2025-04-03 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:17:05' and `end` < '2025-04-03 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:17:18] Production.INFO: count ==265 [2025-04-03 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:17:05 - End Time 2025-04-03 07:17:05 [2025-04-03 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823925', 'tblTempUsageDetail_20' ) start [2025-04-03 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823925', 'tblTempUsageDetail_20' ) end [2025-04-03 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823925', 'tblTempVendorCDR_20' ) start [2025-04-03 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823925', 'tblTempVendorCDR_20' ) end [2025-04-03 07:17:18] Production.INFO: ProcessCDR(1,14823925,1,1,2) [2025-04-03 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823925', 'tblTempUsageDetail_20' ) start [2025-04-03 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823925', 'tblTempUsageDetail_20' ) end [2025-04-03 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:17:22] Production.INFO: ==27305== Releasing lock... [2025-04-03 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:18:05 [end_date_ymd] => 2025-04-03 07:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:18:05' and `end` < '2025-04-03 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-03 07:18:19] Production.INFO: count ==265 [2025-04-03 07:18:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:18:05 - End Time 2025-04-03 07:18:05 [2025-04-03 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823930', 'tblTempUsageDetail_20' ) start [2025-04-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823930', 'tblTempUsageDetail_20' ) end [2025-04-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823930', 'tblTempVendorCDR_20' ) start [2025-04-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823930', 'tblTempVendorCDR_20' ) end [2025-04-03 07:18:19] Production.INFO: ProcessCDR(1,14823930,1,1,2) [2025-04-03 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823930', 'tblTempUsageDetail_20' ) start [2025-04-03 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823930', 'tblTempUsageDetail_20' ) end [2025-04-03 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:18:22] Production.INFO: ==27382== Releasing lock... [2025-04-03 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:19:05 [end_date_ymd] => 2025-04-03 07:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:19:05' and `end` < '2025-04-03 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-03 07:19:18] Production.INFO: count ==265 [2025-04-03 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:19:05 - End Time 2025-04-03 07:19:05 [2025-04-03 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823935', 'tblTempUsageDetail_20' ) start [2025-04-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823935', 'tblTempUsageDetail_20' ) end [2025-04-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823935', 'tblTempVendorCDR_20' ) start [2025-04-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823935', 'tblTempVendorCDR_20' ) end [2025-04-03 07:19:18] Production.INFO: ProcessCDR(1,14823935,1,1,2) [2025-04-03 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823935', 'tblTempUsageDetail_20' ) start [2025-04-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823935', 'tblTempUsageDetail_20' ) end [2025-04-03 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:19:21] Production.INFO: ==27459== Releasing lock... [2025-04-03 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:20:06 [end_date_ymd] => 2025-04-03 07:20:06 [RateCDR] => 1 ) [2025-04-03 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:20:06' and `end` < '2025-04-03 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:20:19] Production.INFO: count ==265 [2025-04-03 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:20:06 - End Time 2025-04-03 07:20:06 [2025-04-03 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823940', 'tblTempUsageDetail_20' ) start [2025-04-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823940', 'tblTempUsageDetail_20' ) end [2025-04-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823940', 'tblTempVendorCDR_20' ) start [2025-04-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823940', 'tblTempVendorCDR_20' ) end [2025-04-03 07:20:19] Production.INFO: ProcessCDR(1,14823940,1,1,2) [2025-04-03 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823940', 'tblTempUsageDetail_20' ) start [2025-04-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823940', 'tblTempUsageDetail_20' ) end [2025-04-03 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:20:22] Production.INFO: ==27536== Releasing lock... [2025-04-03 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:21:05 [end_date_ymd] => 2025-04-03 07:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:21:05' and `end` < '2025-04-03 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-03 07:21:18] Production.INFO: count ==265 [2025-04-03 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:21:05 - End Time 2025-04-03 07:21:05 [2025-04-03 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823946', 'tblTempUsageDetail_20' ) start [2025-04-03 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823946', 'tblTempUsageDetail_20' ) end [2025-04-03 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823946', 'tblTempVendorCDR_20' ) start [2025-04-03 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823946', 'tblTempVendorCDR_20' ) end [2025-04-03 07:21:18] Production.INFO: ProcessCDR(1,14823946,1,1,2) [2025-04-03 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823946', 'tblTempUsageDetail_20' ) start [2025-04-03 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823946', 'tblTempUsageDetail_20' ) end [2025-04-03 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:21:21] Production.INFO: ==27618== Releasing lock... [2025-04-03 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:22:05 [end_date_ymd] => 2025-04-03 07:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:22:05' and `end` < '2025-04-03 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-03 07:22:19] Production.INFO: count ==266 [2025-04-03 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:22:05 - End Time 2025-04-03 07:22:05 [2025-04-03 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823951', 'tblTempUsageDetail_20' ) start [2025-04-03 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823951', 'tblTempUsageDetail_20' ) end [2025-04-03 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823951', 'tblTempVendorCDR_20' ) start [2025-04-03 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823951', 'tblTempVendorCDR_20' ) end [2025-04-03 07:22:19] Production.INFO: ProcessCDR(1,14823951,1,1,2) [2025-04-03 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823951', 'tblTempUsageDetail_20' ) start [2025-04-03 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823951', 'tblTempUsageDetail_20' ) end [2025-04-03 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:22:23] Production.INFO: ==27695== Releasing lock... [2025-04-03 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:22:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:23:06 [end_date_ymd] => 2025-04-03 07:23:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:23:06' and `end` < '2025-04-03 07: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-03 07:23:18] Production.INFO: count ==266 [2025-04-03 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:23:06 - End Time 2025-04-03 07:23:06 [2025-04-03 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823956', 'tblTempUsageDetail_20' ) start [2025-04-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823956', 'tblTempUsageDetail_20' ) end [2025-04-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823956', 'tblTempVendorCDR_20' ) start [2025-04-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823956', 'tblTempVendorCDR_20' ) end [2025-04-03 07:23:18] Production.INFO: ProcessCDR(1,14823956,1,1,2) [2025-04-03 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823956', 'tblTempUsageDetail_20' ) start [2025-04-03 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823956', 'tblTempUsageDetail_20' ) end [2025-04-03 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:23:22] Production.INFO: ==27770== Releasing lock... [2025-04-03 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:24:05 [end_date_ymd] => 2025-04-03 07:24:05 [RateCDR] => 1 ) [2025-04-03 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:24:05' and `end` < '2025-04-03 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:24:18] Production.INFO: count ==266 [2025-04-03 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:24:05 - End Time 2025-04-03 07:24:05 [2025-04-03 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823961', 'tblTempUsageDetail_20' ) start [2025-04-03 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823961', 'tblTempUsageDetail_20' ) end [2025-04-03 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823961', 'tblTempVendorCDR_20' ) start [2025-04-03 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823961', 'tblTempVendorCDR_20' ) end [2025-04-03 07:24:18] Production.INFO: ProcessCDR(1,14823961,1,1,2) [2025-04-03 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823961', 'tblTempUsageDetail_20' ) start [2025-04-03 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823961', 'tblTempUsageDetail_20' ) end [2025-04-03 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:24:22] Production.INFO: ==27845== Releasing lock... [2025-04-03 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:25:06 [end_date_ymd] => 2025-04-03 07:25:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:25:06' and `end` < '2025-04-03 07: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-03 07:25:18] Production.INFO: count ==271 [2025-04-03 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:25:06 - End Time 2025-04-03 07:25:06 [2025-04-03 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823966', 'tblTempUsageDetail_20' ) start [2025-04-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823966', 'tblTempUsageDetail_20' ) end [2025-04-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823966', 'tblTempVendorCDR_20' ) start [2025-04-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823966', 'tblTempVendorCDR_20' ) end [2025-04-03 07:25:18] Production.INFO: ProcessCDR(1,14823966,1,1,2) [2025-04-03 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823966', 'tblTempUsageDetail_20' ) start [2025-04-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823966', 'tblTempUsageDetail_20' ) end [2025-04-03 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:25:22] Production.INFO: ==27928== Releasing lock... [2025-04-03 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:26:05 [end_date_ymd] => 2025-04-03 07:26:05 [RateCDR] => 1 ) [2025-04-03 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:26:05' and `end` < '2025-04-03 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:26:17] Production.INFO: count ==271 [2025-04-03 07:26:17] Production.ERROR: pbx CDR StartTime 2025-04-03 04:26:05 - End Time 2025-04-03 07:26:05 [2025-04-03 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823971', 'tblTempUsageDetail_20' ) start [2025-04-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823971', 'tblTempUsageDetail_20' ) end [2025-04-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823971', 'tblTempVendorCDR_20' ) start [2025-04-03 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823971', 'tblTempVendorCDR_20' ) end [2025-04-03 07:26:17] Production.INFO: ProcessCDR(1,14823971,1,1,2) [2025-04-03 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823971', 'tblTempUsageDetail_20' ) start [2025-04-03 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823971', 'tblTempUsageDetail_20' ) end [2025-04-03 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:26:21] Production.INFO: ==28001== Releasing lock... [2025-04-03 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:27:05 [end_date_ymd] => 2025-04-03 07:27:05 [RateCDR] => 1 ) [2025-04-03 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:27:05' and `end` < '2025-04-03 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:27:18] Production.INFO: count ==276 [2025-04-03 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:27:05 - End Time 2025-04-03 07:27:05 [2025-04-03 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823976', 'tblTempUsageDetail_20' ) start [2025-04-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823976', 'tblTempUsageDetail_20' ) end [2025-04-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823976', 'tblTempVendorCDR_20' ) start [2025-04-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823976', 'tblTempVendorCDR_20' ) end [2025-04-03 07:27:18] Production.INFO: ProcessCDR(1,14823976,1,1,2) [2025-04-03 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823976', 'tblTempUsageDetail_20' ) start [2025-04-03 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823976', 'tblTempUsageDetail_20' ) end [2025-04-03 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:27:21] Production.INFO: ==28079== Releasing lock... [2025-04-03 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:28:05 [end_date_ymd] => 2025-04-03 07:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:28:05' and `end` < '2025-04-03 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-03 07:28:18] Production.INFO: count ==277 [2025-04-03 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:28:05 - End Time 2025-04-03 07:28:05 [2025-04-03 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823981', 'tblTempUsageDetail_20' ) start [2025-04-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823981', 'tblTempUsageDetail_20' ) end [2025-04-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823981', 'tblTempVendorCDR_20' ) start [2025-04-03 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823981', 'tblTempVendorCDR_20' ) end [2025-04-03 07:28:18] Production.INFO: ProcessCDR(1,14823981,1,1,2) [2025-04-03 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823981', 'tblTempUsageDetail_20' ) start [2025-04-03 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823981', 'tblTempUsageDetail_20' ) end [2025-04-03 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:28:23] Production.INFO: ==28150== Releasing lock... [2025-04-03 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:28:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:29:06 [end_date_ymd] => 2025-04-03 07:29:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:29:06' and `end` < '2025-04-03 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-03 07:29:18] Production.INFO: count ==259 [2025-04-03 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:29:06 - End Time 2025-04-03 07:29:06 [2025-04-03 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823986', 'tblTempUsageDetail_20' ) start [2025-04-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823986', 'tblTempUsageDetail_20' ) end [2025-04-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823986', 'tblTempVendorCDR_20' ) start [2025-04-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823986', 'tblTempVendorCDR_20' ) end [2025-04-03 07:29:18] Production.INFO: ProcessCDR(1,14823986,1,1,2) [2025-04-03 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823986', 'tblTempUsageDetail_20' ) start [2025-04-03 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823986', 'tblTempUsageDetail_20' ) end [2025-04-03 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:29:22] Production.INFO: ==28266== Releasing lock... [2025-04-03 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:30:05 [end_date_ymd] => 2025-04-03 07:30:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:30:05' and `end` < '2025-04-03 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:30:18] Production.INFO: count ==214 [2025-04-03 07:30:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:30:05 - End Time 2025-04-03 07:30:05 [2025-04-03 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823992', 'tblTempUsageDetail_20' ) start [2025-04-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823992', 'tblTempUsageDetail_20' ) end [2025-04-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823992', 'tblTempVendorCDR_20' ) start [2025-04-03 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823992', 'tblTempVendorCDR_20' ) end [2025-04-03 07:30:18] Production.INFO: ProcessCDR(1,14823992,1,1,2) [2025-04-03 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823992', 'tblTempUsageDetail_20' ) start [2025-04-03 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823992', 'tblTempUsageDetail_20' ) end [2025-04-03 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:30:22] Production.INFO: ==28346== Releasing lock... [2025-04-03 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:31:06 [end_date_ymd] => 2025-04-03 07:31:06 [RateCDR] => 1 ) [2025-04-03 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:31:06' and `end` < '2025-04-03 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:31:18] Production.INFO: count ==181 [2025-04-03 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:31:06 - End Time 2025-04-03 07:31:06 [2025-04-03 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823997', 'tblTempUsageDetail_20' ) start [2025-04-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14823997', 'tblTempUsageDetail_20' ) end [2025-04-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823997', 'tblTempVendorCDR_20' ) start [2025-04-03 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14823997', 'tblTempVendorCDR_20' ) end [2025-04-03 07:31:18] Production.INFO: ProcessCDR(1,14823997,1,1,2) [2025-04-03 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14823997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14823997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14823997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14823997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823997', 'tblTempUsageDetail_20' ) start [2025-04-03 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14823997', 'tblTempUsageDetail_20' ) end [2025-04-03 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:31:22] Production.INFO: ==28426== Releasing lock... [2025-04-03 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:31:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:32:05 [end_date_ymd] => 2025-04-03 07:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:32:05' and `end` < '2025-04-03 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-03 07:32:18] Production.INFO: count ==176 [2025-04-03 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:32:05 - End Time 2025-04-03 07:32:05 [2025-04-03 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824002', 'tblTempUsageDetail_20' ) start [2025-04-03 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824002', 'tblTempUsageDetail_20' ) end [2025-04-03 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824002', 'tblTempVendorCDR_20' ) start [2025-04-03 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824002', 'tblTempVendorCDR_20' ) end [2025-04-03 07:32:18] Production.INFO: ProcessCDR(1,14824002,1,1,2) [2025-04-03 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824002', 'tblTempUsageDetail_20' ) start [2025-04-03 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824002', 'tblTempUsageDetail_20' ) end [2025-04-03 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:32:22] Production.INFO: ==28505== Releasing lock... [2025-04-03 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:33:06 [end_date_ymd] => 2025-04-03 07:33:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:33:06' and `end` < '2025-04-03 07: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-03 07:33:18] Production.INFO: count ==176 [2025-04-03 07:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:33:06 - End Time 2025-04-03 07:33:06 [2025-04-03 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824007', 'tblTempUsageDetail_20' ) start [2025-04-03 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824007', 'tblTempUsageDetail_20' ) end [2025-04-03 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824007', 'tblTempVendorCDR_20' ) start [2025-04-03 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824007', 'tblTempVendorCDR_20' ) end [2025-04-03 07:33:19] Production.INFO: ProcessCDR(1,14824007,1,1,2) [2025-04-03 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824007', 'tblTempUsageDetail_20' ) start [2025-04-03 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824007', 'tblTempUsageDetail_20' ) end [2025-04-03 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:33:22] Production.INFO: ==28582== Releasing lock... [2025-04-03 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:34:06 [end_date_ymd] => 2025-04-03 07:34:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:34:06' and `end` < '2025-04-03 07: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-03 07:34:18] Production.INFO: count ==176 [2025-04-03 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:34:06 - End Time 2025-04-03 07:34:06 [2025-04-03 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824012', 'tblTempUsageDetail_20' ) start [2025-04-03 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824012', 'tblTempUsageDetail_20' ) end [2025-04-03 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824012', 'tblTempVendorCDR_20' ) start [2025-04-03 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824012', 'tblTempVendorCDR_20' ) end [2025-04-03 07:34:18] Production.INFO: ProcessCDR(1,14824012,1,1,2) [2025-04-03 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824012', 'tblTempUsageDetail_20' ) start [2025-04-03 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824012', 'tblTempUsageDetail_20' ) end [2025-04-03 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:34:22] Production.INFO: ==28660== Releasing lock... [2025-04-03 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:35:05 [end_date_ymd] => 2025-04-03 07:35:05 [RateCDR] => 1 ) [2025-04-03 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:35:05' and `end` < '2025-04-03 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:35:18] Production.INFO: count ==177 [2025-04-03 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:35:05 - End Time 2025-04-03 07:35:05 [2025-04-03 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824017', 'tblTempUsageDetail_20' ) start [2025-04-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824017', 'tblTempUsageDetail_20' ) end [2025-04-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824017', 'tblTempVendorCDR_20' ) start [2025-04-03 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824017', 'tblTempVendorCDR_20' ) end [2025-04-03 07:35:18] Production.INFO: ProcessCDR(1,14824017,1,1,2) [2025-04-03 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824017', 'tblTempUsageDetail_20' ) start [2025-04-03 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824017', 'tblTempUsageDetail_20' ) end [2025-04-03 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:35:23] Production.INFO: ==28736== Releasing lock... [2025-04-03 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:35:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:36:06 [end_date_ymd] => 2025-04-03 07:36:06 [RateCDR] => 1 ) [2025-04-03 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:36:06' and `end` < '2025-04-03 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:36:18] Production.INFO: count ==177 [2025-04-03 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:36:06 - End Time 2025-04-03 07:36:06 [2025-04-03 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824022', 'tblTempUsageDetail_20' ) start [2025-04-03 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824022', 'tblTempUsageDetail_20' ) end [2025-04-03 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824022', 'tblTempVendorCDR_20' ) start [2025-04-03 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824022', 'tblTempVendorCDR_20' ) end [2025-04-03 07:36:18] Production.INFO: ProcessCDR(1,14824022,1,1,2) [2025-04-03 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824022', 'tblTempUsageDetail_20' ) start [2025-04-03 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824022', 'tblTempUsageDetail_20' ) end [2025-04-03 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:36:22] Production.INFO: ==28814== Releasing lock... [2025-04-03 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:37:05 [end_date_ymd] => 2025-04-03 07:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:37:05' and `end` < '2025-04-03 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-03 07:37:18] Production.INFO: count ==177 [2025-04-03 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:37:05 - End Time 2025-04-03 07:37:05 [2025-04-03 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824027', 'tblTempUsageDetail_20' ) start [2025-04-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824027', 'tblTempUsageDetail_20' ) end [2025-04-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824027', 'tblTempVendorCDR_20' ) start [2025-04-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824027', 'tblTempVendorCDR_20' ) end [2025-04-03 07:37:18] Production.INFO: ProcessCDR(1,14824027,1,1,2) [2025-04-03 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824027', 'tblTempUsageDetail_20' ) start [2025-04-03 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824027', 'tblTempUsageDetail_20' ) end [2025-04-03 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:37:21] Production.INFO: ==28890== Releasing lock... [2025-04-03 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:38:06 [end_date_ymd] => 2025-04-03 07:38:06 [RateCDR] => 1 ) [2025-04-03 07:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:38:06' and `end` < '2025-04-03 07:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:38:18] Production.INFO: count ==177 [2025-04-03 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:38:06 - End Time 2025-04-03 07:38:06 [2025-04-03 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824032', 'tblTempUsageDetail_20' ) start [2025-04-03 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824032', 'tblTempUsageDetail_20' ) end [2025-04-03 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824032', 'tblTempVendorCDR_20' ) start [2025-04-03 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824032', 'tblTempVendorCDR_20' ) end [2025-04-03 07:38:18] Production.INFO: ProcessCDR(1,14824032,1,1,2) [2025-04-03 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824032', 'tblTempUsageDetail_20' ) start [2025-04-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824032', 'tblTempUsageDetail_20' ) end [2025-04-03 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:38:22] Production.INFO: ==28967== Releasing lock... [2025-04-03 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:38:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:39:05 [end_date_ymd] => 2025-04-03 07:39:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:39:05' and `end` < '2025-04-03 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-03 07:39:18] Production.INFO: count ==177 [2025-04-03 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:39:05 - End Time 2025-04-03 07:39:05 [2025-04-03 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824037', 'tblTempUsageDetail_20' ) start [2025-04-03 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824037', 'tblTempUsageDetail_20' ) end [2025-04-03 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824037', 'tblTempVendorCDR_20' ) start [2025-04-03 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824037', 'tblTempVendorCDR_20' ) end [2025-04-03 07:39:18] Production.INFO: ProcessCDR(1,14824037,1,1,2) [2025-04-03 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824037', 'tblTempUsageDetail_20' ) start [2025-04-03 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824037', 'tblTempUsageDetail_20' ) end [2025-04-03 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:39:21] Production.INFO: ==29047== Releasing lock... [2025-04-03 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:40:06 [end_date_ymd] => 2025-04-03 07:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:40:06' and `end` < '2025-04-03 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-03 07:40:19] Production.INFO: count ==192 [2025-04-03 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:40:06 - End Time 2025-04-03 07:40:06 [2025-04-03 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824043', 'tblTempUsageDetail_20' ) start [2025-04-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824043', 'tblTempUsageDetail_20' ) end [2025-04-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824043', 'tblTempVendorCDR_20' ) start [2025-04-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824043', 'tblTempVendorCDR_20' ) end [2025-04-03 07:40:19] Production.INFO: ProcessCDR(1,14824043,1,1,2) [2025-04-03 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824043', 'tblTempUsageDetail_20' ) start [2025-04-03 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824043', 'tblTempUsageDetail_20' ) end [2025-04-03 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:40:22] Production.INFO: ==29126== Releasing lock... [2025-04-03 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-03 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:41:05 [end_date_ymd] => 2025-04-03 07:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:41:05' and `end` < '2025-04-03 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-03 07:41:17] Production.INFO: count ==199 [2025-04-03 07:41:17] Production.ERROR: pbx CDR StartTime 2025-04-03 04:41:05 - End Time 2025-04-03 07:41:05 [2025-04-03 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824048', 'tblTempUsageDetail_20' ) start [2025-04-03 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824048', 'tblTempUsageDetail_20' ) end [2025-04-03 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824048', 'tblTempVendorCDR_20' ) start [2025-04-03 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824048', 'tblTempVendorCDR_20' ) end [2025-04-03 07:41:17] Production.INFO: ProcessCDR(1,14824048,1,1,2) [2025-04-03 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824048', 'tblTempUsageDetail_20' ) start [2025-04-03 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824048', 'tblTempUsageDetail_20' ) end [2025-04-03 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:41:21] Production.INFO: ==29209== Releasing lock... [2025-04-03 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:41:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:42:06 [end_date_ymd] => 2025-04-03 07:42:06 [RateCDR] => 1 ) [2025-04-03 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:42:06' and `end` < '2025-04-03 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:42:19] Production.INFO: count ==205 [2025-04-03 07:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:42:06 - End Time 2025-04-03 07:42:06 [2025-04-03 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824053', 'tblTempUsageDetail_20' ) start [2025-04-03 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824053', 'tblTempUsageDetail_20' ) end [2025-04-03 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824053', 'tblTempVendorCDR_20' ) start [2025-04-03 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824053', 'tblTempVendorCDR_20' ) end [2025-04-03 07:42:19] Production.INFO: ProcessCDR(1,14824053,1,1,2) [2025-04-03 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824053', 'tblTempUsageDetail_20' ) start [2025-04-03 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824053', 'tblTempUsageDetail_20' ) end [2025-04-03 07:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:42:23] Production.INFO: ==29295== Releasing lock... [2025-04-03 07:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:42:23] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:43:05 [end_date_ymd] => 2025-04-03 07:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:43:05' and `end` < '2025-04-03 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-03 07:43:18] Production.INFO: count ==205 [2025-04-03 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:43:05 - End Time 2025-04-03 07:43:05 [2025-04-03 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824058', 'tblTempUsageDetail_20' ) start [2025-04-03 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824058', 'tblTempUsageDetail_20' ) end [2025-04-03 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824058', 'tblTempVendorCDR_20' ) start [2025-04-03 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824058', 'tblTempVendorCDR_20' ) end [2025-04-03 07:43:18] Production.INFO: ProcessCDR(1,14824058,1,1,2) [2025-04-03 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824058', 'tblTempUsageDetail_20' ) start [2025-04-03 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824058', 'tblTempUsageDetail_20' ) end [2025-04-03 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:43:22] Production.INFO: ==29371== Releasing lock... [2025-04-03 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:43:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:44:05 [end_date_ymd] => 2025-04-03 07:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:44:05' and `end` < '2025-04-03 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-03 07:44:18] Production.INFO: count ==205 [2025-04-03 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:44:05 - End Time 2025-04-03 07:44:05 [2025-04-03 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824063', 'tblTempUsageDetail_20' ) start [2025-04-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824063', 'tblTempUsageDetail_20' ) end [2025-04-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824063', 'tblTempVendorCDR_20' ) start [2025-04-03 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824063', 'tblTempVendorCDR_20' ) end [2025-04-03 07:44:18] Production.INFO: ProcessCDR(1,14824063,1,1,2) [2025-04-03 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824063', 'tblTempUsageDetail_20' ) start [2025-04-03 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824063', 'tblTempUsageDetail_20' ) end [2025-04-03 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:44:22] Production.INFO: ==29453== Releasing lock... [2025-04-03 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:44:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:45:05 [end_date_ymd] => 2025-04-03 07:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:45:05' and `end` < '2025-04-03 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-03 07:45:18] Production.INFO: count ==205 [2025-04-03 07:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:45:05 - End Time 2025-04-03 07:45:05 [2025-04-03 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824068', 'tblTempUsageDetail_20' ) start [2025-04-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824068', 'tblTempUsageDetail_20' ) end [2025-04-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824068', 'tblTempVendorCDR_20' ) start [2025-04-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824068', 'tblTempVendorCDR_20' ) end [2025-04-03 07:45:18] Production.INFO: ProcessCDR(1,14824068,1,1,2) [2025-04-03 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824068', 'tblTempUsageDetail_20' ) start [2025-04-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824068', 'tblTempUsageDetail_20' ) end [2025-04-03 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:45:21] Production.INFO: ==29572== Releasing lock... [2025-04-03 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:45:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:46:05 [end_date_ymd] => 2025-04-03 07:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:46:05' and `end` < '2025-04-03 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-03 07:46:18] Production.INFO: count ==205 [2025-04-03 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:46:05 - End Time 2025-04-03 07:46:05 [2025-04-03 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824073', 'tblTempUsageDetail_20' ) start [2025-04-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824073', 'tblTempUsageDetail_20' ) end [2025-04-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824073', 'tblTempVendorCDR_20' ) start [2025-04-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824073', 'tblTempVendorCDR_20' ) end [2025-04-03 07:46:18] Production.INFO: ProcessCDR(1,14824073,1,1,2) [2025-04-03 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824073', 'tblTempUsageDetail_20' ) start [2025-04-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824073', 'tblTempUsageDetail_20' ) end [2025-04-03 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:46:21] Production.INFO: ==29656== Releasing lock... [2025-04-03 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:46:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:47:05 [end_date_ymd] => 2025-04-03 07:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:47:05' and `end` < '2025-04-03 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-03 07:47:17] Production.INFO: count ==205 [2025-04-03 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:47:05 - End Time 2025-04-03 07:47:05 [2025-04-03 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824078', 'tblTempUsageDetail_20' ) start [2025-04-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824078', 'tblTempUsageDetail_20' ) end [2025-04-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824078', 'tblTempVendorCDR_20' ) start [2025-04-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824078', 'tblTempVendorCDR_20' ) end [2025-04-03 07:47:18] Production.INFO: ProcessCDR(1,14824078,1,1,2) [2025-04-03 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824078', 'tblTempUsageDetail_20' ) start [2025-04-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824078', 'tblTempUsageDetail_20' ) end [2025-04-03 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:47:21] Production.INFO: ==29738== Releasing lock... [2025-04-03 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:47:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:48:05 [end_date_ymd] => 2025-04-03 07:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:48:05' and `end` < '2025-04-03 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-03 07:48:17] Production.INFO: count ==205 [2025-04-03 07:48:17] Production.ERROR: pbx CDR StartTime 2025-04-03 04:48:05 - End Time 2025-04-03 07:48:05 [2025-04-03 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824083', 'tblTempUsageDetail_20' ) start [2025-04-03 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824083', 'tblTempUsageDetail_20' ) end [2025-04-03 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824083', 'tblTempVendorCDR_20' ) start [2025-04-03 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824083', 'tblTempVendorCDR_20' ) end [2025-04-03 07:48:18] Production.INFO: ProcessCDR(1,14824083,1,1,2) [2025-04-03 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824083', 'tblTempUsageDetail_20' ) start [2025-04-03 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824083', 'tblTempUsageDetail_20' ) end [2025-04-03 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:48:21] Production.INFO: ==29819== Releasing lock... [2025-04-03 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:48:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:49:06 [end_date_ymd] => 2025-04-03 07:49:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:49:06' and `end` < '2025-04-03 07: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-03 07:49:18] Production.INFO: count ==205 [2025-04-03 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:49:06 - End Time 2025-04-03 07:49:06 [2025-04-03 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824088', 'tblTempUsageDetail_20' ) start [2025-04-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824088', 'tblTempUsageDetail_20' ) end [2025-04-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824088', 'tblTempVendorCDR_20' ) start [2025-04-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824088', 'tblTempVendorCDR_20' ) end [2025-04-03 07:49:18] Production.INFO: ProcessCDR(1,14824088,1,1,2) [2025-04-03 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824088', 'tblTempUsageDetail_20' ) start [2025-04-03 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824088', 'tblTempUsageDetail_20' ) end [2025-04-03 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:49:22] Production.INFO: ==29899== Releasing lock... [2025-04-03 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:49:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:50:06 [end_date_ymd] => 2025-04-03 07:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:50:06' and `end` < '2025-04-03 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-03 07:50:18] Production.INFO: count ==206 [2025-04-03 07:50:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:50:06 - End Time 2025-04-03 07:50:06 [2025-04-03 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824093', 'tblTempUsageDetail_20' ) start [2025-04-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824093', 'tblTempUsageDetail_20' ) end [2025-04-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824093', 'tblTempVendorCDR_20' ) start [2025-04-03 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824093', 'tblTempVendorCDR_20' ) end [2025-04-03 07:50:18] Production.INFO: ProcessCDR(1,14824093,1,1,2) [2025-04-03 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824093', 'tblTempUsageDetail_20' ) start [2025-04-03 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824093', 'tblTempUsageDetail_20' ) end [2025-04-03 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:50:23] Production.INFO: ==29988== Releasing lock... [2025-04-03 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:50:23] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:51:06 [end_date_ymd] => 2025-04-03 07:51:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:51:06' and `end` < '2025-04-03 07: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-03 07:51:18] Production.INFO: count ==206 [2025-04-03 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:51:06 - End Time 2025-04-03 07:51:06 [2025-04-03 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824099', 'tblTempUsageDetail_20' ) start [2025-04-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824099', 'tblTempUsageDetail_20' ) end [2025-04-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824099', 'tblTempVendorCDR_20' ) start [2025-04-03 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824099', 'tblTempVendorCDR_20' ) end [2025-04-03 07:51:18] Production.INFO: ProcessCDR(1,14824099,1,1,2) [2025-04-03 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824099', 'tblTempUsageDetail_20' ) start [2025-04-03 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824099', 'tblTempUsageDetail_20' ) end [2025-04-03 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:51:22] Production.INFO: ==30086== Releasing lock... [2025-04-03 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:51:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:52:05 [end_date_ymd] => 2025-04-03 07:52:05 [RateCDR] => 1 ) [2025-04-03 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 04:52:05' and `end` < '2025-04-03 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 07:52:18] Production.INFO: count ==208 [2025-04-03 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:52:05 - End Time 2025-04-03 07:52:05 [2025-04-03 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824104', 'tblTempUsageDetail_20' ) start [2025-04-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824104', 'tblTempUsageDetail_20' ) end [2025-04-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824104', 'tblTempVendorCDR_20' ) start [2025-04-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824104', 'tblTempVendorCDR_20' ) end [2025-04-03 07:52:18] Production.INFO: ProcessCDR(1,14824104,1,1,2) [2025-04-03 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824104', 'tblTempUsageDetail_20' ) start [2025-04-03 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824104', 'tblTempUsageDetail_20' ) end [2025-04-03 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:52:23] Production.INFO: ==30167== Releasing lock... [2025-04-03 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:52:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-03 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:53:05 [end_date_ymd] => 2025-04-03 07:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:53:05' and `end` < '2025-04-03 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-03 07:53:18] Production.INFO: count ==208 [2025-04-03 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:53:05 - End Time 2025-04-03 07:53:05 [2025-04-03 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824109', 'tblTempUsageDetail_20' ) start [2025-04-03 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824109', 'tblTempUsageDetail_20' ) end [2025-04-03 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824109', 'tblTempVendorCDR_20' ) start [2025-04-03 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824109', 'tblTempVendorCDR_20' ) end [2025-04-03 07:53:18] Production.INFO: ProcessCDR(1,14824109,1,1,2) [2025-04-03 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824109', 'tblTempUsageDetail_20' ) start [2025-04-03 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824109', 'tblTempUsageDetail_20' ) end [2025-04-03 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:53:21] Production.INFO: ==30247== Releasing lock... [2025-04-03 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-03 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:54:05 [end_date_ymd] => 2025-04-03 07:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:54:05' and `end` < '2025-04-03 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-03 07:54:17] Production.INFO: count ==209 [2025-04-03 07:54:17] Production.ERROR: pbx CDR StartTime 2025-04-03 04:54:05 - End Time 2025-04-03 07:54:05 [2025-04-03 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824114', 'tblTempUsageDetail_20' ) start [2025-04-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824114', 'tblTempUsageDetail_20' ) end [2025-04-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824114', 'tblTempVendorCDR_20' ) start [2025-04-03 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824114', 'tblTempVendorCDR_20' ) end [2025-04-03 07:54:17] Production.INFO: ProcessCDR(1,14824114,1,1,2) [2025-04-03 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824114', 'tblTempUsageDetail_20' ) start [2025-04-03 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824114', 'tblTempUsageDetail_20' ) end [2025-04-03 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:54:21] Production.INFO: ==30327== Releasing lock... [2025-04-03 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:54:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:55:05 [end_date_ymd] => 2025-04-03 07:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:55:05' and `end` < '2025-04-03 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-03 07:55:18] Production.INFO: count ==215 [2025-04-03 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:55:05 - End Time 2025-04-03 07:55:05 [2025-04-03 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824119', 'tblTempUsageDetail_20' ) start [2025-04-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824119', 'tblTempUsageDetail_20' ) end [2025-04-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824119', 'tblTempVendorCDR_20' ) start [2025-04-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824119', 'tblTempVendorCDR_20' ) end [2025-04-03 07:55:18] Production.INFO: ProcessCDR(1,14824119,1,1,2) [2025-04-03 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824119', 'tblTempUsageDetail_20' ) start [2025-04-03 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824119', 'tblTempUsageDetail_20' ) end [2025-04-03 07:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:55:23] Production.INFO: ==30403== Releasing lock... [2025-04-03 07:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:55:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:56:05 [end_date_ymd] => 2025-04-03 07:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:56:05' and `end` < '2025-04-03 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-03 07:56:17] Production.INFO: count ==216 [2025-04-03 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:56:05 - End Time 2025-04-03 07:56:05 [2025-04-03 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824124', 'tblTempUsageDetail_20' ) start [2025-04-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824124', 'tblTempUsageDetail_20' ) end [2025-04-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824124', 'tblTempVendorCDR_20' ) start [2025-04-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824124', 'tblTempVendorCDR_20' ) end [2025-04-03 07:56:18] Production.INFO: ProcessCDR(1,14824124,1,1,2) [2025-04-03 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824124', 'tblTempUsageDetail_20' ) start [2025-04-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824124', 'tblTempUsageDetail_20' ) end [2025-04-03 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:56:21] Production.INFO: ==30488== Releasing lock... [2025-04-03 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-03 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:57:05 [end_date_ymd] => 2025-04-03 07:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 04:57:05' and `end` < '2025-04-03 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-03 07:57:18] Production.INFO: count ==222 [2025-04-03 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 04:57:05 - End Time 2025-04-03 07:57:05 [2025-04-03 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824129', 'tblTempUsageDetail_20' ) start [2025-04-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824129', 'tblTempUsageDetail_20' ) end [2025-04-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824129', 'tblTempVendorCDR_20' ) start [2025-04-03 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824129', 'tblTempVendorCDR_20' ) end [2025-04-03 07:57:18] Production.INFO: ProcessCDR(1,14824129,1,1,2) [2025-04-03 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824129', 'tblTempUsageDetail_20' ) start [2025-04-03 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824129', 'tblTempUsageDetail_20' ) end [2025-04-03 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:57:23] Production.INFO: ==30571== Releasing lock... [2025-04-03 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:58:06 [end_date_ymd] => 2025-04-03 07:58:06 [RateCDR] => 1 ) [2025-04-03 07: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-03 04:58:06' and `end` < '2025-04-03 07: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-03 07:58:19] Production.INFO: count ==222 [2025-04-03 07:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:58:06 - End Time 2025-04-03 07:58:06 [2025-04-03 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824134', 'tblTempUsageDetail_20' ) start [2025-04-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824134', 'tblTempUsageDetail_20' ) end [2025-04-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824134', 'tblTempVendorCDR_20' ) start [2025-04-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824134', 'tblTempVendorCDR_20' ) end [2025-04-03 07:58:19] Production.INFO: ProcessCDR(1,14824134,1,1,2) [2025-04-03 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824134', 'tblTempUsageDetail_20' ) start [2025-04-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824134', 'tblTempUsageDetail_20' ) end [2025-04-03 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:58:22] Production.INFO: ==30653== Releasing lock... [2025-04-03 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-03 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 04:59:06 [end_date_ymd] => 2025-04-03 07:59:06 [RateCDR] => 1 ) [2025-04-03 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-03 04:59:06' and `end` < '2025-04-03 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-03 07:59:19] Production.INFO: count ==230 [2025-04-03 07:59:19] Production.ERROR: pbx CDR StartTime 2025-04-03 04:59:06 - End Time 2025-04-03 07:59:06 [2025-04-03 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824139', 'tblTempUsageDetail_20' ) start [2025-04-03 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824139', 'tblTempUsageDetail_20' ) end [2025-04-03 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824139', 'tblTempVendorCDR_20' ) start [2025-04-03 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824139', 'tblTempVendorCDR_20' ) end [2025-04-03 07:59:19] Production.INFO: ProcessCDR(1,14824139,1,1,2) [2025-04-03 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824139', 'tblTempUsageDetail_20' ) start [2025-04-03 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824139', 'tblTempUsageDetail_20' ) end [2025-04-03 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 07:59:22] Production.INFO: ==30735== Releasing lock... [2025-04-03 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 07:59:22] Production.INFO: 30 MB #Memory Used# [2025-04-03 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:00:07 [end_date_ymd] => 2025-04-03 08:00:07 [RateCDR] => 1 ) [2025-04-03 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:00:07' and `end` < '2025-04-03 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:00:19] Production.INFO: count ==240 [2025-04-03 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:00:07 - End Time 2025-04-03 08:00:07 [2025-04-03 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824145', 'tblTempUsageDetail_20' ) start [2025-04-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824145', 'tblTempUsageDetail_20' ) end [2025-04-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824145', 'tblTempVendorCDR_20' ) start [2025-04-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824145', 'tblTempVendorCDR_20' ) end [2025-04-03 08:00:19] Production.INFO: ProcessCDR(1,14824145,1,1,2) [2025-04-03 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824145', 'tblTempUsageDetail_20' ) start [2025-04-03 08:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824145', 'tblTempUsageDetail_20' ) end [2025-04-03 08:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:00:25] Production.INFO: ==30851== Releasing lock... [2025-04-03 08:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:00:25] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:01:05 [end_date_ymd] => 2025-04-03 08:01:05 [RateCDR] => 1 ) [2025-04-03 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:01:05' and `end` < '2025-04-03 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:01:17] Production.INFO: count ==242 [2025-04-03 08:01:17] Production.ERROR: pbx CDR StartTime 2025-04-03 05:01:05 - End Time 2025-04-03 08:01:05 [2025-04-03 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824150', 'tblTempUsageDetail_20' ) start [2025-04-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824150', 'tblTempUsageDetail_20' ) end [2025-04-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824150', 'tblTempVendorCDR_20' ) start [2025-04-03 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824150', 'tblTempVendorCDR_20' ) end [2025-04-03 08:01:17] Production.INFO: ProcessCDR(1,14824150,1,1,2) [2025-04-03 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824150', 'tblTempUsageDetail_20' ) start [2025-04-03 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824150', 'tblTempUsageDetail_20' ) end [2025-04-03 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:01:23] Production.INFO: ==30945== Releasing lock... [2025-04-03 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:01:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:02:06 [end_date_ymd] => 2025-04-03 08:02:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:02:06' and `end` < '2025-04-03 08: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-03 08:02:19] Production.INFO: count ==248 [2025-04-03 08:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:02:06 - End Time 2025-04-03 08:02:06 [2025-04-03 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824155', 'tblTempUsageDetail_20' ) start [2025-04-03 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824155', 'tblTempUsageDetail_20' ) end [2025-04-03 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824155', 'tblTempVendorCDR_20' ) start [2025-04-03 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824155', 'tblTempVendorCDR_20' ) end [2025-04-03 08:02:19] Production.INFO: ProcessCDR(1,14824155,1,1,2) [2025-04-03 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824155', 'tblTempUsageDetail_20' ) start [2025-04-03 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824155', 'tblTempUsageDetail_20' ) end [2025-04-03 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:02:22] Production.INFO: ==31029== Releasing lock... [2025-04-03 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:03:06 [end_date_ymd] => 2025-04-03 08:03:06 [RateCDR] => 1 ) [2025-04-03 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:03:06' and `end` < '2025-04-03 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:03:18] Production.INFO: count ==249 [2025-04-03 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:03:06 - End Time 2025-04-03 08:03:06 [2025-04-03 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824160', 'tblTempUsageDetail_20' ) start [2025-04-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824160', 'tblTempUsageDetail_20' ) end [2025-04-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824160', 'tblTempVendorCDR_20' ) start [2025-04-03 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824160', 'tblTempVendorCDR_20' ) end [2025-04-03 08:03:18] Production.INFO: ProcessCDR(1,14824160,1,1,2) [2025-04-03 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824160', 'tblTempUsageDetail_20' ) start [2025-04-03 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824160', 'tblTempUsageDetail_20' ) end [2025-04-03 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:03:24] Production.INFO: ==31109== Releasing lock... [2025-04-03 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:03:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:04:05 [end_date_ymd] => 2025-04-03 08:04:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:04:05' and `end` < '2025-04-03 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-03 08:04:18] Production.INFO: count ==246 [2025-04-03 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:04:05 - End Time 2025-04-03 08:04:05 [2025-04-03 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824165', 'tblTempUsageDetail_20' ) start [2025-04-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824165', 'tblTempUsageDetail_20' ) end [2025-04-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824165', 'tblTempVendorCDR_20' ) start [2025-04-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824165', 'tblTempVendorCDR_20' ) end [2025-04-03 08:04:18] Production.INFO: ProcessCDR(1,14824165,1,1,2) [2025-04-03 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824165', 'tblTempUsageDetail_20' ) start [2025-04-03 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824165', 'tblTempUsageDetail_20' ) end [2025-04-03 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:04:22] Production.INFO: ==31192== Releasing lock... [2025-04-03 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:05:05 [end_date_ymd] => 2025-04-03 08:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:05:05' and `end` < '2025-04-03 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-03 08:05:18] Production.INFO: count ==259 [2025-04-03 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:05:05 - End Time 2025-04-03 08:05:05 [2025-04-03 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824170', 'tblTempUsageDetail_20' ) start [2025-04-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824170', 'tblTempUsageDetail_20' ) end [2025-04-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824170', 'tblTempVendorCDR_20' ) start [2025-04-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824170', 'tblTempVendorCDR_20' ) end [2025-04-03 08:05:18] Production.INFO: ProcessCDR(1,14824170,1,1,2) [2025-04-03 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824170', 'tblTempUsageDetail_20' ) start [2025-04-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824170', 'tblTempUsageDetail_20' ) end [2025-04-03 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:05:23] Production.INFO: ==31271== Releasing lock... [2025-04-03 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:06:05 [end_date_ymd] => 2025-04-03 08:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:06:05' and `end` < '2025-04-03 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-03 08:06:18] Production.INFO: count ==265 [2025-04-03 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:06:05 - End Time 2025-04-03 08:06:05 [2025-04-03 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824175', 'tblTempUsageDetail_20' ) start [2025-04-03 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824175', 'tblTempUsageDetail_20' ) end [2025-04-03 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824175', 'tblTempVendorCDR_20' ) start [2025-04-03 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824175', 'tblTempVendorCDR_20' ) end [2025-04-03 08:06:18] Production.INFO: ProcessCDR(1,14824175,1,1,2) [2025-04-03 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824175', 'tblTempUsageDetail_20' ) start [2025-04-03 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824175', 'tblTempUsageDetail_20' ) end [2025-04-03 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:06:21] Production.INFO: ==31352== Releasing lock... [2025-04-03 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:07:05 [end_date_ymd] => 2025-04-03 08:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:07:05' and `end` < '2025-04-03 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-03 08:07:18] Production.INFO: count ==278 [2025-04-03 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:07:05 - End Time 2025-04-03 08:07:05 [2025-04-03 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824180', 'tblTempUsageDetail_20' ) start [2025-04-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824180', 'tblTempUsageDetail_20' ) end [2025-04-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824180', 'tblTempVendorCDR_20' ) start [2025-04-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824180', 'tblTempVendorCDR_20' ) end [2025-04-03 08:07:18] Production.INFO: ProcessCDR(1,14824180,1,1,2) [2025-04-03 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824180', 'tblTempUsageDetail_20' ) start [2025-04-03 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824180', 'tblTempUsageDetail_20' ) end [2025-04-03 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:07:23] Production.INFO: ==31431== Releasing lock... [2025-04-03 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:07:23] Production.INFO: 31 MB #Memory Used# [2025-04-03 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:08:05 [end_date_ymd] => 2025-04-03 08:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:08:05' and `end` < '2025-04-03 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-03 08:08:18] Production.INFO: count ==292 [2025-04-03 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:08:05 - End Time 2025-04-03 08:08:05 [2025-04-03 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824185', 'tblTempUsageDetail_20' ) start [2025-04-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824185', 'tblTempUsageDetail_20' ) end [2025-04-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824185', 'tblTempVendorCDR_20' ) start [2025-04-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824185', 'tblTempVendorCDR_20' ) end [2025-04-03 08:08:18] Production.INFO: ProcessCDR(1,14824185,1,1,2) [2025-04-03 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824185', 'tblTempUsageDetail_20' ) start [2025-04-03 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824185', 'tblTempUsageDetail_20' ) end [2025-04-03 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:08:21] Production.INFO: ==31514== Releasing lock... [2025-04-03 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:09:05 [end_date_ymd] => 2025-04-03 08:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:09:05' and `end` < '2025-04-03 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-03 08:09:18] Production.INFO: count ==300 [2025-04-03 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:09:05 - End Time 2025-04-03 08:09:05 [2025-04-03 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824190', 'tblTempUsageDetail_20' ) start [2025-04-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824190', 'tblTempUsageDetail_20' ) end [2025-04-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824190', 'tblTempVendorCDR_20' ) start [2025-04-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824190', 'tblTempVendorCDR_20' ) end [2025-04-03 08:09:18] Production.INFO: ProcessCDR(1,14824190,1,1,2) [2025-04-03 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824190', 'tblTempUsageDetail_20' ) start [2025-04-03 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824190', 'tblTempUsageDetail_20' ) end [2025-04-03 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:09:22] Production.INFO: ==31593== Releasing lock... [2025-04-03 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-03 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:10:06 [end_date_ymd] => 2025-04-03 08:10:06 [RateCDR] => 1 ) [2025-04-03 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:10:06' and `end` < '2025-04-03 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:10:19] Production.INFO: count ==313 [2025-04-03 08:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:10:06 - End Time 2025-04-03 08:10:06 [2025-04-03 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824196', 'tblTempUsageDetail_20' ) start [2025-04-03 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824196', 'tblTempUsageDetail_20' ) end [2025-04-03 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824196', 'tblTempVendorCDR_20' ) start [2025-04-03 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824196', 'tblTempVendorCDR_20' ) end [2025-04-03 08:10:19] Production.INFO: ProcessCDR(1,14824196,1,1,2) [2025-04-03 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824196', 'tblTempUsageDetail_20' ) start [2025-04-03 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824196', 'tblTempUsageDetail_20' ) end [2025-04-03 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:10:24] Production.INFO: ==31674== Releasing lock... [2025-04-03 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-03 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:11:05 [end_date_ymd] => 2025-04-03 08:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:11:05' and `end` < '2025-04-03 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-03 08:11:18] Production.INFO: count ==356 [2025-04-03 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:11:05 - End Time 2025-04-03 08:11:05 [2025-04-03 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824201', 'tblTempUsageDetail_20' ) start [2025-04-03 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824201', 'tblTempUsageDetail_20' ) end [2025-04-03 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824201', 'tblTempVendorCDR_20' ) start [2025-04-03 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824201', 'tblTempVendorCDR_20' ) end [2025-04-03 08:11:18] Production.INFO: ProcessCDR(1,14824201,1,1,2) [2025-04-03 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824201', 'tblTempUsageDetail_20' ) start [2025-04-03 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824201', 'tblTempUsageDetail_20' ) end [2025-04-03 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:11:22] Production.INFO: ==31761== Releasing lock... [2025-04-03 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:12:06 [end_date_ymd] => 2025-04-03 08:12:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:12:06' and `end` < '2025-04-03 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-03 08:12:18] Production.INFO: count ==358 [2025-04-03 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:12:06 - End Time 2025-04-03 08:12:06 [2025-04-03 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824206', 'tblTempUsageDetail_20' ) start [2025-04-03 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824206', 'tblTempUsageDetail_20' ) end [2025-04-03 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824206', 'tblTempVendorCDR_20' ) start [2025-04-03 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824206', 'tblTempVendorCDR_20' ) end [2025-04-03 08:12:19] Production.INFO: ProcessCDR(1,14824206,1,1,2) [2025-04-03 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824206', 'tblTempUsageDetail_20' ) start [2025-04-03 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824206', 'tblTempUsageDetail_20' ) end [2025-04-03 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:12:24] Production.INFO: ==31842== Releasing lock... [2025-04-03 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:12:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:13:05 [end_date_ymd] => 2025-04-03 08:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:13:05' and `end` < '2025-04-03 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-03 08:13:18] Production.INFO: count ==359 [2025-04-03 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:13:05 - End Time 2025-04-03 08:13:05 [2025-04-03 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824211', 'tblTempUsageDetail_20' ) start [2025-04-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824211', 'tblTempUsageDetail_20' ) end [2025-04-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824211', 'tblTempVendorCDR_20' ) start [2025-04-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824211', 'tblTempVendorCDR_20' ) end [2025-04-03 08:13:18] Production.INFO: ProcessCDR(1,14824211,1,1,2) [2025-04-03 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824211', 'tblTempUsageDetail_20' ) start [2025-04-03 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824211', 'tblTempUsageDetail_20' ) end [2025-04-03 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:13:22] Production.INFO: ==31919== Releasing lock... [2025-04-03 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:14:06 [end_date_ymd] => 2025-04-03 08:14:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:14:06' and `end` < '2025-04-03 08: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-03 08:14:19] Production.INFO: count ==364 [2025-04-03 08:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:14:06 - End Time 2025-04-03 08:14:06 [2025-04-03 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824216', 'tblTempUsageDetail_20' ) start [2025-04-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824216', 'tblTempUsageDetail_20' ) end [2025-04-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824216', 'tblTempVendorCDR_20' ) start [2025-04-03 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824216', 'tblTempVendorCDR_20' ) end [2025-04-03 08:14:19] Production.INFO: ProcessCDR(1,14824216,1,1,2) [2025-04-03 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824216', 'tblTempUsageDetail_20' ) start [2025-04-03 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824216', 'tblTempUsageDetail_20' ) end [2025-04-03 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:14:22] Production.INFO: ==31996== Releasing lock... [2025-04-03 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-03 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:15:05 [end_date_ymd] => 2025-04-03 08:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:15:05' and `end` < '2025-04-03 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-03 08:15:17] Production.INFO: count ==366 [2025-04-03 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:15:05 - End Time 2025-04-03 08:15:05 [2025-04-03 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824221', 'tblTempUsageDetail_20' ) start [2025-04-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824221', 'tblTempUsageDetail_20' ) end [2025-04-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824221', 'tblTempVendorCDR_20' ) start [2025-04-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824221', 'tblTempVendorCDR_20' ) end [2025-04-03 08:15:18] Production.INFO: ProcessCDR(1,14824221,1,1,2) [2025-04-03 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824221', 'tblTempUsageDetail_20' ) start [2025-04-03 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824221', 'tblTempUsageDetail_20' ) end [2025-04-03 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:15:21] Production.INFO: ==32077== Releasing lock... [2025-04-03 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-04-03 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:16:06 [end_date_ymd] => 2025-04-03 08:16:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:16:06' and `end` < '2025-04-03 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-03 08:16:18] Production.INFO: count ==373 [2025-04-03 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:16:06 - End Time 2025-04-03 08:16:06 [2025-04-03 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824226', 'tblTempUsageDetail_20' ) start [2025-04-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824226', 'tblTempUsageDetail_20' ) end [2025-04-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824226', 'tblTempVendorCDR_20' ) start [2025-04-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824226', 'tblTempVendorCDR_20' ) end [2025-04-03 08:16:18] Production.INFO: ProcessCDR(1,14824226,1,1,2) [2025-04-03 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824226', 'tblTempUsageDetail_20' ) start [2025-04-03 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824226', 'tblTempUsageDetail_20' ) end [2025-04-03 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:16:22] Production.INFO: ==32197== Releasing lock... [2025-04-03 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:16:22] Production.INFO: 31 MB #Memory Used# [2025-04-03 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:17:05 [end_date_ymd] => 2025-04-03 08:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:17:05' and `end` < '2025-04-03 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-03 08:17:18] Production.INFO: count ==380 [2025-04-03 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:17:05 - End Time 2025-04-03 08:17:05 [2025-04-03 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824231', 'tblTempUsageDetail_20' ) start [2025-04-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824231', 'tblTempUsageDetail_20' ) end [2025-04-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824231', 'tblTempVendorCDR_20' ) start [2025-04-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824231', 'tblTempVendorCDR_20' ) end [2025-04-03 08:17:18] Production.INFO: ProcessCDR(1,14824231,1,1,2) [2025-04-03 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824231', 'tblTempUsageDetail_20' ) start [2025-04-03 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824231', 'tblTempUsageDetail_20' ) end [2025-04-03 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:17:23] Production.INFO: ==32276== Releasing lock... [2025-04-03 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:17:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:18:04 [end_date_ymd] => 2025-04-03 08:18:04 [RateCDR] => 1 ) [2025-04-03 08:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:18:04' and `end` < '2025-04-03 08:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:18:17] Production.INFO: count ==399 [2025-04-03 08:18:17] Production.ERROR: pbx CDR StartTime 2025-04-03 05:18:04 - End Time 2025-04-03 08:18:04 [2025-04-03 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824232', 'tblTempUsageDetail_20' ) start [2025-04-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824232', 'tblTempUsageDetail_20' ) end [2025-04-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824232', 'tblTempVendorCDR_20' ) start [2025-04-03 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824232', 'tblTempVendorCDR_20' ) end [2025-04-03 08:18:17] Production.INFO: ProcessCDR(1,14824232,1,1,2) [2025-04-03 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824232', 'tblTempUsageDetail_20' ) start [2025-04-03 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824232', 'tblTempUsageDetail_20' ) end [2025-04-03 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:18:22] Production.INFO: ==32353== Releasing lock... [2025-04-03 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:19:05 [end_date_ymd] => 2025-04-03 08:19:05 [RateCDR] => 1 ) [2025-04-03 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:19:05' and `end` < '2025-04-03 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:19:18] Production.INFO: count ==405 [2025-04-03 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:19:05 - End Time 2025-04-03 08:19:05 [2025-04-03 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824241', 'tblTempUsageDetail_20' ) start [2025-04-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824241', 'tblTempUsageDetail_20' ) end [2025-04-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824241', 'tblTempVendorCDR_20' ) start [2025-04-03 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824241', 'tblTempVendorCDR_20' ) end [2025-04-03 08:19:18] Production.INFO: ProcessCDR(1,14824241,1,1,2) [2025-04-03 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824241', 'tblTempUsageDetail_20' ) start [2025-04-03 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824241', 'tblTempUsageDetail_20' ) end [2025-04-03 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:19:23] Production.INFO: ==32432== Releasing lock... [2025-04-03 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:19:23] Production.INFO: 32 MB #Memory Used# [2025-04-03 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:20:06 [end_date_ymd] => 2025-04-03 08:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:20:06' and `end` < '2025-04-03 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-03 08:20:18] Production.INFO: count ==412 [2025-04-03 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:20:06 - End Time 2025-04-03 08:20:06 [2025-04-03 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824247', 'tblTempUsageDetail_20' ) start [2025-04-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824247', 'tblTempUsageDetail_20' ) end [2025-04-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824247', 'tblTempVendorCDR_20' ) start [2025-04-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824247', 'tblTempVendorCDR_20' ) end [2025-04-03 08:20:19] Production.INFO: ProcessCDR(1,14824247,1,1,2) [2025-04-03 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824247', 'tblTempUsageDetail_20' ) start [2025-04-03 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824247', 'tblTempUsageDetail_20' ) end [2025-04-03 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:20:24] Production.INFO: ==32510== Releasing lock... [2025-04-03 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:20:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:21:05 [end_date_ymd] => 2025-04-03 08:21:05 [RateCDR] => 1 ) [2025-04-03 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:21:05' and `end` < '2025-04-03 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:21:18] Production.INFO: count ==436 [2025-04-03 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:21:05 - End Time 2025-04-03 08:21:05 [2025-04-03 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824252', 'tblTempUsageDetail_20' ) start [2025-04-03 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824252', 'tblTempUsageDetail_20' ) end [2025-04-03 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824252', 'tblTempVendorCDR_20' ) start [2025-04-03 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824252', 'tblTempVendorCDR_20' ) end [2025-04-03 08:21:18] Production.INFO: ProcessCDR(1,14824252,1,1,2) [2025-04-03 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824252', 'tblTempUsageDetail_20' ) start [2025-04-03 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824252', 'tblTempUsageDetail_20' ) end [2025-04-03 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:21:21] Production.INFO: ==32587== Releasing lock... [2025-04-03 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:22:05 [end_date_ymd] => 2025-04-03 08:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:22:05' and `end` < '2025-04-03 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-03 08:22:18] Production.INFO: count ==437 [2025-04-03 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:22:05 - End Time 2025-04-03 08:22:05 [2025-04-03 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824257', 'tblTempUsageDetail_20' ) start [2025-04-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824257', 'tblTempUsageDetail_20' ) end [2025-04-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824257', 'tblTempVendorCDR_20' ) start [2025-04-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824257', 'tblTempVendorCDR_20' ) end [2025-04-03 08:22:18] Production.INFO: ProcessCDR(1,14824257,1,1,2) [2025-04-03 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824257', 'tblTempUsageDetail_20' ) start [2025-04-03 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824257', 'tblTempUsageDetail_20' ) end [2025-04-03 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:22:23] Production.INFO: ==32662== Releasing lock... [2025-04-03 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:23:06 [end_date_ymd] => 2025-04-03 08:23:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:23:06' and `end` < '2025-04-03 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-03 08:23:19] Production.INFO: count ==438 [2025-04-03 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:23:06 - End Time 2025-04-03 08:23:06 [2025-04-03 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824262', 'tblTempUsageDetail_20' ) start [2025-04-03 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824262', 'tblTempUsageDetail_20' ) end [2025-04-03 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824262', 'tblTempVendorCDR_20' ) start [2025-04-03 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824262', 'tblTempVendorCDR_20' ) end [2025-04-03 08:23:19] Production.INFO: ProcessCDR(1,14824262,1,1,2) [2025-04-03 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824262', 'tblTempUsageDetail_20' ) start [2025-04-03 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824262', 'tblTempUsageDetail_20' ) end [2025-04-03 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:23:22] Production.INFO: ==32736== Releasing lock... [2025-04-03 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-03 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:24:05 [end_date_ymd] => 2025-04-03 08:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:24:05' and `end` < '2025-04-03 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-03 08:24:17] Production.INFO: count ==439 [2025-04-03 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:24:05 - End Time 2025-04-03 08:24:05 [2025-04-03 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824267', 'tblTempUsageDetail_20' ) start [2025-04-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824267', 'tblTempUsageDetail_20' ) end [2025-04-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824267', 'tblTempVendorCDR_20' ) start [2025-04-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824267', 'tblTempVendorCDR_20' ) end [2025-04-03 08:24:18] Production.INFO: ProcessCDR(1,14824267,1,1,2) [2025-04-03 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824267', 'tblTempUsageDetail_20' ) start [2025-04-03 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824267', 'tblTempUsageDetail_20' ) end [2025-04-03 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:24:22] Production.INFO: ==359== Releasing lock... [2025-04-03 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:25:05 [end_date_ymd] => 2025-04-03 08:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:25:05' and `end` < '2025-04-03 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-03 08:25:18] Production.INFO: count ==445 [2025-04-03 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:25:05 - End Time 2025-04-03 08:25:05 [2025-04-03 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824272', 'tblTempUsageDetail_20' ) start [2025-04-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824272', 'tblTempUsageDetail_20' ) end [2025-04-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824272', 'tblTempVendorCDR_20' ) start [2025-04-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824272', 'tblTempVendorCDR_20' ) end [2025-04-03 08:25:18] Production.INFO: ProcessCDR(1,14824272,1,1,2) [2025-04-03 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824272', 'tblTempUsageDetail_20' ) start [2025-04-03 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824272', 'tblTempUsageDetail_20' ) end [2025-04-03 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:25:22] Production.INFO: ==435== Releasing lock... [2025-04-03 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:26:05 [end_date_ymd] => 2025-04-03 08:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:26:05' and `end` < '2025-04-03 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-03 08:26:18] Production.INFO: count ==447 [2025-04-03 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:26:05 - End Time 2025-04-03 08:26:05 [2025-04-03 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824277', 'tblTempUsageDetail_20' ) start [2025-04-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824277', 'tblTempUsageDetail_20' ) end [2025-04-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824277', 'tblTempVendorCDR_20' ) start [2025-04-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824277', 'tblTempVendorCDR_20' ) end [2025-04-03 08:26:18] Production.INFO: ProcessCDR(1,14824277,1,1,2) [2025-04-03 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824277', 'tblTempUsageDetail_20' ) start [2025-04-03 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824277', 'tblTempUsageDetail_20' ) end [2025-04-03 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:26:23] Production.INFO: ==511== Releasing lock... [2025-04-03 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:26:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:27:05 [end_date_ymd] => 2025-04-03 08:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:27:05' and `end` < '2025-04-03 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-03 08:27:18] Production.INFO: count ==459 [2025-04-03 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:27:05 - End Time 2025-04-03 08:27:05 [2025-04-03 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824282', 'tblTempUsageDetail_20' ) start [2025-04-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824282', 'tblTempUsageDetail_20' ) end [2025-04-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824282', 'tblTempVendorCDR_20' ) start [2025-04-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824282', 'tblTempVendorCDR_20' ) end [2025-04-03 08:27:18] Production.INFO: ProcessCDR(1,14824282,1,1,2) [2025-04-03 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824282', 'tblTempUsageDetail_20' ) start [2025-04-03 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824282', 'tblTempUsageDetail_20' ) end [2025-04-03 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:27:24] Production.INFO: ==586== Releasing lock... [2025-04-03 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:27:24] Production.INFO: 32 MB #Memory Used# [2025-04-03 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:28:05 [end_date_ymd] => 2025-04-03 08:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:28:05' and `end` < '2025-04-03 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-03 08:28:18] Production.INFO: count ==470 [2025-04-03 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:28:05 - End Time 2025-04-03 08:28:05 [2025-04-03 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824287', 'tblTempUsageDetail_20' ) start [2025-04-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824287', 'tblTempUsageDetail_20' ) end [2025-04-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824287', 'tblTempVendorCDR_20' ) start [2025-04-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824287', 'tblTempVendorCDR_20' ) end [2025-04-03 08:28:18] Production.INFO: ProcessCDR(1,14824287,1,1,2) [2025-04-03 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824287', 'tblTempUsageDetail_20' ) start [2025-04-03 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824287', 'tblTempUsageDetail_20' ) end [2025-04-03 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:28:24] Production.INFO: ==673== Releasing lock... [2025-04-03 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:28:24] Production.INFO: 32 MB #Memory Used# [2025-04-03 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:29:05 [end_date_ymd] => 2025-04-03 08:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:29:05' and `end` < '2025-04-03 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-03 08:29:18] Production.INFO: count ==483 [2025-04-03 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:29:05 - End Time 2025-04-03 08:29:05 [2025-04-03 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824292', 'tblTempUsageDetail_20' ) start [2025-04-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824292', 'tblTempUsageDetail_20' ) end [2025-04-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824292', 'tblTempVendorCDR_20' ) start [2025-04-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824292', 'tblTempVendorCDR_20' ) end [2025-04-03 08:29:18] Production.INFO: ProcessCDR(1,14824292,1,1,2) [2025-04-03 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824292', 'tblTempUsageDetail_20' ) start [2025-04-03 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824292', 'tblTempUsageDetail_20' ) end [2025-04-03 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:29:23] Production.INFO: ==764== Releasing lock... [2025-04-03 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:30:06 [end_date_ymd] => 2025-04-03 08:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:30:06' and `end` < '2025-04-03 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-03 08:30:19] Production.INFO: count ==494 [2025-04-03 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:30:06 - End Time 2025-04-03 08:30:06 [2025-04-03 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824298', 'tblTempUsageDetail_20' ) start [2025-04-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824298', 'tblTempUsageDetail_20' ) end [2025-04-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824298', 'tblTempVendorCDR_20' ) start [2025-04-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824298', 'tblTempVendorCDR_20' ) end [2025-04-03 08:30:19] Production.INFO: ProcessCDR(1,14824298,1,1,2) [2025-04-03 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824298', 'tblTempUsageDetail_20' ) start [2025-04-03 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824298', 'tblTempUsageDetail_20' ) end [2025-04-03 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:30:25] Production.INFO: ==843== Releasing lock... [2025-04-03 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:30:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:31:06 [end_date_ymd] => 2025-04-03 08:31:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:31:06' and `end` < '2025-04-03 08: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-03 08:31:18] Production.INFO: count ==517 [2025-04-03 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:31:06 - End Time 2025-04-03 08:31:06 [2025-04-03 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824303', 'tblTempUsageDetail_20' ) start [2025-04-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824303', 'tblTempUsageDetail_20' ) end [2025-04-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824303', 'tblTempVendorCDR_20' ) start [2025-04-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824303', 'tblTempVendorCDR_20' ) end [2025-04-03 08:31:18] Production.INFO: ProcessCDR(1,14824303,1,1,2) [2025-04-03 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824303', 'tblTempUsageDetail_20' ) start [2025-04-03 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824303', 'tblTempUsageDetail_20' ) end [2025-04-03 08:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:31:24] Production.INFO: ==954== Releasing lock... [2025-04-03 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:31:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:32:06 [end_date_ymd] => 2025-04-03 08:32:06 [RateCDR] => 1 ) [2025-04-03 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:32:06' and `end` < '2025-04-03 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:32:18] Production.INFO: count ==517 [2025-04-03 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:32:06 - End Time 2025-04-03 08:32:06 [2025-04-03 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824308', 'tblTempUsageDetail_20' ) start [2025-04-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824308', 'tblTempUsageDetail_20' ) end [2025-04-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824308', 'tblTempVendorCDR_20' ) start [2025-04-03 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824308', 'tblTempVendorCDR_20' ) end [2025-04-03 08:32:18] Production.INFO: ProcessCDR(1,14824308,1,1,2) [2025-04-03 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824308', 'tblTempUsageDetail_20' ) start [2025-04-03 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824308', 'tblTempUsageDetail_20' ) end [2025-04-03 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:32:22] Production.INFO: ==1027== Releasing lock... [2025-04-03 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:33:06 [end_date_ymd] => 2025-04-03 08:33:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:33:06' and `end` < '2025-04-03 08: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-03 08:33:19] Production.INFO: count ==517 [2025-04-03 08:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:33:06 - End Time 2025-04-03 08:33:06 [2025-04-03 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824313', 'tblTempUsageDetail_20' ) start [2025-04-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824313', 'tblTempUsageDetail_20' ) end [2025-04-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824313', 'tblTempVendorCDR_20' ) start [2025-04-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824313', 'tblTempVendorCDR_20' ) end [2025-04-03 08:33:19] Production.INFO: ProcessCDR(1,14824313,1,1,2) [2025-04-03 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824313', 'tblTempUsageDetail_20' ) start [2025-04-03 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824313', 'tblTempUsageDetail_20' ) end [2025-04-03 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:33:23] Production.INFO: ==1097== Releasing lock... [2025-04-03 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:33:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:34:05 [end_date_ymd] => 2025-04-03 08:34:05 [RateCDR] => 1 ) [2025-04-03 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:34:05' and `end` < '2025-04-03 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:34:18] Production.INFO: count ==525 [2025-04-03 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:34:05 - End Time 2025-04-03 08:34:05 [2025-04-03 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824318', 'tblTempUsageDetail_20' ) start [2025-04-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824318', 'tblTempUsageDetail_20' ) end [2025-04-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824318', 'tblTempVendorCDR_20' ) start [2025-04-03 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824318', 'tblTempVendorCDR_20' ) end [2025-04-03 08:34:18] Production.INFO: ProcessCDR(1,14824318,1,1,2) [2025-04-03 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824318', 'tblTempUsageDetail_20' ) start [2025-04-03 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824318', 'tblTempUsageDetail_20' ) end [2025-04-03 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:34:22] Production.INFO: ==1183== Releasing lock... [2025-04-03 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:35:06 [end_date_ymd] => 2025-04-03 08:35:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:35:06' and `end` < '2025-04-03 08: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-03 08:35:18] Production.INFO: count ==529 [2025-04-03 08:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:35:06 - End Time 2025-04-03 08:35:06 [2025-04-03 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824323', 'tblTempUsageDetail_20' ) start [2025-04-03 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824323', 'tblTempUsageDetail_20' ) end [2025-04-03 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824323', 'tblTempVendorCDR_20' ) start [2025-04-03 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824323', 'tblTempVendorCDR_20' ) end [2025-04-03 08:35:19] Production.INFO: ProcessCDR(1,14824323,1,1,2) [2025-04-03 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824323', 'tblTempUsageDetail_20' ) start [2025-04-03 08:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824323', 'tblTempUsageDetail_20' ) end [2025-04-03 08:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:35:24] Production.INFO: ==1264== Releasing lock... [2025-04-03 08:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:35:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:36:05 [end_date_ymd] => 2025-04-03 08:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:36:05' and `end` < '2025-04-03 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-03 08:36:18] Production.INFO: count ==535 [2025-04-03 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:36:05 - End Time 2025-04-03 08:36:05 [2025-04-03 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824328', 'tblTempUsageDetail_20' ) start [2025-04-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824328', 'tblTempUsageDetail_20' ) end [2025-04-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824328', 'tblTempVendorCDR_20' ) start [2025-04-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824328', 'tblTempVendorCDR_20' ) end [2025-04-03 08:36:18] Production.INFO: ProcessCDR(1,14824328,1,1,2) [2025-04-03 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824328', 'tblTempUsageDetail_20' ) start [2025-04-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824328', 'tblTempUsageDetail_20' ) end [2025-04-03 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:36:21] Production.INFO: ==1353== Releasing lock... [2025-04-03 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-03 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:37:06 [end_date_ymd] => 2025-04-03 08:37:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:37:06' and `end` < '2025-04-03 08: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-03 08:37:19] Production.INFO: count ==544 [2025-04-03 08:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:37:06 - End Time 2025-04-03 08:37:06 [2025-04-03 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824333', 'tblTempUsageDetail_20' ) start [2025-04-03 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824333', 'tblTempUsageDetail_20' ) end [2025-04-03 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824333', 'tblTempVendorCDR_20' ) start [2025-04-03 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824333', 'tblTempVendorCDR_20' ) end [2025-04-03 08:37:19] Production.INFO: ProcessCDR(1,14824333,1,1,2) [2025-04-03 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824333', 'tblTempUsageDetail_20' ) start [2025-04-03 08:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824333', 'tblTempUsageDetail_20' ) end [2025-04-03 08:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:37:24] Production.INFO: ==1453== Releasing lock... [2025-04-03 08:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:37:24] Production.INFO: 33 MB #Memory Used# [2025-04-03 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:38:06 [end_date_ymd] => 2025-04-03 08:38:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:38:06' and `end` < '2025-04-03 08: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-03 08:38:19] Production.INFO: count ==546 [2025-04-03 08:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:38:06 - End Time 2025-04-03 08:38:06 [2025-04-03 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824338', 'tblTempUsageDetail_20' ) start [2025-04-03 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824338', 'tblTempUsageDetail_20' ) end [2025-04-03 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824338', 'tblTempVendorCDR_20' ) start [2025-04-03 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824338', 'tblTempVendorCDR_20' ) end [2025-04-03 08:38:19] Production.INFO: ProcessCDR(1,14824338,1,1,2) [2025-04-03 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824338', 'tblTempUsageDetail_20' ) start [2025-04-03 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824338', 'tblTempUsageDetail_20' ) end [2025-04-03 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:38:24] Production.INFO: ==1589== Releasing lock... [2025-04-03 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:38:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:39:06 [end_date_ymd] => 2025-04-03 08:39:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:39:06' and `end` < '2025-04-03 08: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-03 08:39:19] Production.INFO: count ==551 [2025-04-03 08:39:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:39:06 - End Time 2025-04-03 08:39:06 [2025-04-03 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824343', 'tblTempUsageDetail_20' ) start [2025-04-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824343', 'tblTempUsageDetail_20' ) end [2025-04-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824343', 'tblTempVendorCDR_20' ) start [2025-04-03 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824343', 'tblTempVendorCDR_20' ) end [2025-04-03 08:39:19] Production.INFO: ProcessCDR(1,14824343,1,1,2) [2025-04-03 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824343', 'tblTempUsageDetail_20' ) start [2025-04-03 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824343', 'tblTempUsageDetail_20' ) end [2025-04-03 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:39:25] Production.INFO: ==1690== Releasing lock... [2025-04-03 08:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:39:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:40:06 [end_date_ymd] => 2025-04-03 08:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:40:06' and `end` < '2025-04-03 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-03 08:40:19] Production.INFO: count ==561 [2025-04-03 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:40:06 - End Time 2025-04-03 08:40:06 [2025-04-03 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824349', 'tblTempUsageDetail_20' ) start [2025-04-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824349', 'tblTempUsageDetail_20' ) end [2025-04-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824349', 'tblTempVendorCDR_20' ) start [2025-04-03 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824349', 'tblTempVendorCDR_20' ) end [2025-04-03 08:40:19] Production.INFO: ProcessCDR(1,14824349,1,1,2) [2025-04-03 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824349', 'tblTempUsageDetail_20' ) start [2025-04-03 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824349', 'tblTempUsageDetail_20' ) end [2025-04-03 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:40:22] Production.INFO: ==1788== Releasing lock... [2025-04-03 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:40:22] Production.INFO: 33 MB #Memory Used# [2025-04-03 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:41:06 [end_date_ymd] => 2025-04-03 08:41:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:41:06' and `end` < '2025-04-03 08: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-03 08:41:19] Production.INFO: count ==587 [2025-04-03 08:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:41:06 - End Time 2025-04-03 08:41:06 [2025-04-03 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824354', 'tblTempUsageDetail_20' ) start [2025-04-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824354', 'tblTempUsageDetail_20' ) end [2025-04-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824354', 'tblTempVendorCDR_20' ) start [2025-04-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824354', 'tblTempVendorCDR_20' ) end [2025-04-03 08:41:19] Production.INFO: ProcessCDR(1,14824354,1,1,2) [2025-04-03 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824354', 'tblTempUsageDetail_20' ) start [2025-04-03 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824354', 'tblTempUsageDetail_20' ) end [2025-04-03 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:41:24] Production.INFO: ==1896== Releasing lock... [2025-04-03 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:41:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-03 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:42:05 [end_date_ymd] => 2025-04-03 08:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:42:05' and `end` < '2025-04-03 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-03 08:42:18] Production.INFO: count ==601 [2025-04-03 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:42:05 - End Time 2025-04-03 08:42:05 [2025-04-03 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824359', 'tblTempUsageDetail_20' ) start [2025-04-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824359', 'tblTempUsageDetail_20' ) end [2025-04-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824359', 'tblTempVendorCDR_20' ) start [2025-04-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824359', 'tblTempVendorCDR_20' ) end [2025-04-03 08:42:18] Production.INFO: ProcessCDR(1,14824359,1,1,2) [2025-04-03 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824359', 'tblTempUsageDetail_20' ) start [2025-04-03 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824359', 'tblTempUsageDetail_20' ) end [2025-04-03 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:42:24] Production.INFO: ==1997== Releasing lock... [2025-04-03 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:42:24] Production.INFO: 33 MB #Memory Used# [2025-04-03 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:43:06 [end_date_ymd] => 2025-04-03 08:43:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:43:06' and `end` < '2025-04-03 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-03 08:43:18] Production.INFO: count ==613 [2025-04-03 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:43:06 - End Time 2025-04-03 08:43:06 [2025-04-03 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824364', 'tblTempUsageDetail_20' ) start [2025-04-03 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824364', 'tblTempUsageDetail_20' ) end [2025-04-03 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824364', 'tblTempVendorCDR_20' ) start [2025-04-03 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824364', 'tblTempVendorCDR_20' ) end [2025-04-03 08:43:19] Production.INFO: ProcessCDR(1,14824364,1,1,2) [2025-04-03 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824364', 'tblTempUsageDetail_20' ) start [2025-04-03 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824364', 'tblTempUsageDetail_20' ) end [2025-04-03 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:43:22] Production.INFO: ==2096== Releasing lock... [2025-04-03 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:44:05 [end_date_ymd] => 2025-04-03 08:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:44:05' and `end` < '2025-04-03 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-03 08:44:18] Production.INFO: count ==617 [2025-04-03 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:44:05 - End Time 2025-04-03 08:44:05 [2025-04-03 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824369', 'tblTempUsageDetail_20' ) start [2025-04-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824369', 'tblTempUsageDetail_20' ) end [2025-04-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824369', 'tblTempVendorCDR_20' ) start [2025-04-03 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824369', 'tblTempVendorCDR_20' ) end [2025-04-03 08:44:18] Production.INFO: ProcessCDR(1,14824369,1,1,2) [2025-04-03 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824369', 'tblTempUsageDetail_20' ) start [2025-04-03 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824369', 'tblTempUsageDetail_20' ) end [2025-04-03 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:44:22] Production.INFO: ==2194== Releasing lock... [2025-04-03 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:45:05 [end_date_ymd] => 2025-04-03 08:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:45:05' and `end` < '2025-04-03 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-03 08:45:18] Production.INFO: count ==620 [2025-04-03 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:45:05 - End Time 2025-04-03 08:45:05 [2025-04-03 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824374', 'tblTempUsageDetail_20' ) start [2025-04-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824374', 'tblTempUsageDetail_20' ) end [2025-04-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824374', 'tblTempVendorCDR_20' ) start [2025-04-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824374', 'tblTempVendorCDR_20' ) end [2025-04-03 08:45:18] Production.INFO: ProcessCDR(1,14824374,1,1,2) [2025-04-03 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824374', 'tblTempUsageDetail_20' ) start [2025-04-03 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824374', 'tblTempUsageDetail_20' ) end [2025-04-03 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:45:24] Production.INFO: ==2291== Releasing lock... [2025-04-03 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:45:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:46:05 [end_date_ymd] => 2025-04-03 08:46:05 [RateCDR] => 1 ) [2025-04-03 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:46:05' and `end` < '2025-04-03 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:46:18] Production.INFO: count ==625 [2025-04-03 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:46:05 - End Time 2025-04-03 08:46:05 [2025-04-03 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824379', 'tblTempUsageDetail_20' ) start [2025-04-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824379', 'tblTempUsageDetail_20' ) end [2025-04-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824379', 'tblTempVendorCDR_20' ) start [2025-04-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824379', 'tblTempVendorCDR_20' ) end [2025-04-03 08:46:18] Production.INFO: ProcessCDR(1,14824379,1,1,2) [2025-04-03 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824379', 'tblTempUsageDetail_20' ) start [2025-04-03 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824379', 'tblTempUsageDetail_20' ) end [2025-04-03 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:46:24] Production.INFO: ==2384== Releasing lock... [2025-04-03 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:46:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-03 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:47:05 [end_date_ymd] => 2025-04-03 08:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:47:05' and `end` < '2025-04-03 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-03 08:47:18] Production.INFO: count ==630 [2025-04-03 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:47:05 - End Time 2025-04-03 08:47:05 [2025-04-03 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824384', 'tblTempUsageDetail_20' ) start [2025-04-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824384', 'tblTempUsageDetail_20' ) end [2025-04-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824384', 'tblTempVendorCDR_20' ) start [2025-04-03 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824384', 'tblTempVendorCDR_20' ) end [2025-04-03 08:47:18] Production.INFO: ProcessCDR(1,14824384,1,1,2) [2025-04-03 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824384', 'tblTempUsageDetail_20' ) start [2025-04-03 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824384', 'tblTempUsageDetail_20' ) end [2025-04-03 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:47:23] Production.INFO: ==2521== Releasing lock... [2025-04-03 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:48:05 [end_date_ymd] => 2025-04-03 08:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:48:05' and `end` < '2025-04-03 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-03 08:48:18] Production.INFO: count ==640 [2025-04-03 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:48:05 - End Time 2025-04-03 08:48:05 [2025-04-03 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824389', 'tblTempUsageDetail_20' ) start [2025-04-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824389', 'tblTempUsageDetail_20' ) end [2025-04-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824389', 'tblTempVendorCDR_20' ) start [2025-04-03 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824389', 'tblTempVendorCDR_20' ) end [2025-04-03 08:48:18] Production.INFO: ProcessCDR(1,14824389,1,1,2) [2025-04-03 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824389', 'tblTempUsageDetail_20' ) start [2025-04-03 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824389', 'tblTempUsageDetail_20' ) end [2025-04-03 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:48:22] Production.INFO: ==2631== Releasing lock... [2025-04-03 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:49:06 [end_date_ymd] => 2025-04-03 08:49:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:49:06' and `end` < '2025-04-03 08: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-03 08:49:19] Production.INFO: count ==654 [2025-04-03 08:49:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:49:06 - End Time 2025-04-03 08:49:06 [2025-04-03 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824394', 'tblTempUsageDetail_20' ) start [2025-04-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824394', 'tblTempUsageDetail_20' ) end [2025-04-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824394', 'tblTempVendorCDR_20' ) start [2025-04-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824394', 'tblTempVendorCDR_20' ) end [2025-04-03 08:49:19] Production.INFO: ProcessCDR(1,14824394,1,1,2) [2025-04-03 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824394', 'tblTempUsageDetail_20' ) start [2025-04-03 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824394', 'tblTempUsageDetail_20' ) end [2025-04-03 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:49:24] Production.INFO: ==2739== Releasing lock... [2025-04-03 08:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:49:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:50:06 [end_date_ymd] => 2025-04-03 08:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 05:50:06' and `end` < '2025-04-03 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-03 08:50:19] Production.INFO: count ==662 [2025-04-03 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:50:06 - End Time 2025-04-03 08:50:06 [2025-04-03 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824400', 'tblTempUsageDetail_20' ) start [2025-04-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824400', 'tblTempUsageDetail_20' ) end [2025-04-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824400', 'tblTempVendorCDR_20' ) start [2025-04-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824400', 'tblTempVendorCDR_20' ) end [2025-04-03 08:50:19] Production.INFO: ProcessCDR(1,14824400,1,1,2) [2025-04-03 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824400', 'tblTempUsageDetail_20' ) start [2025-04-03 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824400', 'tblTempUsageDetail_20' ) end [2025-04-03 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:50:22] Production.INFO: ==2846== Releasing lock... [2025-04-03 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-03 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:51:06 [end_date_ymd] => 2025-04-03 08:51:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:51:06' and `end` < '2025-04-03 08: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-03 08:51:18] Production.INFO: count ==710 [2025-04-03 08:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:51:06 - End Time 2025-04-03 08:51:06 [2025-04-03 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824405', 'tblTempUsageDetail_20' ) start [2025-04-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824405', 'tblTempUsageDetail_20' ) end [2025-04-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824405', 'tblTempVendorCDR_20' ) start [2025-04-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824405', 'tblTempVendorCDR_20' ) end [2025-04-03 08:51:19] Production.INFO: ProcessCDR(1,14824405,1,1,2) [2025-04-03 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824405', 'tblTempUsageDetail_20' ) start [2025-04-03 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824405', 'tblTempUsageDetail_20' ) end [2025-04-03 08:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:51:24] Production.INFO: ==2946== Releasing lock... [2025-04-03 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:51:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:52:06 [end_date_ymd] => 2025-04-03 08:52:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:52:06' and `end` < '2025-04-03 08: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-03 08:52:18] Production.INFO: count ==730 [2025-04-03 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:52:06 - End Time 2025-04-03 08:52:06 [2025-04-03 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824410', 'tblTempUsageDetail_20' ) start [2025-04-03 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824410', 'tblTempUsageDetail_20' ) end [2025-04-03 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824410', 'tblTempVendorCDR_20' ) start [2025-04-03 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824410', 'tblTempVendorCDR_20' ) end [2025-04-03 08:52:19] Production.INFO: ProcessCDR(1,14824410,1,1,2) [2025-04-03 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824410', 'tblTempUsageDetail_20' ) start [2025-04-03 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824410', 'tblTempUsageDetail_20' ) end [2025-04-03 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:52:24] Production.INFO: ==3025== Releasing lock... [2025-04-03 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:52:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:53:05 [end_date_ymd] => 2025-04-03 08:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:53:05' and `end` < '2025-04-03 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-03 08:53:18] Production.INFO: count ==729 [2025-04-03 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:53:05 - End Time 2025-04-03 08:53:05 [2025-04-03 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824415', 'tblTempUsageDetail_20' ) start [2025-04-03 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824415', 'tblTempUsageDetail_20' ) end [2025-04-03 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824415', 'tblTempVendorCDR_20' ) start [2025-04-03 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824415', 'tblTempVendorCDR_20' ) end [2025-04-03 08:53:18] Production.INFO: ProcessCDR(1,14824415,1,1,2) [2025-04-03 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824415', 'tblTempUsageDetail_20' ) start [2025-04-03 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824415', 'tblTempUsageDetail_20' ) end [2025-04-03 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:53:22] Production.INFO: ==3096== Releasing lock... [2025-04-03 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:54:05 [end_date_ymd] => 2025-04-03 08:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:54:05' and `end` < '2025-04-03 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-03 08:54:18] Production.INFO: count ==726 [2025-04-03 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:54:05 - End Time 2025-04-03 08:54:05 [2025-04-03 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824420', 'tblTempUsageDetail_20' ) start [2025-04-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824420', 'tblTempUsageDetail_20' ) end [2025-04-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824420', 'tblTempVendorCDR_20' ) start [2025-04-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824420', 'tblTempVendorCDR_20' ) end [2025-04-03 08:54:18] Production.INFO: ProcessCDR(1,14824420,1,1,2) [2025-04-03 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824420', 'tblTempUsageDetail_20' ) start [2025-04-03 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824420', 'tblTempUsageDetail_20' ) end [2025-04-03 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:54:24] Production.INFO: ==3173== Releasing lock... [2025-04-03 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:54:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:55:05 [end_date_ymd] => 2025-04-03 08:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:55:05' and `end` < '2025-04-03 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-03 08:55:18] Production.INFO: count ==731 [2025-04-03 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:55:05 - End Time 2025-04-03 08:55:05 [2025-04-03 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824425', 'tblTempUsageDetail_20' ) start [2025-04-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824425', 'tblTempUsageDetail_20' ) end [2025-04-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824425', 'tblTempVendorCDR_20' ) start [2025-04-03 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824425', 'tblTempVendorCDR_20' ) end [2025-04-03 08:55:18] Production.INFO: ProcessCDR(1,14824425,1,1,2) [2025-04-03 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824425', 'tblTempUsageDetail_20' ) start [2025-04-03 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824425', 'tblTempUsageDetail_20' ) end [2025-04-03 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:55:24] Production.INFO: ==3244== Releasing lock... [2025-04-03 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:55:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:56:06 [end_date_ymd] => 2025-04-03 08:56:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:56:06' and `end` < '2025-04-03 08: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-03 08:56:19] Production.INFO: count ==731 [2025-04-03 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:56:06 - End Time 2025-04-03 08:56:06 [2025-04-03 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824430', 'tblTempUsageDetail_20' ) start [2025-04-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824430', 'tblTempUsageDetail_20' ) end [2025-04-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824430', 'tblTempVendorCDR_20' ) start [2025-04-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824430', 'tblTempVendorCDR_20' ) end [2025-04-03 08:56:19] Production.INFO: ProcessCDR(1,14824430,1,1,2) [2025-04-03 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824430', 'tblTempUsageDetail_20' ) start [2025-04-03 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824430', 'tblTempUsageDetail_20' ) end [2025-04-03 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:56:24] Production.INFO: ==3318== Releasing lock... [2025-04-03 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:56:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:57:05 [end_date_ymd] => 2025-04-03 08:57:05 [RateCDR] => 1 ) [2025-04-03 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 05:57:05' and `end` < '2025-04-03 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 08:57:18] Production.INFO: count ==738 [2025-04-03 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:57:05 - End Time 2025-04-03 08:57:05 [2025-04-03 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824435', 'tblTempUsageDetail_20' ) start [2025-04-03 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824435', 'tblTempUsageDetail_20' ) end [2025-04-03 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824435', 'tblTempVendorCDR_20' ) start [2025-04-03 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824435', 'tblTempVendorCDR_20' ) end [2025-04-03 08:57:18] Production.INFO: ProcessCDR(1,14824435,1,1,2) [2025-04-03 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824435', 'tblTempUsageDetail_20' ) start [2025-04-03 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824435', 'tblTempUsageDetail_20' ) end [2025-04-03 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:57:23] Production.INFO: ==3392== Releasing lock... [2025-04-03 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:58:06 [end_date_ymd] => 2025-04-03 08:58:06 [RateCDR] => 1 ) [2025-04-03 08: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-03 05:58:06' and `end` < '2025-04-03 08: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-03 08:58:18] Production.INFO: count ==741 [2025-04-03 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 05:58:06 - End Time 2025-04-03 08:58:06 [2025-04-03 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824440', 'tblTempUsageDetail_20' ) start [2025-04-03 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824440', 'tblTempUsageDetail_20' ) end [2025-04-03 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824440', 'tblTempVendorCDR_20' ) start [2025-04-03 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824440', 'tblTempVendorCDR_20' ) end [2025-04-03 08:58:19] Production.INFO: ProcessCDR(1,14824440,1,1,2) [2025-04-03 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824440', 'tblTempUsageDetail_20' ) start [2025-04-03 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824440', 'tblTempUsageDetail_20' ) end [2025-04-03 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:58:24] Production.INFO: ==3467== Releasing lock... [2025-04-03 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:58:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 05:59:05 [end_date_ymd] => 2025-04-03 08:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 05:59:05' and `end` < '2025-04-03 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-03 08:59:18] Production.INFO: count ==753 [2025-04-03 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 05:59:05 - End Time 2025-04-03 08:59:05 [2025-04-03 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824445', 'tblTempUsageDetail_20' ) start [2025-04-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824445', 'tblTempUsageDetail_20' ) end [2025-04-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824445', 'tblTempVendorCDR_20' ) start [2025-04-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824445', 'tblTempVendorCDR_20' ) end [2025-04-03 08:59:18] Production.INFO: ProcessCDR(1,14824445,1,1,2) [2025-04-03 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824445', 'tblTempUsageDetail_20' ) start [2025-04-03 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824445', 'tblTempUsageDetail_20' ) end [2025-04-03 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 08:59:23] Production.INFO: ==3543== Releasing lock... [2025-04-03 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 08:59:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-03 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:00:06 [end_date_ymd] => 2025-04-03 09:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 06:00:06' and `end` < '2025-04-03 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-03 09:00:19] Production.INFO: count ==758 [2025-04-03 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:00:06 - End Time 2025-04-03 09:00:06 [2025-04-03 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824451', 'tblTempUsageDetail_20' ) start [2025-04-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824451', 'tblTempUsageDetail_20' ) end [2025-04-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824451', 'tblTempVendorCDR_20' ) start [2025-04-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824451', 'tblTempVendorCDR_20' ) end [2025-04-03 09:00:19] Production.INFO: ProcessCDR(1,14824451,1,1,2) [2025-04-03 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824451', 'tblTempUsageDetail_20' ) start [2025-04-03 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824451', 'tblTempUsageDetail_20' ) end [2025-04-03 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:00:25] Production.INFO: ==3622== Releasing lock... [2025-04-03 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:00:25] Production.INFO: 34.25 MB #Memory Used# [2025-04-03 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:01:05 [end_date_ymd] => 2025-04-03 09:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:01:05' and `end` < '2025-04-03 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-03 09:01:18] Production.INFO: count ==779 [2025-04-03 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:01:05 - End Time 2025-04-03 09:01:05 [2025-04-03 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824456', 'tblTempUsageDetail_20' ) start [2025-04-03 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824456', 'tblTempUsageDetail_20' ) end [2025-04-03 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824456', 'tblTempVendorCDR_20' ) start [2025-04-03 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824456', 'tblTempVendorCDR_20' ) end [2025-04-03 09:01:18] Production.INFO: ProcessCDR(1,14824456,1,1,2) [2025-04-03 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824456', 'tblTempUsageDetail_20' ) start [2025-04-03 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824456', 'tblTempUsageDetail_20' ) end [2025-04-03 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:01:24] Production.INFO: ==3713== Releasing lock... [2025-04-03 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:01:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:02:06 [end_date_ymd] => 2025-04-03 09:02:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:02:06' and `end` < '2025-04-03 09: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-03 09:02:18] Production.INFO: count ==782 [2025-04-03 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:02:06 - End Time 2025-04-03 09:02:06 [2025-04-03 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824461', 'tblTempUsageDetail_20' ) start [2025-04-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824461', 'tblTempUsageDetail_20' ) end [2025-04-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824461', 'tblTempVendorCDR_20' ) start [2025-04-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824461', 'tblTempVendorCDR_20' ) end [2025-04-03 09:02:19] Production.INFO: ProcessCDR(1,14824461,1,1,2) [2025-04-03 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824461', 'tblTempUsageDetail_20' ) start [2025-04-03 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824461', 'tblTempUsageDetail_20' ) end [2025-04-03 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:02:24] Production.INFO: ==3826== Releasing lock... [2025-04-03 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:02:24] Production.INFO: 34 MB #Memory Used# [2025-04-03 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:03:05 [end_date_ymd] => 2025-04-03 09:03:05 [RateCDR] => 1 ) [2025-04-03 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:03:05' and `end` < '2025-04-03 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:03:18] Production.INFO: count ==787 [2025-04-03 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:03:05 - End Time 2025-04-03 09:03:05 [2025-04-03 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824466', 'tblTempUsageDetail_20' ) start [2025-04-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824466', 'tblTempUsageDetail_20' ) end [2025-04-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824466', 'tblTempVendorCDR_20' ) start [2025-04-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824466', 'tblTempVendorCDR_20' ) end [2025-04-03 09:03:18] Production.INFO: ProcessCDR(1,14824466,1,1,2) [2025-04-03 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824466', 'tblTempUsageDetail_20' ) start [2025-04-03 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824466', 'tblTempUsageDetail_20' ) end [2025-04-03 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:03:21] Production.INFO: ==3906== Releasing lock... [2025-04-03 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:03:21] Production.INFO: 34 MB #Memory Used# [2025-04-03 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:04:06 [end_date_ymd] => 2025-04-03 09:04:06 [RateCDR] => 1 ) [2025-04-03 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:04:06' and `end` < '2025-04-03 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:04:18] Production.INFO: count ==784 [2025-04-03 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:04:06 - End Time 2025-04-03 09:04:06 [2025-04-03 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824471', 'tblTempUsageDetail_20' ) start [2025-04-03 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824471', 'tblTempUsageDetail_20' ) end [2025-04-03 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824471', 'tblTempVendorCDR_20' ) start [2025-04-03 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824471', 'tblTempVendorCDR_20' ) end [2025-04-03 09:04:19] Production.INFO: ProcessCDR(1,14824471,1,1,2) [2025-04-03 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824471', 'tblTempUsageDetail_20' ) start [2025-04-03 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824471', 'tblTempUsageDetail_20' ) end [2025-04-03 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:04:22] Production.INFO: ==3980== Releasing lock... [2025-04-03 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:05:06 [end_date_ymd] => 2025-04-03 09:05:06 [RateCDR] => 1 ) [2025-04-03 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:05:06' and `end` < '2025-04-03 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:05:18] Production.INFO: count ==790 [2025-04-03 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:05:06 - End Time 2025-04-03 09:05:06 [2025-04-03 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824476', 'tblTempUsageDetail_20' ) start [2025-04-03 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824476', 'tblTempUsageDetail_20' ) end [2025-04-03 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824476', 'tblTempVendorCDR_20' ) start [2025-04-03 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824476', 'tblTempVendorCDR_20' ) end [2025-04-03 09:05:19] Production.INFO: ProcessCDR(1,14824476,1,1,2) [2025-04-03 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824476', 'tblTempUsageDetail_20' ) start [2025-04-03 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824476', 'tblTempUsageDetail_20' ) end [2025-04-03 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:05:22] Production.INFO: ==4062== Releasing lock... [2025-04-03 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-03 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:06:06 [end_date_ymd] => 2025-04-03 09:06:06 [RateCDR] => 1 ) [2025-04-03 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:06:06' and `end` < '2025-04-03 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:06:19] Production.INFO: count ==791 [2025-04-03 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:06:06 - End Time 2025-04-03 09:06:06 [2025-04-03 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824481', 'tblTempUsageDetail_20' ) start [2025-04-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824481', 'tblTempUsageDetail_20' ) end [2025-04-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824481', 'tblTempVendorCDR_20' ) start [2025-04-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824481', 'tblTempVendorCDR_20' ) end [2025-04-03 09:06:19] Production.INFO: ProcessCDR(1,14824481,1,1,2) [2025-04-03 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824481', 'tblTempUsageDetail_20' ) start [2025-04-03 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824481', 'tblTempUsageDetail_20' ) end [2025-04-03 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:06:23] Production.INFO: ==4133== Releasing lock... [2025-04-03 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:06:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:07:05 [end_date_ymd] => 2025-04-03 09:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:07:05' and `end` < '2025-04-03 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-03 09:07:18] Production.INFO: count ==793 [2025-04-03 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:07:05 - End Time 2025-04-03 09:07:05 [2025-04-03 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824486', 'tblTempUsageDetail_20' ) start [2025-04-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824486', 'tblTempUsageDetail_20' ) end [2025-04-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824486', 'tblTempVendorCDR_20' ) start [2025-04-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824486', 'tblTempVendorCDR_20' ) end [2025-04-03 09:07:18] Production.INFO: ProcessCDR(1,14824486,1,1,2) [2025-04-03 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824486', 'tblTempUsageDetail_20' ) start [2025-04-03 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824486', 'tblTempUsageDetail_20' ) end [2025-04-03 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:07:24] Production.INFO: ==4207== Releasing lock... [2025-04-03 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:07:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-03 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:08:05 [end_date_ymd] => 2025-04-03 09:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:08:05' and `end` < '2025-04-03 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-03 09:08:18] Production.INFO: count ==800 [2025-04-03 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:08:05 - End Time 2025-04-03 09:08:05 [2025-04-03 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824491', 'tblTempUsageDetail_20' ) start [2025-04-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824491', 'tblTempUsageDetail_20' ) end [2025-04-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824491', 'tblTempVendorCDR_20' ) start [2025-04-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824491', 'tblTempVendorCDR_20' ) end [2025-04-03 09:08:19] Production.INFO: ProcessCDR(1,14824491,1,1,2) [2025-04-03 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824491', 'tblTempUsageDetail_20' ) start [2025-04-03 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824491', 'tblTempUsageDetail_20' ) end [2025-04-03 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:08:23] Production.INFO: ==4283== Releasing lock... [2025-04-03 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:08:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-03 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:09:06 [end_date_ymd] => 2025-04-03 09:09:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:09:06' and `end` < '2025-04-03 09: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-03 09:09:19] Production.INFO: count ==816 [2025-04-03 09:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:09:06 - End Time 2025-04-03 09:09:06 [2025-04-03 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824496', 'tblTempUsageDetail_20' ) start [2025-04-03 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824496', 'tblTempUsageDetail_20' ) end [2025-04-03 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824496', 'tblTempVendorCDR_20' ) start [2025-04-03 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824496', 'tblTempVendorCDR_20' ) end [2025-04-03 09:09:19] Production.INFO: ProcessCDR(1,14824496,1,1,2) [2025-04-03 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824496', 'tblTempUsageDetail_20' ) start [2025-04-03 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824496', 'tblTempUsageDetail_20' ) end [2025-04-03 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:09:25] Production.INFO: ==4361== Releasing lock... [2025-04-03 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:09:25] Production.INFO: 34 MB #Memory Used# [2025-04-03 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:10:07 [end_date_ymd] => 2025-04-03 09:10:07 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:10:07' and `end` < '2025-04-03 09: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-03 09:10:20] Production.INFO: count ==841 [2025-04-03 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:10:07 - End Time 2025-04-03 09:10:07 [2025-04-03 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824502', 'tblTempUsageDetail_20' ) start [2025-04-03 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824502', 'tblTempUsageDetail_20' ) end [2025-04-03 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824502', 'tblTempVendorCDR_20' ) start [2025-04-03 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824502', 'tblTempVendorCDR_20' ) end [2025-04-03 09:10:20] Production.INFO: ProcessCDR(1,14824502,1,1,2) [2025-04-03 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824502', 'tblTempUsageDetail_20' ) start [2025-04-03 09:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824502', 'tblTempUsageDetail_20' ) end [2025-04-03 09:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:10:26] Production.INFO: ==4441== Releasing lock... [2025-04-03 09:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:10:26] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:11:06 [end_date_ymd] => 2025-04-03 09:11:06 [RateCDR] => 1 ) [2025-04-03 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:11:06' and `end` < '2025-04-03 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:11:19] Production.INFO: count ==927 [2025-04-03 09:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:11:06 - End Time 2025-04-03 09:11:06 [2025-04-03 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824507', 'tblTempUsageDetail_20' ) start [2025-04-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824507', 'tblTempUsageDetail_20' ) end [2025-04-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824507', 'tblTempVendorCDR_20' ) start [2025-04-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824507', 'tblTempVendorCDR_20' ) end [2025-04-03 09:11:19] Production.INFO: ProcessCDR(1,14824507,1,1,2) [2025-04-03 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824507', 'tblTempUsageDetail_20' ) start [2025-04-03 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824507', 'tblTempUsageDetail_20' ) end [2025-04-03 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:11:25] Production.INFO: ==4522== Releasing lock... [2025-04-03 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:11:25] Production.INFO: 34.75 MB #Memory Used# [2025-04-03 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:12:06 [end_date_ymd] => 2025-04-03 09:12:06 [RateCDR] => 1 ) [2025-04-03 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:12:06' and `end` < '2025-04-03 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:12:19] Production.INFO: count ==957 [2025-04-03 09:12:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:12:06 - End Time 2025-04-03 09:12:06 [2025-04-03 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824512', 'tblTempUsageDetail_20' ) start [2025-04-03 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824512', 'tblTempUsageDetail_20' ) end [2025-04-03 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824512', 'tblTempVendorCDR_20' ) start [2025-04-03 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824512', 'tblTempVendorCDR_20' ) end [2025-04-03 09:12:20] Production.INFO: ProcessCDR(1,14824512,1,1,2) [2025-04-03 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824512', 'tblTempUsageDetail_20' ) start [2025-04-03 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824512', 'tblTempUsageDetail_20' ) end [2025-04-03 09:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:12:26] Production.INFO: ==4604== Releasing lock... [2025-04-03 09:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:12:26] Production.INFO: 36 MB #Memory Used# [2025-04-03 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:13:05 [end_date_ymd] => 2025-04-03 09:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:13:05' and `end` < '2025-04-03 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-03 09:13:18] Production.INFO: count ==980 [2025-04-03 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:13:05 - End Time 2025-04-03 09:13:05 [2025-04-03 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824517', 'tblTempUsageDetail_20' ) start [2025-04-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824517', 'tblTempUsageDetail_20' ) end [2025-04-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824517', 'tblTempVendorCDR_20' ) start [2025-04-03 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824517', 'tblTempVendorCDR_20' ) end [2025-04-03 09:13:18] Production.INFO: ProcessCDR(1,14824517,1,1,2) [2025-04-03 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824517', 'tblTempUsageDetail_20' ) start [2025-04-03 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824517', 'tblTempUsageDetail_20' ) end [2025-04-03 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:13:24] Production.INFO: ==4680== Releasing lock... [2025-04-03 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:13:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-03 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:14:06 [end_date_ymd] => 2025-04-03 09:14:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:14:06' and `end` < '2025-04-03 09: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-03 09:14:19] Production.INFO: count ==1013 [2025-04-03 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:14:06 - End Time 2025-04-03 09:14:06 [2025-04-03 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824522', 'tblTempUsageDetail_20' ) start [2025-04-03 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824522', 'tblTempUsageDetail_20' ) end [2025-04-03 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824522', 'tblTempVendorCDR_20' ) start [2025-04-03 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824522', 'tblTempVendorCDR_20' ) end [2025-04-03 09:14:19] Production.INFO: ProcessCDR(1,14824522,1,1,2) [2025-04-03 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824522', 'tblTempUsageDetail_20' ) start [2025-04-03 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824522', 'tblTempUsageDetail_20' ) end [2025-04-03 09:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:14:25] Production.INFO: ==4754== Releasing lock... [2025-04-03 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:14:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-03 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:15:05 [end_date_ymd] => 2025-04-03 09:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:15:05' and `end` < '2025-04-03 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-03 09:15:18] Production.INFO: count ==1037 [2025-04-03 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:15:05 - End Time 2025-04-03 09:15:05 [2025-04-03 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824527', 'tblTempUsageDetail_20' ) start [2025-04-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824527', 'tblTempUsageDetail_20' ) end [2025-04-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824527', 'tblTempVendorCDR_20' ) start [2025-04-03 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824527', 'tblTempVendorCDR_20' ) end [2025-04-03 09:15:18] Production.INFO: ProcessCDR(1,14824527,1,1,2) [2025-04-03 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824527', 'tblTempUsageDetail_20' ) start [2025-04-03 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824527', 'tblTempUsageDetail_20' ) end [2025-04-03 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:15:24] Production.INFO: ==4825== Releasing lock... [2025-04-03 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:15:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-03 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:16:06 [end_date_ymd] => 2025-04-03 09:16:06 [RateCDR] => 1 ) [2025-04-03 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:16:06' and `end` < '2025-04-03 09: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-03 09:16:19] Production.INFO: count ==1056 [2025-04-03 09:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:16:06 - End Time 2025-04-03 09:16:06 [2025-04-03 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824532', 'tblTempUsageDetail_20' ) start [2025-04-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824532', 'tblTempUsageDetail_20' ) end [2025-04-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824532', 'tblTempVendorCDR_20' ) start [2025-04-03 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824532', 'tblTempVendorCDR_20' ) end [2025-04-03 09:16:19] Production.INFO: ProcessCDR(1,14824532,1,1,2) [2025-04-03 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824532', 'tblTempUsageDetail_20' ) start [2025-04-03 09:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824532', 'tblTempUsageDetail_20' ) end [2025-04-03 09:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:16:26] Production.INFO: ==4905== Releasing lock... [2025-04-03 09:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:16:26] Production.INFO: 36 MB #Memory Used# [2025-04-03 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:17:06 [end_date_ymd] => 2025-04-03 09:17:06 [RateCDR] => 1 ) [2025-04-03 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-03 06:17:06' and `end` < '2025-04-03 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:17:18] Production.INFO: count ==1090 [2025-04-03 09:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:17:06 - End Time 2025-04-03 09:17:06 [2025-04-03 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824537', 'tblTempUsageDetail_20' ) start [2025-04-03 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824537', 'tblTempUsageDetail_20' ) end [2025-04-03 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824537', 'tblTempVendorCDR_20' ) start [2025-04-03 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824537', 'tblTempVendorCDR_20' ) end [2025-04-03 09:17:19] Production.INFO: ProcessCDR(1,14824537,1,1,2) [2025-04-03 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824537', 'tblTempUsageDetail_20' ) start [2025-04-03 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824537', 'tblTempUsageDetail_20' ) end [2025-04-03 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:17:25] Production.INFO: ==4982== Releasing lock... [2025-04-03 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:17:25] Production.INFO: 36.5 MB #Memory Used# [2025-04-03 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:18:06 [end_date_ymd] => 2025-04-03 09:18:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:18:06' and `end` < '2025-04-03 09: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-03 09:18:19] Production.INFO: count ==1118 [2025-04-03 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:18:06 - End Time 2025-04-03 09:18:06 [2025-04-03 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824542', 'tblTempUsageDetail_20' ) start [2025-04-03 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824542', 'tblTempUsageDetail_20' ) end [2025-04-03 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824542', 'tblTempVendorCDR_20' ) start [2025-04-03 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824542', 'tblTempVendorCDR_20' ) end [2025-04-03 09:18:19] Production.INFO: ProcessCDR(1,14824542,1,1,2) [2025-04-03 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824542', 'tblTempUsageDetail_20' ) start [2025-04-03 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824542', 'tblTempUsageDetail_20' ) end [2025-04-03 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:18:25] Production.INFO: ==5105== Releasing lock... [2025-04-03 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:18:25] Production.INFO: 37 MB #Memory Used# [2025-04-03 09:19:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:19:07 [end_date_ymd] => 2025-04-03 09:19:07 [RateCDR] => 1 ) [2025-04-03 09:19: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-03 06:19:07' and `end` < '2025-04-03 09:19: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-03 09:19:20] Production.INFO: count ==1130 [2025-04-03 09:19:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:19:07 - End Time 2025-04-03 09:19:07 [2025-04-03 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824547', 'tblTempUsageDetail_20' ) start [2025-04-03 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824547', 'tblTempUsageDetail_20' ) end [2025-04-03 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824547', 'tblTempVendorCDR_20' ) start [2025-04-03 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824547', 'tblTempVendorCDR_20' ) end [2025-04-03 09:19:20] Production.INFO: ProcessCDR(1,14824547,1,1,2) [2025-04-03 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824547', 'tblTempUsageDetail_20' ) start [2025-04-03 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824547', 'tblTempUsageDetail_20' ) end [2025-04-03 09:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:19:26] Production.INFO: ==5182== Releasing lock... [2025-04-03 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:19:26] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:20:07 [end_date_ymd] => 2025-04-03 09:20:07 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:20:07' and `end` < '2025-04-03 09: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-03 09:20:20] Production.INFO: count ==1161 [2025-04-03 09:20:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:20:07 - End Time 2025-04-03 09:20:07 [2025-04-03 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824553', 'tblTempUsageDetail_20' ) start [2025-04-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824553', 'tblTempUsageDetail_20' ) end [2025-04-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824553', 'tblTempVendorCDR_20' ) start [2025-04-03 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824553', 'tblTempVendorCDR_20' ) end [2025-04-03 09:20:20] Production.INFO: ProcessCDR(1,14824553,1,1,2) [2025-04-03 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824553', 'tblTempUsageDetail_20' ) start [2025-04-03 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824553', 'tblTempUsageDetail_20' ) end [2025-04-03 09:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:20:27] Production.INFO: ==5264== Releasing lock... [2025-04-03 09:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:20:27] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 09:21:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:21:07 [end_date_ymd] => 2025-04-03 09:21:07 [RateCDR] => 1 ) [2025-04-03 09:21: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-03 06:21:07' and `end` < '2025-04-03 09:21: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-03 09:21:20] Production.INFO: count ==1225 [2025-04-03 09:21:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:21:07 - End Time 2025-04-03 09:21:07 [2025-04-03 09:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824558', 'tblTempUsageDetail_20' ) start [2025-04-03 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824558', 'tblTempUsageDetail_20' ) end [2025-04-03 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824558', 'tblTempVendorCDR_20' ) start [2025-04-03 09:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824558', 'tblTempVendorCDR_20' ) end [2025-04-03 09:21:20] Production.INFO: ProcessCDR(1,14824558,1,1,2) [2025-04-03 09:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824558', 'tblTempUsageDetail_20' ) start [2025-04-03 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824558', 'tblTempUsageDetail_20' ) end [2025-04-03 09:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:21:26] Production.INFO: ==5340== Releasing lock... [2025-04-03 09:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:21:26] Production.INFO: 37.75 MB #Memory Used# [2025-04-03 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:22:06 [end_date_ymd] => 2025-04-03 09:22:06 [RateCDR] => 1 ) [2025-04-03 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:22:06' and `end` < '2025-04-03 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:22:19] Production.INFO: count ==1232 [2025-04-03 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:22:06 - End Time 2025-04-03 09:22:06 [2025-04-03 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824563', 'tblTempUsageDetail_20' ) start [2025-04-03 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824563', 'tblTempUsageDetail_20' ) end [2025-04-03 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824563', 'tblTempVendorCDR_20' ) start [2025-04-03 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824563', 'tblTempVendorCDR_20' ) end [2025-04-03 09:22:19] Production.INFO: ProcessCDR(1,14824563,1,1,2) [2025-04-03 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824563', 'tblTempUsageDetail_20' ) start [2025-04-03 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824563', 'tblTempUsageDetail_20' ) end [2025-04-03 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:22:24] Production.INFO: ==5411== Releasing lock... [2025-04-03 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-04-03 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:23:05 [end_date_ymd] => 2025-04-03 09:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:23:05' and `end` < '2025-04-03 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-03 09:23:18] Production.INFO: count ==1245 [2025-04-03 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:23:05 - End Time 2025-04-03 09:23:05 [2025-04-03 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824568', 'tblTempUsageDetail_20' ) start [2025-04-03 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824568', 'tblTempUsageDetail_20' ) end [2025-04-03 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824568', 'tblTempVendorCDR_20' ) start [2025-04-03 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824568', 'tblTempVendorCDR_20' ) end [2025-04-03 09:23:19] Production.INFO: ProcessCDR(1,14824568,1,1,2) [2025-04-03 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824568', 'tblTempUsageDetail_20' ) start [2025-04-03 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824568', 'tblTempUsageDetail_20' ) end [2025-04-03 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:23:24] Production.INFO: ==5482== Releasing lock... [2025-04-03 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:23:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-03 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:24:05 [end_date_ymd] => 2025-04-03 09:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:24:05' and `end` < '2025-04-03 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-03 09:24:18] Production.INFO: count ==1253 [2025-04-03 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:24:05 - End Time 2025-04-03 09:24:05 [2025-04-03 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824573', 'tblTempUsageDetail_20' ) start [2025-04-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824573', 'tblTempUsageDetail_20' ) end [2025-04-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824573', 'tblTempVendorCDR_20' ) start [2025-04-03 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824573', 'tblTempVendorCDR_20' ) end [2025-04-03 09:24:19] Production.INFO: ProcessCDR(1,14824573,1,1,2) [2025-04-03 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824573', 'tblTempUsageDetail_20' ) start [2025-04-03 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824573', 'tblTempUsageDetail_20' ) end [2025-04-03 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:24:24] Production.INFO: ==5553== Releasing lock... [2025-04-03 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:24:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:25:05 [end_date_ymd] => 2025-04-03 09:25:05 [RateCDR] => 1 ) [2025-04-03 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:25:05' and `end` < '2025-04-03 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:25:18] Production.INFO: count ==1271 [2025-04-03 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:25:05 - End Time 2025-04-03 09:25:05 [2025-04-03 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824578', 'tblTempUsageDetail_20' ) start [2025-04-03 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824578', 'tblTempUsageDetail_20' ) end [2025-04-03 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824578', 'tblTempVendorCDR_20' ) start [2025-04-03 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824578', 'tblTempVendorCDR_20' ) end [2025-04-03 09:25:19] Production.INFO: ProcessCDR(1,14824578,1,1,2) [2025-04-03 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824578', 'tblTempUsageDetail_20' ) start [2025-04-03 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824578', 'tblTempUsageDetail_20' ) end [2025-04-03 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:25:24] Production.INFO: ==5624== Releasing lock... [2025-04-03 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:25:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-03 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:26:06 [end_date_ymd] => 2025-04-03 09:26:06 [RateCDR] => 1 ) [2025-04-03 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:26:06' and `end` < '2025-04-03 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:26:19] Production.INFO: count ==1272 [2025-04-03 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:26:06 - End Time 2025-04-03 09:26:06 [2025-04-03 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824583', 'tblTempUsageDetail_20' ) start [2025-04-03 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824583', 'tblTempUsageDetail_20' ) end [2025-04-03 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824583', 'tblTempVendorCDR_20' ) start [2025-04-03 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824583', 'tblTempVendorCDR_20' ) end [2025-04-03 09:26:19] Production.INFO: ProcessCDR(1,14824583,1,1,2) [2025-04-03 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824583', 'tblTempUsageDetail_20' ) start [2025-04-03 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824583', 'tblTempUsageDetail_20' ) end [2025-04-03 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:26:24] Production.INFO: ==5700== Releasing lock... [2025-04-03 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:26:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:27:05 [end_date_ymd] => 2025-04-03 09:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:27:05' and `end` < '2025-04-03 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-03 09:27:18] Production.INFO: count ==1294 [2025-04-03 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:27:05 - End Time 2025-04-03 09:27:05 [2025-04-03 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824588', 'tblTempUsageDetail_20' ) start [2025-04-03 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824588', 'tblTempUsageDetail_20' ) end [2025-04-03 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824588', 'tblTempVendorCDR_20' ) start [2025-04-03 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824588', 'tblTempVendorCDR_20' ) end [2025-04-03 09:27:19] Production.INFO: ProcessCDR(1,14824588,1,1,2) [2025-04-03 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824588', 'tblTempUsageDetail_20' ) start [2025-04-03 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824588', 'tblTempUsageDetail_20' ) end [2025-04-03 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:27:24] Production.INFO: ==5769== Releasing lock... [2025-04-03 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:27:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-03 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:28:06 [end_date_ymd] => 2025-04-03 09:28:06 [RateCDR] => 1 ) [2025-04-03 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:28:06' and `end` < '2025-04-03 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:28:19] Production.INFO: count ==1307 [2025-04-03 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:28:06 - End Time 2025-04-03 09:28:06 [2025-04-03 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824593', 'tblTempUsageDetail_20' ) start [2025-04-03 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824593', 'tblTempUsageDetail_20' ) end [2025-04-03 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824593', 'tblTempVendorCDR_20' ) start [2025-04-03 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824593', 'tblTempVendorCDR_20' ) end [2025-04-03 09:28:19] Production.INFO: ProcessCDR(1,14824593,1,1,2) [2025-04-03 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824593', 'tblTempUsageDetail_20' ) start [2025-04-03 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824593', 'tblTempUsageDetail_20' ) end [2025-04-03 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:28:25] Production.INFO: ==5845== Releasing lock... [2025-04-03 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:28:25] Production.INFO: 38 MB #Memory Used# [2025-04-03 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:29:05 [end_date_ymd] => 2025-04-03 09:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:29:05' and `end` < '2025-04-03 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-03 09:29:18] Production.INFO: count ==1340 [2025-04-03 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:29:05 - End Time 2025-04-03 09:29:05 [2025-04-03 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824598', 'tblTempUsageDetail_20' ) start [2025-04-03 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824598', 'tblTempUsageDetail_20' ) end [2025-04-03 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824598', 'tblTempVendorCDR_20' ) start [2025-04-03 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824598', 'tblTempVendorCDR_20' ) end [2025-04-03 09:29:19] Production.INFO: ProcessCDR(1,14824598,1,1,2) [2025-04-03 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824598', 'tblTempUsageDetail_20' ) start [2025-04-03 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824598', 'tblTempUsageDetail_20' ) end [2025-04-03 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:29:24] Production.INFO: ==5914== Releasing lock... [2025-04-03 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:29:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:30:06 [end_date_ymd] => 2025-04-03 09:30:06 [RateCDR] => 1 ) [2025-04-03 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:30:06' and `end` < '2025-04-03 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:30:19] Production.INFO: count ==1364 [2025-04-03 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:30:06 - End Time 2025-04-03 09:30:06 [2025-04-03 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824604', 'tblTempUsageDetail_20' ) start [2025-04-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824604', 'tblTempUsageDetail_20' ) end [2025-04-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824604', 'tblTempVendorCDR_20' ) start [2025-04-03 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824604', 'tblTempVendorCDR_20' ) end [2025-04-03 09:30:20] Production.INFO: ProcessCDR(1,14824604,1,1,2) [2025-04-03 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824604', 'tblTempUsageDetail_20' ) start [2025-04-03 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824604', 'tblTempUsageDetail_20' ) end [2025-04-03 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:30:25] Production.INFO: ==5990== Releasing lock... [2025-04-03 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:30:25] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:31:05 [end_date_ymd] => 2025-04-03 09:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:31:05' and `end` < '2025-04-03 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-03 09:31:19] Production.INFO: count ==1466 [2025-04-03 09:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:31:05 - End Time 2025-04-03 09:31:05 [2025-04-03 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824609', 'tblTempUsageDetail_20' ) start [2025-04-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824609', 'tblTempUsageDetail_20' ) end [2025-04-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824609', 'tblTempVendorCDR_20' ) start [2025-04-03 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824609', 'tblTempVendorCDR_20' ) end [2025-04-03 09:31:19] Production.INFO: ProcessCDR(1,14824609,1,1,2) [2025-04-03 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824609', 'tblTempUsageDetail_20' ) start [2025-04-03 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824609', 'tblTempUsageDetail_20' ) end [2025-04-03 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:31:25] Production.INFO: ==6064== Releasing lock... [2025-04-03 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:31:25] Production.INFO: 39 MB #Memory Used# [2025-04-03 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:32:06 [end_date_ymd] => 2025-04-03 09:32:06 [RateCDR] => 1 ) [2025-04-03 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:32:06' and `end` < '2025-04-03 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:32:19] Production.INFO: count ==1503 [2025-04-03 09:32:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:32:06 - End Time 2025-04-03 09:32:06 [2025-04-03 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824614', 'tblTempUsageDetail_20' ) start [2025-04-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824614', 'tblTempUsageDetail_20' ) end [2025-04-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824614', 'tblTempVendorCDR_20' ) start [2025-04-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824614', 'tblTempVendorCDR_20' ) end [2025-04-03 09:32:20] Production.INFO: ProcessCDR(1,14824614,1,1,2) [2025-04-03 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824614', 'tblTempUsageDetail_20' ) start [2025-04-03 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824614', 'tblTempUsageDetail_20' ) end [2025-04-03 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:32:25] Production.INFO: ==6138== Releasing lock... [2025-04-03 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:32:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:33:05 [end_date_ymd] => 2025-04-03 09:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:33:05' and `end` < '2025-04-03 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-03 09:33:18] Production.INFO: count ==1519 [2025-04-03 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:33:05 - End Time 2025-04-03 09:33:05 [2025-04-03 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824619', 'tblTempUsageDetail_20' ) start [2025-04-03 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824619', 'tblTempUsageDetail_20' ) end [2025-04-03 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824619', 'tblTempVendorCDR_20' ) start [2025-04-03 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824619', 'tblTempVendorCDR_20' ) end [2025-04-03 09:33:19] Production.INFO: ProcessCDR(1,14824619,1,1,2) [2025-04-03 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824619', 'tblTempUsageDetail_20' ) start [2025-04-03 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824619', 'tblTempUsageDetail_20' ) end [2025-04-03 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:33:24] Production.INFO: ==6246== Releasing lock... [2025-04-03 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:33:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:34:05 [end_date_ymd] => 2025-04-03 09:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:34:05' and `end` < '2025-04-03 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-03 09:34:18] Production.INFO: count ==1542 [2025-04-03 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:34:05 - End Time 2025-04-03 09:34:05 [2025-04-03 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824624', 'tblTempUsageDetail_20' ) start [2025-04-03 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824624', 'tblTempUsageDetail_20' ) end [2025-04-03 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824624', 'tblTempVendorCDR_20' ) start [2025-04-03 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824624', 'tblTempVendorCDR_20' ) end [2025-04-03 09:34:19] Production.INFO: ProcessCDR(1,14824624,1,1,2) [2025-04-03 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824624', 'tblTempUsageDetail_20' ) start [2025-04-03 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824624', 'tblTempUsageDetail_20' ) end [2025-04-03 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:34:24] Production.INFO: ==6319== Releasing lock... [2025-04-03 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:34:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-03 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:35:05 [end_date_ymd] => 2025-04-03 09:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:35:05' and `end` < '2025-04-03 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-03 09:35:18] Production.INFO: count ==1564 [2025-04-03 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:35:05 - End Time 2025-04-03 09:35:05 [2025-04-03 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824629', 'tblTempUsageDetail_20' ) start [2025-04-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824629', 'tblTempUsageDetail_20' ) end [2025-04-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824629', 'tblTempVendorCDR_20' ) start [2025-04-03 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824629', 'tblTempVendorCDR_20' ) end [2025-04-03 09:35:19] Production.INFO: ProcessCDR(1,14824629,1,1,2) [2025-04-03 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824629', 'tblTempUsageDetail_20' ) start [2025-04-03 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824629', 'tblTempUsageDetail_20' ) end [2025-04-03 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:35:25] Production.INFO: ==6390== Releasing lock... [2025-04-03 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:35:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-03 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:36:06 [end_date_ymd] => 2025-04-03 09:36:06 [RateCDR] => 1 ) [2025-04-03 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:36:06' and `end` < '2025-04-03 09:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:36:19] Production.INFO: count ==1581 [2025-04-03 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:36:06 - End Time 2025-04-03 09:36:06 [2025-04-03 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824634', 'tblTempUsageDetail_20' ) start [2025-04-03 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824634', 'tblTempUsageDetail_20' ) end [2025-04-03 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824634', 'tblTempVendorCDR_20' ) start [2025-04-03 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824634', 'tblTempVendorCDR_20' ) end [2025-04-03 09:36:19] Production.INFO: ProcessCDR(1,14824634,1,1,2) [2025-04-03 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824634', 'tblTempUsageDetail_20' ) start [2025-04-03 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824634', 'tblTempUsageDetail_20' ) end [2025-04-03 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:36:25] Production.INFO: ==6462== Releasing lock... [2025-04-03 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:36:25] Production.INFO: 40 MB #Memory Used# [2025-04-03 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:37:05 [end_date_ymd] => 2025-04-03 09:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:37:05' and `end` < '2025-04-03 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-03 09:37:19] Production.INFO: count ==1592 [2025-04-03 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:37:05 - End Time 2025-04-03 09:37:05 [2025-04-03 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824639', 'tblTempUsageDetail_20' ) start [2025-04-03 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824639', 'tblTempUsageDetail_20' ) end [2025-04-03 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824639', 'tblTempVendorCDR_20' ) start [2025-04-03 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824639', 'tblTempVendorCDR_20' ) end [2025-04-03 09:37:19] Production.INFO: ProcessCDR(1,14824639,1,1,2) [2025-04-03 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824639', 'tblTempUsageDetail_20' ) start [2025-04-03 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824639', 'tblTempUsageDetail_20' ) end [2025-04-03 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:37:24] Production.INFO: ==6533== Releasing lock... [2025-04-03 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:37:24] Production.INFO: 40 MB #Memory Used# [2025-04-03 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:38:06 [end_date_ymd] => 2025-04-03 09:38:06 [RateCDR] => 1 ) [2025-04-03 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:38:06' and `end` < '2025-04-03 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:38:19] Production.INFO: count ==1623 [2025-04-03 09:38:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:38:06 - End Time 2025-04-03 09:38:06 [2025-04-03 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824644', 'tblTempUsageDetail_20' ) start [2025-04-03 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824644', 'tblTempUsageDetail_20' ) end [2025-04-03 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824644', 'tblTempVendorCDR_20' ) start [2025-04-03 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824644', 'tblTempVendorCDR_20' ) end [2025-04-03 09:38:20] Production.INFO: ProcessCDR(1,14824644,1,1,2) [2025-04-03 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824644', 'tblTempUsageDetail_20' ) start [2025-04-03 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824644', 'tblTempUsageDetail_20' ) end [2025-04-03 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:38:25] Production.INFO: ==6605== Releasing lock... [2025-04-03 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:38:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:39:05 [end_date_ymd] => 2025-04-03 09:39:05 [RateCDR] => 1 ) [2025-04-03 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:39:05' and `end` < '2025-04-03 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:39:18] Production.INFO: count ==1648 [2025-04-03 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 06:39:05 - End Time 2025-04-03 09:39:05 [2025-04-03 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824649', 'tblTempUsageDetail_20' ) start [2025-04-03 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824649', 'tblTempUsageDetail_20' ) end [2025-04-03 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824649', 'tblTempVendorCDR_20' ) start [2025-04-03 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824649', 'tblTempVendorCDR_20' ) end [2025-04-03 09:39:19] Production.INFO: ProcessCDR(1,14824649,1,1,2) [2025-04-03 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824649', 'tblTempUsageDetail_20' ) start [2025-04-03 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824649', 'tblTempUsageDetail_20' ) end [2025-04-03 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:39:24] Production.INFO: ==6677== Releasing lock... [2025-04-03 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:39:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-03 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:40:06 [end_date_ymd] => 2025-04-03 09:40:06 [RateCDR] => 1 ) [2025-04-03 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:40:06' and `end` < '2025-04-03 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:40:19] Production.INFO: count ==1670 [2025-04-03 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:40:06 - End Time 2025-04-03 09:40:06 [2025-04-03 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824655', 'tblTempUsageDetail_20' ) start [2025-04-03 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824655', 'tblTempUsageDetail_20' ) end [2025-04-03 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824655', 'tblTempVendorCDR_20' ) start [2025-04-03 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824655', 'tblTempVendorCDR_20' ) end [2025-04-03 09:40:20] Production.INFO: ProcessCDR(1,14824655,1,1,2) [2025-04-03 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824655', 'tblTempUsageDetail_20' ) start [2025-04-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824655', 'tblTempUsageDetail_20' ) end [2025-04-03 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:40:25] Production.INFO: ==6750== Releasing lock... [2025-04-03 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:40:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:41:05 [end_date_ymd] => 2025-04-03 09:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:41:05' and `end` < '2025-04-03 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-03 09:41:18] Production.INFO: count ==1752 [2025-04-03 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:41:05 - End Time 2025-04-03 09:41:05 [2025-04-03 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824660', 'tblTempUsageDetail_20' ) start [2025-04-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824660', 'tblTempUsageDetail_20' ) end [2025-04-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824660', 'tblTempVendorCDR_20' ) start [2025-04-03 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824660', 'tblTempVendorCDR_20' ) end [2025-04-03 09:41:19] Production.INFO: ProcessCDR(1,14824660,1,1,2) [2025-04-03 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824660', 'tblTempUsageDetail_20' ) start [2025-04-03 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824660', 'tblTempUsageDetail_20' ) end [2025-04-03 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:41:24] Production.INFO: ==6823== Releasing lock... [2025-04-03 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:41:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:42:05 [end_date_ymd] => 2025-04-03 09:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:42:05' and `end` < '2025-04-03 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-03 09:42:19] Production.INFO: count ==1769 [2025-04-03 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:42:05 - End Time 2025-04-03 09:42:05 [2025-04-03 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824665', 'tblTempUsageDetail_20' ) start [2025-04-03 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824665', 'tblTempUsageDetail_20' ) end [2025-04-03 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824665', 'tblTempVendorCDR_20' ) start [2025-04-03 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824665', 'tblTempVendorCDR_20' ) end [2025-04-03 09:42:19] Production.INFO: ProcessCDR(1,14824665,1,1,2) [2025-04-03 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824665', 'tblTempUsageDetail_20' ) start [2025-04-03 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824665', 'tblTempUsageDetail_20' ) end [2025-04-03 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:42:24] Production.INFO: ==6894== Releasing lock... [2025-04-03 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-03 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:43:05 [end_date_ymd] => 2025-04-03 09:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:43:05' and `end` < '2025-04-03 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-03 09:43:18] Production.INFO: count ==1779 [2025-04-03 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:43:05 - End Time 2025-04-03 09:43:05 [2025-04-03 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824670', 'tblTempUsageDetail_20' ) start [2025-04-03 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824670', 'tblTempUsageDetail_20' ) end [2025-04-03 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824670', 'tblTempVendorCDR_20' ) start [2025-04-03 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824670', 'tblTempVendorCDR_20' ) end [2025-04-03 09:43:19] Production.INFO: ProcessCDR(1,14824670,1,1,2) [2025-04-03 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824670', 'tblTempUsageDetail_20' ) start [2025-04-03 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824670', 'tblTempUsageDetail_20' ) end [2025-04-03 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:43:24] Production.INFO: ==6966== Releasing lock... [2025-04-03 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:43:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:44:05 [end_date_ymd] => 2025-04-03 09:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:44:05' and `end` < '2025-04-03 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-03 09:44:18] Production.INFO: count ==1804 [2025-04-03 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:44:05 - End Time 2025-04-03 09:44:05 [2025-04-03 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824675', 'tblTempUsageDetail_20' ) start [2025-04-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824675', 'tblTempUsageDetail_20' ) end [2025-04-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824675', 'tblTempVendorCDR_20' ) start [2025-04-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824675', 'tblTempVendorCDR_20' ) end [2025-04-03 09:44:19] Production.INFO: ProcessCDR(1,14824675,1,1,2) [2025-04-03 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824675', 'tblTempUsageDetail_20' ) start [2025-04-03 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824675', 'tblTempUsageDetail_20' ) end [2025-04-03 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:44:25] Production.INFO: ==7037== Releasing lock... [2025-04-03 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:44:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:45:05 [end_date_ymd] => 2025-04-03 09:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:45:05' and `end` < '2025-04-03 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-03 09:45:18] Production.INFO: count ==1842 [2025-04-03 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:45:05 - End Time 2025-04-03 09:45:05 [2025-04-03 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824680', 'tblTempUsageDetail_20' ) start [2025-04-03 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824680', 'tblTempUsageDetail_20' ) end [2025-04-03 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824680', 'tblTempVendorCDR_20' ) start [2025-04-03 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824680', 'tblTempVendorCDR_20' ) end [2025-04-03 09:45:19] Production.INFO: ProcessCDR(1,14824680,1,1,2) [2025-04-03 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824680', 'tblTempUsageDetail_20' ) start [2025-04-03 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824680', 'tblTempUsageDetail_20' ) end [2025-04-03 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:45:24] Production.INFO: ==7110== Releasing lock... [2025-04-03 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:45:24] Production.INFO: 42 MB #Memory Used# [2025-04-03 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:46:06 [end_date_ymd] => 2025-04-03 09:46:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:46:06' and `end` < '2025-04-03 09: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-03 09:46:19] Production.INFO: count ==1847 [2025-04-03 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:46:06 - End Time 2025-04-03 09:46:06 [2025-04-03 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824685', 'tblTempUsageDetail_20' ) start [2025-04-03 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824685', 'tblTempUsageDetail_20' ) end [2025-04-03 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824685', 'tblTempVendorCDR_20' ) start [2025-04-03 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824685', 'tblTempVendorCDR_20' ) end [2025-04-03 09:46:19] Production.INFO: ProcessCDR(1,14824685,1,1,2) [2025-04-03 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824685', 'tblTempUsageDetail_20' ) start [2025-04-03 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824685', 'tblTempUsageDetail_20' ) end [2025-04-03 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:46:24] Production.INFO: ==7184== Releasing lock... [2025-04-03 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:46:24] Production.INFO: 42 MB #Memory Used# [2025-04-03 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:47:05 [end_date_ymd] => 2025-04-03 09:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:47:05' and `end` < '2025-04-03 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-03 09:47:18] Production.INFO: count ==1851 [2025-04-03 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:47:05 - End Time 2025-04-03 09:47:05 [2025-04-03 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824690', 'tblTempUsageDetail_20' ) start [2025-04-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824690', 'tblTempUsageDetail_20' ) end [2025-04-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824690', 'tblTempVendorCDR_20' ) start [2025-04-03 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824690', 'tblTempVendorCDR_20' ) end [2025-04-03 09:47:19] Production.INFO: ProcessCDR(1,14824690,1,1,2) [2025-04-03 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824690', 'tblTempUsageDetail_20' ) start [2025-04-03 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824690', 'tblTempUsageDetail_20' ) end [2025-04-03 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:47:24] Production.INFO: ==7257== Releasing lock... [2025-04-03 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:47:24] Production.INFO: 42 MB #Memory Used# [2025-04-03 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:48:05 [end_date_ymd] => 2025-04-03 09:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:48:05' and `end` < '2025-04-03 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-03 09:48:18] Production.INFO: count ==1862 [2025-04-03 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:48:05 - End Time 2025-04-03 09:48:05 [2025-04-03 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824695', 'tblTempUsageDetail_20' ) start [2025-04-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824695', 'tblTempUsageDetail_20' ) end [2025-04-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824695', 'tblTempVendorCDR_20' ) start [2025-04-03 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824695', 'tblTempVendorCDR_20' ) end [2025-04-03 09:48:19] Production.INFO: ProcessCDR(1,14824695,1,1,2) [2025-04-03 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824695', 'tblTempUsageDetail_20' ) start [2025-04-03 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824695', 'tblTempUsageDetail_20' ) end [2025-04-03 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:48:25] Production.INFO: ==7333== Releasing lock... [2025-04-03 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:48:25] Production.INFO: 42 MB #Memory Used# [2025-04-03 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:49:06 [end_date_ymd] => 2025-04-03 09:49:06 [RateCDR] => 1 ) [2025-04-03 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:49:06' and `end` < '2025-04-03 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:49:19] Production.INFO: count ==1863 [2025-04-03 09:49:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:49:06 - End Time 2025-04-03 09:49:06 [2025-04-03 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824700', 'tblTempUsageDetail_20' ) start [2025-04-03 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824700', 'tblTempUsageDetail_20' ) end [2025-04-03 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824700', 'tblTempVendorCDR_20' ) start [2025-04-03 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824700', 'tblTempVendorCDR_20' ) end [2025-04-03 09:49:20] Production.INFO: ProcessCDR(1,14824700,1,1,2) [2025-04-03 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824700', 'tblTempUsageDetail_20' ) start [2025-04-03 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824700', 'tblTempUsageDetail_20' ) end [2025-04-03 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:49:25] Production.INFO: ==7447== Releasing lock... [2025-04-03 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:49:25] Production.INFO: 42 MB #Memory Used# [2025-04-03 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:50:06 [end_date_ymd] => 2025-04-03 09:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 06:50:06' and `end` < '2025-04-03 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-03 09:50:19] Production.INFO: count ==1879 [2025-04-03 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:50:06 - End Time 2025-04-03 09:50:06 [2025-04-03 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824706', 'tblTempUsageDetail_20' ) start [2025-04-03 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824706', 'tblTempUsageDetail_20' ) end [2025-04-03 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824706', 'tblTempVendorCDR_20' ) start [2025-04-03 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824706', 'tblTempVendorCDR_20' ) end [2025-04-03 09:50:20] Production.INFO: ProcessCDR(1,14824706,1,1,2) [2025-04-03 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824706', 'tblTempUsageDetail_20' ) start [2025-04-03 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824706', 'tblTempUsageDetail_20' ) end [2025-04-03 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:50:25] Production.INFO: ==7519== Releasing lock... [2025-04-03 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:50:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:51:06 [end_date_ymd] => 2025-04-03 09:51:06 [RateCDR] => 1 ) [2025-04-03 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:51:06' and `end` < '2025-04-03 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:51:19] Production.INFO: count ==1983 [2025-04-03 09:51:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:51:06 - End Time 2025-04-03 09:51:06 [2025-04-03 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824711', 'tblTempUsageDetail_20' ) start [2025-04-03 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824711', 'tblTempUsageDetail_20' ) end [2025-04-03 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824711', 'tblTempVendorCDR_20' ) start [2025-04-03 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824711', 'tblTempVendorCDR_20' ) end [2025-04-03 09:51:20] Production.INFO: ProcessCDR(1,14824711,1,1,2) [2025-04-03 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824711', 'tblTempUsageDetail_20' ) start [2025-04-03 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824711', 'tblTempUsageDetail_20' ) end [2025-04-03 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:51:25] Production.INFO: ==7594== Releasing lock... [2025-04-03 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:51:25] Production.INFO: 43 MB #Memory Used# [2025-04-03 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:52:05 [end_date_ymd] => 2025-04-03 09:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:52:05' and `end` < '2025-04-03 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-03 09:52:19] Production.INFO: count ==2005 [2025-04-03 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:52:05 - End Time 2025-04-03 09:52:05 [2025-04-03 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824716', 'tblTempUsageDetail_20' ) start [2025-04-03 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824716', 'tblTempUsageDetail_20' ) end [2025-04-03 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824716', 'tblTempVendorCDR_20' ) start [2025-04-03 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824716', 'tblTempVendorCDR_20' ) end [2025-04-03 09:52:20] Production.INFO: ProcessCDR(1,14824716,1,1,2) [2025-04-03 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824716', 'tblTempUsageDetail_20' ) start [2025-04-03 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824716', 'tblTempUsageDetail_20' ) end [2025-04-03 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:52:25] Production.INFO: ==7665== Releasing lock... [2025-04-03 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:52:25] Production.INFO: 43 MB #Memory Used# [2025-04-03 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:53:06 [end_date_ymd] => 2025-04-03 09:53:06 [RateCDR] => 1 ) [2025-04-03 09:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:53:06' and `end` < '2025-04-03 09:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:53:19] Production.INFO: count ==2016 [2025-04-03 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:53:06 - End Time 2025-04-03 09:53:06 [2025-04-03 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824721', 'tblTempUsageDetail_20' ) start [2025-04-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824721', 'tblTempUsageDetail_20' ) end [2025-04-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824721', 'tblTempVendorCDR_20' ) start [2025-04-03 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824721', 'tblTempVendorCDR_20' ) end [2025-04-03 09:53:19] Production.INFO: ProcessCDR(1,14824721,1,1,2) [2025-04-03 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824721', 'tblTempUsageDetail_20' ) start [2025-04-03 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824721', 'tblTempUsageDetail_20' ) end [2025-04-03 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:53:25] Production.INFO: ==7737== Releasing lock... [2025-04-03 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:53:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:54:06 [end_date_ymd] => 2025-04-03 09:54:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:54:06' and `end` < '2025-04-03 09: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-03 09:54:19] Production.INFO: count ==2032 [2025-04-03 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:54:06 - End Time 2025-04-03 09:54:06 [2025-04-03 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824726', 'tblTempUsageDetail_20' ) start [2025-04-03 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824726', 'tblTempUsageDetail_20' ) end [2025-04-03 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824726', 'tblTempVendorCDR_20' ) start [2025-04-03 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824726', 'tblTempVendorCDR_20' ) end [2025-04-03 09:54:19] Production.INFO: ProcessCDR(1,14824726,1,1,2) [2025-04-03 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824726', 'tblTempUsageDetail_20' ) start [2025-04-03 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824726', 'tblTempUsageDetail_20' ) end [2025-04-03 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:54:25] Production.INFO: ==7810== Releasing lock... [2025-04-03 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:54:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:55:06 [end_date_ymd] => 2025-04-03 09:55:06 [RateCDR] => 1 ) [2025-04-03 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:55:06' and `end` < '2025-04-03 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:55:19] Production.INFO: count ==2049 [2025-04-03 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:55:06 - End Time 2025-04-03 09:55:06 [2025-04-03 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824731', 'tblTempUsageDetail_20' ) start [2025-04-03 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824731', 'tblTempUsageDetail_20' ) end [2025-04-03 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824731', 'tblTempVendorCDR_20' ) start [2025-04-03 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824731', 'tblTempVendorCDR_20' ) end [2025-04-03 09:55:20] Production.INFO: ProcessCDR(1,14824731,1,1,2) [2025-04-03 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824731', 'tblTempUsageDetail_20' ) start [2025-04-03 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824731', 'tblTempUsageDetail_20' ) end [2025-04-03 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:55:26] Production.INFO: ==7881== Releasing lock... [2025-04-03 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:55:26] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:56:05 [end_date_ymd] => 2025-04-03 09:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:56:05' and `end` < '2025-04-03 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-03 09:56:18] Production.INFO: count ==2057 [2025-04-03 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:56:05 - End Time 2025-04-03 09:56:05 [2025-04-03 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824736', 'tblTempUsageDetail_20' ) start [2025-04-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824736', 'tblTempUsageDetail_20' ) end [2025-04-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824736', 'tblTempVendorCDR_20' ) start [2025-04-03 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824736', 'tblTempVendorCDR_20' ) end [2025-04-03 09:56:19] Production.INFO: ProcessCDR(1,14824736,1,1,2) [2025-04-03 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824736', 'tblTempUsageDetail_20' ) start [2025-04-03 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824736', 'tblTempUsageDetail_20' ) end [2025-04-03 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:56:25] Production.INFO: ==7955== Releasing lock... [2025-04-03 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:56:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:57:06 [end_date_ymd] => 2025-04-03 09:57:06 [RateCDR] => 1 ) [2025-04-03 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 06:57:06' and `end` < '2025-04-03 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 09:57:19] Production.INFO: count ==2063 [2025-04-03 09:57:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:57:06 - End Time 2025-04-03 09:57:06 [2025-04-03 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824741', 'tblTempUsageDetail_20' ) start [2025-04-03 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824741', 'tblTempUsageDetail_20' ) end [2025-04-03 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824741', 'tblTempVendorCDR_20' ) start [2025-04-03 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824741', 'tblTempVendorCDR_20' ) end [2025-04-03 09:57:20] Production.INFO: ProcessCDR(1,14824741,1,1,2) [2025-04-03 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824741', 'tblTempUsageDetail_20' ) start [2025-04-03 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824741', 'tblTempUsageDetail_20' ) end [2025-04-03 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:57:25] Production.INFO: ==8026== Releasing lock... [2025-04-03 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:57:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:58:05 [end_date_ymd] => 2025-04-03 09:58:05 [RateCDR] => 1 ) [2025-04-03 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-03 06:58:05' and `end` < '2025-04-03 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-03 09:58:18] Production.INFO: count ==2083 [2025-04-03 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 06:58:05 - End Time 2025-04-03 09:58:05 [2025-04-03 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824746', 'tblTempUsageDetail_20' ) start [2025-04-03 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824746', 'tblTempUsageDetail_20' ) end [2025-04-03 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824746', 'tblTempVendorCDR_20' ) start [2025-04-03 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824746', 'tblTempVendorCDR_20' ) end [2025-04-03 09:58:19] Production.INFO: ProcessCDR(1,14824746,1,1,2) [2025-04-03 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824746', 'tblTempUsageDetail_20' ) start [2025-04-03 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824746', 'tblTempUsageDetail_20' ) end [2025-04-03 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:58:25] Production.INFO: ==8097== Releasing lock... [2025-04-03 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:58:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 06:59:06 [end_date_ymd] => 2025-04-03 09:59:06 [RateCDR] => 1 ) [2025-04-03 09: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-03 06:59:06' and `end` < '2025-04-03 09: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-03 09:59:19] Production.INFO: count ==2097 [2025-04-03 09:59:20] Production.ERROR: pbx CDR StartTime 2025-04-03 06:59:06 - End Time 2025-04-03 09:59:06 [2025-04-03 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824751', 'tblTempUsageDetail_20' ) start [2025-04-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824751', 'tblTempUsageDetail_20' ) end [2025-04-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824751', 'tblTempVendorCDR_20' ) start [2025-04-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824751', 'tblTempVendorCDR_20' ) end [2025-04-03 09:59:20] Production.INFO: ProcessCDR(1,14824751,1,1,2) [2025-04-03 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824751', 'tblTempUsageDetail_20' ) start [2025-04-03 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824751', 'tblTempUsageDetail_20' ) end [2025-04-03 09:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 09:59:26] Production.INFO: ==8170== Releasing lock... [2025-04-03 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 09:59:26] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:00:06 [end_date_ymd] => 2025-04-03 10:00:06 [RateCDR] => 1 ) [2025-04-03 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:00:06' and `end` < '2025-04-03 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:00:19] Production.INFO: count ==2108 [2025-04-03 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:00:06 - End Time 2025-04-03 10:00:06 [2025-04-03 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824757', 'tblTempUsageDetail_20' ) start [2025-04-03 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824757', 'tblTempUsageDetail_20' ) end [2025-04-03 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824757', 'tblTempVendorCDR_20' ) start [2025-04-03 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824757', 'tblTempVendorCDR_20' ) end [2025-04-03 10:00:20] Production.INFO: ProcessCDR(1,14824757,1,1,2) [2025-04-03 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824757', 'tblTempUsageDetail_20' ) start [2025-04-03 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824757', 'tblTempUsageDetail_20' ) end [2025-04-03 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:00:26] Production.INFO: ==8247== Releasing lock... [2025-04-03 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:00:26] Production.INFO: 44 MB #Memory Used# [2025-04-03 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:01:06 [end_date_ymd] => 2025-04-03 10:01:06 [RateCDR] => 1 ) [2025-04-03 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:01:06' and `end` < '2025-04-03 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:01:19] Production.INFO: count ==2215 [2025-04-03 10:01:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:01:06 - End Time 2025-04-03 10:01:06 [2025-04-03 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824762', 'tblTempUsageDetail_20' ) start [2025-04-03 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824762', 'tblTempUsageDetail_20' ) end [2025-04-03 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824762', 'tblTempVendorCDR_20' ) start [2025-04-03 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824762', 'tblTempVendorCDR_20' ) end [2025-04-03 10:01:20] Production.INFO: ProcessCDR(1,14824762,1,1,2) [2025-04-03 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824762', 'tblTempUsageDetail_20' ) start [2025-04-03 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824762', 'tblTempUsageDetail_20' ) end [2025-04-03 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:01:26] Production.INFO: ==8335== Releasing lock... [2025-04-03 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:01:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-03 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:02:06 [end_date_ymd] => 2025-04-03 10:02:06 [RateCDR] => 1 ) [2025-04-03 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:02:06' and `end` < '2025-04-03 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:02:19] Production.INFO: count ==2224 [2025-04-03 10:02:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:02:06 - End Time 2025-04-03 10:02:06 [2025-04-03 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824767', 'tblTempUsageDetail_20' ) start [2025-04-03 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824767', 'tblTempUsageDetail_20' ) end [2025-04-03 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824767', 'tblTempVendorCDR_20' ) start [2025-04-03 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824767', 'tblTempVendorCDR_20' ) end [2025-04-03 10:02:20] Production.INFO: ProcessCDR(1,14824767,1,1,2) [2025-04-03 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824767', 'tblTempUsageDetail_20' ) start [2025-04-03 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824767', 'tblTempUsageDetail_20' ) end [2025-04-03 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:02:26] Production.INFO: ==8408== Releasing lock... [2025-04-03 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:02:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-03 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:03:06 [end_date_ymd] => 2025-04-03 10:03:06 [RateCDR] => 1 ) [2025-04-03 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:03:06' and `end` < '2025-04-03 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:03:20] Production.INFO: count ==2242 [2025-04-03 10:03:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:03:06 - End Time 2025-04-03 10:03:06 [2025-04-03 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824772', 'tblTempUsageDetail_20' ) start [2025-04-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824772', 'tblTempUsageDetail_20' ) end [2025-04-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824772', 'tblTempVendorCDR_20' ) start [2025-04-03 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824772', 'tblTempVendorCDR_20' ) end [2025-04-03 10:03:21] Production.INFO: ProcessCDR(1,14824772,1,1,2) [2025-04-03 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824772', 'tblTempUsageDetail_20' ) start [2025-04-03 10:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824772', 'tblTempUsageDetail_20' ) end [2025-04-03 10:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:03:27] Production.INFO: ==8485== Releasing lock... [2025-04-03 10:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:03:27] Production.INFO: 45 MB #Memory Used# [2025-04-03 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:04:06 [end_date_ymd] => 2025-04-03 10:04:06 [RateCDR] => 1 ) [2025-04-03 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:04:06' and `end` < '2025-04-03 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:04:19] Production.INFO: count ==2247 [2025-04-03 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:04:06 - End Time 2025-04-03 10:04:06 [2025-04-03 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824777', 'tblTempUsageDetail_20' ) start [2025-04-03 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824777', 'tblTempUsageDetail_20' ) end [2025-04-03 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824777', 'tblTempVendorCDR_20' ) start [2025-04-03 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824777', 'tblTempVendorCDR_20' ) end [2025-04-03 10:04:20] Production.INFO: ProcessCDR(1,14824777,1,1,2) [2025-04-03 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824777', 'tblTempUsageDetail_20' ) start [2025-04-03 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824777', 'tblTempUsageDetail_20' ) end [2025-04-03 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:04:26] Production.INFO: ==8628== Releasing lock... [2025-04-03 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:04:26] Production.INFO: 45 MB #Memory Used# [2025-04-03 10:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:05:07 [end_date_ymd] => 2025-04-03 10:05:07 [RateCDR] => 1 ) [2025-04-03 10:05: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-03 07:05:07' and `end` < '2025-04-03 10:05: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-03 10:05:20] Production.INFO: count ==2263 [2025-04-03 10:05:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:05:07 - End Time 2025-04-03 10:05:07 [2025-04-03 10:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824782', 'tblTempUsageDetail_20' ) start [2025-04-03 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824782', 'tblTempUsageDetail_20' ) end [2025-04-03 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824782', 'tblTempVendorCDR_20' ) start [2025-04-03 10:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824782', 'tblTempVendorCDR_20' ) end [2025-04-03 10:05:21] Production.INFO: ProcessCDR(1,14824782,1,1,2) [2025-04-03 10:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824782', 'tblTempUsageDetail_20' ) start [2025-04-03 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824782', 'tblTempUsageDetail_20' ) end [2025-04-03 10:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:05:27] Production.INFO: ==8730== Releasing lock... [2025-04-03 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:05:27] Production.INFO: 45 MB #Memory Used# [2025-04-03 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:06:06 [end_date_ymd] => 2025-04-03 10:06:06 [RateCDR] => 1 ) [2025-04-03 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:06:06' and `end` < '2025-04-03 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:06:19] Production.INFO: count ==2324 [2025-04-03 10:06:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:06:06 - End Time 2025-04-03 10:06:06 [2025-04-03 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824787', 'tblTempUsageDetail_20' ) start [2025-04-03 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824787', 'tblTempUsageDetail_20' ) end [2025-04-03 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824787', 'tblTempVendorCDR_20' ) start [2025-04-03 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824787', 'tblTempVendorCDR_20' ) end [2025-04-03 10:06:20] Production.INFO: ProcessCDR(1,14824787,1,1,2) [2025-04-03 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824787', 'tblTempUsageDetail_20' ) start [2025-04-03 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824787', 'tblTempUsageDetail_20' ) end [2025-04-03 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:06:26] Production.INFO: ==8831== Releasing lock... [2025-04-03 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:06:26] Production.INFO: 45.5 MB #Memory Used# [2025-04-03 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:07:06 [end_date_ymd] => 2025-04-03 10:07:06 [RateCDR] => 1 ) [2025-04-03 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:07:06' and `end` < '2025-04-03 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:07:19] Production.INFO: count ==2344 [2025-04-03 10:07:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:07:06 - End Time 2025-04-03 10:07:06 [2025-04-03 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824792', 'tblTempUsageDetail_20' ) start [2025-04-03 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824792', 'tblTempUsageDetail_20' ) end [2025-04-03 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824792', 'tblTempVendorCDR_20' ) start [2025-04-03 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824792', 'tblTempVendorCDR_20' ) end [2025-04-03 10:07:20] Production.INFO: ProcessCDR(1,14824792,1,1,2) [2025-04-03 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824792', 'tblTempUsageDetail_20' ) start [2025-04-03 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824792', 'tblTempUsageDetail_20' ) end [2025-04-03 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:07:26] Production.INFO: ==8940== Releasing lock... [2025-04-03 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:07:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-03 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:08:06 [end_date_ymd] => 2025-04-03 10:08:06 [RateCDR] => 1 ) [2025-04-03 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:08:06' and `end` < '2025-04-03 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:08:19] Production.INFO: count ==2357 [2025-04-03 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:08:06 - End Time 2025-04-03 10:08:06 [2025-04-03 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824797', 'tblTempUsageDetail_20' ) start [2025-04-03 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824797', 'tblTempUsageDetail_20' ) end [2025-04-03 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824797', 'tblTempVendorCDR_20' ) start [2025-04-03 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824797', 'tblTempVendorCDR_20' ) end [2025-04-03 10:08:20] Production.INFO: ProcessCDR(1,14824797,1,1,2) [2025-04-03 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824797', 'tblTempUsageDetail_20' ) start [2025-04-03 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824797', 'tblTempUsageDetail_20' ) end [2025-04-03 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:08:26] Production.INFO: ==9048== Releasing lock... [2025-04-03 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:08:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-03 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:09:06 [end_date_ymd] => 2025-04-03 10:09:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:09:06' and `end` < '2025-04-03 10: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-03 10:09:19] Production.INFO: count ==2365 [2025-04-03 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:09:06 - End Time 2025-04-03 10:09:06 [2025-04-03 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824802', 'tblTempUsageDetail_20' ) start [2025-04-03 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824802', 'tblTempUsageDetail_20' ) end [2025-04-03 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824802', 'tblTempVendorCDR_20' ) start [2025-04-03 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824802', 'tblTempVendorCDR_20' ) end [2025-04-03 10:09:20] Production.INFO: ProcessCDR(1,14824802,1,1,2) [2025-04-03 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824802', 'tblTempUsageDetail_20' ) start [2025-04-03 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824802', 'tblTempUsageDetail_20' ) end [2025-04-03 10:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:09:26] Production.INFO: ==9149== Releasing lock... [2025-04-03 10:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:09:26] Production.INFO: 45.75 MB #Memory Used# [2025-04-03 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:10:07 [end_date_ymd] => 2025-04-03 10:10:07 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:10:07' and `end` < '2025-04-03 10: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-03 10:10:20] Production.INFO: count ==2387 [2025-04-03 10:10:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:10:07 - End Time 2025-04-03 10:10:07 [2025-04-03 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824808', 'tblTempUsageDetail_20' ) start [2025-04-03 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824808', 'tblTempUsageDetail_20' ) end [2025-04-03 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824808', 'tblTempVendorCDR_20' ) start [2025-04-03 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824808', 'tblTempVendorCDR_20' ) end [2025-04-03 10:10:21] Production.INFO: ProcessCDR(1,14824808,1,1,2) [2025-04-03 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824808', 'tblTempUsageDetail_20' ) start [2025-04-03 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824808', 'tblTempUsageDetail_20' ) end [2025-04-03 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:10:27] Production.INFO: ==9257== Releasing lock... [2025-04-03 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:10:27] Production.INFO: 46 MB #Memory Used# [2025-04-03 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:11:06 [end_date_ymd] => 2025-04-03 10:11:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:11:06' and `end` < '2025-04-03 10: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-03 10:11:19] Production.INFO: count ==2498 [2025-04-03 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:11:06 - End Time 2025-04-03 10:11:06 [2025-04-03 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824813', 'tblTempUsageDetail_20' ) start [2025-04-03 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824813', 'tblTempUsageDetail_20' ) end [2025-04-03 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824813', 'tblTempVendorCDR_20' ) start [2025-04-03 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824813', 'tblTempVendorCDR_20' ) end [2025-04-03 10:11:20] Production.INFO: ProcessCDR(1,14824813,1,1,2) [2025-04-03 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824813', 'tblTempUsageDetail_20' ) start [2025-04-03 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824813', 'tblTempUsageDetail_20' ) end [2025-04-03 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:11:26] Production.INFO: ==9362== Releasing lock... [2025-04-03 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:11:26] Production.INFO: 47 MB #Memory Used# [2025-04-03 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:12:06 [end_date_ymd] => 2025-04-03 10:12:06 [RateCDR] => 1 ) [2025-04-03 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:12:06' and `end` < '2025-04-03 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:12:19] Production.INFO: count ==2526 [2025-04-03 10:12:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:12:06 - End Time 2025-04-03 10:12:06 [2025-04-03 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824818', 'tblTempUsageDetail_20' ) start [2025-04-03 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824818', 'tblTempUsageDetail_20' ) end [2025-04-03 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824818', 'tblTempVendorCDR_20' ) start [2025-04-03 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824818', 'tblTempVendorCDR_20' ) end [2025-04-03 10:12:20] Production.INFO: ProcessCDR(1,14824818,1,1,2) [2025-04-03 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824818', 'tblTempUsageDetail_20' ) start [2025-04-03 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824818', 'tblTempUsageDetail_20' ) end [2025-04-03 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:12:26] Production.INFO: ==9467== Releasing lock... [2025-04-03 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:12:26] Production.INFO: 47 MB #Memory Used# [2025-04-03 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:13:05 [end_date_ymd] => 2025-04-03 10:13:05 [RateCDR] => 1 ) [2025-04-03 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:13:05' and `end` < '2025-04-03 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:13:18] Production.INFO: count ==2548 [2025-04-03 10:13:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:13:05 - End Time 2025-04-03 10:13:05 [2025-04-03 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824823', 'tblTempUsageDetail_20' ) start [2025-04-03 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824823', 'tblTempUsageDetail_20' ) end [2025-04-03 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824823', 'tblTempVendorCDR_20' ) start [2025-04-03 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824823', 'tblTempVendorCDR_20' ) end [2025-04-03 10:13:20] Production.INFO: ProcessCDR(1,14824823,1,1,2) [2025-04-03 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824823', 'tblTempUsageDetail_20' ) start [2025-04-03 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824823', 'tblTempUsageDetail_20' ) end [2025-04-03 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:13:25] Production.INFO: ==9575== Releasing lock... [2025-04-03 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:13:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-03 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:14:06 [end_date_ymd] => 2025-04-03 10:14:06 [RateCDR] => 1 ) [2025-04-03 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:14:06' and `end` < '2025-04-03 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:14:19] Production.INFO: count ==2592 [2025-04-03 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:14:06 - End Time 2025-04-03 10:14:06 [2025-04-03 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824828', 'tblTempUsageDetail_20' ) start [2025-04-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824828', 'tblTempUsageDetail_20' ) end [2025-04-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824828', 'tblTempVendorCDR_20' ) start [2025-04-03 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824828', 'tblTempVendorCDR_20' ) end [2025-04-03 10:14:20] Production.INFO: ProcessCDR(1,14824828,1,1,2) [2025-04-03 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824828', 'tblTempUsageDetail_20' ) start [2025-04-03 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824828', 'tblTempUsageDetail_20' ) end [2025-04-03 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:14:26] Production.INFO: ==9704== Releasing lock... [2025-04-03 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:14:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-03 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:15:06 [end_date_ymd] => 2025-04-03 10:15:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:15:06' and `end` < '2025-04-03 10: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-03 10:15:19] Production.INFO: count ==2600 [2025-04-03 10:15:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:15:06 - End Time 2025-04-03 10:15:06 [2025-04-03 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824833', 'tblTempUsageDetail_20' ) start [2025-04-03 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824833', 'tblTempUsageDetail_20' ) end [2025-04-03 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824833', 'tblTempVendorCDR_20' ) start [2025-04-03 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824833', 'tblTempVendorCDR_20' ) end [2025-04-03 10:15:20] Production.INFO: ProcessCDR(1,14824833,1,1,2) [2025-04-03 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824833', 'tblTempUsageDetail_20' ) start [2025-04-03 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824833', 'tblTempUsageDetail_20' ) end [2025-04-03 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:15:26] Production.INFO: ==9809== Releasing lock... [2025-04-03 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:15:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-03 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:16:06 [end_date_ymd] => 2025-04-03 10:16:06 [RateCDR] => 1 ) [2025-04-03 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:16:06' and `end` < '2025-04-03 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:16:19] Production.INFO: count ==2614 [2025-04-03 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:16:06 - End Time 2025-04-03 10:16:06 [2025-04-03 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824838', 'tblTempUsageDetail_20' ) start [2025-04-03 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824838', 'tblTempUsageDetail_20' ) end [2025-04-03 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824838', 'tblTempVendorCDR_20' ) start [2025-04-03 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824838', 'tblTempVendorCDR_20' ) end [2025-04-03 10:16:20] Production.INFO: ProcessCDR(1,14824838,1,1,2) [2025-04-03 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824838', 'tblTempUsageDetail_20' ) start [2025-04-03 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824838', 'tblTempUsageDetail_20' ) end [2025-04-03 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:16:26] Production.INFO: ==9911== Releasing lock... [2025-04-03 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:16:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-03 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:17:05 [end_date_ymd] => 2025-04-03 10:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:17:05' and `end` < '2025-04-03 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-03 10:17:18] Production.INFO: count ==2638 [2025-04-03 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 07:17:05 - End Time 2025-04-03 10:17:05 [2025-04-03 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824843', 'tblTempUsageDetail_20' ) start [2025-04-03 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824843', 'tblTempUsageDetail_20' ) end [2025-04-03 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824843', 'tblTempVendorCDR_20' ) start [2025-04-03 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824843', 'tblTempVendorCDR_20' ) end [2025-04-03 10:17:20] Production.INFO: ProcessCDR(1,14824843,1,1,2) [2025-04-03 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824843', 'tblTempUsageDetail_20' ) start [2025-04-03 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824843', 'tblTempUsageDetail_20' ) end [2025-04-03 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:17:25] Production.INFO: ==10017== Releasing lock... [2025-04-03 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:17:25] Production.INFO: 48 MB #Memory Used# [2025-04-03 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:18:06 [end_date_ymd] => 2025-04-03 10:18:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:18:06' and `end` < '2025-04-03 10: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-03 10:18:19] Production.INFO: count ==2657 [2025-04-03 10:18:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:18:06 - End Time 2025-04-03 10:18:06 [2025-04-03 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824848', 'tblTempUsageDetail_20' ) start [2025-04-03 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824848', 'tblTempUsageDetail_20' ) end [2025-04-03 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824848', 'tblTempVendorCDR_20' ) start [2025-04-03 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824848', 'tblTempVendorCDR_20' ) end [2025-04-03 10:18:20] Production.INFO: ProcessCDR(1,14824848,1,1,2) [2025-04-03 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824848', 'tblTempUsageDetail_20' ) start [2025-04-03 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824848', 'tblTempUsageDetail_20' ) end [2025-04-03 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:18:25] Production.INFO: ==10125== Releasing lock... [2025-04-03 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:18:25] Production.INFO: 48 MB #Memory Used# [2025-04-03 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:19:05 [end_date_ymd] => 2025-04-03 10:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:19:05' and `end` < '2025-04-03 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-03 10:19:19] Production.INFO: count ==2713 [2025-04-03 10:19:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:19:05 - End Time 2025-04-03 10:19:05 [2025-04-03 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824853', 'tblTempUsageDetail_20' ) start [2025-04-03 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824853', 'tblTempUsageDetail_20' ) end [2025-04-03 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824853', 'tblTempVendorCDR_20' ) start [2025-04-03 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824853', 'tblTempVendorCDR_20' ) end [2025-04-03 10:19:20] Production.INFO: ProcessCDR(1,14824853,1,1,2) [2025-04-03 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824853', 'tblTempUsageDetail_20' ) start [2025-04-03 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824853', 'tblTempUsageDetail_20' ) end [2025-04-03 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:19:25] Production.INFO: ==10257== Releasing lock... [2025-04-03 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:19:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:20:07 [end_date_ymd] => 2025-04-03 10:20:07 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:20:07' and `end` < '2025-04-03 10: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-03 10:20:20] Production.INFO: count ==2728 [2025-04-03 10:20:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:20:07 - End Time 2025-04-03 10:20:07 [2025-04-03 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824859', 'tblTempUsageDetail_20' ) start [2025-04-03 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824859', 'tblTempUsageDetail_20' ) end [2025-04-03 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824859', 'tblTempVendorCDR_20' ) start [2025-04-03 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824859', 'tblTempVendorCDR_20' ) end [2025-04-03 10:20:21] Production.INFO: ProcessCDR(1,14824859,1,1,2) [2025-04-03 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824859', 'tblTempUsageDetail_20' ) start [2025-04-03 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824859', 'tblTempUsageDetail_20' ) end [2025-04-03 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:20:26] Production.INFO: ==10330== Releasing lock... [2025-04-03 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:20:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:21:05 [end_date_ymd] => 2025-04-03 10:21:05 [RateCDR] => 1 ) [2025-04-03 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:21:05' and `end` < '2025-04-03 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:21:18] Production.INFO: count ==2849 [2025-04-03 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-03 07:21:05 - End Time 2025-04-03 10:21:05 [2025-04-03 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824864', 'tblTempUsageDetail_20' ) start [2025-04-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824864', 'tblTempUsageDetail_20' ) end [2025-04-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824864', 'tblTempVendorCDR_20' ) start [2025-04-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824864', 'tblTempVendorCDR_20' ) end [2025-04-03 10:21:19] Production.INFO: ProcessCDR(1,14824864,1,1,2) [2025-04-03 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824864', 'tblTempUsageDetail_20' ) start [2025-04-03 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824864', 'tblTempUsageDetail_20' ) end [2025-04-03 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:21:25] Production.INFO: ==10404== Releasing lock... [2025-04-03 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:21:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:22:06 [end_date_ymd] => 2025-04-03 10:22:06 [RateCDR] => 1 ) [2025-04-03 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:22:06' and `end` < '2025-04-03 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:22:19] Production.INFO: count ==2863 [2025-04-03 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:22:06 - End Time 2025-04-03 10:22:06 [2025-04-03 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824869', 'tblTempUsageDetail_20' ) start [2025-04-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824869', 'tblTempUsageDetail_20' ) end [2025-04-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824869', 'tblTempVendorCDR_20' ) start [2025-04-03 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824869', 'tblTempVendorCDR_20' ) end [2025-04-03 10:22:20] Production.INFO: ProcessCDR(1,14824869,1,1,2) [2025-04-03 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824869', 'tblTempUsageDetail_20' ) start [2025-04-03 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824869', 'tblTempUsageDetail_20' ) end [2025-04-03 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:22:26] Production.INFO: ==10477== Releasing lock... [2025-04-03 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:22:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-03 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:23:05 [end_date_ymd] => 2025-04-03 10:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:23:05' and `end` < '2025-04-03 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-03 10:23:18] Production.INFO: count ==2892 [2025-04-03 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 07:23:05 - End Time 2025-04-03 10:23:05 [2025-04-03 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824874', 'tblTempUsageDetail_20' ) start [2025-04-03 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824874', 'tblTempUsageDetail_20' ) end [2025-04-03 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824874', 'tblTempVendorCDR_20' ) start [2025-04-03 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824874', 'tblTempVendorCDR_20' ) end [2025-04-03 10:23:19] Production.INFO: ProcessCDR(1,14824874,1,1,2) [2025-04-03 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824874', 'tblTempUsageDetail_20' ) start [2025-04-03 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824874', 'tblTempUsageDetail_20' ) end [2025-04-03 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:23:25] Production.INFO: ==10553== Releasing lock... [2025-04-03 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:23:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-03 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:24:06 [end_date_ymd] => 2025-04-03 10:24:06 [RateCDR] => 1 ) [2025-04-03 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-03 07:24:06' and `end` < '2025-04-03 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-03 10:24:19] Production.INFO: count ==2907 [2025-04-03 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:24:06 - End Time 2025-04-03 10:24:06 [2025-04-03 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824879', 'tblTempUsageDetail_20' ) start [2025-04-03 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824879', 'tblTempUsageDetail_20' ) end [2025-04-03 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824879', 'tblTempVendorCDR_20' ) start [2025-04-03 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824879', 'tblTempVendorCDR_20' ) end [2025-04-03 10:24:20] Production.INFO: ProcessCDR(1,14824879,1,1,2) [2025-04-03 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824879', 'tblTempUsageDetail_20' ) start [2025-04-03 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824879', 'tblTempUsageDetail_20' ) end [2025-04-03 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:24:26] Production.INFO: ==10624== Releasing lock... [2025-04-03 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:24:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-03 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:25:05 [end_date_ymd] => 2025-04-03 10:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:25:05' and `end` < '2025-04-03 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-03 10:25:19] Production.INFO: count ==2928 [2025-04-03 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:25:05 - End Time 2025-04-03 10:25:05 [2025-04-03 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824884', 'tblTempUsageDetail_20' ) start [2025-04-03 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824884', 'tblTempUsageDetail_20' ) end [2025-04-03 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824884', 'tblTempVendorCDR_20' ) start [2025-04-03 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824884', 'tblTempVendorCDR_20' ) end [2025-04-03 10:25:20] Production.INFO: ProcessCDR(1,14824884,1,1,2) [2025-04-03 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824884', 'tblTempUsageDetail_20' ) start [2025-04-03 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824884', 'tblTempUsageDetail_20' ) end [2025-04-03 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:25:25] Production.INFO: ==10695== Releasing lock... [2025-04-03 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:25:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:26:06 [end_date_ymd] => 2025-04-03 10:26:06 [RateCDR] => 1 ) [2025-04-03 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:26:06' and `end` < '2025-04-03 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:26:19] Production.INFO: count ==2951 [2025-04-03 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:26:06 - End Time 2025-04-03 10:26:06 [2025-04-03 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824889', 'tblTempUsageDetail_20' ) start [2025-04-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824889', 'tblTempUsageDetail_20' ) end [2025-04-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824889', 'tblTempVendorCDR_20' ) start [2025-04-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824889', 'tblTempVendorCDR_20' ) end [2025-04-03 10:26:20] Production.INFO: ProcessCDR(1,14824889,1,1,2) [2025-04-03 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824889', 'tblTempUsageDetail_20' ) start [2025-04-03 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824889', 'tblTempUsageDetail_20' ) end [2025-04-03 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:26:26] Production.INFO: ==10775== Releasing lock... [2025-04-03 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:26:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:27:05 [end_date_ymd] => 2025-04-03 10:27:05 [RateCDR] => 1 ) [2025-04-03 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:27:05' and `end` < '2025-04-03 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:27:18] Production.INFO: count ==2982 [2025-04-03 10:27:19] Production.ERROR: pbx CDR StartTime 2025-04-03 07:27:05 - End Time 2025-04-03 10:27:05 [2025-04-03 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824894', 'tblTempUsageDetail_20' ) start [2025-04-03 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824894', 'tblTempUsageDetail_20' ) end [2025-04-03 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824894', 'tblTempVendorCDR_20' ) start [2025-04-03 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824894', 'tblTempVendorCDR_20' ) end [2025-04-03 10:27:19] Production.INFO: ProcessCDR(1,14824894,1,1,2) [2025-04-03 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824894', 'tblTempUsageDetail_20' ) start [2025-04-03 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824894', 'tblTempUsageDetail_20' ) end [2025-04-03 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:27:25] Production.INFO: ==10849== Releasing lock... [2025-04-03 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:27:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-03 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:28:06 [end_date_ymd] => 2025-04-03 10:28:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:28:06' and `end` < '2025-04-03 10: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-03 10:28:19] Production.INFO: count ==3020 [2025-04-03 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:28:06 - End Time 2025-04-03 10:28:06 [2025-04-03 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824899', 'tblTempUsageDetail_20' ) start [2025-04-03 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824899', 'tblTempUsageDetail_20' ) end [2025-04-03 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824899', 'tblTempVendorCDR_20' ) start [2025-04-03 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824899', 'tblTempVendorCDR_20' ) end [2025-04-03 10:28:20] Production.INFO: ProcessCDR(1,14824899,1,1,2) [2025-04-03 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824899', 'tblTempUsageDetail_20' ) start [2025-04-03 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824899', 'tblTempUsageDetail_20' ) end [2025-04-03 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:28:25] Production.INFO: ==10919== Releasing lock... [2025-04-03 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:28:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-03 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:29:05 [end_date_ymd] => 2025-04-03 10:29:05 [RateCDR] => 1 ) [2025-04-03 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:29:05' and `end` < '2025-04-03 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:29:19] Production.INFO: count ==3024 [2025-04-03 10:29:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:29:05 - End Time 2025-04-03 10:29:05 [2025-04-03 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824904', 'tblTempUsageDetail_20' ) start [2025-04-03 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824904', 'tblTempUsageDetail_20' ) end [2025-04-03 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824904', 'tblTempVendorCDR_20' ) start [2025-04-03 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824904', 'tblTempVendorCDR_20' ) end [2025-04-03 10:29:20] Production.INFO: ProcessCDR(1,14824904,1,1,2) [2025-04-03 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824904', 'tblTempUsageDetail_20' ) start [2025-04-03 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824904', 'tblTempUsageDetail_20' ) end [2025-04-03 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:29:25] Production.INFO: ==10993== Releasing lock... [2025-04-03 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:29:25] Production.INFO: 52 MB #Memory Used# [2025-04-03 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:30:07 [end_date_ymd] => 2025-04-03 10:30:07 [RateCDR] => 1 ) [2025-04-03 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-03 07:30:07' and `end` < '2025-04-03 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-03 10:30:20] Production.INFO: count ==3047 [2025-04-03 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:30:07 - End Time 2025-04-03 10:30:07 [2025-04-03 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824910', 'tblTempUsageDetail_20' ) start [2025-04-03 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824910', 'tblTempUsageDetail_20' ) end [2025-04-03 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824910', 'tblTempVendorCDR_20' ) start [2025-04-03 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824910', 'tblTempVendorCDR_20' ) end [2025-04-03 10:30:21] Production.INFO: ProcessCDR(1,14824910,1,1,2) [2025-04-03 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824910', 'tblTempUsageDetail_20' ) start [2025-04-03 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824910', 'tblTempUsageDetail_20' ) end [2025-04-03 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:30:27] Production.INFO: ==11070== Releasing lock... [2025-04-03 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:30:27] Production.INFO: 51 MB #Memory Used# [2025-04-03 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:31:05 [end_date_ymd] => 2025-04-03 10:31:05 [RateCDR] => 1 ) [2025-04-03 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:31:05' and `end` < '2025-04-03 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:31:19] Production.INFO: count ==3146 [2025-04-03 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:31:05 - End Time 2025-04-03 10:31:05 [2025-04-03 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824915', 'tblTempUsageDetail_20' ) start [2025-04-03 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824915', 'tblTempUsageDetail_20' ) end [2025-04-03 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824915', 'tblTempVendorCDR_20' ) start [2025-04-03 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824915', 'tblTempVendorCDR_20' ) end [2025-04-03 10:31:20] Production.INFO: ProcessCDR(1,14824915,1,1,2) [2025-04-03 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824915', 'tblTempUsageDetail_20' ) start [2025-04-03 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824915', 'tblTempUsageDetail_20' ) end [2025-04-03 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:31:26] Production.INFO: ==11147== Releasing lock... [2025-04-03 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:31:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:32:05 [end_date_ymd] => 2025-04-03 10:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:32:05' and `end` < '2025-04-03 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-03 10:32:19] Production.INFO: count ==3160 [2025-04-03 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:32:05 - End Time 2025-04-03 10:32:05 [2025-04-03 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824920', 'tblTempUsageDetail_20' ) start [2025-04-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824920', 'tblTempUsageDetail_20' ) end [2025-04-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824920', 'tblTempVendorCDR_20' ) start [2025-04-03 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824920', 'tblTempVendorCDR_20' ) end [2025-04-03 10:32:20] Production.INFO: ProcessCDR(1,14824920,1,1,2) [2025-04-03 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824920', 'tblTempUsageDetail_20' ) start [2025-04-03 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824920', 'tblTempUsageDetail_20' ) end [2025-04-03 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:32:26] Production.INFO: ==11222== Releasing lock... [2025-04-03 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:32:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:33:05 [end_date_ymd] => 2025-04-03 10:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:33:05' and `end` < '2025-04-03 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-03 10:33:19] Production.INFO: count ==3189 [2025-04-03 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:33:05 - End Time 2025-04-03 10:33:05 [2025-04-03 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824925', 'tblTempUsageDetail_20' ) start [2025-04-03 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824925', 'tblTempUsageDetail_20' ) end [2025-04-03 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824925', 'tblTempVendorCDR_20' ) start [2025-04-03 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824925', 'tblTempVendorCDR_20' ) end [2025-04-03 10:33:20] Production.INFO: ProcessCDR(1,14824925,1,1,2) [2025-04-03 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824925', 'tblTempUsageDetail_20' ) start [2025-04-03 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824925', 'tblTempUsageDetail_20' ) end [2025-04-03 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:33:26] Production.INFO: ==11293== Releasing lock... [2025-04-03 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:33:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-03 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:34:05 [end_date_ymd] => 2025-04-03 10:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:34:05' and `end` < '2025-04-03 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-03 10:34:19] Production.INFO: count ==3207 [2025-04-03 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:34:05 - End Time 2025-04-03 10:34:05 [2025-04-03 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824930', 'tblTempUsageDetail_20' ) start [2025-04-03 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824930', 'tblTempUsageDetail_20' ) end [2025-04-03 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824930', 'tblTempVendorCDR_20' ) start [2025-04-03 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824930', 'tblTempVendorCDR_20' ) end [2025-04-03 10:34:20] Production.INFO: ProcessCDR(1,14824930,1,1,2) [2025-04-03 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824930', 'tblTempUsageDetail_20' ) start [2025-04-03 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824930', 'tblTempUsageDetail_20' ) end [2025-04-03 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:34:26] Production.INFO: ==11370== Releasing lock... [2025-04-03 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:34:26] Production.INFO: 53 MB #Memory Used# [2025-04-03 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:35:05 [end_date_ymd] => 2025-04-03 10:35:05 [RateCDR] => 1 ) [2025-04-03 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:35:05' and `end` < '2025-04-03 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:35:18] Production.INFO: count ==3212 [2025-04-03 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:35:05 - End Time 2025-04-03 10:35:05 [2025-04-03 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824935', 'tblTempUsageDetail_20' ) start [2025-04-03 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824935', 'tblTempUsageDetail_20' ) end [2025-04-03 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824935', 'tblTempVendorCDR_20' ) start [2025-04-03 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824935', 'tblTempVendorCDR_20' ) end [2025-04-03 10:35:20] Production.INFO: ProcessCDR(1,14824935,1,1,2) [2025-04-03 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824935', 'tblTempUsageDetail_20' ) start [2025-04-03 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824935', 'tblTempUsageDetail_20' ) end [2025-04-03 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:35:25] Production.INFO: ==11480== Releasing lock... [2025-04-03 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:35:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-03 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:36:06 [end_date_ymd] => 2025-04-03 10:36:06 [RateCDR] => 1 ) [2025-04-03 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:36:06' and `end` < '2025-04-03 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:36:19] Production.INFO: count ==3229 [2025-04-03 10:36:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:36:06 - End Time 2025-04-03 10:36:06 [2025-04-03 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824940', 'tblTempUsageDetail_20' ) start [2025-04-03 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824940', 'tblTempUsageDetail_20' ) end [2025-04-03 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824940', 'tblTempVendorCDR_20' ) start [2025-04-03 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824940', 'tblTempVendorCDR_20' ) end [2025-04-03 10:36:21] Production.INFO: ProcessCDR(1,14824940,1,1,2) [2025-04-03 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824940', 'tblTempUsageDetail_20' ) start [2025-04-03 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824940', 'tblTempUsageDetail_20' ) end [2025-04-03 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:36:26] Production.INFO: ==11553== Releasing lock... [2025-04-03 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:36:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-03 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:37:05 [end_date_ymd] => 2025-04-03 10:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:37:05' and `end` < '2025-04-03 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-03 10:37:18] Production.INFO: count ==3240 [2025-04-03 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:37:05 - End Time 2025-04-03 10:37:05 [2025-04-03 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824945', 'tblTempUsageDetail_20' ) start [2025-04-03 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824945', 'tblTempUsageDetail_20' ) end [2025-04-03 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824945', 'tblTempVendorCDR_20' ) start [2025-04-03 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824945', 'tblTempVendorCDR_20' ) end [2025-04-03 10:37:20] Production.INFO: ProcessCDR(1,14824945,1,1,2) [2025-04-03 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824945', 'tblTempUsageDetail_20' ) start [2025-04-03 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824945', 'tblTempUsageDetail_20' ) end [2025-04-03 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:37:26] Production.INFO: ==11625== Releasing lock... [2025-04-03 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:37:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-03 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:38:06 [end_date_ymd] => 2025-04-03 10:38:06 [RateCDR] => 1 ) [2025-04-03 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:38:06' and `end` < '2025-04-03 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:38:19] Production.INFO: count ==3254 [2025-04-03 10:38:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:38:06 - End Time 2025-04-03 10:38:06 [2025-04-03 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824950', 'tblTempUsageDetail_20' ) start [2025-04-03 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824950', 'tblTempUsageDetail_20' ) end [2025-04-03 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824950', 'tblTempVendorCDR_20' ) start [2025-04-03 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824950', 'tblTempVendorCDR_20' ) end [2025-04-03 10:38:21] Production.INFO: ProcessCDR(1,14824950,1,1,2) [2025-04-03 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824950', 'tblTempUsageDetail_20' ) start [2025-04-03 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824950', 'tblTempUsageDetail_20' ) end [2025-04-03 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:38:26] Production.INFO: ==11697== Releasing lock... [2025-04-03 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:38:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:39:05 [end_date_ymd] => 2025-04-03 10:39:05 [RateCDR] => 1 ) [2025-04-03 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:39:05' and `end` < '2025-04-03 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:39:18] Production.INFO: count ==3282 [2025-04-03 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:39:05 - End Time 2025-04-03 10:39:05 [2025-04-03 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824955', 'tblTempUsageDetail_20' ) start [2025-04-03 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824955', 'tblTempUsageDetail_20' ) end [2025-04-03 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824955', 'tblTempVendorCDR_20' ) start [2025-04-03 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824955', 'tblTempVendorCDR_20' ) end [2025-04-03 10:39:20] Production.INFO: ProcessCDR(1,14824955,1,1,2) [2025-04-03 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824955', 'tblTempUsageDetail_20' ) start [2025-04-03 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824955', 'tblTempUsageDetail_20' ) end [2025-04-03 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:39:25] Production.INFO: ==11778== Releasing lock... [2025-04-03 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:39:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-03 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:40:06 [end_date_ymd] => 2025-04-03 10:40:06 [RateCDR] => 1 ) [2025-04-03 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:40:06' and `end` < '2025-04-03 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:40:19] Production.INFO: count ==3286 [2025-04-03 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:40:06 - End Time 2025-04-03 10:40:06 [2025-04-03 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824961', 'tblTempUsageDetail_20' ) start [2025-04-03 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824961', 'tblTempUsageDetail_20' ) end [2025-04-03 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824961', 'tblTempVendorCDR_20' ) start [2025-04-03 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824961', 'tblTempVendorCDR_20' ) end [2025-04-03 10:40:21] Production.INFO: ProcessCDR(1,14824961,1,1,2) [2025-04-03 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824961', 'tblTempUsageDetail_20' ) start [2025-04-03 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824961', 'tblTempUsageDetail_20' ) end [2025-04-03 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:40:26] Production.INFO: ==11855== Releasing lock... [2025-04-03 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:40:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:41:05 [end_date_ymd] => 2025-04-03 10:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:41:05' and `end` < '2025-04-03 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-03 10:41:19] Production.INFO: count ==3388 [2025-04-03 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:41:05 - End Time 2025-04-03 10:41:05 [2025-04-03 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824966', 'tblTempUsageDetail_20' ) start [2025-04-03 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824966', 'tblTempUsageDetail_20' ) end [2025-04-03 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824966', 'tblTempVendorCDR_20' ) start [2025-04-03 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824966', 'tblTempVendorCDR_20' ) end [2025-04-03 10:41:20] Production.INFO: ProcessCDR(1,14824966,1,1,2) [2025-04-03 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824966', 'tblTempUsageDetail_20' ) start [2025-04-03 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824966', 'tblTempUsageDetail_20' ) end [2025-04-03 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:41:25] Production.INFO: ==11933== Releasing lock... [2025-04-03 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:41:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-03 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:42:05 [end_date_ymd] => 2025-04-03 10:42:05 [RateCDR] => 1 ) [2025-04-03 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:42:05' and `end` < '2025-04-03 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:42:18] Production.INFO: count ==3393 [2025-04-03 10:42:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:42:05 - End Time 2025-04-03 10:42:05 [2025-04-03 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824971', 'tblTempUsageDetail_20' ) start [2025-04-03 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824971', 'tblTempUsageDetail_20' ) end [2025-04-03 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824971', 'tblTempVendorCDR_20' ) start [2025-04-03 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824971', 'tblTempVendorCDR_20' ) end [2025-04-03 10:42:20] Production.INFO: ProcessCDR(1,14824971,1,1,2) [2025-04-03 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824971', 'tblTempUsageDetail_20' ) start [2025-04-03 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824971', 'tblTempUsageDetail_20' ) end [2025-04-03 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:42:25] Production.INFO: ==12010== Releasing lock... [2025-04-03 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:42:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-03 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:43:05 [end_date_ymd] => 2025-04-03 10:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:43:05' and `end` < '2025-04-03 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-03 10:43:19] Production.INFO: count ==3416 [2025-04-03 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:43:05 - End Time 2025-04-03 10:43:05 [2025-04-03 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824976', 'tblTempUsageDetail_20' ) start [2025-04-03 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824976', 'tblTempUsageDetail_20' ) end [2025-04-03 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824976', 'tblTempVendorCDR_20' ) start [2025-04-03 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824976', 'tblTempVendorCDR_20' ) end [2025-04-03 10:43:20] Production.INFO: ProcessCDR(1,14824976,1,1,2) [2025-04-03 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824976', 'tblTempUsageDetail_20' ) start [2025-04-03 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824976', 'tblTempUsageDetail_20' ) end [2025-04-03 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:43:26] Production.INFO: ==12086== Releasing lock... [2025-04-03 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:43:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-03 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:44:06 [end_date_ymd] => 2025-04-03 10:44:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:44:06' and `end` < '2025-04-03 10: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-03 10:44:19] Production.INFO: count ==3436 [2025-04-03 10:44:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:44:06 - End Time 2025-04-03 10:44:06 [2025-04-03 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824981', 'tblTempUsageDetail_20' ) start [2025-04-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824981', 'tblTempUsageDetail_20' ) end [2025-04-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824981', 'tblTempVendorCDR_20' ) start [2025-04-03 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824981', 'tblTempVendorCDR_20' ) end [2025-04-03 10:44:21] Production.INFO: ProcessCDR(1,14824981,1,1,2) [2025-04-03 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824981', 'tblTempUsageDetail_20' ) start [2025-04-03 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824981', 'tblTempUsageDetail_20' ) end [2025-04-03 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:44:26] Production.INFO: ==12170== Releasing lock... [2025-04-03 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:44:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-03 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:45:05 [end_date_ymd] => 2025-04-03 10:45:05 [RateCDR] => 1 ) [2025-04-03 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:45:05' and `end` < '2025-04-03 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:45:19] Production.INFO: count ==3446 [2025-04-03 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:45:05 - End Time 2025-04-03 10:45:05 [2025-04-03 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824986', 'tblTempUsageDetail_20' ) start [2025-04-03 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824986', 'tblTempUsageDetail_20' ) end [2025-04-03 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824986', 'tblTempVendorCDR_20' ) start [2025-04-03 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824986', 'tblTempVendorCDR_20' ) end [2025-04-03 10:45:20] Production.INFO: ProcessCDR(1,14824986,1,1,2) [2025-04-03 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824986', 'tblTempUsageDetail_20' ) start [2025-04-03 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824986', 'tblTempUsageDetail_20' ) end [2025-04-03 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:45:26] Production.INFO: ==12249== Releasing lock... [2025-04-03 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:45:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:46:06 [end_date_ymd] => 2025-04-03 10:46:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:46:06' and `end` < '2025-04-03 10: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-03 10:46:19] Production.INFO: count ==3459 [2025-04-03 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:46:06 - End Time 2025-04-03 10:46:06 [2025-04-03 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824991', 'tblTempUsageDetail_20' ) start [2025-04-03 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824991', 'tblTempUsageDetail_20' ) end [2025-04-03 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824991', 'tblTempVendorCDR_20' ) start [2025-04-03 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824991', 'tblTempVendorCDR_20' ) end [2025-04-03 10:46:20] Production.INFO: ProcessCDR(1,14824991,1,1,2) [2025-04-03 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824991', 'tblTempUsageDetail_20' ) start [2025-04-03 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824991', 'tblTempUsageDetail_20' ) end [2025-04-03 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:46:25] Production.INFO: ==12335== Releasing lock... [2025-04-03 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:46:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-03 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:47:05 [end_date_ymd] => 2025-04-03 10:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:47:05' and `end` < '2025-04-03 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-03 10:47:19] Production.INFO: count ==3473 [2025-04-03 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:47:05 - End Time 2025-04-03 10:47:05 [2025-04-03 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824996', 'tblTempUsageDetail_20' ) start [2025-04-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14824996', 'tblTempUsageDetail_20' ) end [2025-04-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824996', 'tblTempVendorCDR_20' ) start [2025-04-03 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14824996', 'tblTempVendorCDR_20' ) end [2025-04-03 10:47:20] Production.INFO: ProcessCDR(1,14824996,1,1,2) [2025-04-03 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14824996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14824996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14824996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14824996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824996', 'tblTempUsageDetail_20' ) start [2025-04-03 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14824996', 'tblTempUsageDetail_20' ) end [2025-04-03 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:47:26] Production.INFO: ==12412== Releasing lock... [2025-04-03 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:47:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:48:06 [end_date_ymd] => 2025-04-03 10:48:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:48:06' and `end` < '2025-04-03 10: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-03 10:48:20] Production.INFO: count ==3482 [2025-04-03 10:48:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:48:06 - End Time 2025-04-03 10:48:06 [2025-04-03 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825001', 'tblTempUsageDetail_20' ) start [2025-04-03 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825001', 'tblTempUsageDetail_20' ) end [2025-04-03 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825001', 'tblTempVendorCDR_20' ) start [2025-04-03 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825001', 'tblTempVendorCDR_20' ) end [2025-04-03 10:48:21] Production.INFO: ProcessCDR(1,14825001,1,1,2) [2025-04-03 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825001', 'tblTempUsageDetail_20' ) start [2025-04-03 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825001', 'tblTempUsageDetail_20' ) end [2025-04-03 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:48:26] Production.INFO: ==12489== Releasing lock... [2025-04-03 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:48:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-03 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:49:05 [end_date_ymd] => 2025-04-03 10:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:49:05' and `end` < '2025-04-03 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-03 10:49:19] Production.INFO: count ==3513 [2025-04-03 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:49:05 - End Time 2025-04-03 10:49:05 [2025-04-03 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825006', 'tblTempUsageDetail_20' ) start [2025-04-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825006', 'tblTempUsageDetail_20' ) end [2025-04-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825006', 'tblTempVendorCDR_20' ) start [2025-04-03 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825006', 'tblTempVendorCDR_20' ) end [2025-04-03 10:49:20] Production.INFO: ProcessCDR(1,14825006,1,1,2) [2025-04-03 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825006', 'tblTempUsageDetail_20' ) start [2025-04-03 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825006', 'tblTempUsageDetail_20' ) end [2025-04-03 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:49:26] Production.INFO: ==12565== Releasing lock... [2025-04-03 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:49:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:50:06 [end_date_ymd] => 2025-04-03 10:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 07:50:06' and `end` < '2025-04-03 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-03 10:50:20] Production.INFO: count ==3530 [2025-04-03 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:50:06 - End Time 2025-04-03 10:50:06 [2025-04-03 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825011', 'tblTempUsageDetail_20' ) start [2025-04-03 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825011', 'tblTempUsageDetail_20' ) end [2025-04-03 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825011', 'tblTempVendorCDR_20' ) start [2025-04-03 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825011', 'tblTempVendorCDR_20' ) end [2025-04-03 10:50:21] Production.INFO: ProcessCDR(1,14825011,1,1,2) [2025-04-03 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825011', 'tblTempUsageDetail_20' ) start [2025-04-03 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825011', 'tblTempUsageDetail_20' ) end [2025-04-03 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:50:26] Production.INFO: ==12685== Releasing lock... [2025-04-03 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:50:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-03 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:51:05 [end_date_ymd] => 2025-04-03 10:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:51:05' and `end` < '2025-04-03 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-03 10:51:19] Production.INFO: count ==3963 [2025-04-03 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:51:05 - End Time 2025-04-03 10:51:05 [2025-04-03 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825017', 'tblTempUsageDetail_20' ) start [2025-04-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825017', 'tblTempUsageDetail_20' ) end [2025-04-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825017', 'tblTempVendorCDR_20' ) start [2025-04-03 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825017', 'tblTempVendorCDR_20' ) end [2025-04-03 10:51:20] Production.INFO: ProcessCDR(1,14825017,1,1,2) [2025-04-03 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825017', 'tblTempUsageDetail_20' ) start [2025-04-03 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825017', 'tblTempUsageDetail_20' ) end [2025-04-03 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:51:26] Production.INFO: ==12760== Releasing lock... [2025-04-03 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:51:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-03 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:52:06 [end_date_ymd] => 2025-04-03 10:52:06 [RateCDR] => 1 ) [2025-04-03 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:52:06' and `end` < '2025-04-03 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:52:19] Production.INFO: count ==3973 [2025-04-03 10:52:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:52:06 - End Time 2025-04-03 10:52:06 [2025-04-03 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825022', 'tblTempUsageDetail_20' ) start [2025-04-03 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825022', 'tblTempUsageDetail_20' ) end [2025-04-03 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825022', 'tblTempVendorCDR_20' ) start [2025-04-03 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825022', 'tblTempVendorCDR_20' ) end [2025-04-03 10:52:21] Production.INFO: ProcessCDR(1,14825022,1,1,2) [2025-04-03 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825022', 'tblTempUsageDetail_20' ) start [2025-04-03 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825022', 'tblTempUsageDetail_20' ) end [2025-04-03 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:52:26] Production.INFO: ==12840== Releasing lock... [2025-04-03 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:52:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-03 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:53:05 [end_date_ymd] => 2025-04-03 10:53:05 [RateCDR] => 1 ) [2025-04-03 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:53:05' and `end` < '2025-04-03 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:53:19] Production.INFO: count ==3985 [2025-04-03 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:53:05 - End Time 2025-04-03 10:53:05 [2025-04-03 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825027', 'tblTempUsageDetail_20' ) start [2025-04-03 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825027', 'tblTempUsageDetail_20' ) end [2025-04-03 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825027', 'tblTempVendorCDR_20' ) start [2025-04-03 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825027', 'tblTempVendorCDR_20' ) end [2025-04-03 10:53:21] Production.INFO: ProcessCDR(1,14825027,1,1,2) [2025-04-03 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825027', 'tblTempUsageDetail_20' ) start [2025-04-03 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825027', 'tblTempUsageDetail_20' ) end [2025-04-03 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:53:26] Production.INFO: ==12917== Releasing lock... [2025-04-03 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:53:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-03 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:54:06 [end_date_ymd] => 2025-04-03 10:54:06 [RateCDR] => 1 ) [2025-04-03 10: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-03 07:54:06' and `end` < '2025-04-03 10: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-03 10:54:20] Production.INFO: count ==3991 [2025-04-03 10:54:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:54:06 - End Time 2025-04-03 10:54:06 [2025-04-03 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825032', 'tblTempUsageDetail_20' ) start [2025-04-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825032', 'tblTempUsageDetail_20' ) end [2025-04-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825032', 'tblTempVendorCDR_20' ) start [2025-04-03 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825032', 'tblTempVendorCDR_20' ) end [2025-04-03 10:54:22] Production.INFO: ProcessCDR(1,14825032,1,1,2) [2025-04-03 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825032', 'tblTempUsageDetail_20' ) start [2025-04-03 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825032', 'tblTempUsageDetail_20' ) end [2025-04-03 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:54:27] Production.INFO: ==12991== Releasing lock... [2025-04-03 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:54:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-03 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:55:05 [end_date_ymd] => 2025-04-03 10:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:55:05' and `end` < '2025-04-03 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-03 10:55:19] Production.INFO: count ==4004 [2025-04-03 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:55:05 - End Time 2025-04-03 10:55:05 [2025-04-03 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825037', 'tblTempUsageDetail_20' ) start [2025-04-03 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825037', 'tblTempUsageDetail_20' ) end [2025-04-03 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825037', 'tblTempVendorCDR_20' ) start [2025-04-03 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825037', 'tblTempVendorCDR_20' ) end [2025-04-03 10:55:20] Production.INFO: ProcessCDR(1,14825037,1,1,2) [2025-04-03 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825037', 'tblTempUsageDetail_20' ) start [2025-04-03 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825037', 'tblTempUsageDetail_20' ) end [2025-04-03 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:55:25] Production.INFO: ==13074== Releasing lock... [2025-04-03 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:55:25] Production.INFO: 58 MB #Memory Used# [2025-04-03 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:56:06 [end_date_ymd] => 2025-04-03 10:56:06 [RateCDR] => 1 ) [2025-04-03 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:56:06' and `end` < '2025-04-03 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:56:19] Production.INFO: count ==4015 [2025-04-03 10:56:21] Production.ERROR: pbx CDR StartTime 2025-04-03 07:56:06 - End Time 2025-04-03 10:56:06 [2025-04-03 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825042', 'tblTempUsageDetail_20' ) start [2025-04-03 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825042', 'tblTempUsageDetail_20' ) end [2025-04-03 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825042', 'tblTempVendorCDR_20' ) start [2025-04-03 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825042', 'tblTempVendorCDR_20' ) end [2025-04-03 10:56:21] Production.INFO: ProcessCDR(1,14825042,1,1,2) [2025-04-03 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825042', 'tblTempUsageDetail_20' ) start [2025-04-03 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825042', 'tblTempUsageDetail_20' ) end [2025-04-03 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:56:26] Production.INFO: ==13151== Releasing lock... [2025-04-03 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:56:26] Production.INFO: 58 MB #Memory Used# [2025-04-03 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:57:05 [end_date_ymd] => 2025-04-03 10:57:05 [RateCDR] => 1 ) [2025-04-03 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:57:05' and `end` < '2025-04-03 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:57:19] Production.INFO: count ==4039 [2025-04-03 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:57:05 - End Time 2025-04-03 10:57:05 [2025-04-03 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825047', 'tblTempUsageDetail_20' ) start [2025-04-03 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825047', 'tblTempUsageDetail_20' ) end [2025-04-03 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825047', 'tblTempVendorCDR_20' ) start [2025-04-03 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825047', 'tblTempVendorCDR_20' ) end [2025-04-03 10:57:20] Production.INFO: ProcessCDR(1,14825047,1,1,2) [2025-04-03 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825047', 'tblTempUsageDetail_20' ) start [2025-04-03 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825047', 'tblTempUsageDetail_20' ) end [2025-04-03 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:57:26] Production.INFO: ==13232== Releasing lock... [2025-04-03 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:57:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-03 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:58:05 [end_date_ymd] => 2025-04-03 10:58:05 [RateCDR] => 1 ) [2025-04-03 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 07:58:05' and `end` < '2025-04-03 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 10:58:19] Production.INFO: count ==4053 [2025-04-03 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:58:05 - End Time 2025-04-03 10:58:05 [2025-04-03 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825052', 'tblTempUsageDetail_20' ) start [2025-04-03 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825052', 'tblTempUsageDetail_20' ) end [2025-04-03 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825052', 'tblTempVendorCDR_20' ) start [2025-04-03 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825052', 'tblTempVendorCDR_20' ) end [2025-04-03 10:58:21] Production.INFO: ProcessCDR(1,14825052,1,1,2) [2025-04-03 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825052', 'tblTempUsageDetail_20' ) start [2025-04-03 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825052', 'tblTempUsageDetail_20' ) end [2025-04-03 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:58:26] Production.INFO: ==13313== Releasing lock... [2025-04-03 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:58:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-03 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 07:59:05 [end_date_ymd] => 2025-04-03 10:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 07:59:05' and `end` < '2025-04-03 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-03 10:59:19] Production.INFO: count ==4059 [2025-04-03 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-03 07:59:05 - End Time 2025-04-03 10:59:05 [2025-04-03 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825057', 'tblTempUsageDetail_20' ) start [2025-04-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825057', 'tblTempUsageDetail_20' ) end [2025-04-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825057', 'tblTempVendorCDR_20' ) start [2025-04-03 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825057', 'tblTempVendorCDR_20' ) end [2025-04-03 10:59:20] Production.INFO: ProcessCDR(1,14825057,1,1,2) [2025-04-03 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825057', 'tblTempUsageDetail_20' ) start [2025-04-03 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825057', 'tblTempUsageDetail_20' ) end [2025-04-03 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 10:59:26] Production.INFO: ==13396== Releasing lock... [2025-04-03 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 10:59:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-03 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:00:07 [end_date_ymd] => 2025-04-03 11:00:07 [RateCDR] => 1 ) [2025-04-03 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:00:07' and `end` < '2025-04-03 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:00:20] Production.INFO: count ==4064 [2025-04-03 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:00:07 - End Time 2025-04-03 11:00:07 [2025-04-03 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825063', 'tblTempUsageDetail_20' ) start [2025-04-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825063', 'tblTempUsageDetail_20' ) end [2025-04-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825063', 'tblTempVendorCDR_20' ) start [2025-04-03 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825063', 'tblTempVendorCDR_20' ) end [2025-04-03 11:00:22] Production.INFO: ProcessCDR(1,14825063,1,1,2) [2025-04-03 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825063', 'tblTempUsageDetail_20' ) start [2025-04-03 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825063', 'tblTempUsageDetail_20' ) end [2025-04-03 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:00:28] Production.INFO: ==13486== Releasing lock... [2025-04-03 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:00:28] Production.INFO: 58.25 MB #Memory Used# [2025-04-03 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:01:06 [end_date_ymd] => 2025-04-03 11:01:06 [RateCDR] => 1 ) [2025-04-03 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:01:06' and `end` < '2025-04-03 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:01:19] Production.INFO: count ==4432 [2025-04-03 11:01:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:01:06 - End Time 2025-04-03 11:01:06 [2025-04-03 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825068', 'tblTempUsageDetail_20' ) start [2025-04-03 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825068', 'tblTempUsageDetail_20' ) end [2025-04-03 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825068', 'tblTempVendorCDR_20' ) start [2025-04-03 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825068', 'tblTempVendorCDR_20' ) end [2025-04-03 11:01:21] Production.INFO: ProcessCDR(1,14825068,1,1,2) [2025-04-03 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825068', 'tblTempUsageDetail_20' ) start [2025-04-03 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825068', 'tblTempUsageDetail_20' ) end [2025-04-03 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:01:27] Production.INFO: ==13585== Releasing lock... [2025-04-03 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:01:27] Production.INFO: 61 MB #Memory Used# [2025-04-03 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:02:06 [end_date_ymd] => 2025-04-03 11:02:06 [RateCDR] => 1 ) [2025-04-03 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:02:06' and `end` < '2025-04-03 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:02:21] Production.INFO: count ==4436 [2025-04-03 11:02:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:02:06 - End Time 2025-04-03 11:02:06 [2025-04-03 11:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825073', 'tblTempUsageDetail_20' ) start [2025-04-03 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825073', 'tblTempUsageDetail_20' ) end [2025-04-03 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825073', 'tblTempVendorCDR_20' ) start [2025-04-03 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825073', 'tblTempVendorCDR_20' ) end [2025-04-03 11:02:23] Production.INFO: ProcessCDR(1,14825073,1,1,2) [2025-04-03 11:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825073', 'tblTempUsageDetail_20' ) start [2025-04-03 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825073', 'tblTempUsageDetail_20' ) end [2025-04-03 11:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:02:29] Production.INFO: ==13741== Releasing lock... [2025-04-03 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:02:29] Production.INFO: 61.25 MB #Memory Used# [2025-04-03 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:03:05 [end_date_ymd] => 2025-04-03 11:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:03:05' and `end` < '2025-04-03 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-03 11:03:19] Production.INFO: count ==4443 [2025-04-03 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:03:05 - End Time 2025-04-03 11:03:05 [2025-04-03 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825078', 'tblTempUsageDetail_20' ) start [2025-04-03 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825078', 'tblTempUsageDetail_20' ) end [2025-04-03 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825078', 'tblTempVendorCDR_20' ) start [2025-04-03 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825078', 'tblTempVendorCDR_20' ) end [2025-04-03 11:03:21] Production.INFO: ProcessCDR(1,14825078,1,1,2) [2025-04-03 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825078', 'tblTempUsageDetail_20' ) start [2025-04-03 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825078', 'tblTempUsageDetail_20' ) end [2025-04-03 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:03:27] Production.INFO: ==13817== Releasing lock... [2025-04-03 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:03:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-03 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:04:06 [end_date_ymd] => 2025-04-03 11:04:06 [RateCDR] => 1 ) [2025-04-03 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:04:06' and `end` < '2025-04-03 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:04:21] Production.INFO: count ==4997 [2025-04-03 11:04:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:04:06 - End Time 2025-04-03 11:04:06 [2025-04-03 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825083', 'tblTempUsageDetail_20' ) start [2025-04-03 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825083', 'tblTempUsageDetail_20' ) end [2025-04-03 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825083', 'tblTempVendorCDR_20' ) start [2025-04-03 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825083', 'tblTempVendorCDR_20' ) end [2025-04-03 11:04:23] Production.INFO: ProcessCDR(1,14825083,1,1,2) [2025-04-03 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825083', 'tblTempUsageDetail_20' ) start [2025-04-03 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825083', 'tblTempUsageDetail_20' ) end [2025-04-03 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:04:30] Production.INFO: ==13895== Releasing lock... [2025-04-03 11:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:04:30] Production.INFO: 65.25 MB #Memory Used# [2025-04-03 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:05:05 [end_date_ymd] => 2025-04-03 11:05:05 [RateCDR] => 1 ) [2025-04-03 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:05:05' and `end` < '2025-04-03 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:05:19] Production.INFO: count ==4997 [2025-04-03 11:05:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:05:05 - End Time 2025-04-03 11:05:05 [2025-04-03 11:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825088', 'tblTempUsageDetail_20' ) start [2025-04-03 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825088', 'tblTempUsageDetail_20' ) end [2025-04-03 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825088', 'tblTempVendorCDR_20' ) start [2025-04-03 11:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825088', 'tblTempVendorCDR_20' ) end [2025-04-03 11:05:22] Production.INFO: ProcessCDR(1,14825088,1,1,2) [2025-04-03 11:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825088', 'tblTempUsageDetail_20' ) start [2025-04-03 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825088', 'tblTempUsageDetail_20' ) end [2025-04-03 11:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:05:28] Production.INFO: ==14062== Releasing lock... [2025-04-03 11:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:05:28] Production.INFO: 65.25 MB #Memory Used# [2025-04-03 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:06:06 [end_date_ymd] => 2025-04-03 11:06:06 [RateCDR] => 1 ) [2025-04-03 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:06:06' and `end` < '2025-04-03 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:06:19] Production.INFO: count ==5011 [2025-04-03 11:06:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:06:06 - End Time 2025-04-03 11:06:06 [2025-04-03 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825093', 'tblTempUsageDetail_20' ) start [2025-04-03 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825093', 'tblTempUsageDetail_20' ) end [2025-04-03 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825093', 'tblTempVendorCDR_20' ) start [2025-04-03 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825093', 'tblTempVendorCDR_20' ) end [2025-04-03 11:06:22] Production.INFO: ProcessCDR(1,14825093,1,1,2) [2025-04-03 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825093', 'tblTempUsageDetail_20' ) start [2025-04-03 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825093', 'tblTempUsageDetail_20' ) end [2025-04-03 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:06:28] Production.INFO: ==14181== Releasing lock... [2025-04-03 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:06:28] Production.INFO: 65.5 MB #Memory Used# [2025-04-03 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:07:05 [end_date_ymd] => 2025-04-03 11:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:07:05' and `end` < '2025-04-03 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-03 11:07:20] Production.INFO: count ==5016 [2025-04-03 11:07:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:07:05 - End Time 2025-04-03 11:07:05 [2025-04-03 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825098', 'tblTempUsageDetail_20' ) start [2025-04-03 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825098', 'tblTempUsageDetail_20' ) end [2025-04-03 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825098', 'tblTempVendorCDR_20' ) start [2025-04-03 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825098', 'tblTempVendorCDR_20' ) end [2025-04-03 11:07:22] Production.INFO: ProcessCDR(1,14825098,1,1,2) [2025-04-03 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825098', 'tblTempUsageDetail_20' ) start [2025-04-03 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825098', 'tblTempUsageDetail_20' ) end [2025-04-03 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:07:27] Production.INFO: ==14257== Releasing lock... [2025-04-03 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:07:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-03 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:08:06 [end_date_ymd] => 2025-04-03 11:08:06 [RateCDR] => 1 ) [2025-04-03 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:08:06' and `end` < '2025-04-03 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:08:19] Production.INFO: count ==5011 [2025-04-03 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:08:06 - End Time 2025-04-03 11:08:06 [2025-04-03 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825103', 'tblTempUsageDetail_20' ) start [2025-04-03 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825103', 'tblTempUsageDetail_20' ) end [2025-04-03 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825103', 'tblTempVendorCDR_20' ) start [2025-04-03 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825103', 'tblTempVendorCDR_20' ) end [2025-04-03 11:08:22] Production.INFO: ProcessCDR(1,14825103,1,1,2) [2025-04-03 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825103', 'tblTempUsageDetail_20' ) start [2025-04-03 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825103', 'tblTempUsageDetail_20' ) end [2025-04-03 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:08:27] Production.INFO: ==14411== Releasing lock... [2025-04-03 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:08:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-03 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:09:05 [end_date_ymd] => 2025-04-03 11:09:05 [RateCDR] => 1 ) [2025-04-03 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:09:05' and `end` < '2025-04-03 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:09:19] Production.INFO: count ==5021 [2025-04-03 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:09:05 - End Time 2025-04-03 11:09:05 [2025-04-03 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825108', 'tblTempUsageDetail_20' ) start [2025-04-03 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825108', 'tblTempUsageDetail_20' ) end [2025-04-03 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825108', 'tblTempVendorCDR_20' ) start [2025-04-03 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825108', 'tblTempVendorCDR_20' ) end [2025-04-03 11:09:22] Production.INFO: ProcessCDR(1,14825108,1,1,2) [2025-04-03 11:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825108', 'tblTempUsageDetail_20' ) start [2025-04-03 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825108', 'tblTempUsageDetail_20' ) end [2025-04-03 11:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:09:27] Production.INFO: ==14491== Releasing lock... [2025-04-03 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:09:27] Production.INFO: 65.5 MB #Memory Used# [2025-04-03 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:10:06 [end_date_ymd] => 2025-04-03 11:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:10:06' and `end` < '2025-04-03 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-03 11:10:20] Production.INFO: count ==5037 [2025-04-03 11:10:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:10:06 - End Time 2025-04-03 11:10:06 [2025-04-03 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825113', 'tblTempUsageDetail_20' ) start [2025-04-03 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825113', 'tblTempUsageDetail_20' ) end [2025-04-03 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825113', 'tblTempVendorCDR_20' ) start [2025-04-03 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825113', 'tblTempVendorCDR_20' ) end [2025-04-03 11:10:22] Production.INFO: ProcessCDR(1,14825113,1,1,2) [2025-04-03 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825113', 'tblTempUsageDetail_20' ) start [2025-04-03 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825113', 'tblTempUsageDetail_20' ) end [2025-04-03 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:10:28] Production.INFO: ==14568== Releasing lock... [2025-04-03 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:10:28] Production.INFO: 65.75 MB #Memory Used# [2025-04-03 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:11:05 [end_date_ymd] => 2025-04-03 11:11:05 [RateCDR] => 1 ) [2025-04-03 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:11:05' and `end` < '2025-04-03 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:11:19] Production.INFO: count ==5092 [2025-04-03 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:11:05 - End Time 2025-04-03 11:11:05 [2025-04-03 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825119', 'tblTempUsageDetail_20' ) start [2025-04-03 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825119', 'tblTempUsageDetail_20' ) end [2025-04-03 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825119', 'tblTempVendorCDR_20' ) start [2025-04-03 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825119', 'tblTempVendorCDR_20' ) end [2025-04-03 11:11:21] Production.INFO: ProcessCDR(1,14825119,1,1,2) [2025-04-03 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825119', 'tblTempUsageDetail_20' ) start [2025-04-03 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825119', 'tblTempUsageDetail_20' ) end [2025-04-03 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:11:26] Production.INFO: ==14650== Releasing lock... [2025-04-03 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:11:26] Production.INFO: 66 MB #Memory Used# [2025-04-03 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:12:05 [end_date_ymd] => 2025-04-03 11:12:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:12:05' and `end` < '2025-04-03 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-03 11:12:18] Production.INFO: count ==5095 [2025-04-03 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:12:05 - End Time 2025-04-03 11:12:05 [2025-04-03 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825124', 'tblTempUsageDetail_20' ) start [2025-04-03 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825124', 'tblTempUsageDetail_20' ) end [2025-04-03 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825124', 'tblTempVendorCDR_20' ) start [2025-04-03 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825124', 'tblTempVendorCDR_20' ) end [2025-04-03 11:12:21] Production.INFO: ProcessCDR(1,14825124,1,1,2) [2025-04-03 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825124', 'tblTempUsageDetail_20' ) start [2025-04-03 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825124', 'tblTempUsageDetail_20' ) end [2025-04-03 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:12:26] Production.INFO: ==14810== Releasing lock... [2025-04-03 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:12:26] Production.INFO: 66 MB #Memory Used# [2025-04-03 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:13:06 [end_date_ymd] => 2025-04-03 11:13:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:13:06' and `end` < '2025-04-03 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:13:19] Production.INFO: count ==5110 [2025-04-03 11:13:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:13:06 - End Time 2025-04-03 11:13:06 [2025-04-03 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825129', 'tblTempUsageDetail_20' ) start [2025-04-03 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825129', 'tblTempUsageDetail_20' ) end [2025-04-03 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825129', 'tblTempVendorCDR_20' ) start [2025-04-03 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825129', 'tblTempVendorCDR_20' ) end [2025-04-03 11:13:22] Production.INFO: ProcessCDR(1,14825129,1,1,2) [2025-04-03 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825129', 'tblTempUsageDetail_20' ) start [2025-04-03 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825129', 'tblTempUsageDetail_20' ) end [2025-04-03 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:13:27] Production.INFO: ==14891== Releasing lock... [2025-04-03 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-03 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:14:05 [end_date_ymd] => 2025-04-03 11:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:14:05' and `end` < '2025-04-03 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-03 11:14:18] Production.INFO: count ==5127 [2025-04-03 11:14:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:14:05 - End Time 2025-04-03 11:14:05 [2025-04-03 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825134', 'tblTempUsageDetail_20' ) start [2025-04-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825134', 'tblTempUsageDetail_20' ) end [2025-04-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825134', 'tblTempVendorCDR_20' ) start [2025-04-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825134', 'tblTempVendorCDR_20' ) end [2025-04-03 11:14:21] Production.INFO: ProcessCDR(1,14825134,1,1,2) [2025-04-03 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825134', 'tblTempUsageDetail_20' ) start [2025-04-03 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825134', 'tblTempUsageDetail_20' ) end [2025-04-03 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:14:26] Production.INFO: ==14965== Releasing lock... [2025-04-03 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:14:26] Production.INFO: 66.25 MB #Memory Used# [2025-04-03 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:15:06 [end_date_ymd] => 2025-04-03 11:15:06 [RateCDR] => 1 ) [2025-04-03 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:15:06' and `end` < '2025-04-03 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:15:19] Production.INFO: count ==5138 [2025-04-03 11:15:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:15:06 - End Time 2025-04-03 11:15:06 [2025-04-03 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825139', 'tblTempUsageDetail_20' ) start [2025-04-03 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825139', 'tblTempUsageDetail_20' ) end [2025-04-03 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825139', 'tblTempVendorCDR_20' ) start [2025-04-03 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825139', 'tblTempVendorCDR_20' ) end [2025-04-03 11:15:22] Production.INFO: ProcessCDR(1,14825139,1,1,2) [2025-04-03 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825139', 'tblTempUsageDetail_20' ) start [2025-04-03 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825139', 'tblTempUsageDetail_20' ) end [2025-04-03 11:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:15:27] Production.INFO: ==15129== Releasing lock... [2025-04-03 11:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:15:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-03 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:16:05 [end_date_ymd] => 2025-04-03 11:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:16:05' and `end` < '2025-04-03 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-03 11:16:19] Production.INFO: count ==5150 [2025-04-03 11:16:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:16:05 - End Time 2025-04-03 11:16:05 [2025-04-03 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825144', 'tblTempUsageDetail_20' ) start [2025-04-03 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825144', 'tblTempUsageDetail_20' ) end [2025-04-03 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825144', 'tblTempVendorCDR_20' ) start [2025-04-03 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825144', 'tblTempVendorCDR_20' ) end [2025-04-03 11:16:22] Production.INFO: ProcessCDR(1,14825144,1,1,2) [2025-04-03 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825144', 'tblTempUsageDetail_20' ) start [2025-04-03 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825144', 'tblTempUsageDetail_20' ) end [2025-04-03 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:16:27] Production.INFO: ==15209== Releasing lock... [2025-04-03 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:16:27] Production.INFO: 66.5 MB #Memory Used# [2025-04-03 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:17:06 [end_date_ymd] => 2025-04-03 11:17:06 [RateCDR] => 1 ) [2025-04-03 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:17:06' and `end` < '2025-04-03 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:17:20] Production.INFO: count ==5163 [2025-04-03 11:17:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:17:06 - End Time 2025-04-03 11:17:06 [2025-04-03 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825149', 'tblTempUsageDetail_20' ) start [2025-04-03 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825149', 'tblTempUsageDetail_20' ) end [2025-04-03 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825149', 'tblTempVendorCDR_20' ) start [2025-04-03 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825149', 'tblTempVendorCDR_20' ) end [2025-04-03 11:17:22] Production.INFO: ProcessCDR(1,14825149,1,1,2) [2025-04-03 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825149', 'tblTempUsageDetail_20' ) start [2025-04-03 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825149', 'tblTempUsageDetail_20' ) end [2025-04-03 11:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:17:28] Production.INFO: ==15285== Releasing lock... [2025-04-03 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:17:28] Production.INFO: 66.5 MB #Memory Used# [2025-04-03 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:18:05 [end_date_ymd] => 2025-04-03 11:18:05 [RateCDR] => 1 ) [2025-04-03 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:18:05' and `end` < '2025-04-03 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:18:18] Production.INFO: count ==5236 [2025-04-03 11:18:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:18:05 - End Time 2025-04-03 11:18:05 [2025-04-03 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825154', 'tblTempUsageDetail_20' ) start [2025-04-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825154', 'tblTempUsageDetail_20' ) end [2025-04-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825154', 'tblTempVendorCDR_20' ) start [2025-04-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825154', 'tblTempVendorCDR_20' ) end [2025-04-03 11:18:21] Production.INFO: ProcessCDR(1,14825154,1,1,2) [2025-04-03 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825154', 'tblTempUsageDetail_20' ) start [2025-04-03 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825154', 'tblTempUsageDetail_20' ) end [2025-04-03 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:18:27] Production.INFO: ==15363== Releasing lock... [2025-04-03 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:18:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:19:06 [end_date_ymd] => 2025-04-03 11:19:06 [RateCDR] => 1 ) [2025-04-03 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:19:06' and `end` < '2025-04-03 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:19:20] Production.INFO: count ==5238 [2025-04-03 11:19:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:19:06 - End Time 2025-04-03 11:19:06 [2025-04-03 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825159', 'tblTempUsageDetail_20' ) start [2025-04-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825159', 'tblTempUsageDetail_20' ) end [2025-04-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825159', 'tblTempVendorCDR_20' ) start [2025-04-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825159', 'tblTempVendorCDR_20' ) end [2025-04-03 11:19:22] Production.INFO: ProcessCDR(1,14825159,1,1,2) [2025-04-03 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825159', 'tblTempUsageDetail_20' ) start [2025-04-03 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825159', 'tblTempUsageDetail_20' ) end [2025-04-03 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:19:28] Production.INFO: ==15445== Releasing lock... [2025-04-03 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:19:28] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:20:06 [end_date_ymd] => 2025-04-03 11:20:06 [RateCDR] => 1 ) [2025-04-03 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:20:06' and `end` < '2025-04-03 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:20:19] Production.INFO: count ==5239 [2025-04-03 11:20:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:20:06 - End Time 2025-04-03 11:20:06 [2025-04-03 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825164', 'tblTempUsageDetail_20' ) start [2025-04-03 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825164', 'tblTempUsageDetail_20' ) end [2025-04-03 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825164', 'tblTempVendorCDR_20' ) start [2025-04-03 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825164', 'tblTempVendorCDR_20' ) end [2025-04-03 11:20:22] Production.INFO: ProcessCDR(1,14825164,1,1,2) [2025-04-03 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825164', 'tblTempUsageDetail_20' ) start [2025-04-03 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825164', 'tblTempUsageDetail_20' ) end [2025-04-03 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:20:27] Production.INFO: ==15522== Releasing lock... [2025-04-03 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:20:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:21:05 [end_date_ymd] => 2025-04-03 11:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:21:05' and `end` < '2025-04-03 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-03 11:21:19] Production.INFO: count ==5331 [2025-04-03 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:21:05 - End Time 2025-04-03 11:21:05 [2025-04-03 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825170', 'tblTempUsageDetail_20' ) start [2025-04-03 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825170', 'tblTempUsageDetail_20' ) end [2025-04-03 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825170', 'tblTempVendorCDR_20' ) start [2025-04-03 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825170', 'tblTempVendorCDR_20' ) end [2025-04-03 11:21:21] Production.INFO: ProcessCDR(1,14825170,1,1,2) [2025-04-03 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825170', 'tblTempUsageDetail_20' ) start [2025-04-03 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825170', 'tblTempUsageDetail_20' ) end [2025-04-03 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:21:26] Production.INFO: ==15637== Releasing lock... [2025-04-03 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:21:26] Production.INFO: 67.75 MB #Memory Used# [2025-04-03 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:22:05 [end_date_ymd] => 2025-04-03 11:22:05 [RateCDR] => 1 ) [2025-04-03 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:22:05' and `end` < '2025-04-03 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:22:18] Production.INFO: count ==5345 [2025-04-03 11:22:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:22:05 - End Time 2025-04-03 11:22:05 [2025-04-03 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825175', 'tblTempUsageDetail_20' ) start [2025-04-03 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825175', 'tblTempUsageDetail_20' ) end [2025-04-03 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825175', 'tblTempVendorCDR_20' ) start [2025-04-03 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825175', 'tblTempVendorCDR_20' ) end [2025-04-03 11:22:21] Production.INFO: ProcessCDR(1,14825175,1,1,2) [2025-04-03 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825175', 'tblTempUsageDetail_20' ) start [2025-04-03 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825175', 'tblTempUsageDetail_20' ) end [2025-04-03 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:22:26] Production.INFO: ==15719== Releasing lock... [2025-04-03 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:22:26] Production.INFO: 68 MB #Memory Used# [2025-04-03 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:23:05 [end_date_ymd] => 2025-04-03 11:23:05 [RateCDR] => 1 ) [2025-04-03 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:23:05' and `end` < '2025-04-03 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:23:19] Production.INFO: count ==5350 [2025-04-03 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:23:05 - End Time 2025-04-03 11:23:05 [2025-04-03 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825180', 'tblTempUsageDetail_20' ) start [2025-04-03 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825180', 'tblTempUsageDetail_20' ) end [2025-04-03 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825180', 'tblTempVendorCDR_20' ) start [2025-04-03 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825180', 'tblTempVendorCDR_20' ) end [2025-04-03 11:23:21] Production.INFO: ProcessCDR(1,14825180,1,1,2) [2025-04-03 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825180', 'tblTempUsageDetail_20' ) start [2025-04-03 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825180', 'tblTempUsageDetail_20' ) end [2025-04-03 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:23:26] Production.INFO: ==15797== Releasing lock... [2025-04-03 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:23:26] Production.INFO: 68 MB #Memory Used# [2025-04-03 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:24:05 [end_date_ymd] => 2025-04-03 11:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:24:05' and `end` < '2025-04-03 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-03 11:24:19] Production.INFO: count ==5410 [2025-04-03 11:24:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:24:05 - End Time 2025-04-03 11:24:05 [2025-04-03 11:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825185', 'tblTempUsageDetail_20' ) start [2025-04-03 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825185', 'tblTempUsageDetail_20' ) end [2025-04-03 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825185', 'tblTempVendorCDR_20' ) start [2025-04-03 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825185', 'tblTempVendorCDR_20' ) end [2025-04-03 11:24:22] Production.INFO: ProcessCDR(1,14825185,1,1,2) [2025-04-03 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825185', 'tblTempUsageDetail_20' ) start [2025-04-03 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825185', 'tblTempUsageDetail_20' ) end [2025-04-03 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:24:27] Production.INFO: ==15881== Releasing lock... [2025-04-03 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:24:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:25:06 [end_date_ymd] => 2025-04-03 11:25:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:25:06' and `end` < '2025-04-03 11: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-03 11:25:20] Production.INFO: count ==5409 [2025-04-03 11:25:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:25:06 - End Time 2025-04-03 11:25:06 [2025-04-03 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825190', 'tblTempUsageDetail_20' ) start [2025-04-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825190', 'tblTempUsageDetail_20' ) end [2025-04-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825190', 'tblTempVendorCDR_20' ) start [2025-04-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825190', 'tblTempVendorCDR_20' ) end [2025-04-03 11:25:22] Production.INFO: ProcessCDR(1,14825190,1,1,2) [2025-04-03 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825190', 'tblTempUsageDetail_20' ) start [2025-04-03 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825190', 'tblTempUsageDetail_20' ) end [2025-04-03 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:25:28] Production.INFO: ==15964== Releasing lock... [2025-04-03 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:25:28] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:26:05 [end_date_ymd] => 2025-04-03 11:26:05 [RateCDR] => 1 ) [2025-04-03 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:26:05' and `end` < '2025-04-03 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:26:19] Production.INFO: count ==5413 [2025-04-03 11:26:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:26:05 - End Time 2025-04-03 11:26:05 [2025-04-03 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825195', 'tblTempUsageDetail_20' ) start [2025-04-03 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825195', 'tblTempUsageDetail_20' ) end [2025-04-03 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825195', 'tblTempVendorCDR_20' ) start [2025-04-03 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825195', 'tblTempVendorCDR_20' ) end [2025-04-03 11:26:21] Production.INFO: ProcessCDR(1,14825195,1,1,2) [2025-04-03 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825195', 'tblTempUsageDetail_20' ) start [2025-04-03 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825195', 'tblTempUsageDetail_20' ) end [2025-04-03 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:26:26] Production.INFO: ==16049== Releasing lock... [2025-04-03 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:26:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:27:05 [end_date_ymd] => 2025-04-03 11:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:27:05' and `end` < '2025-04-03 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-03 11:27:19] Production.INFO: count ==5406 [2025-04-03 11:27:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:27:05 - End Time 2025-04-03 11:27:05 [2025-04-03 11:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825200', 'tblTempUsageDetail_20' ) start [2025-04-03 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825200', 'tblTempUsageDetail_20' ) end [2025-04-03 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825200', 'tblTempVendorCDR_20' ) start [2025-04-03 11:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825200', 'tblTempVendorCDR_20' ) end [2025-04-03 11:27:22] Production.INFO: ProcessCDR(1,14825200,1,1,2) [2025-04-03 11:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825200', 'tblTempUsageDetail_20' ) start [2025-04-03 11:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825200', 'tblTempUsageDetail_20' ) end [2025-04-03 11:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:27:27] Production.INFO: ==16130== Releasing lock... [2025-04-03 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:27:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:28:06 [end_date_ymd] => 2025-04-03 11:28:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:28:06' and `end` < '2025-04-03 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-03 11:28:20] Production.INFO: count ==5411 [2025-04-03 11:28:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:28:06 - End Time 2025-04-03 11:28:06 [2025-04-03 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825205', 'tblTempUsageDetail_20' ) start [2025-04-03 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825205', 'tblTempUsageDetail_20' ) end [2025-04-03 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825205', 'tblTempVendorCDR_20' ) start [2025-04-03 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825205', 'tblTempVendorCDR_20' ) end [2025-04-03 11:28:22] Production.INFO: ProcessCDR(1,14825205,1,1,2) [2025-04-03 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825205', 'tblTempUsageDetail_20' ) start [2025-04-03 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825205', 'tblTempUsageDetail_20' ) end [2025-04-03 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:28:27] Production.INFO: ==16214== Releasing lock... [2025-04-03 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:28:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:29:06 [end_date_ymd] => 2025-04-03 11:29:06 [RateCDR] => 1 ) [2025-04-03 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:29:06' and `end` < '2025-04-03 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:29:20] Production.INFO: count ==5438 [2025-04-03 11:29:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:29:06 - End Time 2025-04-03 11:29:06 [2025-04-03 11:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825210', 'tblTempUsageDetail_20' ) start [2025-04-03 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825210', 'tblTempUsageDetail_20' ) end [2025-04-03 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825210', 'tblTempVendorCDR_20' ) start [2025-04-03 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825210', 'tblTempVendorCDR_20' ) end [2025-04-03 11:29:23] Production.INFO: ProcessCDR(1,14825210,1,1,2) [2025-04-03 11:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825210', 'tblTempUsageDetail_20' ) start [2025-04-03 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825210', 'tblTempUsageDetail_20' ) end [2025-04-03 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:29:28] Production.INFO: ==16296== Releasing lock... [2025-04-03 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:29:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-03 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:30:06 [end_date_ymd] => 2025-04-03 11:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:30:06' and `end` < '2025-04-03 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-03 11:30:20] Production.INFO: count ==5447 [2025-04-03 11:30:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:30:06 - End Time 2025-04-03 11:30:06 [2025-04-03 11:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825216', 'tblTempUsageDetail_20' ) start [2025-04-03 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825216', 'tblTempUsageDetail_20' ) end [2025-04-03 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825216', 'tblTempVendorCDR_20' ) start [2025-04-03 11:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825216', 'tblTempVendorCDR_20' ) end [2025-04-03 11:30:23] Production.INFO: ProcessCDR(1,14825216,1,1,2) [2025-04-03 11:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825216', 'tblTempUsageDetail_20' ) start [2025-04-03 11:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825216', 'tblTempUsageDetail_20' ) end [2025-04-03 11:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:30:28] Production.INFO: ==16388== Releasing lock... [2025-04-03 11:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:30:28] Production.INFO: 68.75 MB #Memory Used# [2025-04-03 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:31:06 [end_date_ymd] => 2025-04-03 11:31:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:31:06' and `end` < '2025-04-03 11: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-03 11:31:20] Production.INFO: count ==5546 [2025-04-03 11:31:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:31:06 - End Time 2025-04-03 11:31:06 [2025-04-03 11:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825221', 'tblTempUsageDetail_20' ) start [2025-04-03 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825221', 'tblTempUsageDetail_20' ) end [2025-04-03 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825221', 'tblTempVendorCDR_20' ) start [2025-04-03 11:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825221', 'tblTempVendorCDR_20' ) end [2025-04-03 11:31:22] Production.INFO: ProcessCDR(1,14825221,1,1,2) [2025-04-03 11:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825221', 'tblTempUsageDetail_20' ) start [2025-04-03 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825221', 'tblTempUsageDetail_20' ) end [2025-04-03 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:31:28] Production.INFO: ==16472== Releasing lock... [2025-04-03 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:31:28] Production.INFO: 69.5 MB #Memory Used# [2025-04-03 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:32:05 [end_date_ymd] => 2025-04-03 11:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:32:05' and `end` < '2025-04-03 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-03 11:32:18] Production.INFO: count ==5549 [2025-04-03 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:32:05 - End Time 2025-04-03 11:32:05 [2025-04-03 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825226', 'tblTempUsageDetail_20' ) start [2025-04-03 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825226', 'tblTempUsageDetail_20' ) end [2025-04-03 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825226', 'tblTempVendorCDR_20' ) start [2025-04-03 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825226', 'tblTempVendorCDR_20' ) end [2025-04-03 11:32:21] Production.INFO: ProcessCDR(1,14825226,1,1,2) [2025-04-03 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825226', 'tblTempUsageDetail_20' ) start [2025-04-03 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825226', 'tblTempUsageDetail_20' ) end [2025-04-03 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:32:25] Production.INFO: ==16555== Releasing lock... [2025-04-03 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:32:25] Production.INFO: 69.5 MB #Memory Used# [2025-04-03 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:33:05 [end_date_ymd] => 2025-04-03 11:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:33:05' and `end` < '2025-04-03 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-03 11:33:19] Production.INFO: count ==5587 [2025-04-03 11:33:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:33:05 - End Time 2025-04-03 11:33:05 [2025-04-03 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825231', 'tblTempUsageDetail_20' ) start [2025-04-03 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825231', 'tblTempUsageDetail_20' ) end [2025-04-03 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825231', 'tblTempVendorCDR_20' ) start [2025-04-03 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825231', 'tblTempVendorCDR_20' ) end [2025-04-03 11:33:22] Production.INFO: ProcessCDR(1,14825231,1,1,2) [2025-04-03 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825231', 'tblTempUsageDetail_20' ) start [2025-04-03 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825231', 'tblTempUsageDetail_20' ) end [2025-04-03 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:33:28] Production.INFO: ==16637== Releasing lock... [2025-04-03 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:33:28] Production.INFO: 69.75 MB #Memory Used# [2025-04-03 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:34:05 [end_date_ymd] => 2025-04-03 11:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:34:05' and `end` < '2025-04-03 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-03 11:34:19] Production.INFO: count ==5588 [2025-04-03 11:34:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:34:05 - End Time 2025-04-03 11:34:05 [2025-04-03 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825236', 'tblTempUsageDetail_20' ) start [2025-04-03 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825236', 'tblTempUsageDetail_20' ) end [2025-04-03 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825236', 'tblTempVendorCDR_20' ) start [2025-04-03 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825236', 'tblTempVendorCDR_20' ) end [2025-04-03 11:34:22] Production.INFO: ProcessCDR(1,14825236,1,1,2) [2025-04-03 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825236', 'tblTempUsageDetail_20' ) start [2025-04-03 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825236', 'tblTempUsageDetail_20' ) end [2025-04-03 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:34:27] Production.INFO: ==16727== Releasing lock... [2025-04-03 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:34:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-03 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:35:05 [end_date_ymd] => 2025-04-03 11:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:35:05' and `end` < '2025-04-03 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-03 11:35:19] Production.INFO: count ==5597 [2025-04-03 11:35:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:35:05 - End Time 2025-04-03 11:35:05 [2025-04-03 11:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825241', 'tblTempUsageDetail_20' ) start [2025-04-03 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825241', 'tblTempUsageDetail_20' ) end [2025-04-03 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825241', 'tblTempVendorCDR_20' ) start [2025-04-03 11:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825241', 'tblTempVendorCDR_20' ) end [2025-04-03 11:35:22] Production.INFO: ProcessCDR(1,14825241,1,1,2) [2025-04-03 11:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825241', 'tblTempUsageDetail_20' ) start [2025-04-03 11:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825241', 'tblTempUsageDetail_20' ) end [2025-04-03 11:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:35:27] Production.INFO: ==16802== Releasing lock... [2025-04-03 11:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:35:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-03 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:36:05 [end_date_ymd] => 2025-04-03 11:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:36:05' and `end` < '2025-04-03 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-03 11:36:19] Production.INFO: count ==5634 [2025-04-03 11:36:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:36:05 - End Time 2025-04-03 11:36:05 [2025-04-03 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825246', 'tblTempUsageDetail_20' ) start [2025-04-03 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825246', 'tblTempUsageDetail_20' ) end [2025-04-03 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825246', 'tblTempVendorCDR_20' ) start [2025-04-03 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825246', 'tblTempVendorCDR_20' ) end [2025-04-03 11:36:22] Production.INFO: ProcessCDR(1,14825246,1,1,2) [2025-04-03 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825246', 'tblTempUsageDetail_20' ) start [2025-04-03 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825246', 'tblTempUsageDetail_20' ) end [2025-04-03 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:36:28] Production.INFO: ==16884== Releasing lock... [2025-04-03 11:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:36:28] Production.INFO: 70.25 MB #Memory Used# [2025-04-03 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:37:05 [end_date_ymd] => 2025-04-03 11:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:37:05' and `end` < '2025-04-03 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-03 11:37:19] Production.INFO: count ==5653 [2025-04-03 11:37:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:37:05 - End Time 2025-04-03 11:37:05 [2025-04-03 11:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825251', 'tblTempUsageDetail_20' ) start [2025-04-03 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825251', 'tblTempUsageDetail_20' ) end [2025-04-03 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825251', 'tblTempVendorCDR_20' ) start [2025-04-03 11:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825251', 'tblTempVendorCDR_20' ) end [2025-04-03 11:37:22] Production.INFO: ProcessCDR(1,14825251,1,1,2) [2025-04-03 11:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825251', 'tblTempUsageDetail_20' ) start [2025-04-03 11:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825251', 'tblTempUsageDetail_20' ) end [2025-04-03 11:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:37:27] Production.INFO: ==17002== Releasing lock... [2025-04-03 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:37:27] Production.INFO: 70.25 MB #Memory Used# [2025-04-03 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:38:05 [end_date_ymd] => 2025-04-03 11:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:38:05' and `end` < '2025-04-03 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-03 11:38:19] Production.INFO: count ==5683 [2025-04-03 11:38:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:38:05 - End Time 2025-04-03 11:38:05 [2025-04-03 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825256', 'tblTempUsageDetail_20' ) start [2025-04-03 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825256', 'tblTempUsageDetail_20' ) end [2025-04-03 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825256', 'tblTempVendorCDR_20' ) start [2025-04-03 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825256', 'tblTempVendorCDR_20' ) end [2025-04-03 11:38:22] Production.INFO: ProcessCDR(1,14825256,1,1,2) [2025-04-03 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825256', 'tblTempUsageDetail_20' ) start [2025-04-03 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825256', 'tblTempUsageDetail_20' ) end [2025-04-03 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:38:27] Production.INFO: ==17086== Releasing lock... [2025-04-03 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:38:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-03 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:39:06 [end_date_ymd] => 2025-04-03 11:39:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:39:06' and `end` < '2025-04-03 11: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-03 11:39:20] Production.INFO: count ==5708 [2025-04-03 11:39:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:39:06 - End Time 2025-04-03 11:39:06 [2025-04-03 11:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825261', 'tblTempUsageDetail_20' ) start [2025-04-03 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825261', 'tblTempUsageDetail_20' ) end [2025-04-03 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825261', 'tblTempVendorCDR_20' ) start [2025-04-03 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825261', 'tblTempVendorCDR_20' ) end [2025-04-03 11:39:23] Production.INFO: ProcessCDR(1,14825261,1,1,2) [2025-04-03 11:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825261', 'tblTempUsageDetail_20' ) start [2025-04-03 11:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825261', 'tblTempUsageDetail_20' ) end [2025-04-03 11:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:39:28] Production.INFO: ==17173== Releasing lock... [2025-04-03 11:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:39:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-03 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:40:06 [end_date_ymd] => 2025-04-03 11:40:06 [RateCDR] => 1 ) [2025-04-03 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:40:06' and `end` < '2025-04-03 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:40:20] Production.INFO: count ==5780 [2025-04-03 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:40:06 - End Time 2025-04-03 11:40:06 [2025-04-03 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825267', 'tblTempUsageDetail_20' ) start [2025-04-03 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825267', 'tblTempUsageDetail_20' ) end [2025-04-03 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825267', 'tblTempVendorCDR_20' ) start [2025-04-03 11:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825267', 'tblTempVendorCDR_20' ) end [2025-04-03 11:40:23] Production.INFO: ProcessCDR(1,14825267,1,1,2) [2025-04-03 11:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825267', 'tblTempUsageDetail_20' ) start [2025-04-03 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825267', 'tblTempUsageDetail_20' ) end [2025-04-03 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:40:28] Production.INFO: ==17253== Releasing lock... [2025-04-03 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:40:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-03 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:41:05 [end_date_ymd] => 2025-04-03 11:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:41:05' and `end` < '2025-04-03 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-03 11:41:19] Production.INFO: count ==5878 [2025-04-03 11:41:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:41:05 - End Time 2025-04-03 11:41:05 [2025-04-03 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825272', 'tblTempUsageDetail_20' ) start [2025-04-03 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825272', 'tblTempUsageDetail_20' ) end [2025-04-03 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825272', 'tblTempVendorCDR_20' ) start [2025-04-03 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825272', 'tblTempVendorCDR_20' ) end [2025-04-03 11:41:22] Production.INFO: ProcessCDR(1,14825272,1,1,2) [2025-04-03 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825272', 'tblTempUsageDetail_20' ) start [2025-04-03 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825272', 'tblTempUsageDetail_20' ) end [2025-04-03 11:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:41:27] Production.INFO: ==17331== Releasing lock... [2025-04-03 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:41:27] Production.INFO: 72 MB #Memory Used# [2025-04-03 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:42:06 [end_date_ymd] => 2025-04-03 11:42:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:42:06' and `end` < '2025-04-03 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-03 11:42:20] Production.INFO: count ==5890 [2025-04-03 11:42:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:42:06 - End Time 2025-04-03 11:42:06 [2025-04-03 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825277', 'tblTempUsageDetail_20' ) start [2025-04-03 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825277', 'tblTempUsageDetail_20' ) end [2025-04-03 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825277', 'tblTempVendorCDR_20' ) start [2025-04-03 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825277', 'tblTempVendorCDR_20' ) end [2025-04-03 11:42:23] Production.INFO: ProcessCDR(1,14825277,1,1,2) [2025-04-03 11:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825277', 'tblTempUsageDetail_20' ) start [2025-04-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825277', 'tblTempUsageDetail_20' ) end [2025-04-03 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:42:28] Production.INFO: ==17409== Releasing lock... [2025-04-03 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:42:28] Production.INFO: 72 MB #Memory Used# [2025-04-03 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:43:06 [end_date_ymd] => 2025-04-03 11:43:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:43:06' and `end` < '2025-04-03 11: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-03 11:43:19] Production.INFO: count ==5893 [2025-04-03 11:43:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:43:06 - End Time 2025-04-03 11:43:06 [2025-04-03 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825282', 'tblTempUsageDetail_20' ) start [2025-04-03 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825282', 'tblTempUsageDetail_20' ) end [2025-04-03 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825282', 'tblTempVendorCDR_20' ) start [2025-04-03 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825282', 'tblTempVendorCDR_20' ) end [2025-04-03 11:43:22] Production.INFO: ProcessCDR(1,14825282,1,1,2) [2025-04-03 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825282', 'tblTempUsageDetail_20' ) start [2025-04-03 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825282', 'tblTempUsageDetail_20' ) end [2025-04-03 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:43:28] Production.INFO: ==17487== Releasing lock... [2025-04-03 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:43:28] Production.INFO: 72 MB #Memory Used# [2025-04-03 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:44:06 [end_date_ymd] => 2025-04-03 11:44:06 [RateCDR] => 1 ) [2025-04-03 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:44:06' and `end` < '2025-04-03 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:44:19] Production.INFO: count ==5929 [2025-04-03 11:44:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:44:06 - End Time 2025-04-03 11:44:06 [2025-04-03 11:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825287', 'tblTempUsageDetail_20' ) start [2025-04-03 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825287', 'tblTempUsageDetail_20' ) end [2025-04-03 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825287', 'tblTempVendorCDR_20' ) start [2025-04-03 11:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825287', 'tblTempVendorCDR_20' ) end [2025-04-03 11:44:22] Production.INFO: ProcessCDR(1,14825287,1,1,2) [2025-04-03 11:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825287', 'tblTempUsageDetail_20' ) start [2025-04-03 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825287', 'tblTempUsageDetail_20' ) end [2025-04-03 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:44:28] Production.INFO: ==17575== Releasing lock... [2025-04-03 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:44:28] Production.INFO: 72.25 MB #Memory Used# [2025-04-03 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:45:05 [end_date_ymd] => 2025-04-03 11:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:45:05' and `end` < '2025-04-03 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-03 11:45:19] Production.INFO: count ==5936 [2025-04-03 11:45:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:45:05 - End Time 2025-04-03 11:45:05 [2025-04-03 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825292', 'tblTempUsageDetail_20' ) start [2025-04-03 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825292', 'tblTempUsageDetail_20' ) end [2025-04-03 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825292', 'tblTempVendorCDR_20' ) start [2025-04-03 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825292', 'tblTempVendorCDR_20' ) end [2025-04-03 11:45:22] Production.INFO: ProcessCDR(1,14825292,1,1,2) [2025-04-03 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825292', 'tblTempUsageDetail_20' ) start [2025-04-03 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825292', 'tblTempUsageDetail_20' ) end [2025-04-03 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:45:27] Production.INFO: ==17662== Releasing lock... [2025-04-03 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:45:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-03 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:46:06 [end_date_ymd] => 2025-04-03 11:46:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:46:06' and `end` < '2025-04-03 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-03 11:46:19] Production.INFO: count ==5948 [2025-04-03 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:46:06 - End Time 2025-04-03 11:46:06 [2025-04-03 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825297', 'tblTempUsageDetail_20' ) start [2025-04-03 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825297', 'tblTempUsageDetail_20' ) end [2025-04-03 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825297', 'tblTempVendorCDR_20' ) start [2025-04-03 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825297', 'tblTempVendorCDR_20' ) end [2025-04-03 11:46:22] Production.INFO: ProcessCDR(1,14825297,1,1,2) [2025-04-03 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825297', 'tblTempUsageDetail_20' ) start [2025-04-03 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825297', 'tblTempUsageDetail_20' ) end [2025-04-03 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:46:27] Production.INFO: ==17741== Releasing lock... [2025-04-03 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:46:27] Production.INFO: 72.5 MB #Memory Used# [2025-04-03 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:47:05 [end_date_ymd] => 2025-04-03 11:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:47:05' and `end` < '2025-04-03 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-03 11:47:19] Production.INFO: count ==5958 [2025-04-03 11:47:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:47:05 - End Time 2025-04-03 11:47:05 [2025-04-03 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825302', 'tblTempUsageDetail_20' ) start [2025-04-03 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825302', 'tblTempUsageDetail_20' ) end [2025-04-03 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825302', 'tblTempVendorCDR_20' ) start [2025-04-03 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825302', 'tblTempVendorCDR_20' ) end [2025-04-03 11:47:22] Production.INFO: ProcessCDR(1,14825302,1,1,2) [2025-04-03 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825302', 'tblTempUsageDetail_20' ) start [2025-04-03 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825302', 'tblTempUsageDetail_20' ) end [2025-04-03 11:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:47:28] Production.INFO: ==17821== Releasing lock... [2025-04-03 11:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:47:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-03 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:48:05 [end_date_ymd] => 2025-04-03 11:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:48:05' and `end` < '2025-04-03 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-03 11:48:19] Production.INFO: count ==5970 [2025-04-03 11:48:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:48:05 - End Time 2025-04-03 11:48:05 [2025-04-03 11:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825307', 'tblTempUsageDetail_20' ) start [2025-04-03 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825307', 'tblTempUsageDetail_20' ) end [2025-04-03 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825307', 'tblTempVendorCDR_20' ) start [2025-04-03 11:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825307', 'tblTempVendorCDR_20' ) end [2025-04-03 11:48:22] Production.INFO: ProcessCDR(1,14825307,1,1,2) [2025-04-03 11:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825307', 'tblTempUsageDetail_20' ) start [2025-04-03 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825307', 'tblTempUsageDetail_20' ) end [2025-04-03 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:48:27] Production.INFO: ==17902== Releasing lock... [2025-04-03 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:48:27] Production.INFO: 72.75 MB #Memory Used# [2025-04-03 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:49:05 [end_date_ymd] => 2025-04-03 11:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:49:05' and `end` < '2025-04-03 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-03 11:49:19] Production.INFO: count ==5993 [2025-04-03 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-03 08:49:05 - End Time 2025-04-03 11:49:05 [2025-04-03 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825312', 'tblTempUsageDetail_20' ) start [2025-04-03 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825312', 'tblTempUsageDetail_20' ) end [2025-04-03 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825312', 'tblTempVendorCDR_20' ) start [2025-04-03 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825312', 'tblTempVendorCDR_20' ) end [2025-04-03 11:49:21] Production.INFO: ProcessCDR(1,14825312,1,1,2) [2025-04-03 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825312', 'tblTempUsageDetail_20' ) start [2025-04-03 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825312', 'tblTempUsageDetail_20' ) end [2025-04-03 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:49:26] Production.INFO: ==17984== Releasing lock... [2025-04-03 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:49:26] Production.INFO: 72.75 MB #Memory Used# [2025-04-03 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:50:07 [end_date_ymd] => 2025-04-03 11:50:07 [RateCDR] => 1 ) [2025-04-03 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:50:07' and `end` < '2025-04-03 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:50:20] Production.INFO: count ==6007 [2025-04-03 11:50:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:50:07 - End Time 2025-04-03 11:50:07 [2025-04-03 11:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825318', 'tblTempUsageDetail_20' ) start [2025-04-03 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825318', 'tblTempUsageDetail_20' ) end [2025-04-03 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825318', 'tblTempVendorCDR_20' ) start [2025-04-03 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825318', 'tblTempVendorCDR_20' ) end [2025-04-03 11:50:23] Production.INFO: ProcessCDR(1,14825318,1,1,2) [2025-04-03 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825318', 'tblTempUsageDetail_20' ) start [2025-04-03 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825318', 'tblTempUsageDetail_20' ) end [2025-04-03 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:50:28] Production.INFO: ==18068== Releasing lock... [2025-04-03 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:50:28] Production.INFO: 73 MB #Memory Used# [2025-04-03 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:51:05 [end_date_ymd] => 2025-04-03 11:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:51:05' and `end` < '2025-04-03 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-03 11:51:19] Production.INFO: count ==6045 [2025-04-03 11:51:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:51:05 - End Time 2025-04-03 11:51:05 [2025-04-03 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825323', 'tblTempUsageDetail_20' ) start [2025-04-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825323', 'tblTempUsageDetail_20' ) end [2025-04-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825323', 'tblTempVendorCDR_20' ) start [2025-04-03 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825323', 'tblTempVendorCDR_20' ) end [2025-04-03 11:51:22] Production.INFO: ProcessCDR(1,14825323,1,1,2) [2025-04-03 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825323', 'tblTempUsageDetail_20' ) start [2025-04-03 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825323', 'tblTempUsageDetail_20' ) end [2025-04-03 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:51:27] Production.INFO: ==18150== Releasing lock... [2025-04-03 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:51:27] Production.INFO: 73.25 MB #Memory Used# [2025-04-03 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:52:06 [end_date_ymd] => 2025-04-03 11:52:06 [RateCDR] => 1 ) [2025-04-03 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:52:06' and `end` < '2025-04-03 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:52:19] Production.INFO: count ==6105 [2025-04-03 11:52:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:52:06 - End Time 2025-04-03 11:52:06 [2025-04-03 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825328', 'tblTempUsageDetail_20' ) start [2025-04-03 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825328', 'tblTempUsageDetail_20' ) end [2025-04-03 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825328', 'tblTempVendorCDR_20' ) start [2025-04-03 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825328', 'tblTempVendorCDR_20' ) end [2025-04-03 11:52:22] Production.INFO: ProcessCDR(1,14825328,1,1,2) [2025-04-03 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825328', 'tblTempUsageDetail_20' ) start [2025-04-03 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825328', 'tblTempUsageDetail_20' ) end [2025-04-03 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:52:28] Production.INFO: ==18269== Releasing lock... [2025-04-03 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:52:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-03 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:53:05 [end_date_ymd] => 2025-04-03 11:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:53:05' and `end` < '2025-04-03 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-03 11:53:19] Production.INFO: count ==6126 [2025-04-03 11:53:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:53:05 - End Time 2025-04-03 11:53:05 [2025-04-03 11:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825333', 'tblTempUsageDetail_20' ) start [2025-04-03 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825333', 'tblTempUsageDetail_20' ) end [2025-04-03 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825333', 'tblTempVendorCDR_20' ) start [2025-04-03 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825333', 'tblTempVendorCDR_20' ) end [2025-04-03 11:53:22] Production.INFO: ProcessCDR(1,14825333,1,1,2) [2025-04-03 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825333', 'tblTempUsageDetail_20' ) start [2025-04-03 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825333', 'tblTempUsageDetail_20' ) end [2025-04-03 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:53:27] Production.INFO: ==18350== Releasing lock... [2025-04-03 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:53:27] Production.INFO: 73.75 MB #Memory Used# [2025-04-03 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:54:06 [end_date_ymd] => 2025-04-03 11:54:06 [RateCDR] => 1 ) [2025-04-03 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-03 08:54:06' and `end` < '2025-04-03 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-03 11:54:20] Production.INFO: count ==6118 [2025-04-03 11:54:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:54:06 - End Time 2025-04-03 11:54:06 [2025-04-03 11:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825338', 'tblTempUsageDetail_20' ) start [2025-04-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825338', 'tblTempUsageDetail_20' ) end [2025-04-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825338', 'tblTempVendorCDR_20' ) start [2025-04-03 11:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825338', 'tblTempVendorCDR_20' ) end [2025-04-03 11:54:23] Production.INFO: ProcessCDR(1,14825338,1,1,2) [2025-04-03 11:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825338', 'tblTempUsageDetail_20' ) start [2025-04-03 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825338', 'tblTempUsageDetail_20' ) end [2025-04-03 11:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:54:28] Production.INFO: ==18431== Releasing lock... [2025-04-03 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:54:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-03 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:55:05 [end_date_ymd] => 2025-04-03 11:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 08:55:05' and `end` < '2025-04-03 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-03 11:55:19] Production.INFO: count ==6141 [2025-04-03 11:55:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:55:05 - End Time 2025-04-03 11:55:05 [2025-04-03 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825343', 'tblTempUsageDetail_20' ) start [2025-04-03 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825343', 'tblTempUsageDetail_20' ) end [2025-04-03 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825343', 'tblTempVendorCDR_20' ) start [2025-04-03 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825343', 'tblTempVendorCDR_20' ) end [2025-04-03 11:55:22] Production.INFO: ProcessCDR(1,14825343,1,1,2) [2025-04-03 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825343', 'tblTempUsageDetail_20' ) start [2025-04-03 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825343', 'tblTempUsageDetail_20' ) end [2025-04-03 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:55:28] Production.INFO: ==18508== Releasing lock... [2025-04-03 11:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:55:28] Production.INFO: 74 MB #Memory Used# [2025-04-03 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:56:06 [end_date_ymd] => 2025-04-03 11:56:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:56:06' and `end` < '2025-04-03 11: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-03 11:56:20] Production.INFO: count ==6149 [2025-04-03 11:56:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:56:06 - End Time 2025-04-03 11:56:06 [2025-04-03 11:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825348', 'tblTempUsageDetail_20' ) start [2025-04-03 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825348', 'tblTempUsageDetail_20' ) end [2025-04-03 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825348', 'tblTempVendorCDR_20' ) start [2025-04-03 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825348', 'tblTempVendorCDR_20' ) end [2025-04-03 11:56:24] Production.INFO: ProcessCDR(1,14825348,1,1,2) [2025-04-03 11:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825348', 'tblTempUsageDetail_20' ) start [2025-04-03 11:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825348', 'tblTempUsageDetail_20' ) end [2025-04-03 11:56:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:56:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:56:30] Production.INFO: ==18588== Releasing lock... [2025-04-03 11:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:56:30] Production.INFO: 74 MB #Memory Used# [2025-04-03 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:57:06 [end_date_ymd] => 2025-04-03 11:57:06 [RateCDR] => 1 ) [2025-04-03 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:57:06' and `end` < '2025-04-03 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:57:19] Production.INFO: count ==6283 [2025-04-03 11:57:22] Production.ERROR: pbx CDR StartTime 2025-04-03 08:57:06 - End Time 2025-04-03 11:57:06 [2025-04-03 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825353', 'tblTempUsageDetail_20' ) start [2025-04-03 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825353', 'tblTempUsageDetail_20' ) end [2025-04-03 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825353', 'tblTempVendorCDR_20' ) start [2025-04-03 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825353', 'tblTempVendorCDR_20' ) end [2025-04-03 11:57:22] Production.INFO: ProcessCDR(1,14825353,1,1,2) [2025-04-03 11:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825353', 'tblTempUsageDetail_20' ) start [2025-04-03 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825353', 'tblTempUsageDetail_20' ) end [2025-04-03 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:57:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:57:29] Production.INFO: ==18665== Releasing lock... [2025-04-03 11:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:57:29] Production.INFO: 75 MB #Memory Used# [2025-04-03 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:58:06 [end_date_ymd] => 2025-04-03 11:58:06 [RateCDR] => 1 ) [2025-04-03 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 08:58:06' and `end` < '2025-04-03 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 11:58:20] Production.INFO: count ==6294 [2025-04-03 11:58:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:58:06 - End Time 2025-04-03 11:58:06 [2025-04-03 11:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825358', 'tblTempUsageDetail_20' ) start [2025-04-03 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825358', 'tblTempUsageDetail_20' ) end [2025-04-03 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825358', 'tblTempVendorCDR_20' ) start [2025-04-03 11:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825358', 'tblTempVendorCDR_20' ) end [2025-04-03 11:58:24] Production.INFO: ProcessCDR(1,14825358,1,1,2) [2025-04-03 11:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825358', 'tblTempUsageDetail_20' ) start [2025-04-03 11:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825358', 'tblTempUsageDetail_20' ) end [2025-04-03 11:58:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:58:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:58:29] Production.INFO: ==18748== Releasing lock... [2025-04-03 11:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:58:29] Production.INFO: 75 MB #Memory Used# [2025-04-03 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 08:59:06 [end_date_ymd] => 2025-04-03 11:59:06 [RateCDR] => 1 ) [2025-04-03 11: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-03 08:59:06' and `end` < '2025-04-03 11: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-03 11:59:19] Production.INFO: count ==6283 [2025-04-03 11:59:23] Production.ERROR: pbx CDR StartTime 2025-04-03 08:59:06 - End Time 2025-04-03 11:59:06 [2025-04-03 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825363', 'tblTempUsageDetail_20' ) start [2025-04-03 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825363', 'tblTempUsageDetail_20' ) end [2025-04-03 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825363', 'tblTempVendorCDR_20' ) start [2025-04-03 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825363', 'tblTempVendorCDR_20' ) end [2025-04-03 11:59:23] Production.INFO: ProcessCDR(1,14825363,1,1,2) [2025-04-03 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825363', 'tblTempUsageDetail_20' ) start [2025-04-03 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825363', 'tblTempUsageDetail_20' ) end [2025-04-03 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 11:59:27] Production.INFO: ==18837== Releasing lock... [2025-04-03 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 11:59:27] Production.INFO: 75.25 MB #Memory Used# [2025-04-03 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:00:06 [end_date_ymd] => 2025-04-03 12:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:00:06' and `end` < '2025-04-03 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-03 12:00:20] Production.INFO: count ==6299 [2025-04-03 12:00:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:00:06 - End Time 2025-04-03 12:00:06 [2025-04-03 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825369', 'tblTempUsageDetail_20' ) start [2025-04-03 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825369', 'tblTempUsageDetail_20' ) end [2025-04-03 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825369', 'tblTempVendorCDR_20' ) start [2025-04-03 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825369', 'tblTempVendorCDR_20' ) end [2025-04-03 12:00:24] Production.INFO: ProcessCDR(1,14825369,1,1,2) [2025-04-03 12:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825369', 'tblTempUsageDetail_20' ) start [2025-04-03 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825369', 'tblTempUsageDetail_20' ) end [2025-04-03 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:00:29] Production.INFO: ==18915== Releasing lock... [2025-04-03 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:00:29] Production.INFO: 75.25 MB #Memory Used# [2025-04-03 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:01:05 [end_date_ymd] => 2025-04-03 12:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:01:05' and `end` < '2025-04-03 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-03 12:01:19] Production.INFO: count ==6385 [2025-04-03 12:01:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:01:05 - End Time 2025-04-03 12:01:05 [2025-04-03 12:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825374', 'tblTempUsageDetail_20' ) start [2025-04-03 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825374', 'tblTempUsageDetail_20' ) end [2025-04-03 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825374', 'tblTempVendorCDR_20' ) start [2025-04-03 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825374', 'tblTempVendorCDR_20' ) end [2025-04-03 12:01:23] Production.INFO: ProcessCDR(1,14825374,1,1,2) [2025-04-03 12:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825374', 'tblTempUsageDetail_20' ) start [2025-04-03 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825374', 'tblTempUsageDetail_20' ) end [2025-04-03 12:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:01:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:01:29] Production.INFO: ==19008== Releasing lock... [2025-04-03 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:01:29] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:02:06 [end_date_ymd] => 2025-04-03 12:02:06 [RateCDR] => 1 ) [2025-04-03 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:02:06' and `end` < '2025-04-03 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:02:20] Production.INFO: count ==6392 [2025-04-03 12:02:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:02:06 - End Time 2025-04-03 12:02:06 [2025-04-03 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825379', 'tblTempUsageDetail_20' ) start [2025-04-03 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825379', 'tblTempUsageDetail_20' ) end [2025-04-03 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825379', 'tblTempVendorCDR_20' ) start [2025-04-03 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825379', 'tblTempVendorCDR_20' ) end [2025-04-03 12:02:23] Production.INFO: ProcessCDR(1,14825379,1,1,2) [2025-04-03 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825379', 'tblTempUsageDetail_20' ) start [2025-04-03 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825379', 'tblTempUsageDetail_20' ) end [2025-04-03 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:02:28] Production.INFO: ==19095== Releasing lock... [2025-04-03 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:02:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:03:06 [end_date_ymd] => 2025-04-03 12:03:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:03:06' and `end` < '2025-04-03 12: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-03 12:03:20] Production.INFO: count ==6415 [2025-04-03 12:03:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:03:06 - End Time 2025-04-03 12:03:06 [2025-04-03 12:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825384', 'tblTempUsageDetail_20' ) start [2025-04-03 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825384', 'tblTempUsageDetail_20' ) end [2025-04-03 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825384', 'tblTempVendorCDR_20' ) start [2025-04-03 12:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825384', 'tblTempVendorCDR_20' ) end [2025-04-03 12:03:23] Production.INFO: ProcessCDR(1,14825384,1,1,2) [2025-04-03 12:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825384', 'tblTempUsageDetail_20' ) start [2025-04-03 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825384', 'tblTempUsageDetail_20' ) end [2025-04-03 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:03:27] Production.INFO: ==19177== Releasing lock... [2025-04-03 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:03:27] Production.INFO: 76 MB #Memory Used# [2025-04-03 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:04:05 [end_date_ymd] => 2025-04-03 12:04:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:04:05' and `end` < '2025-04-03 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-03 12:04:19] Production.INFO: count ==6421 [2025-04-03 12:04:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:04:05 - End Time 2025-04-03 12:04:05 [2025-04-03 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825389', 'tblTempUsageDetail_20' ) start [2025-04-03 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825389', 'tblTempUsageDetail_20' ) end [2025-04-03 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825389', 'tblTempVendorCDR_20' ) start [2025-04-03 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825389', 'tblTempVendorCDR_20' ) end [2025-04-03 12:04:22] Production.INFO: ProcessCDR(1,14825389,1,1,2) [2025-04-03 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825389', 'tblTempUsageDetail_20' ) start [2025-04-03 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825389', 'tblTempUsageDetail_20' ) end [2025-04-03 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:04:28] Production.INFO: ==19259== Releasing lock... [2025-04-03 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:04:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:05:06 [end_date_ymd] => 2025-04-03 12:05:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:05:06' and `end` < '2025-04-03 12: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-03 12:05:19] Production.INFO: count ==6414 [2025-04-03 12:05:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:05:06 - End Time 2025-04-03 12:05:06 [2025-04-03 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825394', 'tblTempUsageDetail_20' ) start [2025-04-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825394', 'tblTempUsageDetail_20' ) end [2025-04-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825394', 'tblTempVendorCDR_20' ) start [2025-04-03 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825394', 'tblTempVendorCDR_20' ) end [2025-04-03 12:05:23] Production.INFO: ProcessCDR(1,14825394,1,1,2) [2025-04-03 12:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825394', 'tblTempUsageDetail_20' ) start [2025-04-03 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825394', 'tblTempUsageDetail_20' ) end [2025-04-03 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:05:28] Production.INFO: ==19339== Releasing lock... [2025-04-03 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:05:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:06:06 [end_date_ymd] => 2025-04-03 12:06:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:06:06' and `end` < '2025-04-03 12: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-03 12:06:20] Production.INFO: count ==6445 [2025-04-03 12:06:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:06:06 - End Time 2025-04-03 12:06:06 [2025-04-03 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825399', 'tblTempUsageDetail_20' ) start [2025-04-03 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825399', 'tblTempUsageDetail_20' ) end [2025-04-03 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825399', 'tblTempVendorCDR_20' ) start [2025-04-03 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825399', 'tblTempVendorCDR_20' ) end [2025-04-03 12:06:23] Production.INFO: ProcessCDR(1,14825399,1,1,2) [2025-04-03 12:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825399', 'tblTempUsageDetail_20' ) start [2025-04-03 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825399', 'tblTempUsageDetail_20' ) end [2025-04-03 12:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:06:29] Production.INFO: ==19416== Releasing lock... [2025-04-03 12:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:06:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:07:05 [end_date_ymd] => 2025-04-03 12:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:07:05' and `end` < '2025-04-03 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-03 12:07:19] Production.INFO: count ==6451 [2025-04-03 12:07:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:07:05 - End Time 2025-04-03 12:07:05 [2025-04-03 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825404', 'tblTempUsageDetail_20' ) start [2025-04-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825404', 'tblTempUsageDetail_20' ) end [2025-04-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825404', 'tblTempVendorCDR_20' ) start [2025-04-03 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825404', 'tblTempVendorCDR_20' ) end [2025-04-03 12:07:23] Production.INFO: ProcessCDR(1,14825404,1,1,2) [2025-04-03 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825404', 'tblTempUsageDetail_20' ) start [2025-04-03 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825404', 'tblTempUsageDetail_20' ) end [2025-04-03 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:07:28] Production.INFO: ==19494== Releasing lock... [2025-04-03 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:07:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:08:06 [end_date_ymd] => 2025-04-03 12:08:06 [RateCDR] => 1 ) [2025-04-03 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:08:06' and `end` < '2025-04-03 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:08:20] Production.INFO: count ==6451 [2025-04-03 12:08:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:08:06 - End Time 2025-04-03 12:08:06 [2025-04-03 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825409', 'tblTempUsageDetail_20' ) start [2025-04-03 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825409', 'tblTempUsageDetail_20' ) end [2025-04-03 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825409', 'tblTempVendorCDR_20' ) start [2025-04-03 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825409', 'tblTempVendorCDR_20' ) end [2025-04-03 12:08:23] Production.INFO: ProcessCDR(1,14825409,1,1,2) [2025-04-03 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825409', 'tblTempUsageDetail_20' ) start [2025-04-03 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825409', 'tblTempUsageDetail_20' ) end [2025-04-03 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:08:28] Production.INFO: ==19612== Releasing lock... [2025-04-03 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:08:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:09:05 [end_date_ymd] => 2025-04-03 12:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:09:05' and `end` < '2025-04-03 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-03 12:09:19] Production.INFO: count ==6470 [2025-04-03 12:09:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:09:05 - End Time 2025-04-03 12:09:05 [2025-04-03 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825414', 'tblTempUsageDetail_20' ) start [2025-04-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825414', 'tblTempUsageDetail_20' ) end [2025-04-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825414', 'tblTempVendorCDR_20' ) start [2025-04-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825414', 'tblTempVendorCDR_20' ) end [2025-04-03 12:09:23] Production.INFO: ProcessCDR(1,14825414,1,1,2) [2025-04-03 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825414', 'tblTempUsageDetail_20' ) start [2025-04-03 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825414', 'tblTempUsageDetail_20' ) end [2025-04-03 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:09:29] Production.INFO: ==19689== Releasing lock... [2025-04-03 12:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:09:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:10:06 [end_date_ymd] => 2025-04-03 12:10:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:10:06' and `end` < '2025-04-03 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-03 12:10:20] Production.INFO: count ==6457 [2025-04-03 12:10:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:10:06 - End Time 2025-04-03 12:10:06 [2025-04-03 12:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825420', 'tblTempUsageDetail_20' ) start [2025-04-03 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825420', 'tblTempUsageDetail_20' ) end [2025-04-03 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825420', 'tblTempVendorCDR_20' ) start [2025-04-03 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825420', 'tblTempVendorCDR_20' ) end [2025-04-03 12:10:24] Production.INFO: ProcessCDR(1,14825420,1,1,2) [2025-04-03 12:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825420', 'tblTempUsageDetail_20' ) start [2025-04-03 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825420', 'tblTempUsageDetail_20' ) end [2025-04-03 12:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:10:29] Production.INFO: ==19768== Releasing lock... [2025-04-03 12:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:10:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:11:05 [end_date_ymd] => 2025-04-03 12:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:11:05' and `end` < '2025-04-03 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-03 12:11:19] Production.INFO: count ==6481 [2025-04-03 12:11:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:11:05 - End Time 2025-04-03 12:11:05 [2025-04-03 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825425', 'tblTempUsageDetail_20' ) start [2025-04-03 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825425', 'tblTempUsageDetail_20' ) end [2025-04-03 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825425', 'tblTempVendorCDR_20' ) start [2025-04-03 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825425', 'tblTempVendorCDR_20' ) end [2025-04-03 12:11:23] Production.INFO: ProcessCDR(1,14825425,1,1,2) [2025-04-03 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825425', 'tblTempUsageDetail_20' ) start [2025-04-03 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825425', 'tblTempUsageDetail_20' ) end [2025-04-03 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:11:28] Production.INFO: ==19853== Releasing lock... [2025-04-03 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:11:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:12:06 [end_date_ymd] => 2025-04-03 12:12:06 [RateCDR] => 1 ) [2025-04-03 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:12:06' and `end` < '2025-04-03 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:12:20] Production.INFO: count ==6472 [2025-04-03 12:12:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:12:06 - End Time 2025-04-03 12:12:06 [2025-04-03 12:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825430', 'tblTempUsageDetail_20' ) start [2025-04-03 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825430', 'tblTempUsageDetail_20' ) end [2025-04-03 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825430', 'tblTempVendorCDR_20' ) start [2025-04-03 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825430', 'tblTempVendorCDR_20' ) end [2025-04-03 12:12:23] Production.INFO: ProcessCDR(1,14825430,1,1,2) [2025-04-03 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825430', 'tblTempUsageDetail_20' ) start [2025-04-03 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825430', 'tblTempUsageDetail_20' ) end [2025-04-03 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:12:28] Production.INFO: ==19931== Releasing lock... [2025-04-03 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:12:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:13:05 [end_date_ymd] => 2025-04-03 12:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:13:05' and `end` < '2025-04-03 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-03 12:13:19] Production.INFO: count ==6463 [2025-04-03 12:13:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:13:05 - End Time 2025-04-03 12:13:05 [2025-04-03 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825435', 'tblTempUsageDetail_20' ) start [2025-04-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825435', 'tblTempUsageDetail_20' ) end [2025-04-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825435', 'tblTempVendorCDR_20' ) start [2025-04-03 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825435', 'tblTempVendorCDR_20' ) end [2025-04-03 12:13:22] Production.INFO: ProcessCDR(1,14825435,1,1,2) [2025-04-03 12:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825435', 'tblTempUsageDetail_20' ) start [2025-04-03 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825435', 'tblTempUsageDetail_20' ) end [2025-04-03 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:13:28] Production.INFO: ==20015== Releasing lock... [2025-04-03 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:13:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:14:06 [end_date_ymd] => 2025-04-03 12:14:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:14:06' and `end` < '2025-04-03 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-03 12:14:20] Production.INFO: count ==6430 [2025-04-03 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:14:06 - End Time 2025-04-03 12:14:06 [2025-04-03 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825440', 'tblTempUsageDetail_20' ) start [2025-04-03 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825440', 'tblTempUsageDetail_20' ) end [2025-04-03 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825440', 'tblTempVendorCDR_20' ) start [2025-04-03 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825440', 'tblTempVendorCDR_20' ) end [2025-04-03 12:14:23] Production.INFO: ProcessCDR(1,14825440,1,1,2) [2025-04-03 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825440', 'tblTempUsageDetail_20' ) start [2025-04-03 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825440', 'tblTempUsageDetail_20' ) end [2025-04-03 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:14:28] Production.INFO: ==20088== Releasing lock... [2025-04-03 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:14:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:15:05 [end_date_ymd] => 2025-04-03 12:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:15:05' and `end` < '2025-04-03 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-03 12:15:19] Production.INFO: count ==6464 [2025-04-03 12:15:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:15:05 - End Time 2025-04-03 12:15:05 [2025-04-03 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825445', 'tblTempUsageDetail_20' ) start [2025-04-03 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825445', 'tblTempUsageDetail_20' ) end [2025-04-03 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825445', 'tblTempVendorCDR_20' ) start [2025-04-03 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825445', 'tblTempVendorCDR_20' ) end [2025-04-03 12:15:22] Production.INFO: ProcessCDR(1,14825445,1,1,2) [2025-04-03 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825445', 'tblTempUsageDetail_20' ) start [2025-04-03 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825445', 'tblTempUsageDetail_20' ) end [2025-04-03 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:15:28] Production.INFO: ==20165== Releasing lock... [2025-04-03 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:15:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:16:06 [end_date_ymd] => 2025-04-03 12:16:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:16:06' and `end` < '2025-04-03 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-03 12:16:20] Production.INFO: count ==6474 [2025-04-03 12:16:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:16:06 - End Time 2025-04-03 12:16:06 [2025-04-03 12:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825450', 'tblTempUsageDetail_20' ) start [2025-04-03 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825450', 'tblTempUsageDetail_20' ) end [2025-04-03 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825450', 'tblTempVendorCDR_20' ) start [2025-04-03 12:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825450', 'tblTempVendorCDR_20' ) end [2025-04-03 12:16:23] Production.INFO: ProcessCDR(1,14825450,1,1,2) [2025-04-03 12:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825450', 'tblTempUsageDetail_20' ) start [2025-04-03 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825450', 'tblTempUsageDetail_20' ) end [2025-04-03 12:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:16:29] Production.INFO: ==20245== Releasing lock... [2025-04-03 12:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:16:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:17:05 [end_date_ymd] => 2025-04-03 12:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:17:05' and `end` < '2025-04-03 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-03 12:17:19] Production.INFO: count ==6496 [2025-04-03 12:17:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:17:05 - End Time 2025-04-03 12:17:05 [2025-04-03 12:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825455', 'tblTempUsageDetail_20' ) start [2025-04-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825455', 'tblTempUsageDetail_20' ) end [2025-04-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825455', 'tblTempVendorCDR_20' ) start [2025-04-03 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825455', 'tblTempVendorCDR_20' ) end [2025-04-03 12:17:22] Production.INFO: ProcessCDR(1,14825455,1,1,2) [2025-04-03 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825455', 'tblTempUsageDetail_20' ) start [2025-04-03 12:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825455', 'tblTempUsageDetail_20' ) end [2025-04-03 12:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:17:28] Production.INFO: ==20322== Releasing lock... [2025-04-03 12:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:17:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:18:06 [end_date_ymd] => 2025-04-03 12:18:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:18:06' and `end` < '2025-04-03 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-03 12:18:20] Production.INFO: count ==6552 [2025-04-03 12:18:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:18:06 - End Time 2025-04-03 12:18:06 [2025-04-03 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825460', 'tblTempUsageDetail_20' ) start [2025-04-03 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825460', 'tblTempUsageDetail_20' ) end [2025-04-03 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825460', 'tblTempVendorCDR_20' ) start [2025-04-03 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825460', 'tblTempVendorCDR_20' ) end [2025-04-03 12:18:23] Production.INFO: ProcessCDR(1,14825460,1,1,2) [2025-04-03 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825460', 'tblTempUsageDetail_20' ) start [2025-04-03 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825460', 'tblTempUsageDetail_20' ) end [2025-04-03 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:18:28] Production.INFO: ==20402== Releasing lock... [2025-04-03 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:18:28] Production.INFO: 77 MB #Memory Used# [2025-04-03 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:19:05 [end_date_ymd] => 2025-04-03 12:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:19:05' and `end` < '2025-04-03 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-03 12:19:19] Production.INFO: count ==6560 [2025-04-03 12:19:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:19:05 - End Time 2025-04-03 12:19:05 [2025-04-03 12:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825465', 'tblTempUsageDetail_20' ) start [2025-04-03 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825465', 'tblTempUsageDetail_20' ) end [2025-04-03 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825465', 'tblTempVendorCDR_20' ) start [2025-04-03 12:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825465', 'tblTempVendorCDR_20' ) end [2025-04-03 12:19:22] Production.INFO: ProcessCDR(1,14825465,1,1,2) [2025-04-03 12:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825465', 'tblTempUsageDetail_20' ) start [2025-04-03 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825465', 'tblTempUsageDetail_20' ) end [2025-04-03 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:19:27] Production.INFO: ==20482== Releasing lock... [2025-04-03 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:19:27] Production.INFO: 77 MB #Memory Used# [2025-04-03 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:20:06 [end_date_ymd] => 2025-04-03 12:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:20:06' and `end` < '2025-04-03 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-03 12:20:20] Production.INFO: count ==6568 [2025-04-03 12:20:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:20:06 - End Time 2025-04-03 12:20:06 [2025-04-03 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825470', 'tblTempUsageDetail_20' ) start [2025-04-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825470', 'tblTempUsageDetail_20' ) end [2025-04-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825470', 'tblTempVendorCDR_20' ) start [2025-04-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825470', 'tblTempVendorCDR_20' ) end [2025-04-03 12:20:23] Production.INFO: ProcessCDR(1,14825470,1,1,2) [2025-04-03 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825470', 'tblTempUsageDetail_20' ) start [2025-04-03 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825470', 'tblTempUsageDetail_20' ) end [2025-04-03 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:20:28] Production.INFO: ==20558== Releasing lock... [2025-04-03 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:20:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:21:05 [end_date_ymd] => 2025-04-03 12:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:21:05' and `end` < '2025-04-03 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-03 12:21:19] Production.INFO: count ==6624 [2025-04-03 12:21:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:21:05 - End Time 2025-04-03 12:21:05 [2025-04-03 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825476', 'tblTempUsageDetail_20' ) start [2025-04-03 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825476', 'tblTempUsageDetail_20' ) end [2025-04-03 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825476', 'tblTempVendorCDR_20' ) start [2025-04-03 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825476', 'tblTempVendorCDR_20' ) end [2025-04-03 12:21:23] Production.INFO: ProcessCDR(1,14825476,1,1,2) [2025-04-03 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825476', 'tblTempUsageDetail_20' ) start [2025-04-03 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825476', 'tblTempUsageDetail_20' ) end [2025-04-03 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:21:28] Production.INFO: ==20640== Releasing lock... [2025-04-03 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:21:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:22:06 [end_date_ymd] => 2025-04-03 12:22:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:22:06' and `end` < '2025-04-03 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-03 12:22:20] Production.INFO: count ==6638 [2025-04-03 12:22:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:22:06 - End Time 2025-04-03 12:22:06 [2025-04-03 12:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825481', 'tblTempUsageDetail_20' ) start [2025-04-03 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825481', 'tblTempUsageDetail_20' ) end [2025-04-03 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825481', 'tblTempVendorCDR_20' ) start [2025-04-03 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825481', 'tblTempVendorCDR_20' ) end [2025-04-03 12:22:23] Production.INFO: ProcessCDR(1,14825481,1,1,2) [2025-04-03 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825481', 'tblTempUsageDetail_20' ) start [2025-04-03 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825481', 'tblTempUsageDetail_20' ) end [2025-04-03 12:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:22:29] Production.INFO: ==20719== Releasing lock... [2025-04-03 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:22:29] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:23:05 [end_date_ymd] => 2025-04-03 12:23:05 [RateCDR] => 1 ) [2025-04-03 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:23:05' and `end` < '2025-04-03 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:23:19] Production.INFO: count ==6654 [2025-04-03 12:23:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:23:05 - End Time 2025-04-03 12:23:05 [2025-04-03 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825486', 'tblTempUsageDetail_20' ) start [2025-04-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825486', 'tblTempUsageDetail_20' ) end [2025-04-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825486', 'tblTempVendorCDR_20' ) start [2025-04-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825486', 'tblTempVendorCDR_20' ) end [2025-04-03 12:23:23] Production.INFO: ProcessCDR(1,14825486,1,1,2) [2025-04-03 12:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825486', 'tblTempUsageDetail_20' ) start [2025-04-03 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825486', 'tblTempUsageDetail_20' ) end [2025-04-03 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:23:28] Production.INFO: ==20838== Releasing lock... [2025-04-03 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:23:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:24:06 [end_date_ymd] => 2025-04-03 12:24:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:24:06' and `end` < '2025-04-03 12: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-03 12:24:20] Production.INFO: count ==6660 [2025-04-03 12:24:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:24:06 - End Time 2025-04-03 12:24:06 [2025-04-03 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825491', 'tblTempUsageDetail_20' ) start [2025-04-03 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825491', 'tblTempUsageDetail_20' ) end [2025-04-03 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825491', 'tblTempVendorCDR_20' ) start [2025-04-03 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825491', 'tblTempVendorCDR_20' ) end [2025-04-03 12:24:23] Production.INFO: ProcessCDR(1,14825491,1,1,2) [2025-04-03 12:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825491', 'tblTempUsageDetail_20' ) start [2025-04-03 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825491', 'tblTempUsageDetail_20' ) end [2025-04-03 12:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:24:29] Production.INFO: ==20914== Releasing lock... [2025-04-03 12:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:24:29] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:25:06 [end_date_ymd] => 2025-04-03 12:25:06 [RateCDR] => 1 ) [2025-04-03 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:25:06' and `end` < '2025-04-03 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:25:20] Production.INFO: count ==6681 [2025-04-03 12:25:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:25:06 - End Time 2025-04-03 12:25:06 [2025-04-03 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825496', 'tblTempUsageDetail_20' ) start [2025-04-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825496', 'tblTempUsageDetail_20' ) end [2025-04-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825496', 'tblTempVendorCDR_20' ) start [2025-04-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825496', 'tblTempVendorCDR_20' ) end [2025-04-03 12:25:23] Production.INFO: ProcessCDR(1,14825496,1,1,2) [2025-04-03 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825496', 'tblTempUsageDetail_20' ) start [2025-04-03 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825496', 'tblTempUsageDetail_20' ) end [2025-04-03 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:25:28] Production.INFO: ==20988== Releasing lock... [2025-04-03 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:25:28] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:26:05 [end_date_ymd] => 2025-04-03 12:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:26:05' and `end` < '2025-04-03 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-03 12:26:20] Production.INFO: count ==6688 [2025-04-03 12:26:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:26:05 - End Time 2025-04-03 12:26:05 [2025-04-03 12:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825501', 'tblTempUsageDetail_20' ) start [2025-04-03 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825501', 'tblTempUsageDetail_20' ) end [2025-04-03 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825501', 'tblTempVendorCDR_20' ) start [2025-04-03 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825501', 'tblTempVendorCDR_20' ) end [2025-04-03 12:26:23] Production.INFO: ProcessCDR(1,14825501,1,1,2) [2025-04-03 12:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825501', 'tblTempUsageDetail_20' ) start [2025-04-03 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825501', 'tblTempUsageDetail_20' ) end [2025-04-03 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:26:28] Production.INFO: ==21064== Releasing lock... [2025-04-03 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:26:28] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:27:05 [end_date_ymd] => 2025-04-03 12:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:27:05' and `end` < '2025-04-03 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-03 12:27:19] Production.INFO: count ==6678 [2025-04-03 12:27:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:27:05 - End Time 2025-04-03 12:27:05 [2025-04-03 12:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825506', 'tblTempUsageDetail_20' ) start [2025-04-03 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825506', 'tblTempUsageDetail_20' ) end [2025-04-03 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825506', 'tblTempVendorCDR_20' ) start [2025-04-03 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825506', 'tblTempVendorCDR_20' ) end [2025-04-03 12:27:22] Production.INFO: ProcessCDR(1,14825506,1,1,2) [2025-04-03 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825506', 'tblTempUsageDetail_20' ) start [2025-04-03 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825506', 'tblTempUsageDetail_20' ) end [2025-04-03 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:27:27] Production.INFO: ==21142== Releasing lock... [2025-04-03 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:27:27] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:28:06 [end_date_ymd] => 2025-04-03 12:28:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:28:06' and `end` < '2025-04-03 12: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-03 12:28:20] Production.INFO: count ==6708 [2025-04-03 12:28:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:28:06 - End Time 2025-04-03 12:28:06 [2025-04-03 12:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825511', 'tblTempUsageDetail_20' ) start [2025-04-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825511', 'tblTempUsageDetail_20' ) end [2025-04-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825511', 'tblTempVendorCDR_20' ) start [2025-04-03 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825511', 'tblTempVendorCDR_20' ) end [2025-04-03 12:28:24] Production.INFO: ProcessCDR(1,14825511,1,1,2) [2025-04-03 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825511', 'tblTempUsageDetail_20' ) start [2025-04-03 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825511', 'tblTempUsageDetail_20' ) end [2025-04-03 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:28:29] Production.INFO: ==21220== Releasing lock... [2025-04-03 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:28:29] Production.INFO: 78.25 MB #Memory Used# [2025-04-03 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:29:05 [end_date_ymd] => 2025-04-03 12:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:29:05' and `end` < '2025-04-03 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-03 12:29:19] Production.INFO: count ==6712 [2025-04-03 12:29:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:29:05 - End Time 2025-04-03 12:29:05 [2025-04-03 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825516', 'tblTempUsageDetail_20' ) start [2025-04-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825516', 'tblTempUsageDetail_20' ) end [2025-04-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825516', 'tblTempVendorCDR_20' ) start [2025-04-03 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825516', 'tblTempVendorCDR_20' ) end [2025-04-03 12:29:22] Production.INFO: ProcessCDR(1,14825516,1,1,2) [2025-04-03 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825516', 'tblTempUsageDetail_20' ) start [2025-04-03 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825516', 'tblTempUsageDetail_20' ) end [2025-04-03 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:29:28] Production.INFO: ==21293== Releasing lock... [2025-04-03 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:29:28] Production.INFO: 78.25 MB #Memory Used# [2025-04-03 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:30:07 [end_date_ymd] => 2025-04-03 12:30:07 [RateCDR] => 1 ) [2025-04-03 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:30:07' and `end` < '2025-04-03 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:30:21] Production.INFO: count ==6699 [2025-04-03 12:30:24] Production.ERROR: pbx CDR StartTime 2025-04-03 09:30:07 - End Time 2025-04-03 12:30:07 [2025-04-03 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825522', 'tblTempUsageDetail_20' ) start [2025-04-03 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825522', 'tblTempUsageDetail_20' ) end [2025-04-03 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825522', 'tblTempVendorCDR_20' ) start [2025-04-03 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825522', 'tblTempVendorCDR_20' ) end [2025-04-03 12:30:24] Production.INFO: ProcessCDR(1,14825522,1,1,2) [2025-04-03 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825522', 'tblTempUsageDetail_20' ) start [2025-04-03 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825522', 'tblTempUsageDetail_20' ) end [2025-04-03 12:30:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:30:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:30:30] Production.INFO: ==21374== Releasing lock... [2025-04-03 12:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:30:30] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:31:06 [end_date_ymd] => 2025-04-03 12:31:06 [RateCDR] => 1 ) [2025-04-03 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:31:06' and `end` < '2025-04-03 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:31:20] Production.INFO: count ==6682 [2025-04-03 12:31:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:31:06 - End Time 2025-04-03 12:31:06 [2025-04-03 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825527', 'tblTempUsageDetail_20' ) start [2025-04-03 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825527', 'tblTempUsageDetail_20' ) end [2025-04-03 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825527', 'tblTempVendorCDR_20' ) start [2025-04-03 12:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825527', 'tblTempVendorCDR_20' ) end [2025-04-03 12:31:23] Production.INFO: ProcessCDR(1,14825527,1,1,2) [2025-04-03 12:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825527', 'tblTempUsageDetail_20' ) start [2025-04-03 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825527', 'tblTempUsageDetail_20' ) end [2025-04-03 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:31:29] Production.INFO: ==21448== Releasing lock... [2025-04-03 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:31:29] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:32:06 [end_date_ymd] => 2025-04-03 12:32:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:32:06' and `end` < '2025-04-03 12: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-03 12:32:20] Production.INFO: count ==6682 [2025-04-03 12:32:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:32:06 - End Time 2025-04-03 12:32:06 [2025-04-03 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825532', 'tblTempUsageDetail_20' ) start [2025-04-03 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825532', 'tblTempUsageDetail_20' ) end [2025-04-03 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825532', 'tblTempVendorCDR_20' ) start [2025-04-03 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825532', 'tblTempVendorCDR_20' ) end [2025-04-03 12:32:23] Production.INFO: ProcessCDR(1,14825532,1,1,2) [2025-04-03 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825532', 'tblTempUsageDetail_20' ) start [2025-04-03 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825532', 'tblTempUsageDetail_20' ) end [2025-04-03 12:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:32:29] Production.INFO: ==21523== Releasing lock... [2025-04-03 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:32:29] Production.INFO: 78 MB #Memory Used# [2025-04-03 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:33:05 [end_date_ymd] => 2025-04-03 12:33:05 [RateCDR] => 1 ) [2025-04-03 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:33:05' and `end` < '2025-04-03 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:33:19] Production.INFO: count ==6662 [2025-04-03 12:33:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:33:05 - End Time 2025-04-03 12:33:05 [2025-04-03 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825537', 'tblTempUsageDetail_20' ) start [2025-04-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825537', 'tblTempUsageDetail_20' ) end [2025-04-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825537', 'tblTempVendorCDR_20' ) start [2025-04-03 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825537', 'tblTempVendorCDR_20' ) end [2025-04-03 12:33:22] Production.INFO: ProcessCDR(1,14825537,1,1,2) [2025-04-03 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825537', 'tblTempUsageDetail_20' ) start [2025-04-03 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825537', 'tblTempUsageDetail_20' ) end [2025-04-03 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:33:27] Production.INFO: ==21594== Releasing lock... [2025-04-03 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:33:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:34:06 [end_date_ymd] => 2025-04-03 12:34:06 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:34:06' and `end` < '2025-04-03 12: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-03 12:34:20] Production.INFO: count ==6656 [2025-04-03 12:34:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:34:06 - End Time 2025-04-03 12:34:06 [2025-04-03 12:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825542', 'tblTempUsageDetail_20' ) start [2025-04-03 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825542', 'tblTempUsageDetail_20' ) end [2025-04-03 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825542', 'tblTempVendorCDR_20' ) start [2025-04-03 12:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825542', 'tblTempVendorCDR_20' ) end [2025-04-03 12:34:23] Production.INFO: ProcessCDR(1,14825542,1,1,2) [2025-04-03 12:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825542', 'tblTempUsageDetail_20' ) start [2025-04-03 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825542', 'tblTempUsageDetail_20' ) end [2025-04-03 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:34:28] Production.INFO: ==21670== Releasing lock... [2025-04-03 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:34:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:35:05 [end_date_ymd] => 2025-04-03 12:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:35:05' and `end` < '2025-04-03 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-03 12:35:19] Production.INFO: count ==6643 [2025-04-03 12:35:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:35:05 - End Time 2025-04-03 12:35:05 [2025-04-03 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825547', 'tblTempUsageDetail_20' ) start [2025-04-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825547', 'tblTempUsageDetail_20' ) end [2025-04-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825547', 'tblTempVendorCDR_20' ) start [2025-04-03 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825547', 'tblTempVendorCDR_20' ) end [2025-04-03 12:35:22] Production.INFO: ProcessCDR(1,14825547,1,1,2) [2025-04-03 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825547', 'tblTempUsageDetail_20' ) start [2025-04-03 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825547', 'tblTempUsageDetail_20' ) end [2025-04-03 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:35:27] Production.INFO: ==21741== Releasing lock... [2025-04-03 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:35:27] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:36:05 [end_date_ymd] => 2025-04-03 12:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:36:05' and `end` < '2025-04-03 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-03 12:36:19] Production.INFO: count ==6636 [2025-04-03 12:36:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:36:05 - End Time 2025-04-03 12:36:05 [2025-04-03 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825552', 'tblTempUsageDetail_20' ) start [2025-04-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825552', 'tblTempUsageDetail_20' ) end [2025-04-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825552', 'tblTempVendorCDR_20' ) start [2025-04-03 12:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825552', 'tblTempVendorCDR_20' ) end [2025-04-03 12:36:23] Production.INFO: ProcessCDR(1,14825552,1,1,2) [2025-04-03 12:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825552', 'tblTempUsageDetail_20' ) start [2025-04-03 12:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825552', 'tblTempUsageDetail_20' ) end [2025-04-03 12:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:36:28] Production.INFO: ==21815== Releasing lock... [2025-04-03 12:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:36:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:37:05 [end_date_ymd] => 2025-04-03 12:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:37:05' and `end` < '2025-04-03 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-03 12:37:19] Production.INFO: count ==6626 [2025-04-03 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:37:05 - End Time 2025-04-03 12:37:05 [2025-04-03 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825557', 'tblTempUsageDetail_20' ) start [2025-04-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825557', 'tblTempUsageDetail_20' ) end [2025-04-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825557', 'tblTempVendorCDR_20' ) start [2025-04-03 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825557', 'tblTempVendorCDR_20' ) end [2025-04-03 12:37:23] Production.INFO: ProcessCDR(1,14825557,1,1,2) [2025-04-03 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825557', 'tblTempUsageDetail_20' ) start [2025-04-03 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825557', 'tblTempUsageDetail_20' ) end [2025-04-03 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:37:28] Production.INFO: ==21893== Releasing lock... [2025-04-03 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:37:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:38:06 [end_date_ymd] => 2025-04-03 12:38:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:38:06' and `end` < '2025-04-03 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-03 12:38:20] Production.INFO: count ==6619 [2025-04-03 12:38:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:38:06 - End Time 2025-04-03 12:38:06 [2025-04-03 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825562', 'tblTempUsageDetail_20' ) start [2025-04-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825562', 'tblTempUsageDetail_20' ) end [2025-04-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825562', 'tblTempVendorCDR_20' ) start [2025-04-03 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825562', 'tblTempVendorCDR_20' ) end [2025-04-03 12:38:23] Production.INFO: ProcessCDR(1,14825562,1,1,2) [2025-04-03 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825562', 'tblTempUsageDetail_20' ) start [2025-04-03 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825562', 'tblTempUsageDetail_20' ) end [2025-04-03 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:38:28] Production.INFO: ==21976== Releasing lock... [2025-04-03 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:38:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:39:06 [end_date_ymd] => 2025-04-03 12:39:06 [RateCDR] => 1 ) [2025-04-03 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:39:06' and `end` < '2025-04-03 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:39:20] Production.INFO: count ==6625 [2025-04-03 12:39:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:39:06 - End Time 2025-04-03 12:39:06 [2025-04-03 12:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825567', 'tblTempUsageDetail_20' ) start [2025-04-03 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825567', 'tblTempUsageDetail_20' ) end [2025-04-03 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825567', 'tblTempVendorCDR_20' ) start [2025-04-03 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825567', 'tblTempVendorCDR_20' ) end [2025-04-03 12:39:23] Production.INFO: ProcessCDR(1,14825567,1,1,2) [2025-04-03 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825567', 'tblTempUsageDetail_20' ) start [2025-04-03 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825567', 'tblTempUsageDetail_20' ) end [2025-04-03 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:39:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:39:30] Production.INFO: ==22092== Releasing lock... [2025-04-03 12:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:39:30] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:40:07 [end_date_ymd] => 2025-04-03 12:40:07 [RateCDR] => 1 ) [2025-04-03 12: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-03 09:40:07' and `end` < '2025-04-03 12: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-03 12:40:21] Production.INFO: count ==6617 [2025-04-03 12:40:24] Production.ERROR: pbx CDR StartTime 2025-04-03 09:40:07 - End Time 2025-04-03 12:40:07 [2025-04-03 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825573', 'tblTempUsageDetail_20' ) start [2025-04-03 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825573', 'tblTempUsageDetail_20' ) end [2025-04-03 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825573', 'tblTempVendorCDR_20' ) start [2025-04-03 12:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825573', 'tblTempVendorCDR_20' ) end [2025-04-03 12:40:25] Production.INFO: ProcessCDR(1,14825573,1,1,2) [2025-04-03 12:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825573', 'tblTempUsageDetail_20' ) start [2025-04-03 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825573', 'tblTempUsageDetail_20' ) end [2025-04-03 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:40:30] Production.INFO: ==22176== Releasing lock... [2025-04-03 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:40:30] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:41:05 [end_date_ymd] => 2025-04-03 12:41:05 [RateCDR] => 1 ) [2025-04-03 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:41:05' and `end` < '2025-04-03 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-03 12:41:19] Production.INFO: count ==6632 [2025-04-03 12:41:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:41:05 - End Time 2025-04-03 12:41:05 [2025-04-03 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825578', 'tblTempUsageDetail_20' ) start [2025-04-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825578', 'tblTempUsageDetail_20' ) end [2025-04-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825578', 'tblTempVendorCDR_20' ) start [2025-04-03 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825578', 'tblTempVendorCDR_20' ) end [2025-04-03 12:41:23] Production.INFO: ProcessCDR(1,14825578,1,1,2) [2025-04-03 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825578', 'tblTempUsageDetail_20' ) start [2025-04-03 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825578', 'tblTempUsageDetail_20' ) end [2025-04-03 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:41:28] Production.INFO: ==22254== Releasing lock... [2025-04-03 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:41:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:42:06 [end_date_ymd] => 2025-04-03 12:42:06 [RateCDR] => 1 ) [2025-04-03 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:42:06' and `end` < '2025-04-03 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:42:20] Production.INFO: count ==6751 [2025-04-03 12:42:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:42:06 - End Time 2025-04-03 12:42:06 [2025-04-03 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825583', 'tblTempUsageDetail_20' ) start [2025-04-03 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825583', 'tblTempUsageDetail_20' ) end [2025-04-03 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825583', 'tblTempVendorCDR_20' ) start [2025-04-03 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825583', 'tblTempVendorCDR_20' ) end [2025-04-03 12:42:23] Production.INFO: ProcessCDR(1,14825583,1,1,2) [2025-04-03 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825583', 'tblTempUsageDetail_20' ) start [2025-04-03 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825583', 'tblTempUsageDetail_20' ) end [2025-04-03 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:42:28] Production.INFO: ==22343== Releasing lock... [2025-04-03 12:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:42:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:43:05 [end_date_ymd] => 2025-04-03 12:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:43:05' and `end` < '2025-04-03 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-03 12:43:19] Production.INFO: count ==6749 [2025-04-03 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:43:05 - End Time 2025-04-03 12:43:05 [2025-04-03 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825588', 'tblTempUsageDetail_20' ) start [2025-04-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825588', 'tblTempUsageDetail_20' ) end [2025-04-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825588', 'tblTempVendorCDR_20' ) start [2025-04-03 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825588', 'tblTempVendorCDR_20' ) end [2025-04-03 12:43:22] Production.INFO: ProcessCDR(1,14825588,1,1,2) [2025-04-03 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825588', 'tblTempUsageDetail_20' ) start [2025-04-03 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825588', 'tblTempUsageDetail_20' ) end [2025-04-03 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:43:28] Production.INFO: ==22425== Releasing lock... [2025-04-03 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:43:28] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:44:06 [end_date_ymd] => 2025-04-03 12:44:06 [RateCDR] => 1 ) [2025-04-03 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:44:06' and `end` < '2025-04-03 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:44:20] Production.INFO: count ==6869 [2025-04-03 12:44:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:44:06 - End Time 2025-04-03 12:44:06 [2025-04-03 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825593', 'tblTempUsageDetail_20' ) start [2025-04-03 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825593', 'tblTempUsageDetail_20' ) end [2025-04-03 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825593', 'tblTempVendorCDR_20' ) start [2025-04-03 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825593', 'tblTempVendorCDR_20' ) end [2025-04-03 12:44:23] Production.INFO: ProcessCDR(1,14825593,1,1,2) [2025-04-03 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825593', 'tblTempUsageDetail_20' ) start [2025-04-03 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825593', 'tblTempUsageDetail_20' ) end [2025-04-03 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:44:29] Production.INFO: ==22499== Releasing lock... [2025-04-03 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:44:29] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:45:05 [end_date_ymd] => 2025-04-03 12:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:45:05' and `end` < '2025-04-03 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-03 12:45:19] Production.INFO: count ==6879 [2025-04-03 12:45:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:45:05 - End Time 2025-04-03 12:45:05 [2025-04-03 12:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825598', 'tblTempUsageDetail_20' ) start [2025-04-03 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825598', 'tblTempUsageDetail_20' ) end [2025-04-03 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825598', 'tblTempVendorCDR_20' ) start [2025-04-03 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825598', 'tblTempVendorCDR_20' ) end [2025-04-03 12:45:23] Production.INFO: ProcessCDR(1,14825598,1,1,2) [2025-04-03 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825598', 'tblTempUsageDetail_20' ) start [2025-04-03 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825598', 'tblTempUsageDetail_20' ) end [2025-04-03 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:45:28] Production.INFO: ==22570== Releasing lock... [2025-04-03 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:45:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:46:06 [end_date_ymd] => 2025-04-03 12:46:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:46:06' and `end` < '2025-04-03 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-03 12:46:20] Production.INFO: count ==6903 [2025-04-03 12:46:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:46:06 - End Time 2025-04-03 12:46:06 [2025-04-03 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825603', 'tblTempUsageDetail_20' ) start [2025-04-03 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825603', 'tblTempUsageDetail_20' ) end [2025-04-03 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825603', 'tblTempVendorCDR_20' ) start [2025-04-03 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825603', 'tblTempVendorCDR_20' ) end [2025-04-03 12:46:23] Production.INFO: ProcessCDR(1,14825603,1,1,2) [2025-04-03 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825603', 'tblTempUsageDetail_20' ) start [2025-04-03 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825603', 'tblTempUsageDetail_20' ) end [2025-04-03 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:46:29] Production.INFO: ==22642== Releasing lock... [2025-04-03 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:46:29] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:47:05 [end_date_ymd] => 2025-04-03 12:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:47:05' and `end` < '2025-04-03 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-03 12:47:19] Production.INFO: count ==6928 [2025-04-03 12:47:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:47:05 - End Time 2025-04-03 12:47:05 [2025-04-03 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825608', 'tblTempUsageDetail_20' ) start [2025-04-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825608', 'tblTempUsageDetail_20' ) end [2025-04-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825608', 'tblTempVendorCDR_20' ) start [2025-04-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825608', 'tblTempVendorCDR_20' ) end [2025-04-03 12:47:23] Production.INFO: ProcessCDR(1,14825608,1,1,2) [2025-04-03 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825608', 'tblTempUsageDetail_20' ) start [2025-04-03 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825608', 'tblTempUsageDetail_20' ) end [2025-04-03 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:47:28] Production.INFO: ==22713== Releasing lock... [2025-04-03 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:47:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:48:05 [end_date_ymd] => 2025-04-03 12:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:48:05' and `end` < '2025-04-03 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-03 12:48:19] Production.INFO: count ==6917 [2025-04-03 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:48:05 - End Time 2025-04-03 12:48:05 [2025-04-03 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825613', 'tblTempUsageDetail_20' ) start [2025-04-03 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825613', 'tblTempUsageDetail_20' ) end [2025-04-03 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825613', 'tblTempVendorCDR_20' ) start [2025-04-03 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825613', 'tblTempVendorCDR_20' ) end [2025-04-03 12:48:23] Production.INFO: ProcessCDR(1,14825613,1,1,2) [2025-04-03 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825613', 'tblTempUsageDetail_20' ) start [2025-04-03 12:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825613', 'tblTempUsageDetail_20' ) end [2025-04-03 12:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:48:28] Production.INFO: ==22786== Releasing lock... [2025-04-03 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:48:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:49:05 [end_date_ymd] => 2025-04-03 12:49:05 [RateCDR] => 1 ) [2025-04-03 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:49:05' and `end` < '2025-04-03 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:49:19] Production.INFO: count ==6919 [2025-04-03 12:49:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:49:05 - End Time 2025-04-03 12:49:05 [2025-04-03 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825618', 'tblTempUsageDetail_20' ) start [2025-04-03 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825618', 'tblTempUsageDetail_20' ) end [2025-04-03 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825618', 'tblTempVendorCDR_20' ) start [2025-04-03 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825618', 'tblTempVendorCDR_20' ) end [2025-04-03 12:49:23] Production.INFO: ProcessCDR(1,14825618,1,1,2) [2025-04-03 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825618', 'tblTempUsageDetail_20' ) start [2025-04-03 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825618', 'tblTempUsageDetail_20' ) end [2025-04-03 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:49:28] Production.INFO: ==22859== Releasing lock... [2025-04-03 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:49:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:50:06 [end_date_ymd] => 2025-04-03 12:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 09:50:06' and `end` < '2025-04-03 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-03 12:50:20] Production.INFO: count ==6918 [2025-04-03 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:50:06 - End Time 2025-04-03 12:50:06 [2025-04-03 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825624', 'tblTempUsageDetail_20' ) start [2025-04-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825624', 'tblTempUsageDetail_20' ) end [2025-04-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825624', 'tblTempVendorCDR_20' ) start [2025-04-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825624', 'tblTempVendorCDR_20' ) end [2025-04-03 12:50:24] Production.INFO: ProcessCDR(1,14825624,1,1,2) [2025-04-03 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825624', 'tblTempUsageDetail_20' ) start [2025-04-03 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825624', 'tblTempUsageDetail_20' ) end [2025-04-03 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:50:29] Production.INFO: ==22933== Releasing lock... [2025-04-03 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:50:29] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:51:05 [end_date_ymd] => 2025-04-03 12:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:51:05' and `end` < '2025-04-03 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-03 12:51:19] Production.INFO: count ==6898 [2025-04-03 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:51:05 - End Time 2025-04-03 12:51:05 [2025-04-03 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825629', 'tblTempUsageDetail_20' ) start [2025-04-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825629', 'tblTempUsageDetail_20' ) end [2025-04-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825629', 'tblTempVendorCDR_20' ) start [2025-04-03 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825629', 'tblTempVendorCDR_20' ) end [2025-04-03 12:51:22] Production.INFO: ProcessCDR(1,14825629,1,1,2) [2025-04-03 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825629', 'tblTempUsageDetail_20' ) start [2025-04-03 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825629', 'tblTempUsageDetail_20' ) end [2025-04-03 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:51:28] Production.INFO: ==23009== Releasing lock... [2025-04-03 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:51:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:52:05 [end_date_ymd] => 2025-04-03 12:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:52:05' and `end` < '2025-04-03 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-03 12:52:19] Production.INFO: count ==6902 [2025-04-03 12:52:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:52:05 - End Time 2025-04-03 12:52:05 [2025-04-03 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825634', 'tblTempUsageDetail_20' ) start [2025-04-03 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825634', 'tblTempUsageDetail_20' ) end [2025-04-03 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825634', 'tblTempVendorCDR_20' ) start [2025-04-03 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825634', 'tblTempVendorCDR_20' ) end [2025-04-03 12:52:23] Production.INFO: ProcessCDR(1,14825634,1,1,2) [2025-04-03 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825634', 'tblTempUsageDetail_20' ) start [2025-04-03 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825634', 'tblTempUsageDetail_20' ) end [2025-04-03 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:52:28] Production.INFO: ==23082== Releasing lock... [2025-04-03 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:52:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:53:05 [end_date_ymd] => 2025-04-03 12:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:53:05' and `end` < '2025-04-03 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-03 12:53:19] Production.INFO: count ==6898 [2025-04-03 12:53:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:53:05 - End Time 2025-04-03 12:53:05 [2025-04-03 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825639', 'tblTempUsageDetail_20' ) start [2025-04-03 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825639', 'tblTempUsageDetail_20' ) end [2025-04-03 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825639', 'tblTempVendorCDR_20' ) start [2025-04-03 12:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825639', 'tblTempVendorCDR_20' ) end [2025-04-03 12:53:23] Production.INFO: ProcessCDR(1,14825639,1,1,2) [2025-04-03 12:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825639', 'tblTempUsageDetail_20' ) start [2025-04-03 12:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825639', 'tblTempUsageDetail_20' ) end [2025-04-03 12:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:53:28] Production.INFO: ==23152== Releasing lock... [2025-04-03 12:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:53:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:54:05 [end_date_ymd] => 2025-04-03 12:54:05 [RateCDR] => 1 ) [2025-04-03 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:54:05' and `end` < '2025-04-03 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-03 12:54:19] Production.INFO: count ==6891 [2025-04-03 12:54:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:54:05 - End Time 2025-04-03 12:54:05 [2025-04-03 12:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825644', 'tblTempUsageDetail_20' ) start [2025-04-03 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825644', 'tblTempUsageDetail_20' ) end [2025-04-03 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825644', 'tblTempVendorCDR_20' ) start [2025-04-03 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825644', 'tblTempVendorCDR_20' ) end [2025-04-03 12:54:23] Production.INFO: ProcessCDR(1,14825644,1,1,2) [2025-04-03 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825644', 'tblTempUsageDetail_20' ) start [2025-04-03 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825644', 'tblTempUsageDetail_20' ) end [2025-04-03 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:54:28] Production.INFO: ==23265== Releasing lock... [2025-04-03 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:54:28] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:55:05 [end_date_ymd] => 2025-04-03 12:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:55:05' and `end` < '2025-04-03 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-03 12:55:19] Production.INFO: count ==6998 [2025-04-03 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:55:05 - End Time 2025-04-03 12:55:05 [2025-04-03 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825649', 'tblTempUsageDetail_20' ) start [2025-04-03 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825649', 'tblTempUsageDetail_20' ) end [2025-04-03 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825649', 'tblTempVendorCDR_20' ) start [2025-04-03 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825649', 'tblTempVendorCDR_20' ) end [2025-04-03 12:55:23] Production.INFO: ProcessCDR(1,14825649,1,1,2) [2025-04-03 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825649', 'tblTempUsageDetail_20' ) start [2025-04-03 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825649', 'tblTempUsageDetail_20' ) end [2025-04-03 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:55:28] Production.INFO: ==23337== Releasing lock... [2025-04-03 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:55:28] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:56:06 [end_date_ymd] => 2025-04-03 12:56:06 [RateCDR] => 1 ) [2025-04-03 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 09:56:06' and `end` < '2025-04-03 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 12:56:20] Production.INFO: count ==6988 [2025-04-03 12:56:24] Production.ERROR: pbx CDR StartTime 2025-04-03 09:56:06 - End Time 2025-04-03 12:56:06 [2025-04-03 12:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825654', 'tblTempUsageDetail_20' ) start [2025-04-03 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825654', 'tblTempUsageDetail_20' ) end [2025-04-03 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825654', 'tblTempVendorCDR_20' ) start [2025-04-03 12:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825654', 'tblTempVendorCDR_20' ) end [2025-04-03 12:56:24] Production.INFO: ProcessCDR(1,14825654,1,1,2) [2025-04-03 12:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825654', 'tblTempUsageDetail_20' ) start [2025-04-03 12:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825654', 'tblTempUsageDetail_20' ) end [2025-04-03 12:56:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:56:29] Production.INFO: ==23410== Releasing lock... [2025-04-03 12:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:56:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:57:05 [end_date_ymd] => 2025-04-03 12:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:57:05' and `end` < '2025-04-03 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-03 12:57:19] Production.INFO: count ==7060 [2025-04-03 12:57:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:57:05 - End Time 2025-04-03 12:57:05 [2025-04-03 12:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825659', 'tblTempUsageDetail_20' ) start [2025-04-03 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825659', 'tblTempUsageDetail_20' ) end [2025-04-03 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825659', 'tblTempVendorCDR_20' ) start [2025-04-03 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825659', 'tblTempVendorCDR_20' ) end [2025-04-03 12:57:23] Production.INFO: ProcessCDR(1,14825659,1,1,2) [2025-04-03 12:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825659', 'tblTempUsageDetail_20' ) start [2025-04-03 12:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825659', 'tblTempUsageDetail_20' ) end [2025-04-03 12:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:57:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:57:29] Production.INFO: ==23481== Releasing lock... [2025-04-03 12:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:57:29] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:58:05 [end_date_ymd] => 2025-04-03 12:58:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:58:05' and `end` < '2025-04-03 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-03 12:58:19] Production.INFO: count ==7048 [2025-04-03 12:58:23] Production.ERROR: pbx CDR StartTime 2025-04-03 09:58:05 - End Time 2025-04-03 12:58:05 [2025-04-03 12:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825664', 'tblTempUsageDetail_20' ) start [2025-04-03 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825664', 'tblTempUsageDetail_20' ) end [2025-04-03 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825664', 'tblTempVendorCDR_20' ) start [2025-04-03 12:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825664', 'tblTempVendorCDR_20' ) end [2025-04-03 12:58:23] Production.INFO: ProcessCDR(1,14825664,1,1,2) [2025-04-03 12:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825664', 'tblTempUsageDetail_20' ) start [2025-04-03 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825664', 'tblTempUsageDetail_20' ) end [2025-04-03 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:58:28] Production.INFO: ==23554== Releasing lock... [2025-04-03 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:58:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 09:59:05 [end_date_ymd] => 2025-04-03 12:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 09:59:05' and `end` < '2025-04-03 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-03 12:59:19] Production.INFO: count ==7043 [2025-04-03 12:59:22] Production.ERROR: pbx CDR StartTime 2025-04-03 09:59:05 - End Time 2025-04-03 12:59:05 [2025-04-03 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825669', 'tblTempUsageDetail_20' ) start [2025-04-03 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825669', 'tblTempUsageDetail_20' ) end [2025-04-03 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825669', 'tblTempVendorCDR_20' ) start [2025-04-03 12:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825669', 'tblTempVendorCDR_20' ) end [2025-04-03 12:59:23] Production.INFO: ProcessCDR(1,14825669,1,1,2) [2025-04-03 12:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825669', 'tblTempUsageDetail_20' ) start [2025-04-03 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825669', 'tblTempUsageDetail_20' ) end [2025-04-03 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 12:59:28] Production.INFO: ==23628== Releasing lock... [2025-04-03 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 12:59:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:00:06 [end_date_ymd] => 2025-04-03 13:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:00:06' and `end` < '2025-04-03 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-03 13:00:20] Production.INFO: count ==7044 [2025-04-03 13:00:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:00:06 - End Time 2025-04-03 13:00:06 [2025-04-03 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825675', 'tblTempUsageDetail_20' ) start [2025-04-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825675', 'tblTempUsageDetail_20' ) end [2025-04-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825675', 'tblTempVendorCDR_20' ) start [2025-04-03 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825675', 'tblTempVendorCDR_20' ) end [2025-04-03 13:00:24] Production.INFO: ProcessCDR(1,14825675,1,1,2) [2025-04-03 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825675', 'tblTempUsageDetail_20' ) start [2025-04-03 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825675', 'tblTempUsageDetail_20' ) end [2025-04-03 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:00:30] Production.INFO: ==23705== Releasing lock... [2025-04-03 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:00:30] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:01:05 [end_date_ymd] => 2025-04-03 13:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:01:05' and `end` < '2025-04-03 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-03 13:01:19] Production.INFO: count ==7173 [2025-04-03 13:01:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:01:05 - End Time 2025-04-03 13:01:05 [2025-04-03 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825680', 'tblTempUsageDetail_20' ) start [2025-04-03 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825680', 'tblTempUsageDetail_20' ) end [2025-04-03 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825680', 'tblTempVendorCDR_20' ) start [2025-04-03 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825680', 'tblTempVendorCDR_20' ) end [2025-04-03 13:01:24] Production.INFO: ProcessCDR(1,14825680,1,1,2) [2025-04-03 13:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825680', 'tblTempUsageDetail_20' ) start [2025-04-03 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825680', 'tblTempUsageDetail_20' ) end [2025-04-03 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:01:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:01:29] Production.INFO: ==23794== Releasing lock... [2025-04-03 13:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:01:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:02:06 [end_date_ymd] => 2025-04-03 13:02:06 [RateCDR] => 1 ) [2025-04-03 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:02:06' and `end` < '2025-04-03 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:02:20] Production.INFO: count ==7180 [2025-04-03 13:02:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:02:06 - End Time 2025-04-03 13:02:06 [2025-04-03 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825685', 'tblTempUsageDetail_20' ) start [2025-04-03 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825685', 'tblTempUsageDetail_20' ) end [2025-04-03 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825685', 'tblTempVendorCDR_20' ) start [2025-04-03 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825685', 'tblTempVendorCDR_20' ) end [2025-04-03 13:02:24] Production.INFO: ProcessCDR(1,14825685,1,1,2) [2025-04-03 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825685', 'tblTempUsageDetail_20' ) start [2025-04-03 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825685', 'tblTempUsageDetail_20' ) end [2025-04-03 13:02:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:02:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:02:30] Production.INFO: ==23867== Releasing lock... [2025-04-03 13:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:02:30] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:03:05 [end_date_ymd] => 2025-04-03 13:03:05 [RateCDR] => 1 ) [2025-04-03 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:03:05' and `end` < '2025-04-03 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:03:19] Production.INFO: count ==7183 [2025-04-03 13:03:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:03:05 - End Time 2025-04-03 13:03:05 [2025-04-03 13:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825690', 'tblTempUsageDetail_20' ) start [2025-04-03 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825690', 'tblTempUsageDetail_20' ) end [2025-04-03 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825690', 'tblTempVendorCDR_20' ) start [2025-04-03 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825690', 'tblTempVendorCDR_20' ) end [2025-04-03 13:03:24] Production.INFO: ProcessCDR(1,14825690,1,1,2) [2025-04-03 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825690', 'tblTempUsageDetail_20' ) start [2025-04-03 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825690', 'tblTempUsageDetail_20' ) end [2025-04-03 13:03:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:03:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:03:30] Production.INFO: ==23937== Releasing lock... [2025-04-03 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:03:30] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:04:06 [end_date_ymd] => 2025-04-03 13:04:06 [RateCDR] => 1 ) [2025-04-03 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:04:06' and `end` < '2025-04-03 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:04:20] Production.INFO: count ==7187 [2025-04-03 13:04:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:04:06 - End Time 2025-04-03 13:04:06 [2025-04-03 13:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825695', 'tblTempUsageDetail_20' ) start [2025-04-03 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825695', 'tblTempUsageDetail_20' ) end [2025-04-03 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825695', 'tblTempVendorCDR_20' ) start [2025-04-03 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825695', 'tblTempVendorCDR_20' ) end [2025-04-03 13:04:24] Production.INFO: ProcessCDR(1,14825695,1,1,2) [2025-04-03 13:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825695', 'tblTempUsageDetail_20' ) start [2025-04-03 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825695', 'tblTempUsageDetail_20' ) end [2025-04-03 13:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:04:30] Production.INFO: ==24013== Releasing lock... [2025-04-03 13:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:04:30] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:05:05 [end_date_ymd] => 2025-04-03 13:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:05:05' and `end` < '2025-04-03 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-03 13:05:19] Production.INFO: count ==7145 [2025-04-03 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:05:05 - End Time 2025-04-03 13:05:05 [2025-04-03 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825700', 'tblTempUsageDetail_20' ) start [2025-04-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825700', 'tblTempUsageDetail_20' ) end [2025-04-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825700', 'tblTempVendorCDR_20' ) start [2025-04-03 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825700', 'tblTempVendorCDR_20' ) end [2025-04-03 13:05:22] Production.INFO: ProcessCDR(1,14825700,1,1,2) [2025-04-03 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825700', 'tblTempUsageDetail_20' ) start [2025-04-03 13:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825700', 'tblTempUsageDetail_20' ) end [2025-04-03 13:05:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:05:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:05:28] Production.INFO: ==24083== Releasing lock... [2025-04-03 13:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:05:28] Production.INFO: 82 MB #Memory Used# [2025-04-03 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:06:06 [end_date_ymd] => 2025-04-03 13:06:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:06:06' and `end` < '2025-04-03 13: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-03 13:06:20] Production.INFO: count ==7131 [2025-04-03 13:06:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:06:06 - End Time 2025-04-03 13:06:06 [2025-04-03 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825705', 'tblTempUsageDetail_20' ) start [2025-04-03 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825705', 'tblTempUsageDetail_20' ) end [2025-04-03 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825705', 'tblTempVendorCDR_20' ) start [2025-04-03 13:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825705', 'tblTempVendorCDR_20' ) end [2025-04-03 13:06:24] Production.INFO: ProcessCDR(1,14825705,1,1,2) [2025-04-03 13:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825705', 'tblTempUsageDetail_20' ) start [2025-04-03 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825705', 'tblTempUsageDetail_20' ) end [2025-04-03 13:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:06:29] Production.INFO: ==24160== Releasing lock... [2025-04-03 13:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:06:29] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:07:05 [end_date_ymd] => 2025-04-03 13:07:05 [RateCDR] => 1 ) [2025-04-03 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:07:05' and `end` < '2025-04-03 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:07:19] Production.INFO: count ==7119 [2025-04-03 13:07:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:07:05 - End Time 2025-04-03 13:07:05 [2025-04-03 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825710', 'tblTempUsageDetail_20' ) start [2025-04-03 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825710', 'tblTempUsageDetail_20' ) end [2025-04-03 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825710', 'tblTempVendorCDR_20' ) start [2025-04-03 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825710', 'tblTempVendorCDR_20' ) end [2025-04-03 13:07:23] Production.INFO: ProcessCDR(1,14825710,1,1,2) [2025-04-03 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825710', 'tblTempUsageDetail_20' ) start [2025-04-03 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825710', 'tblTempUsageDetail_20' ) end [2025-04-03 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:07:28] Production.INFO: ==24235== Releasing lock... [2025-04-03 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:07:28] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:08:06 [end_date_ymd] => 2025-04-03 13:08:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:08:06' and `end` < '2025-04-03 13: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-03 13:08:20] Production.INFO: count ==7117 [2025-04-03 13:08:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:08:06 - End Time 2025-04-03 13:08:06 [2025-04-03 13:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825715', 'tblTempUsageDetail_20' ) start [2025-04-03 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825715', 'tblTempUsageDetail_20' ) end [2025-04-03 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825715', 'tblTempVendorCDR_20' ) start [2025-04-03 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825715', 'tblTempVendorCDR_20' ) end [2025-04-03 13:08:23] Production.INFO: ProcessCDR(1,14825715,1,1,2) [2025-04-03 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825715', 'tblTempUsageDetail_20' ) start [2025-04-03 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825715', 'tblTempUsageDetail_20' ) end [2025-04-03 13:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:08:29] Production.INFO: ==24308== Releasing lock... [2025-04-03 13:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:08:29] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:09:05 [end_date_ymd] => 2025-04-03 13:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:09:05' and `end` < '2025-04-03 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-03 13:09:29] Production.INFO: count ==7119 [2025-04-03 13:09:33] Production.ERROR: pbx CDR StartTime 2025-04-03 10:09:05 - End Time 2025-04-03 13:09:05 [2025-04-03 13:09:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825720', 'tblTempUsageDetail_20' ) start [2025-04-03 13:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825720', 'tblTempUsageDetail_20' ) end [2025-04-03 13:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825720', 'tblTempVendorCDR_20' ) start [2025-04-03 13:09:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825720', 'tblTempVendorCDR_20' ) end [2025-04-03 13:09:33] Production.INFO: ProcessCDR(1,14825720,1,1,2) [2025-04-03 13:09:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:09:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:09:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825720', 'tblTempUsageDetail_20' ) start [2025-04-03 13:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825720', 'tblTempUsageDetail_20' ) end [2025-04-03 13:09:38] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:09:39] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:09:39] Production.INFO: ==24380== Releasing lock... [2025-04-03 13:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:09:39] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:10:07 [end_date_ymd] => 2025-04-03 13:10:07 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:10:07' and `end` < '2025-04-03 13: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-03 13:10:21] Production.INFO: count ==7440 [2025-04-03 13:10:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:10:07 - End Time 2025-04-03 13:10:07 [2025-04-03 13:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825726', 'tblTempUsageDetail_20' ) start [2025-04-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825726', 'tblTempUsageDetail_20' ) end [2025-04-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825726', 'tblTempVendorCDR_20' ) start [2025-04-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825726', 'tblTempVendorCDR_20' ) end [2025-04-03 13:10:25] Production.INFO: ProcessCDR(1,14825726,1,1,2) [2025-04-03 13:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825726', 'tblTempUsageDetail_20' ) start [2025-04-03 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825726', 'tblTempUsageDetail_20' ) end [2025-04-03 13:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:10:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:10:31] Production.INFO: ==24495== Releasing lock... [2025-04-03 13:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:10:31] Production.INFO: 84.25 MB #Memory Used# [2025-04-03 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:11:05 [end_date_ymd] => 2025-04-03 13:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:11:05' and `end` < '2025-04-03 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-03 13:11:19] Production.INFO: count ==7418 [2025-04-03 13:11:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:11:05 - End Time 2025-04-03 13:11:05 [2025-04-03 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825731', 'tblTempUsageDetail_20' ) start [2025-04-03 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825731', 'tblTempUsageDetail_20' ) end [2025-04-03 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825731', 'tblTempVendorCDR_20' ) start [2025-04-03 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825731', 'tblTempVendorCDR_20' ) end [2025-04-03 13:11:23] Production.INFO: ProcessCDR(1,14825731,1,1,2) [2025-04-03 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825731', 'tblTempUsageDetail_20' ) start [2025-04-03 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825731', 'tblTempUsageDetail_20' ) end [2025-04-03 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:11:28] Production.INFO: ==24571== Releasing lock... [2025-04-03 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:11:28] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:12:06 [end_date_ymd] => 2025-04-03 13:12:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:12:06' and `end` < '2025-04-03 13: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-03 13:12:19] Production.INFO: count ==7424 [2025-04-03 13:12:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:12:06 - End Time 2025-04-03 13:12:06 [2025-04-03 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825736', 'tblTempUsageDetail_20' ) start [2025-04-03 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825736', 'tblTempUsageDetail_20' ) end [2025-04-03 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825736', 'tblTempVendorCDR_20' ) start [2025-04-03 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825736', 'tblTempVendorCDR_20' ) end [2025-04-03 13:12:23] Production.INFO: ProcessCDR(1,14825736,1,1,2) [2025-04-03 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825736', 'tblTempUsageDetail_20' ) start [2025-04-03 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825736', 'tblTempUsageDetail_20' ) end [2025-04-03 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:12:29] Production.INFO: ==24645== Releasing lock... [2025-04-03 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:12:29] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:13:06 [end_date_ymd] => 2025-04-03 13:13:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:13:06' and `end` < '2025-04-03 13: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-03 13:13:19] Production.INFO: count ==7412 [2025-04-03 13:13:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:13:06 - End Time 2025-04-03 13:13:06 [2025-04-03 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825741', 'tblTempUsageDetail_20' ) start [2025-04-03 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825741', 'tblTempUsageDetail_20' ) end [2025-04-03 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825741', 'tblTempVendorCDR_20' ) start [2025-04-03 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825741', 'tblTempVendorCDR_20' ) end [2025-04-03 13:13:23] Production.INFO: ProcessCDR(1,14825741,1,1,2) [2025-04-03 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825741', 'tblTempUsageDetail_20' ) start [2025-04-03 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825741', 'tblTempUsageDetail_20' ) end [2025-04-03 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:13:28] Production.INFO: ==24717== Releasing lock... [2025-04-03 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:13:28] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:14:06 [end_date_ymd] => 2025-04-03 13:14:06 [RateCDR] => 1 ) [2025-04-03 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:14:06' and `end` < '2025-04-03 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:14:20] Production.INFO: count ==7412 [2025-04-03 13:14:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:14:06 - End Time 2025-04-03 13:14:06 [2025-04-03 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825746', 'tblTempUsageDetail_20' ) start [2025-04-03 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825746', 'tblTempUsageDetail_20' ) end [2025-04-03 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825746', 'tblTempVendorCDR_20' ) start [2025-04-03 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825746', 'tblTempVendorCDR_20' ) end [2025-04-03 13:14:24] Production.INFO: ProcessCDR(1,14825746,1,1,2) [2025-04-03 13:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825746', 'tblTempUsageDetail_20' ) start [2025-04-03 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825746', 'tblTempUsageDetail_20' ) end [2025-04-03 13:14:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:14:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:14:29] Production.INFO: ==24789== Releasing lock... [2025-04-03 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:14:29] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:15:05 [end_date_ymd] => 2025-04-03 13:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:15:05' and `end` < '2025-04-03 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-03 13:15:19] Production.INFO: count ==7414 [2025-04-03 13:15:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:15:05 - End Time 2025-04-03 13:15:05 [2025-04-03 13:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825751', 'tblTempUsageDetail_20' ) start [2025-04-03 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825751', 'tblTempUsageDetail_20' ) end [2025-04-03 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825751', 'tblTempVendorCDR_20' ) start [2025-04-03 13:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825751', 'tblTempVendorCDR_20' ) end [2025-04-03 13:15:23] Production.INFO: ProcessCDR(1,14825751,1,1,2) [2025-04-03 13:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825751', 'tblTempUsageDetail_20' ) start [2025-04-03 13:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825751', 'tblTempUsageDetail_20' ) end [2025-04-03 13:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:15:28] Production.INFO: ==24861== Releasing lock... [2025-04-03 13:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:15:28] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:16:06 [end_date_ymd] => 2025-04-03 13:16:06 [RateCDR] => 1 ) [2025-04-03 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:16:06' and `end` < '2025-04-03 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:16:20] Production.INFO: count ==7410 [2025-04-03 13:16:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:16:06 - End Time 2025-04-03 13:16:06 [2025-04-03 13:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825756', 'tblTempUsageDetail_20' ) start [2025-04-03 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825756', 'tblTempUsageDetail_20' ) end [2025-04-03 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825756', 'tblTempVendorCDR_20' ) start [2025-04-03 13:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825756', 'tblTempVendorCDR_20' ) end [2025-04-03 13:16:23] Production.INFO: ProcessCDR(1,14825756,1,1,2) [2025-04-03 13:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825756', 'tblTempUsageDetail_20' ) start [2025-04-03 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825756', 'tblTempUsageDetail_20' ) end [2025-04-03 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:16:29] Production.INFO: ==24933== Releasing lock... [2025-04-03 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:16:29] Production.INFO: 84 MB #Memory Used# [2025-04-03 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:17:05 [end_date_ymd] => 2025-04-03 13:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:17:05' and `end` < '2025-04-03 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-03 13:17:19] Production.INFO: count ==7394 [2025-04-03 13:17:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:17:05 - End Time 2025-04-03 13:17:05 [2025-04-03 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825761', 'tblTempUsageDetail_20' ) start [2025-04-03 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825761', 'tblTempUsageDetail_20' ) end [2025-04-03 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825761', 'tblTempVendorCDR_20' ) start [2025-04-03 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825761', 'tblTempVendorCDR_20' ) end [2025-04-03 13:17:23] Production.INFO: ProcessCDR(1,14825761,1,1,2) [2025-04-03 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825761', 'tblTempUsageDetail_20' ) start [2025-04-03 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825761', 'tblTempUsageDetail_20' ) end [2025-04-03 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:17:28] Production.INFO: ==25005== Releasing lock... [2025-04-03 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:17:28] Production.INFO: 83.75 MB #Memory Used# [2025-04-03 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:18:06 [end_date_ymd] => 2025-04-03 13:18:06 [RateCDR] => 1 ) [2025-04-03 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:18:06' and `end` < '2025-04-03 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:18:20] Production.INFO: count ==7363 [2025-04-03 13:18:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:18:06 - End Time 2025-04-03 13:18:06 [2025-04-03 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825766', 'tblTempUsageDetail_20' ) start [2025-04-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825766', 'tblTempUsageDetail_20' ) end [2025-04-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825766', 'tblTempVendorCDR_20' ) start [2025-04-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825766', 'tblTempVendorCDR_20' ) end [2025-04-03 13:18:23] Production.INFO: ProcessCDR(1,14825766,1,1,2) [2025-04-03 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825766', 'tblTempUsageDetail_20' ) start [2025-04-03 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825766', 'tblTempUsageDetail_20' ) end [2025-04-03 13:18:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:18:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:18:29] Production.INFO: ==25092== Releasing lock... [2025-04-03 13:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:18:29] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:19:05 [end_date_ymd] => 2025-04-03 13:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:19:05' and `end` < '2025-04-03 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-03 13:19:19] Production.INFO: count ==7347 [2025-04-03 13:19:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:19:05 - End Time 2025-04-03 13:19:05 [2025-04-03 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825771', 'tblTempUsageDetail_20' ) start [2025-04-03 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825771', 'tblTempUsageDetail_20' ) end [2025-04-03 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825771', 'tblTempVendorCDR_20' ) start [2025-04-03 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825771', 'tblTempVendorCDR_20' ) end [2025-04-03 13:19:23] Production.INFO: ProcessCDR(1,14825771,1,1,2) [2025-04-03 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825771', 'tblTempUsageDetail_20' ) start [2025-04-03 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825771', 'tblTempUsageDetail_20' ) end [2025-04-03 13:19:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:19:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:19:29] Production.INFO: ==25164== Releasing lock... [2025-04-03 13:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:19:29] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:20:06 [end_date_ymd] => 2025-04-03 13:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:20:06' and `end` < '2025-04-03 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-03 13:20:20] Production.INFO: count ==7368 [2025-04-03 13:20:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:20:06 - End Time 2025-04-03 13:20:06 [2025-04-03 13:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825776', 'tblTempUsageDetail_20' ) start [2025-04-03 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825776', 'tblTempUsageDetail_20' ) end [2025-04-03 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825776', 'tblTempVendorCDR_20' ) start [2025-04-03 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825776', 'tblTempVendorCDR_20' ) end [2025-04-03 13:20:24] Production.INFO: ProcessCDR(1,14825776,1,1,2) [2025-04-03 13:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825776', 'tblTempUsageDetail_20' ) start [2025-04-03 13:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825776', 'tblTempUsageDetail_20' ) end [2025-04-03 13:20:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:20:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:20:30] Production.INFO: ==25238== Releasing lock... [2025-04-03 13:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:20:30] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:21:06 [end_date_ymd] => 2025-04-03 13:21:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:21:06' and `end` < '2025-04-03 13: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-03 13:21:20] Production.INFO: count ==7352 [2025-04-03 13:21:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:21:06 - End Time 2025-04-03 13:21:06 [2025-04-03 13:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825782', 'tblTempUsageDetail_20' ) start [2025-04-03 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825782', 'tblTempUsageDetail_20' ) end [2025-04-03 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825782', 'tblTempVendorCDR_20' ) start [2025-04-03 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825782', 'tblTempVendorCDR_20' ) end [2025-04-03 13:21:24] Production.INFO: ProcessCDR(1,14825782,1,1,2) [2025-04-03 13:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825782', 'tblTempUsageDetail_20' ) start [2025-04-03 13:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825782', 'tblTempUsageDetail_20' ) end [2025-04-03 13:21:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:21:29] Production.INFO: ==25317== Releasing lock... [2025-04-03 13:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:21:29] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:22:06 [end_date_ymd] => 2025-04-03 13:22:06 [RateCDR] => 1 ) [2025-04-03 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:22:06' and `end` < '2025-04-03 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:22:20] Production.INFO: count ==7370 [2025-04-03 13:22:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:22:06 - End Time 2025-04-03 13:22:06 [2025-04-03 13:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825787', 'tblTempUsageDetail_20' ) start [2025-04-03 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825787', 'tblTempUsageDetail_20' ) end [2025-04-03 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825787', 'tblTempVendorCDR_20' ) start [2025-04-03 13:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825787', 'tblTempVendorCDR_20' ) end [2025-04-03 13:22:24] Production.INFO: ProcessCDR(1,14825787,1,1,2) [2025-04-03 13:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825787', 'tblTempUsageDetail_20' ) start [2025-04-03 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825787', 'tblTempUsageDetail_20' ) end [2025-04-03 13:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:22:29] Production.INFO: ==25388== Releasing lock... [2025-04-03 13:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:22:29] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:23:06 [end_date_ymd] => 2025-04-03 13:23:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:23:06' and `end` < '2025-04-03 13: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-03 13:23:20] Production.INFO: count ==7599 [2025-04-03 13:23:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:23:06 - End Time 2025-04-03 13:23:06 [2025-04-03 13:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825792', 'tblTempUsageDetail_20' ) start [2025-04-03 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825792', 'tblTempUsageDetail_20' ) end [2025-04-03 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825792', 'tblTempVendorCDR_20' ) start [2025-04-03 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825792', 'tblTempVendorCDR_20' ) end [2025-04-03 13:23:24] Production.INFO: ProcessCDR(1,14825792,1,1,2) [2025-04-03 13:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825792', 'tblTempUsageDetail_20' ) start [2025-04-03 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825792', 'tblTempUsageDetail_20' ) end [2025-04-03 13:23:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:23:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:23:30] Production.INFO: ==25466== Releasing lock... [2025-04-03 13:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:23:30] Production.INFO: 85.25 MB #Memory Used# [2025-04-03 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:24:05 [end_date_ymd] => 2025-04-03 13:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:24:05' and `end` < '2025-04-03 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-03 13:24:20] Production.INFO: count ==7597 [2025-04-03 13:24:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:24:05 - End Time 2025-04-03 13:24:05 [2025-04-03 13:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825797', 'tblTempUsageDetail_20' ) start [2025-04-03 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825797', 'tblTempUsageDetail_20' ) end [2025-04-03 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825797', 'tblTempVendorCDR_20' ) start [2025-04-03 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825797', 'tblTempVendorCDR_20' ) end [2025-04-03 13:24:24] Production.INFO: ProcessCDR(1,14825797,1,1,2) [2025-04-03 13:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825797', 'tblTempUsageDetail_20' ) start [2025-04-03 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825797', 'tblTempUsageDetail_20' ) end [2025-04-03 13:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:24:29] Production.INFO: ==25547== Releasing lock... [2025-04-03 13:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:24:29] Production.INFO: 85.25 MB #Memory Used# [2025-04-03 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:25:06 [end_date_ymd] => 2025-04-03 13:25:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:25:06' and `end` < '2025-04-03 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-03 13:25:20] Production.INFO: count ==7646 [2025-04-03 13:25:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:25:06 - End Time 2025-04-03 13:25:06 [2025-04-03 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825802', 'tblTempUsageDetail_20' ) start [2025-04-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825802', 'tblTempUsageDetail_20' ) end [2025-04-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825802', 'tblTempVendorCDR_20' ) start [2025-04-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825802', 'tblTempVendorCDR_20' ) end [2025-04-03 13:25:24] Production.INFO: ProcessCDR(1,14825802,1,1,2) [2025-04-03 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825802', 'tblTempUsageDetail_20' ) start [2025-04-03 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825802', 'tblTempUsageDetail_20' ) end [2025-04-03 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:25:29] Production.INFO: ==25667== Releasing lock... [2025-04-03 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:25:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:26:05 [end_date_ymd] => 2025-04-03 13:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:26:05' and `end` < '2025-04-03 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-03 13:26:19] Production.INFO: count ==7596 [2025-04-03 13:26:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:26:05 - End Time 2025-04-03 13:26:05 [2025-04-03 13:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825807', 'tblTempUsageDetail_20' ) start [2025-04-03 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825807', 'tblTempUsageDetail_20' ) end [2025-04-03 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825807', 'tblTempVendorCDR_20' ) start [2025-04-03 13:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825807', 'tblTempVendorCDR_20' ) end [2025-04-03 13:26:23] Production.INFO: ProcessCDR(1,14825807,1,1,2) [2025-04-03 13:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825807', 'tblTempUsageDetail_20' ) start [2025-04-03 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825807', 'tblTempUsageDetail_20' ) end [2025-04-03 13:26:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:26:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:26:29] Production.INFO: ==25745== Releasing lock... [2025-04-03 13:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:26:29] Production.INFO: 85.25 MB #Memory Used# [2025-04-03 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:27:06 [end_date_ymd] => 2025-04-03 13:27:06 [RateCDR] => 1 ) [2025-04-03 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:27:06' and `end` < '2025-04-03 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:27:20] Production.INFO: count ==7607 [2025-04-03 13:27:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:27:06 - End Time 2025-04-03 13:27:06 [2025-04-03 13:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825812', 'tblTempUsageDetail_20' ) start [2025-04-03 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825812', 'tblTempUsageDetail_20' ) end [2025-04-03 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825812', 'tblTempVendorCDR_20' ) start [2025-04-03 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825812', 'tblTempVendorCDR_20' ) end [2025-04-03 13:27:24] Production.INFO: ProcessCDR(1,14825812,1,1,2) [2025-04-03 13:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825812', 'tblTempUsageDetail_20' ) start [2025-04-03 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825812', 'tblTempUsageDetail_20' ) end [2025-04-03 13:27:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:27:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:27:29] Production.INFO: ==25822== Releasing lock... [2025-04-03 13:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:27:29] Production.INFO: 85.5 MB #Memory Used# [2025-04-03 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:28:05 [end_date_ymd] => 2025-04-03 13:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:28:05' and `end` < '2025-04-03 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-03 13:28:19] Production.INFO: count ==7613 [2025-04-03 13:28:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:28:05 - End Time 2025-04-03 13:28:05 [2025-04-03 13:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825817', 'tblTempUsageDetail_20' ) start [2025-04-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825817', 'tblTempUsageDetail_20' ) end [2025-04-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825817', 'tblTempVendorCDR_20' ) start [2025-04-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825817', 'tblTempVendorCDR_20' ) end [2025-04-03 13:28:23] Production.INFO: ProcessCDR(1,14825817,1,1,2) [2025-04-03 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825817', 'tblTempUsageDetail_20' ) start [2025-04-03 13:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825817', 'tblTempUsageDetail_20' ) end [2025-04-03 13:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:28:29] Production.INFO: ==25900== Releasing lock... [2025-04-03 13:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:28:29] Production.INFO: 85.5 MB #Memory Used# [2025-04-03 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:29:06 [end_date_ymd] => 2025-04-03 13:29:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:29:06' and `end` < '2025-04-03 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-03 13:29:20] Production.INFO: count ==7639 [2025-04-03 13:29:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:29:06 - End Time 2025-04-03 13:29:06 [2025-04-03 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825822', 'tblTempUsageDetail_20' ) start [2025-04-03 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825822', 'tblTempUsageDetail_20' ) end [2025-04-03 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825822', 'tblTempVendorCDR_20' ) start [2025-04-03 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825822', 'tblTempVendorCDR_20' ) end [2025-04-03 13:29:24] Production.INFO: ProcessCDR(1,14825822,1,1,2) [2025-04-03 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825822', 'tblTempUsageDetail_20' ) start [2025-04-03 13:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825822', 'tblTempUsageDetail_20' ) end [2025-04-03 13:29:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:29:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:29:30] Production.INFO: ==25979== Releasing lock... [2025-04-03 13:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:29:30] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:30:06 [end_date_ymd] => 2025-04-03 13:30:06 [RateCDR] => 1 ) [2025-04-03 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:30:06' and `end` < '2025-04-03 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:30:21] Production.INFO: count ==7648 [2025-04-03 13:30:25] Production.ERROR: pbx CDR StartTime 2025-04-03 10:30:06 - End Time 2025-04-03 13:30:06 [2025-04-03 13:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825828', 'tblTempUsageDetail_20' ) start [2025-04-03 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825828', 'tblTempUsageDetail_20' ) end [2025-04-03 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825828', 'tblTempVendorCDR_20' ) start [2025-04-03 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825828', 'tblTempVendorCDR_20' ) end [2025-04-03 13:30:25] Production.INFO: ProcessCDR(1,14825828,1,1,2) [2025-04-03 13:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825828', 'tblTempUsageDetail_20' ) start [2025-04-03 13:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825828', 'tblTempUsageDetail_20' ) end [2025-04-03 13:30:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:30:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:30:30] Production.INFO: ==26057== Releasing lock... [2025-04-03 13:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:30:30] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:31:06 [end_date_ymd] => 2025-04-03 13:31:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:31:06' and `end` < '2025-04-03 13: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-03 13:31:20] Production.INFO: count ==7622 [2025-04-03 13:31:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:31:06 - End Time 2025-04-03 13:31:06 [2025-04-03 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825833', 'tblTempUsageDetail_20' ) start [2025-04-03 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825833', 'tblTempUsageDetail_20' ) end [2025-04-03 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825833', 'tblTempVendorCDR_20' ) start [2025-04-03 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825833', 'tblTempVendorCDR_20' ) end [2025-04-03 13:31:24] Production.INFO: ProcessCDR(1,14825833,1,1,2) [2025-04-03 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825833', 'tblTempUsageDetail_20' ) start [2025-04-03 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825833', 'tblTempUsageDetail_20' ) end [2025-04-03 13:31:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:31:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:31:29] Production.INFO: ==26140== Releasing lock... [2025-04-03 13:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:31:29] Production.INFO: 85.5 MB #Memory Used# [2025-04-03 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:32:05 [end_date_ymd] => 2025-04-03 13:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:32:05' and `end` < '2025-04-03 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-03 13:32:19] Production.INFO: count ==7641 [2025-04-03 13:32:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:32:05 - End Time 2025-04-03 13:32:05 [2025-04-03 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825838', 'tblTempUsageDetail_20' ) start [2025-04-03 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825838', 'tblTempUsageDetail_20' ) end [2025-04-03 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825838', 'tblTempVendorCDR_20' ) start [2025-04-03 13:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825838', 'tblTempVendorCDR_20' ) end [2025-04-03 13:32:24] Production.INFO: ProcessCDR(1,14825838,1,1,2) [2025-04-03 13:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825838', 'tblTempUsageDetail_20' ) start [2025-04-03 13:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825838', 'tblTempUsageDetail_20' ) end [2025-04-03 13:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:32:29] Production.INFO: ==26219== Releasing lock... [2025-04-03 13:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:32:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:33:06 [end_date_ymd] => 2025-04-03 13:33:06 [RateCDR] => 1 ) [2025-04-03 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:33:06' and `end` < '2025-04-03 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:33:20] Production.INFO: count ==7652 [2025-04-03 13:33:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:33:06 - End Time 2025-04-03 13:33:06 [2025-04-03 13:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825843', 'tblTempUsageDetail_20' ) start [2025-04-03 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825843', 'tblTempUsageDetail_20' ) end [2025-04-03 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825843', 'tblTempVendorCDR_20' ) start [2025-04-03 13:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825843', 'tblTempVendorCDR_20' ) end [2025-04-03 13:33:24] Production.INFO: ProcessCDR(1,14825843,1,1,2) [2025-04-03 13:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825843', 'tblTempUsageDetail_20' ) start [2025-04-03 13:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825843', 'tblTempUsageDetail_20' ) end [2025-04-03 13:33:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:33:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:33:30] Production.INFO: ==26295== Releasing lock... [2025-04-03 13:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:33:30] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:34:06 [end_date_ymd] => 2025-04-03 13:34:06 [RateCDR] => 1 ) [2025-04-03 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:34:06' and `end` < '2025-04-03 13: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-03 13:34:20] Production.INFO: count ==7650 [2025-04-03 13:34:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:34:06 - End Time 2025-04-03 13:34:06 [2025-04-03 13:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825848', 'tblTempUsageDetail_20' ) start [2025-04-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825848', 'tblTempUsageDetail_20' ) end [2025-04-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825848', 'tblTempVendorCDR_20' ) start [2025-04-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825848', 'tblTempVendorCDR_20' ) end [2025-04-03 13:34:24] Production.INFO: ProcessCDR(1,14825848,1,1,2) [2025-04-03 13:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825848', 'tblTempUsageDetail_20' ) start [2025-04-03 13:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825848', 'tblTempUsageDetail_20' ) end [2025-04-03 13:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:34:29] Production.INFO: ==26380== Releasing lock... [2025-04-03 13:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:34:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:35:06 [end_date_ymd] => 2025-04-03 13:35:06 [RateCDR] => 1 ) [2025-04-03 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:35:06' and `end` < '2025-04-03 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:35:20] Production.INFO: count ==7646 [2025-04-03 13:35:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:35:06 - End Time 2025-04-03 13:35:06 [2025-04-03 13:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825853', 'tblTempUsageDetail_20' ) start [2025-04-03 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825853', 'tblTempUsageDetail_20' ) end [2025-04-03 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825853', 'tblTempVendorCDR_20' ) start [2025-04-03 13:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825853', 'tblTempVendorCDR_20' ) end [2025-04-03 13:35:24] Production.INFO: ProcessCDR(1,14825853,1,1,2) [2025-04-03 13:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825853', 'tblTempUsageDetail_20' ) start [2025-04-03 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825853', 'tblTempUsageDetail_20' ) end [2025-04-03 13:35:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:35:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:35:30] Production.INFO: ==26458== Releasing lock... [2025-04-03 13:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:35:30] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:36:06 [end_date_ymd] => 2025-04-03 13:36:06 [RateCDR] => 1 ) [2025-04-03 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:36:06' and `end` < '2025-04-03 13: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-03 13:36:20] Production.INFO: count ==7647 [2025-04-03 13:36:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:36:06 - End Time 2025-04-03 13:36:06 [2025-04-03 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825858', 'tblTempUsageDetail_20' ) start [2025-04-03 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825858', 'tblTempUsageDetail_20' ) end [2025-04-03 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825858', 'tblTempVendorCDR_20' ) start [2025-04-03 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825858', 'tblTempVendorCDR_20' ) end [2025-04-03 13:36:24] Production.INFO: ProcessCDR(1,14825858,1,1,2) [2025-04-03 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825858', 'tblTempUsageDetail_20' ) start [2025-04-03 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825858', 'tblTempUsageDetail_20' ) end [2025-04-03 13:36:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:36:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:36:30] Production.INFO: ==26539== Releasing lock... [2025-04-03 13:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:36:30] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:37:06 [end_date_ymd] => 2025-04-03 13:37:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:37:06' and `end` < '2025-04-03 13: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-03 13:37:20] Production.INFO: count ==7649 [2025-04-03 13:37:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:37:06 - End Time 2025-04-03 13:37:06 [2025-04-03 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825863', 'tblTempUsageDetail_20' ) start [2025-04-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825863', 'tblTempUsageDetail_20' ) end [2025-04-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825863', 'tblTempVendorCDR_20' ) start [2025-04-03 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825863', 'tblTempVendorCDR_20' ) end [2025-04-03 13:37:24] Production.INFO: ProcessCDR(1,14825863,1,1,2) [2025-04-03 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825863', 'tblTempUsageDetail_20' ) start [2025-04-03 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825863', 'tblTempUsageDetail_20' ) end [2025-04-03 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:37:29] Production.INFO: ==26624== Releasing lock... [2025-04-03 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:37:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:38:05 [end_date_ymd] => 2025-04-03 13:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:38:05' and `end` < '2025-04-03 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-03 13:38:19] Production.INFO: count ==7646 [2025-04-03 13:38:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:38:05 - End Time 2025-04-03 13:38:05 [2025-04-03 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825868', 'tblTempUsageDetail_20' ) start [2025-04-03 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825868', 'tblTempUsageDetail_20' ) end [2025-04-03 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825868', 'tblTempVendorCDR_20' ) start [2025-04-03 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825868', 'tblTempVendorCDR_20' ) end [2025-04-03 13:38:23] Production.INFO: ProcessCDR(1,14825868,1,1,2) [2025-04-03 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825868', 'tblTempUsageDetail_20' ) start [2025-04-03 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825868', 'tblTempUsageDetail_20' ) end [2025-04-03 13:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:38:28] Production.INFO: ==26707== Releasing lock... [2025-04-03 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:38:28] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:39:05 [end_date_ymd] => 2025-04-03 13:39:05 [RateCDR] => 1 ) [2025-04-03 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:39:05' and `end` < '2025-04-03 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:39:19] Production.INFO: count ==7639 [2025-04-03 13:39:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:39:05 - End Time 2025-04-03 13:39:05 [2025-04-03 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825873', 'tblTempUsageDetail_20' ) start [2025-04-03 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825873', 'tblTempUsageDetail_20' ) end [2025-04-03 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825873', 'tblTempVendorCDR_20' ) start [2025-04-03 13:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825873', 'tblTempVendorCDR_20' ) end [2025-04-03 13:39:24] Production.INFO: ProcessCDR(1,14825873,1,1,2) [2025-04-03 13:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825873', 'tblTempUsageDetail_20' ) start [2025-04-03 13:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825873', 'tblTempUsageDetail_20' ) end [2025-04-03 13:39:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:39:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:39:29] Production.INFO: ==26790== Releasing lock... [2025-04-03 13:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:39:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:40:06 [end_date_ymd] => 2025-04-03 13:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:40:06' and `end` < '2025-04-03 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-03 13:40:20] Production.INFO: count ==7636 [2025-04-03 13:40:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:40:06 - End Time 2025-04-03 13:40:06 [2025-04-03 13:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825878', 'tblTempUsageDetail_20' ) start [2025-04-03 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825878', 'tblTempUsageDetail_20' ) end [2025-04-03 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825878', 'tblTempVendorCDR_20' ) start [2025-04-03 13:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825878', 'tblTempVendorCDR_20' ) end [2025-04-03 13:40:24] Production.INFO: ProcessCDR(1,14825878,1,1,2) [2025-04-03 13:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825878', 'tblTempUsageDetail_20' ) start [2025-04-03 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825878', 'tblTempUsageDetail_20' ) end [2025-04-03 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:40:29] Production.INFO: ==26920== Releasing lock... [2025-04-03 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:40:29] Production.INFO: 85.5 MB #Memory Used# [2025-04-03 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:41:05 [end_date_ymd] => 2025-04-03 13:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:41:05' and `end` < '2025-04-03 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-03 13:41:20] Production.INFO: count ==7664 [2025-04-03 13:41:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:41:05 - End Time 2025-04-03 13:41:05 [2025-04-03 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825884', 'tblTempUsageDetail_20' ) start [2025-04-03 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825884', 'tblTempUsageDetail_20' ) end [2025-04-03 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825884', 'tblTempVendorCDR_20' ) start [2025-04-03 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825884', 'tblTempVendorCDR_20' ) end [2025-04-03 13:41:24] Production.INFO: ProcessCDR(1,14825884,1,1,2) [2025-04-03 13:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825884', 'tblTempUsageDetail_20' ) start [2025-04-03 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825884', 'tblTempUsageDetail_20' ) end [2025-04-03 13:41:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:41:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:41:29] Production.INFO: ==27007== Releasing lock... [2025-04-03 13:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:41:29] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:42:05 [end_date_ymd] => 2025-04-03 13:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:42:05' and `end` < '2025-04-03 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-03 13:42:19] Production.INFO: count ==7670 [2025-04-03 13:42:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:42:05 - End Time 2025-04-03 13:42:05 [2025-04-03 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825889', 'tblTempUsageDetail_20' ) start [2025-04-03 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825889', 'tblTempUsageDetail_20' ) end [2025-04-03 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825889', 'tblTempVendorCDR_20' ) start [2025-04-03 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825889', 'tblTempVendorCDR_20' ) end [2025-04-03 13:42:23] Production.INFO: ProcessCDR(1,14825889,1,1,2) [2025-04-03 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825889', 'tblTempUsageDetail_20' ) start [2025-04-03 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825889', 'tblTempUsageDetail_20' ) end [2025-04-03 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:42:28] Production.INFO: ==27092== Releasing lock... [2025-04-03 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:42:28] Production.INFO: 85.75 MB #Memory Used# [2025-04-03 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:43:06 [end_date_ymd] => 2025-04-03 13:43:06 [RateCDR] => 1 ) [2025-04-03 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:43:06' and `end` < '2025-04-03 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:43:20] Production.INFO: count ==7606 [2025-04-03 13:43:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:43:06 - End Time 2025-04-03 13:43:06 [2025-04-03 13:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825894', 'tblTempUsageDetail_20' ) start [2025-04-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825894', 'tblTempUsageDetail_20' ) end [2025-04-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825894', 'tblTempVendorCDR_20' ) start [2025-04-03 13:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825894', 'tblTempVendorCDR_20' ) end [2025-04-03 13:43:24] Production.INFO: ProcessCDR(1,14825894,1,1,2) [2025-04-03 13:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825894', 'tblTempUsageDetail_20' ) start [2025-04-03 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825894', 'tblTempUsageDetail_20' ) end [2025-04-03 13:43:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:43:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:43:29] Production.INFO: ==27175== Releasing lock... [2025-04-03 13:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:43:29] Production.INFO: 85.5 MB #Memory Used# [2025-04-03 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:44:05 [end_date_ymd] => 2025-04-03 13:44:05 [RateCDR] => 1 ) [2025-04-03 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:44:05' and `end` < '2025-04-03 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:44:19] Production.INFO: count ==7561 [2025-04-03 13:44:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:44:05 - End Time 2025-04-03 13:44:05 [2025-04-03 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825899', 'tblTempUsageDetail_20' ) start [2025-04-03 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825899', 'tblTempUsageDetail_20' ) end [2025-04-03 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825899', 'tblTempVendorCDR_20' ) start [2025-04-03 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825899', 'tblTempVendorCDR_20' ) end [2025-04-03 13:44:23] Production.INFO: ProcessCDR(1,14825899,1,1,2) [2025-04-03 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825899', 'tblTempUsageDetail_20' ) start [2025-04-03 13:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825899', 'tblTempUsageDetail_20' ) end [2025-04-03 13:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:44:29] Production.INFO: ==27267== Releasing lock... [2025-04-03 13:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:44:29] Production.INFO: 85 MB #Memory Used# [2025-04-03 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:45:06 [end_date_ymd] => 2025-04-03 13:45:06 [RateCDR] => 1 ) [2025-04-03 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:45:06' and `end` < '2025-04-03 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:45:20] Production.INFO: count ==7522 [2025-04-03 13:45:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:45:06 - End Time 2025-04-03 13:45:06 [2025-04-03 13:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825904', 'tblTempUsageDetail_20' ) start [2025-04-03 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825904', 'tblTempUsageDetail_20' ) end [2025-04-03 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825904', 'tblTempVendorCDR_20' ) start [2025-04-03 13:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825904', 'tblTempVendorCDR_20' ) end [2025-04-03 13:45:24] Production.INFO: ProcessCDR(1,14825904,1,1,2) [2025-04-03 13:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825904', 'tblTempUsageDetail_20' ) start [2025-04-03 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825904', 'tblTempUsageDetail_20' ) end [2025-04-03 13:45:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:45:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:45:29] Production.INFO: ==27350== Releasing lock... [2025-04-03 13:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:45:29] Production.INFO: 84.75 MB #Memory Used# [2025-04-03 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:46:05 [end_date_ymd] => 2025-04-03 13:46:05 [RateCDR] => 1 ) [2025-04-03 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:46:05' and `end` < '2025-04-03 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:46:19] Production.INFO: count ==7479 [2025-04-03 13:46:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:46:05 - End Time 2025-04-03 13:46:05 [2025-04-03 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825909', 'tblTempUsageDetail_20' ) start [2025-04-03 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825909', 'tblTempUsageDetail_20' ) end [2025-04-03 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825909', 'tblTempVendorCDR_20' ) start [2025-04-03 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825909', 'tblTempVendorCDR_20' ) end [2025-04-03 13:46:22] Production.INFO: ProcessCDR(1,14825909,1,1,2) [2025-04-03 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825909', 'tblTempUsageDetail_20' ) start [2025-04-03 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825909', 'tblTempUsageDetail_20' ) end [2025-04-03 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:46:28] Production.INFO: ==27435== Releasing lock... [2025-04-03 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:46:28] Production.INFO: 84.5 MB #Memory Used# [2025-04-03 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:47:05 [end_date_ymd] => 2025-04-03 13:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:47:05' and `end` < '2025-04-03 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-03 13:47:19] Production.INFO: count ==7451 [2025-04-03 13:47:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:47:05 - End Time 2025-04-03 13:47:05 [2025-04-03 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825914', 'tblTempUsageDetail_20' ) start [2025-04-03 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825914', 'tblTempUsageDetail_20' ) end [2025-04-03 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825914', 'tblTempVendorCDR_20' ) start [2025-04-03 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825914', 'tblTempVendorCDR_20' ) end [2025-04-03 13:47:23] Production.INFO: ProcessCDR(1,14825914,1,1,2) [2025-04-03 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825914', 'tblTempUsageDetail_20' ) start [2025-04-03 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825914', 'tblTempUsageDetail_20' ) end [2025-04-03 13:47:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:47:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:47:29] Production.INFO: ==27520== Releasing lock... [2025-04-03 13:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:47:29] Production.INFO: 84.25 MB #Memory Used# [2025-04-03 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:48:05 [end_date_ymd] => 2025-04-03 13:48:05 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:48:05' and `end` < '2025-04-03 13: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-03 13:48:19] Production.INFO: count ==7437 [2025-04-03 13:48:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:48:05 - End Time 2025-04-03 13:48:05 [2025-04-03 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825919', 'tblTempUsageDetail_20' ) start [2025-04-03 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825919', 'tblTempUsageDetail_20' ) end [2025-04-03 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825919', 'tblTempVendorCDR_20' ) start [2025-04-03 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825919', 'tblTempVendorCDR_20' ) end [2025-04-03 13:48:23] Production.INFO: ProcessCDR(1,14825919,1,1,2) [2025-04-03 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825919', 'tblTempUsageDetail_20' ) start [2025-04-03 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825919', 'tblTempUsageDetail_20' ) end [2025-04-03 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:48:28] Production.INFO: ==27605== Releasing lock... [2025-04-03 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:48:28] Production.INFO: 84.25 MB #Memory Used# [2025-04-03 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:49:05 [end_date_ymd] => 2025-04-03 13:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:49:05' and `end` < '2025-04-03 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-03 13:49:19] Production.INFO: count ==7371 [2025-04-03 13:49:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:49:05 - End Time 2025-04-03 13:49:05 [2025-04-03 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825924', 'tblTempUsageDetail_20' ) start [2025-04-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825924', 'tblTempUsageDetail_20' ) end [2025-04-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825924', 'tblTempVendorCDR_20' ) start [2025-04-03 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825924', 'tblTempVendorCDR_20' ) end [2025-04-03 13:49:23] Production.INFO: ProcessCDR(1,14825924,1,1,2) [2025-04-03 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825924', 'tblTempUsageDetail_20' ) start [2025-04-03 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825924', 'tblTempUsageDetail_20' ) end [2025-04-03 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:49:28] Production.INFO: ==27686== Releasing lock... [2025-04-03 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:49:28] Production.INFO: 83.75 MB #Memory Used# [2025-04-03 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:50:07 [end_date_ymd] => 2025-04-03 13:50:07 [RateCDR] => 1 ) [2025-04-03 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:50:07' and `end` < '2025-04-03 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:50:21] Production.INFO: count ==7317 [2025-04-03 13:50:24] Production.ERROR: pbx CDR StartTime 2025-04-03 10:50:07 - End Time 2025-04-03 13:50:07 [2025-04-03 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825930', 'tblTempUsageDetail_20' ) start [2025-04-03 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825930', 'tblTempUsageDetail_20' ) end [2025-04-03 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825930', 'tblTempVendorCDR_20' ) start [2025-04-03 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825930', 'tblTempVendorCDR_20' ) end [2025-04-03 13:50:25] Production.INFO: ProcessCDR(1,14825930,1,1,2) [2025-04-03 13:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825930', 'tblTempUsageDetail_20' ) start [2025-04-03 13:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825930', 'tblTempUsageDetail_20' ) end [2025-04-03 13:50:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:50:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:50:31] Production.INFO: ==27777== Releasing lock... [2025-04-03 13:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:50:31] Production.INFO: 83.25 MB #Memory Used# [2025-04-03 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:51:05 [end_date_ymd] => 2025-04-03 13:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:51:05' and `end` < '2025-04-03 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-03 13:51:19] Production.INFO: count ==7255 [2025-04-03 13:51:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:51:05 - End Time 2025-04-03 13:51:05 [2025-04-03 13:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825935', 'tblTempUsageDetail_20' ) start [2025-04-03 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825935', 'tblTempUsageDetail_20' ) end [2025-04-03 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825935', 'tblTempVendorCDR_20' ) start [2025-04-03 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825935', 'tblTempVendorCDR_20' ) end [2025-04-03 13:51:23] Production.INFO: ProcessCDR(1,14825935,1,1,2) [2025-04-03 13:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825935', 'tblTempUsageDetail_20' ) start [2025-04-03 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825935', 'tblTempUsageDetail_20' ) end [2025-04-03 13:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:51:28] Production.INFO: ==27861== Releasing lock... [2025-04-03 13:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:51:28] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:52:06 [end_date_ymd] => 2025-04-03 13:52:06 [RateCDR] => 1 ) [2025-04-03 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:52:06' and `end` < '2025-04-03 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:52:20] Production.INFO: count ==7218 [2025-04-03 13:52:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:52:06 - End Time 2025-04-03 13:52:06 [2025-04-03 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825940', 'tblTempUsageDetail_20' ) start [2025-04-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825940', 'tblTempUsageDetail_20' ) end [2025-04-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825940', 'tblTempVendorCDR_20' ) start [2025-04-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825940', 'tblTempVendorCDR_20' ) end [2025-04-03 13:52:23] Production.INFO: ProcessCDR(1,14825940,1,1,2) [2025-04-03 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825940', 'tblTempUsageDetail_20' ) start [2025-04-03 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825940', 'tblTempUsageDetail_20' ) end [2025-04-03 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:52:28] Production.INFO: ==27946== Releasing lock... [2025-04-03 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:52:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:53:05 [end_date_ymd] => 2025-04-03 13:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:53:05' and `end` < '2025-04-03 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-03 13:53:19] Production.INFO: count ==7174 [2025-04-03 13:53:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:53:05 - End Time 2025-04-03 13:53:05 [2025-04-03 13:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825945', 'tblTempUsageDetail_20' ) start [2025-04-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825945', 'tblTempUsageDetail_20' ) end [2025-04-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825945', 'tblTempVendorCDR_20' ) start [2025-04-03 13:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825945', 'tblTempVendorCDR_20' ) end [2025-04-03 13:53:23] Production.INFO: ProcessCDR(1,14825945,1,1,2) [2025-04-03 13:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825945', 'tblTempUsageDetail_20' ) start [2025-04-03 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825945', 'tblTempUsageDetail_20' ) end [2025-04-03 13:53:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:53:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:53:29] Production.INFO: ==28028== Releasing lock... [2025-04-03 13:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:53:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:54:06 [end_date_ymd] => 2025-04-03 13:54:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:54:06' and `end` < '2025-04-03 13: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-03 13:54:19] Production.INFO: count ==7097 [2025-04-03 13:54:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:54:06 - End Time 2025-04-03 13:54:06 [2025-04-03 13:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825950', 'tblTempUsageDetail_20' ) start [2025-04-03 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825950', 'tblTempUsageDetail_20' ) end [2025-04-03 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825950', 'tblTempVendorCDR_20' ) start [2025-04-03 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825950', 'tblTempVendorCDR_20' ) end [2025-04-03 13:54:23] Production.INFO: ProcessCDR(1,14825950,1,1,2) [2025-04-03 13:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825950', 'tblTempUsageDetail_20' ) start [2025-04-03 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825950', 'tblTempUsageDetail_20' ) end [2025-04-03 13:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:54:29] Production.INFO: ==28115== Releasing lock... [2025-04-03 13:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:54:29] Production.INFO: 81.5 MB #Memory Used# [2025-04-03 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:55:05 [end_date_ymd] => 2025-04-03 13:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:55:05' and `end` < '2025-04-03 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-03 13:55:19] Production.INFO: count ==7037 [2025-04-03 13:55:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:55:05 - End Time 2025-04-03 13:55:05 [2025-04-03 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825955', 'tblTempUsageDetail_20' ) start [2025-04-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825955', 'tblTempUsageDetail_20' ) end [2025-04-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825955', 'tblTempVendorCDR_20' ) start [2025-04-03 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825955', 'tblTempVendorCDR_20' ) end [2025-04-03 13:55:23] Production.INFO: ProcessCDR(1,14825955,1,1,2) [2025-04-03 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825955', 'tblTempUsageDetail_20' ) start [2025-04-03 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825955', 'tblTempUsageDetail_20' ) end [2025-04-03 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:55:28] Production.INFO: ==28199== Releasing lock... [2025-04-03 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:55:28] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:56:06 [end_date_ymd] => 2025-04-03 13:56:06 [RateCDR] => 1 ) [2025-04-03 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 10:56:06' and `end` < '2025-04-03 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 13:56:20] Production.INFO: count ==6952 [2025-04-03 13:56:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:56:06 - End Time 2025-04-03 13:56:06 [2025-04-03 13:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825960', 'tblTempUsageDetail_20' ) start [2025-04-03 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825960', 'tblTempUsageDetail_20' ) end [2025-04-03 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825960', 'tblTempVendorCDR_20' ) start [2025-04-03 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825960', 'tblTempVendorCDR_20' ) end [2025-04-03 13:56:23] Production.INFO: ProcessCDR(1,14825960,1,1,2) [2025-04-03 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825960', 'tblTempUsageDetail_20' ) start [2025-04-03 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825960', 'tblTempUsageDetail_20' ) end [2025-04-03 13:56:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:56:29] Production.INFO: ==28323== Releasing lock... [2025-04-03 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:56:29] Production.INFO: 80 MB #Memory Used# [2025-04-03 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:57:06 [end_date_ymd] => 2025-04-03 13:57:06 [RateCDR] => 1 ) [2025-04-03 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-03 10:57:06' and `end` < '2025-04-03 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-03 13:57:20] Production.INFO: count ==6884 [2025-04-03 13:57:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:57:06 - End Time 2025-04-03 13:57:06 [2025-04-03 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825965', 'tblTempUsageDetail_20' ) start [2025-04-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825965', 'tblTempUsageDetail_20' ) end [2025-04-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825965', 'tblTempVendorCDR_20' ) start [2025-04-03 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825965', 'tblTempVendorCDR_20' ) end [2025-04-03 13:57:23] Production.INFO: ProcessCDR(1,14825965,1,1,2) [2025-04-03 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825965', 'tblTempUsageDetail_20' ) start [2025-04-03 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825965', 'tblTempUsageDetail_20' ) end [2025-04-03 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:57:27] Production.INFO: ==28404== Releasing lock... [2025-04-03 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:57:27] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:58:06 [end_date_ymd] => 2025-04-03 13:58:06 [RateCDR] => 1 ) [2025-04-03 13: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-03 10:58:06' and `end` < '2025-04-03 13: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-03 13:58:20] Production.INFO: count ==6808 [2025-04-03 13:58:23] Production.ERROR: pbx CDR StartTime 2025-04-03 10:58:06 - End Time 2025-04-03 13:58:06 [2025-04-03 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825970', 'tblTempUsageDetail_20' ) start [2025-04-03 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825970', 'tblTempUsageDetail_20' ) end [2025-04-03 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825970', 'tblTempVendorCDR_20' ) start [2025-04-03 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825970', 'tblTempVendorCDR_20' ) end [2025-04-03 13:58:24] Production.INFO: ProcessCDR(1,14825970,1,1,2) [2025-04-03 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825970', 'tblTempUsageDetail_20' ) start [2025-04-03 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825970', 'tblTempUsageDetail_20' ) end [2025-04-03 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:58:29] Production.INFO: ==28487== Releasing lock... [2025-04-03 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:58:29] Production.INFO: 79 MB #Memory Used# [2025-04-03 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 10:59:05 [end_date_ymd] => 2025-04-03 13:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 10:59:05' and `end` < '2025-04-03 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-03 13:59:19] Production.INFO: count ==6755 [2025-04-03 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-03 10:59:05 - End Time 2025-04-03 13:59:05 [2025-04-03 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825975', 'tblTempUsageDetail_20' ) start [2025-04-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825975', 'tblTempUsageDetail_20' ) end [2025-04-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825975', 'tblTempVendorCDR_20' ) start [2025-04-03 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825975', 'tblTempVendorCDR_20' ) end [2025-04-03 13:59:22] Production.INFO: ProcessCDR(1,14825975,1,1,2) [2025-04-03 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825975', 'tblTempUsageDetail_20' ) start [2025-04-03 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825975', 'tblTempUsageDetail_20' ) end [2025-04-03 13:59:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 13:59:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 13:59:29] Production.INFO: ==28572== Releasing lock... [2025-04-03 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 13:59:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:00:06 [end_date_ymd] => 2025-04-03 14:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:00:06' and `end` < '2025-04-03 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-03 14:00:20] Production.INFO: count ==6680 [2025-04-03 14:00:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:00:06 - End Time 2025-04-03 14:00:06 [2025-04-03 14:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825980', 'tblTempUsageDetail_20' ) start [2025-04-03 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825980', 'tblTempUsageDetail_20' ) end [2025-04-03 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825980', 'tblTempVendorCDR_20' ) start [2025-04-03 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825980', 'tblTempVendorCDR_20' ) end [2025-04-03 14:00:24] Production.INFO: ProcessCDR(1,14825980,1,1,2) [2025-04-03 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825980', 'tblTempUsageDetail_20' ) start [2025-04-03 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825980', 'tblTempUsageDetail_20' ) end [2025-04-03 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:00:30] Production.INFO: ==28659== Releasing lock... [2025-04-03 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:00:30] Production.INFO: 78 MB #Memory Used# [2025-04-03 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:01:05 [end_date_ymd] => 2025-04-03 14:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:01:05' and `end` < '2025-04-03 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-03 14:01:19] Production.INFO: count ==6591 [2025-04-03 14:01:22] Production.ERROR: pbx CDR StartTime 2025-04-03 11:01:05 - End Time 2025-04-03 14:01:05 [2025-04-03 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825986', 'tblTempUsageDetail_20' ) start [2025-04-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825986', 'tblTempUsageDetail_20' ) end [2025-04-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825986', 'tblTempVendorCDR_20' ) start [2025-04-03 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825986', 'tblTempVendorCDR_20' ) end [2025-04-03 14:01:23] Production.INFO: ProcessCDR(1,14825986,1,1,2) [2025-04-03 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825986', 'tblTempUsageDetail_20' ) start [2025-04-03 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825986', 'tblTempUsageDetail_20' ) end [2025-04-03 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:01:28] Production.INFO: ==28755== Releasing lock... [2025-04-03 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:01:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 14:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:02:07 [end_date_ymd] => 2025-04-03 14:02:07 [RateCDR] => 1 ) [2025-04-03 14:02: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-03 11:02:07' and `end` < '2025-04-03 14:02: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-03 14:02:20] Production.INFO: count ==6567 [2025-04-03 14:02:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:02:07 - End Time 2025-04-03 14:02:07 [2025-04-03 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825991', 'tblTempUsageDetail_20' ) start [2025-04-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825991', 'tblTempUsageDetail_20' ) end [2025-04-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825991', 'tblTempVendorCDR_20' ) start [2025-04-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825991', 'tblTempVendorCDR_20' ) end [2025-04-03 14:02:24] Production.INFO: ProcessCDR(1,14825991,1,1,2) [2025-04-03 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825991', 'tblTempUsageDetail_20' ) start [2025-04-03 14:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825991', 'tblTempUsageDetail_20' ) end [2025-04-03 14:02:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:02:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:02:30] Production.INFO: ==28839== Releasing lock... [2025-04-03 14:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:02:30] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:03:05 [end_date_ymd] => 2025-04-03 14:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:03:05' and `end` < '2025-04-03 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-03 14:03:19] Production.INFO: count ==6520 [2025-04-03 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-03 11:03:05 - End Time 2025-04-03 14:03:05 [2025-04-03 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825996', 'tblTempUsageDetail_20' ) start [2025-04-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14825996', 'tblTempUsageDetail_20' ) end [2025-04-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825996', 'tblTempVendorCDR_20' ) start [2025-04-03 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14825996', 'tblTempVendorCDR_20' ) end [2025-04-03 14:03:23] Production.INFO: ProcessCDR(1,14825996,1,1,2) [2025-04-03 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14825996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14825996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14825996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14825996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825996', 'tblTempUsageDetail_20' ) start [2025-04-03 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14825996', 'tblTempUsageDetail_20' ) end [2025-04-03 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:03:26] Production.INFO: ==28916== Releasing lock... [2025-04-03 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:03:26] Production.INFO: 76.75 MB #Memory Used# [2025-04-03 14:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:04:06 [end_date_ymd] => 2025-04-03 14:04:06 [RateCDR] => 1 ) [2025-04-03 14:04: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-03 11:04:06' and `end` < '2025-04-03 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-03 14:04:20] Production.INFO: count ==6499 [2025-04-03 14:04:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:04:06 - End Time 2025-04-03 14:04:06 [2025-04-03 14:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826001', 'tblTempUsageDetail_20' ) start [2025-04-03 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826001', 'tblTempUsageDetail_20' ) end [2025-04-03 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826001', 'tblTempVendorCDR_20' ) start [2025-04-03 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826001', 'tblTempVendorCDR_20' ) end [2025-04-03 14:04:24] Production.INFO: ProcessCDR(1,14826001,1,1,2) [2025-04-03 14:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826001', 'tblTempUsageDetail_20' ) start [2025-04-03 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826001', 'tblTempUsageDetail_20' ) end [2025-04-03 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:04:30] Production.INFO: ==29002== Releasing lock... [2025-04-03 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:04:30] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:05:05 [end_date_ymd] => 2025-04-03 14:05:05 [RateCDR] => 1 ) [2025-04-03 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:05:05' and `end` < '2025-04-03 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-03 14:05:19] Production.INFO: count ==6499 [2025-04-03 14:05:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:05:05 - End Time 2025-04-03 14:05:05 [2025-04-03 14:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826006', 'tblTempUsageDetail_20' ) start [2025-04-03 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826006', 'tblTempUsageDetail_20' ) end [2025-04-03 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826006', 'tblTempVendorCDR_20' ) start [2025-04-03 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826006', 'tblTempVendorCDR_20' ) end [2025-04-03 14:05:23] Production.INFO: ProcessCDR(1,14826006,1,1,2) [2025-04-03 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826006', 'tblTempUsageDetail_20' ) start [2025-04-03 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826006', 'tblTempUsageDetail_20' ) end [2025-04-03 14:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:05:29] Production.INFO: ==29084== Releasing lock... [2025-04-03 14:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:05:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:06:06 [end_date_ymd] => 2025-04-03 14:06:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:06:06' and `end` < '2025-04-03 14: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-03 14:06:20] Production.INFO: count ==6485 [2025-04-03 14:06:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:06:06 - End Time 2025-04-03 14:06:06 [2025-04-03 14:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826011', 'tblTempUsageDetail_20' ) start [2025-04-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826011', 'tblTempUsageDetail_20' ) end [2025-04-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826011', 'tblTempVendorCDR_20' ) start [2025-04-03 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826011', 'tblTempVendorCDR_20' ) end [2025-04-03 14:06:24] Production.INFO: ProcessCDR(1,14826011,1,1,2) [2025-04-03 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826011', 'tblTempUsageDetail_20' ) start [2025-04-03 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826011', 'tblTempUsageDetail_20' ) end [2025-04-03 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:06:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:06:30] Production.INFO: ==29161== Releasing lock... [2025-04-03 14:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:06:30] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:07:06 [end_date_ymd] => 2025-04-03 14:07:06 [RateCDR] => 1 ) [2025-04-03 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:07:06' and `end` < '2025-04-03 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:07:20] Production.INFO: count ==6485 [2025-04-03 14:07:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:07:06 - End Time 2025-04-03 14:07:06 [2025-04-03 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826016', 'tblTempUsageDetail_20' ) start [2025-04-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826016', 'tblTempUsageDetail_20' ) end [2025-04-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826016', 'tblTempVendorCDR_20' ) start [2025-04-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826016', 'tblTempVendorCDR_20' ) end [2025-04-03 14:07:24] Production.INFO: ProcessCDR(1,14826016,1,1,2) [2025-04-03 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826016', 'tblTempUsageDetail_20' ) start [2025-04-03 14:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826016', 'tblTempUsageDetail_20' ) end [2025-04-03 14:07:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:07:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:07:30] Production.INFO: ==29241== Releasing lock... [2025-04-03 14:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:07:30] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:08:06 [end_date_ymd] => 2025-04-03 14:08:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:08:06' and `end` < '2025-04-03 14: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-03 14:08:20] Production.INFO: count ==6508 [2025-04-03 14:08:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:08:06 - End Time 2025-04-03 14:08:06 [2025-04-03 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826021', 'tblTempUsageDetail_20' ) start [2025-04-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826021', 'tblTempUsageDetail_20' ) end [2025-04-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826021', 'tblTempVendorCDR_20' ) start [2025-04-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826021', 'tblTempVendorCDR_20' ) end [2025-04-03 14:08:24] Production.INFO: ProcessCDR(1,14826021,1,1,2) [2025-04-03 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826021', 'tblTempUsageDetail_20' ) start [2025-04-03 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826021', 'tblTempUsageDetail_20' ) end [2025-04-03 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:08:30] Production.INFO: ==29320== Releasing lock... [2025-04-03 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:08:30] Production.INFO: 76.75 MB #Memory Used# [2025-04-03 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:09:06 [end_date_ymd] => 2025-04-03 14:09:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:09:06' and `end` < '2025-04-03 14: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-03 14:09:19] Production.INFO: count ==6491 [2025-04-03 14:09:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:09:06 - End Time 2025-04-03 14:09:06 [2025-04-03 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826026', 'tblTempUsageDetail_20' ) start [2025-04-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826026', 'tblTempUsageDetail_20' ) end [2025-04-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826026', 'tblTempVendorCDR_20' ) start [2025-04-03 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826026', 'tblTempVendorCDR_20' ) end [2025-04-03 14:09:23] Production.INFO: ProcessCDR(1,14826026,1,1,2) [2025-04-03 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826026', 'tblTempUsageDetail_20' ) start [2025-04-03 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826026', 'tblTempUsageDetail_20' ) end [2025-04-03 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:09:29] Production.INFO: ==29396== Releasing lock... [2025-04-03 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:09:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:10:06 [end_date_ymd] => 2025-04-03 14:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:10:06' and `end` < '2025-04-03 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-03 14:10:20] Production.INFO: count ==6490 [2025-04-03 14:10:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:10:06 - End Time 2025-04-03 14:10:06 [2025-04-03 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826031', 'tblTempUsageDetail_20' ) start [2025-04-03 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826031', 'tblTempUsageDetail_20' ) end [2025-04-03 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826031', 'tblTempVendorCDR_20' ) start [2025-04-03 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826031', 'tblTempVendorCDR_20' ) end [2025-04-03 14:10:24] Production.INFO: ProcessCDR(1,14826031,1,1,2) [2025-04-03 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826031', 'tblTempUsageDetail_20' ) start [2025-04-03 14:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826031', 'tblTempUsageDetail_20' ) end [2025-04-03 14:10:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:10:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:10:30] Production.INFO: ==29478== Releasing lock... [2025-04-03 14:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:10:30] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:11:05 [end_date_ymd] => 2025-04-03 14:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:11:05' and `end` < '2025-04-03 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-03 14:11:19] Production.INFO: count ==6472 [2025-04-03 14:11:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:11:05 - End Time 2025-04-03 14:11:05 [2025-04-03 14:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826037', 'tblTempUsageDetail_20' ) start [2025-04-03 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826037', 'tblTempUsageDetail_20' ) end [2025-04-03 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826037', 'tblTempVendorCDR_20' ) start [2025-04-03 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826037', 'tblTempVendorCDR_20' ) end [2025-04-03 14:11:23] Production.INFO: ProcessCDR(1,14826037,1,1,2) [2025-04-03 14:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826037', 'tblTempUsageDetail_20' ) start [2025-04-03 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826037', 'tblTempUsageDetail_20' ) end [2025-04-03 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:11:28] Production.INFO: ==29599== Releasing lock... [2025-04-03 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:11:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:12:06 [end_date_ymd] => 2025-04-03 14:12:06 [RateCDR] => 1 ) [2025-04-03 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:12:06' and `end` < '2025-04-03 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:12:20] Production.INFO: count ==6446 [2025-04-03 14:12:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:12:06 - End Time 2025-04-03 14:12:06 [2025-04-03 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826042', 'tblTempUsageDetail_20' ) start [2025-04-03 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826042', 'tblTempUsageDetail_20' ) end [2025-04-03 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826042', 'tblTempVendorCDR_20' ) start [2025-04-03 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826042', 'tblTempVendorCDR_20' ) end [2025-04-03 14:12:24] Production.INFO: ProcessCDR(1,14826042,1,1,2) [2025-04-03 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826042', 'tblTempUsageDetail_20' ) start [2025-04-03 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826042', 'tblTempUsageDetail_20' ) end [2025-04-03 14:12:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:12:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:12:30] Production.INFO: ==29673== Releasing lock... [2025-04-03 14:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:12:30] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:13:06 [end_date_ymd] => 2025-04-03 14:13:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:13:06' and `end` < '2025-04-03 14: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-03 14:13:20] Production.INFO: count ==6440 [2025-04-03 14:13:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:13:06 - End Time 2025-04-03 14:13:06 [2025-04-03 14:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826047', 'tblTempUsageDetail_20' ) start [2025-04-03 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826047', 'tblTempUsageDetail_20' ) end [2025-04-03 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826047', 'tblTempVendorCDR_20' ) start [2025-04-03 14:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826047', 'tblTempVendorCDR_20' ) end [2025-04-03 14:13:24] Production.INFO: ProcessCDR(1,14826047,1,1,2) [2025-04-03 14:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826047', 'tblTempUsageDetail_20' ) start [2025-04-03 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826047', 'tblTempUsageDetail_20' ) end [2025-04-03 14:13:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:13:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:13:30] Production.INFO: ==29749== Releasing lock... [2025-04-03 14:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:13:30] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:14:05 [end_date_ymd] => 2025-04-03 14:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:14:05' and `end` < '2025-04-03 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-03 14:14:20] Production.INFO: count ==6427 [2025-04-03 14:14:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:14:05 - End Time 2025-04-03 14:14:05 [2025-04-03 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826052', 'tblTempUsageDetail_20' ) start [2025-04-03 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826052', 'tblTempUsageDetail_20' ) end [2025-04-03 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826052', 'tblTempVendorCDR_20' ) start [2025-04-03 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826052', 'tblTempVendorCDR_20' ) end [2025-04-03 14:14:23] Production.INFO: ProcessCDR(1,14826052,1,1,2) [2025-04-03 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826052', 'tblTempUsageDetail_20' ) start [2025-04-03 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826052', 'tblTempUsageDetail_20' ) end [2025-04-03 14:14:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:14:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:14:30] Production.INFO: ==29825== Releasing lock... [2025-04-03 14:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:14:30] Production.INFO: 76 MB #Memory Used# [2025-04-03 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:15:06 [end_date_ymd] => 2025-04-03 14:15:06 [RateCDR] => 1 ) [2025-04-03 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:15:06' and `end` < '2025-04-03 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:15:20] Production.INFO: count ==6411 [2025-04-03 14:15:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:15:06 - End Time 2025-04-03 14:15:06 [2025-04-03 14:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826057', 'tblTempUsageDetail_20' ) start [2025-04-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826057', 'tblTempUsageDetail_20' ) end [2025-04-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826057', 'tblTempVendorCDR_20' ) start [2025-04-03 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826057', 'tblTempVendorCDR_20' ) end [2025-04-03 14:15:23] Production.INFO: ProcessCDR(1,14826057,1,1,2) [2025-04-03 14:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826057', 'tblTempUsageDetail_20' ) start [2025-04-03 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826057', 'tblTempUsageDetail_20' ) end [2025-04-03 14:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:15:29] Production.INFO: ==29904== Releasing lock... [2025-04-03 14:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:15:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:16:06 [end_date_ymd] => 2025-04-03 14:16:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:16:06' and `end` < '2025-04-03 14: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-03 14:16:20] Production.INFO: count ==6426 [2025-04-03 14:16:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:16:06 - End Time 2025-04-03 14:16:06 [2025-04-03 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826062', 'tblTempUsageDetail_20' ) start [2025-04-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826062', 'tblTempUsageDetail_20' ) end [2025-04-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826062', 'tblTempVendorCDR_20' ) start [2025-04-03 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826062', 'tblTempVendorCDR_20' ) end [2025-04-03 14:16:23] Production.INFO: ProcessCDR(1,14826062,1,1,2) [2025-04-03 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826062', 'tblTempUsageDetail_20' ) start [2025-04-03 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826062', 'tblTempUsageDetail_20' ) end [2025-04-03 14:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:16:29] Production.INFO: ==29979== Releasing lock... [2025-04-03 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:16:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:17:06 [end_date_ymd] => 2025-04-03 14:17:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:17:06' and `end` < '2025-04-03 14: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-03 14:17:20] Production.INFO: count ==6519 [2025-04-03 14:17:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:17:06 - End Time 2025-04-03 14:17:06 [2025-04-03 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826067', 'tblTempUsageDetail_20' ) start [2025-04-03 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826067', 'tblTempUsageDetail_20' ) end [2025-04-03 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826067', 'tblTempVendorCDR_20' ) start [2025-04-03 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826067', 'tblTempVendorCDR_20' ) end [2025-04-03 14:17:24] Production.INFO: ProcessCDR(1,14826067,1,1,2) [2025-04-03 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826067', 'tblTempUsageDetail_20' ) start [2025-04-03 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826067', 'tblTempUsageDetail_20' ) end [2025-04-03 14:17:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:17:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:17:30] Production.INFO: ==30063== Releasing lock... [2025-04-03 14:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:17:30] Production.INFO: 76.75 MB #Memory Used# [2025-04-03 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:18:06 [end_date_ymd] => 2025-04-03 14:18:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:18:06' and `end` < '2025-04-03 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-03 14:18:20] Production.INFO: count ==6781 [2025-04-03 14:18:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:18:06 - End Time 2025-04-03 14:18:06 [2025-04-03 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826072', 'tblTempUsageDetail_20' ) start [2025-04-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826072', 'tblTempUsageDetail_20' ) end [2025-04-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826072', 'tblTempVendorCDR_20' ) start [2025-04-03 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826072', 'tblTempVendorCDR_20' ) end [2025-04-03 14:18:24] Production.INFO: ProcessCDR(1,14826072,1,1,2) [2025-04-03 14:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826072', 'tblTempUsageDetail_20' ) start [2025-04-03 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826072', 'tblTempUsageDetail_20' ) end [2025-04-03 14:18:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:18:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:18:30] Production.INFO: ==30140== Releasing lock... [2025-04-03 14:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:18:30] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:19:06 [end_date_ymd] => 2025-04-03 14:19:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:19:06' and `end` < '2025-04-03 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-03 14:19:20] Production.INFO: count ==7094 [2025-04-03 14:19:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:19:06 - End Time 2025-04-03 14:19:06 [2025-04-03 14:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826077', 'tblTempUsageDetail_20' ) start [2025-04-03 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826077', 'tblTempUsageDetail_20' ) end [2025-04-03 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826077', 'tblTempVendorCDR_20' ) start [2025-04-03 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826077', 'tblTempVendorCDR_20' ) end [2025-04-03 14:19:24] Production.INFO: ProcessCDR(1,14826077,1,1,2) [2025-04-03 14:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826077', 'tblTempUsageDetail_20' ) start [2025-04-03 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826077', 'tblTempUsageDetail_20' ) end [2025-04-03 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:19:30] Production.INFO: ==30221== Releasing lock... [2025-04-03 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:19:30] Production.INFO: 81.5 MB #Memory Used# [2025-04-03 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:20:06 [end_date_ymd] => 2025-04-03 14:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:20:06' and `end` < '2025-04-03 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-03 14:20:20] Production.INFO: count ==7105 [2025-04-03 14:20:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:20:06 - End Time 2025-04-03 14:20:06 [2025-04-03 14:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826082', 'tblTempUsageDetail_20' ) start [2025-04-03 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826082', 'tblTempUsageDetail_20' ) end [2025-04-03 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826082', 'tblTempVendorCDR_20' ) start [2025-04-03 14:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826082', 'tblTempVendorCDR_20' ) end [2025-04-03 14:20:25] Production.INFO: ProcessCDR(1,14826082,1,1,2) [2025-04-03 14:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826082', 'tblTempUsageDetail_20' ) start [2025-04-03 14:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826082', 'tblTempUsageDetail_20' ) end [2025-04-03 14:20:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:20:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:20:30] Production.INFO: ==30300== Releasing lock... [2025-04-03 14:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:20:30] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:21:06 [end_date_ymd] => 2025-04-03 14:21:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:21:06' and `end` < '2025-04-03 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-03 14:21:20] Production.INFO: count ==7167 [2025-04-03 14:21:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:21:06 - End Time 2025-04-03 14:21:06 [2025-04-03 14:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826088', 'tblTempUsageDetail_20' ) start [2025-04-03 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826088', 'tblTempUsageDetail_20' ) end [2025-04-03 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826088', 'tblTempVendorCDR_20' ) start [2025-04-03 14:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826088', 'tblTempVendorCDR_20' ) end [2025-04-03 14:21:24] Production.INFO: ProcessCDR(1,14826088,1,1,2) [2025-04-03 14:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826088', 'tblTempUsageDetail_20' ) start [2025-04-03 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826088', 'tblTempUsageDetail_20' ) end [2025-04-03 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:21:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:21:31] Production.INFO: ==30383== Releasing lock... [2025-04-03 14:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:21:31] Production.INFO: 82 MB #Memory Used# [2025-04-03 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:22:05 [end_date_ymd] => 2025-04-03 14:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:22:05' and `end` < '2025-04-03 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-03 14:22:19] Production.INFO: count ==7182 [2025-04-03 14:22:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:22:05 - End Time 2025-04-03 14:22:05 [2025-04-03 14:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826093', 'tblTempUsageDetail_20' ) start [2025-04-03 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826093', 'tblTempUsageDetail_20' ) end [2025-04-03 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826093', 'tblTempVendorCDR_20' ) start [2025-04-03 14:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826093', 'tblTempVendorCDR_20' ) end [2025-04-03 14:22:23] Production.INFO: ProcessCDR(1,14826093,1,1,2) [2025-04-03 14:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826093', 'tblTempUsageDetail_20' ) start [2025-04-03 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826093', 'tblTempUsageDetail_20' ) end [2025-04-03 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:22:29] Production.INFO: ==30453== Releasing lock... [2025-04-03 14:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:22:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:23:06 [end_date_ymd] => 2025-04-03 14:23:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:23:06' and `end` < '2025-04-03 14: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-03 14:23:20] Production.INFO: count ==7209 [2025-04-03 14:23:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:23:06 - End Time 2025-04-03 14:23:06 [2025-04-03 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826098', 'tblTempUsageDetail_20' ) start [2025-04-03 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826098', 'tblTempUsageDetail_20' ) end [2025-04-03 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826098', 'tblTempVendorCDR_20' ) start [2025-04-03 14:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826098', 'tblTempVendorCDR_20' ) end [2025-04-03 14:23:25] Production.INFO: ProcessCDR(1,14826098,1,1,2) [2025-04-03 14:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826098', 'tblTempUsageDetail_20' ) start [2025-04-03 14:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826098', 'tblTempUsageDetail_20' ) end [2025-04-03 14:23:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:23:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:23:31] Production.INFO: ==30536== Releasing lock... [2025-04-03 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:23:31] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:24:06 [end_date_ymd] => 2025-04-03 14:24:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:24:06' and `end` < '2025-04-03 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-03 14:24:20] Production.INFO: count ==7161 [2025-04-03 14:24:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:24:06 - End Time 2025-04-03 14:24:06 [2025-04-03 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826103', 'tblTempUsageDetail_20' ) start [2025-04-03 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826103', 'tblTempUsageDetail_20' ) end [2025-04-03 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826103', 'tblTempVendorCDR_20' ) start [2025-04-03 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826103', 'tblTempVendorCDR_20' ) end [2025-04-03 14:24:24] Production.INFO: ProcessCDR(1,14826103,1,1,2) [2025-04-03 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826103', 'tblTempUsageDetail_20' ) start [2025-04-03 14:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826103', 'tblTempUsageDetail_20' ) end [2025-04-03 14:24:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:24:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:24:30] Production.INFO: ==30610== Releasing lock... [2025-04-03 14:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:24:30] Production.INFO: 82 MB #Memory Used# [2025-04-03 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:25:06 [end_date_ymd] => 2025-04-03 14:25:06 [RateCDR] => 1 ) [2025-04-03 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:25:06' and `end` < '2025-04-03 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:25:20] Production.INFO: count ==7158 [2025-04-03 14:25:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:25:06 - End Time 2025-04-03 14:25:06 [2025-04-03 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826108', 'tblTempUsageDetail_20' ) start [2025-04-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826108', 'tblTempUsageDetail_20' ) end [2025-04-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826108', 'tblTempVendorCDR_20' ) start [2025-04-03 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826108', 'tblTempVendorCDR_20' ) end [2025-04-03 14:25:25] Production.INFO: ProcessCDR(1,14826108,1,1,2) [2025-04-03 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826108', 'tblTempUsageDetail_20' ) start [2025-04-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826108', 'tblTempUsageDetail_20' ) end [2025-04-03 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:25:30] Production.INFO: ==30692== Releasing lock... [2025-04-03 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:25:30] Production.INFO: 82 MB #Memory Used# [2025-04-03 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:26:05 [end_date_ymd] => 2025-04-03 14:26:05 [RateCDR] => 1 ) [2025-04-03 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:26:05' and `end` < '2025-04-03 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:26:19] Production.INFO: count ==7178 [2025-04-03 14:26:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:26:05 - End Time 2025-04-03 14:26:05 [2025-04-03 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826113', 'tblTempUsageDetail_20' ) start [2025-04-03 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826113', 'tblTempUsageDetail_20' ) end [2025-04-03 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826113', 'tblTempVendorCDR_20' ) start [2025-04-03 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826113', 'tblTempVendorCDR_20' ) end [2025-04-03 14:26:24] Production.INFO: ProcessCDR(1,14826113,1,1,2) [2025-04-03 14:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826113', 'tblTempUsageDetail_20' ) start [2025-04-03 14:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826113', 'tblTempUsageDetail_20' ) end [2025-04-03 14:26:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:26:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:26:29] Production.INFO: ==30769== Releasing lock... [2025-04-03 14:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:26:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:27:06 [end_date_ymd] => 2025-04-03 14:27:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:27:06' and `end` < '2025-04-03 14: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-03 14:27:20] Production.INFO: count ==7243 [2025-04-03 14:27:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:27:06 - End Time 2025-04-03 14:27:06 [2025-04-03 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826118', 'tblTempUsageDetail_20' ) start [2025-04-03 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826118', 'tblTempUsageDetail_20' ) end [2025-04-03 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826118', 'tblTempVendorCDR_20' ) start [2025-04-03 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826118', 'tblTempVendorCDR_20' ) end [2025-04-03 14:27:25] Production.INFO: ProcessCDR(1,14826118,1,1,2) [2025-04-03 14:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826118', 'tblTempUsageDetail_20' ) start [2025-04-03 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826118', 'tblTempUsageDetail_20' ) end [2025-04-03 14:27:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:27:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:27:30] Production.INFO: ==30886== Releasing lock... [2025-04-03 14:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:27:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:28:06 [end_date_ymd] => 2025-04-03 14:28:06 [RateCDR] => 1 ) [2025-04-03 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:28:06' and `end` < '2025-04-03 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:28:20] Production.INFO: count ==7245 [2025-04-03 14:28:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:28:06 - End Time 2025-04-03 14:28:06 [2025-04-03 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826123', 'tblTempUsageDetail_20' ) start [2025-04-03 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826123', 'tblTempUsageDetail_20' ) end [2025-04-03 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826123', 'tblTempVendorCDR_20' ) start [2025-04-03 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826123', 'tblTempVendorCDR_20' ) end [2025-04-03 14:28:24] Production.INFO: ProcessCDR(1,14826123,1,1,2) [2025-04-03 14:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826123', 'tblTempUsageDetail_20' ) start [2025-04-03 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826123', 'tblTempUsageDetail_20' ) end [2025-04-03 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:28:30] Production.INFO: ==30964== Releasing lock... [2025-04-03 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:28:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:29:06 [end_date_ymd] => 2025-04-03 14:29:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:29:06' and `end` < '2025-04-03 14: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-03 14:29:20] Production.INFO: count ==7237 [2025-04-03 14:29:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:29:06 - End Time 2025-04-03 14:29:06 [2025-04-03 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826128', 'tblTempUsageDetail_20' ) start [2025-04-03 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826128', 'tblTempUsageDetail_20' ) end [2025-04-03 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826128', 'tblTempVendorCDR_20' ) start [2025-04-03 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826128', 'tblTempVendorCDR_20' ) end [2025-04-03 14:29:24] Production.INFO: ProcessCDR(1,14826128,1,1,2) [2025-04-03 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826128', 'tblTempUsageDetail_20' ) start [2025-04-03 14:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826128', 'tblTempUsageDetail_20' ) end [2025-04-03 14:29:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:29:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:29:30] Production.INFO: ==31045== Releasing lock... [2025-04-03 14:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:29:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:30:07 [end_date_ymd] => 2025-04-03 14:30:07 [RateCDR] => 1 ) [2025-04-03 14:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:30:07' and `end` < '2025-04-03 14:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:30:21] Production.INFO: count ==7253 [2025-04-03 14:30:25] Production.ERROR: pbx CDR StartTime 2025-04-03 11:30:07 - End Time 2025-04-03 14:30:07 [2025-04-03 14:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826134', 'tblTempUsageDetail_20' ) start [2025-04-03 14:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826134', 'tblTempUsageDetail_20' ) end [2025-04-03 14:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826134', 'tblTempVendorCDR_20' ) start [2025-04-03 14:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826134', 'tblTempVendorCDR_20' ) end [2025-04-03 14:30:25] Production.INFO: ProcessCDR(1,14826134,1,1,2) [2025-04-03 14:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826134', 'tblTempUsageDetail_20' ) start [2025-04-03 14:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826134', 'tblTempUsageDetail_20' ) end [2025-04-03 14:30:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:30:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:30:31] Production.INFO: ==31123== Releasing lock... [2025-04-03 14:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:30:31] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:31:06 [end_date_ymd] => 2025-04-03 14:31:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:31:06' and `end` < '2025-04-03 14: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-03 14:31:20] Production.INFO: count ==7250 [2025-04-03 14:31:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:31:06 - End Time 2025-04-03 14:31:06 [2025-04-03 14:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826139', 'tblTempUsageDetail_20' ) start [2025-04-03 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826139', 'tblTempUsageDetail_20' ) end [2025-04-03 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826139', 'tblTempVendorCDR_20' ) start [2025-04-03 14:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826139', 'tblTempVendorCDR_20' ) end [2025-04-03 14:31:24] Production.INFO: ProcessCDR(1,14826139,1,1,2) [2025-04-03 14:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826139', 'tblTempUsageDetail_20' ) start [2025-04-03 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826139', 'tblTempUsageDetail_20' ) end [2025-04-03 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:31:30] Production.INFO: ==31206== Releasing lock... [2025-04-03 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:31:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:32:06 [end_date_ymd] => 2025-04-03 14:32:06 [RateCDR] => 1 ) [2025-04-03 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:32:06' and `end` < '2025-04-03 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:32:20] Production.INFO: count ==7268 [2025-04-03 14:32:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:32:06 - End Time 2025-04-03 14:32:06 [2025-04-03 14:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826144', 'tblTempUsageDetail_20' ) start [2025-04-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826144', 'tblTempUsageDetail_20' ) end [2025-04-03 14:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826144', 'tblTempVendorCDR_20' ) start [2025-04-03 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826144', 'tblTempVendorCDR_20' ) end [2025-04-03 14:32:25] Production.INFO: ProcessCDR(1,14826144,1,1,2) [2025-04-03 14:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826144', 'tblTempUsageDetail_20' ) start [2025-04-03 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826144', 'tblTempUsageDetail_20' ) end [2025-04-03 14:32:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:32:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:32:30] Production.INFO: ==31284== Releasing lock... [2025-04-03 14:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:32:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:33:06 [end_date_ymd] => 2025-04-03 14:33:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:33:06' and `end` < '2025-04-03 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-03 14:33:20] Production.INFO: count ==7313 [2025-04-03 14:33:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:33:06 - End Time 2025-04-03 14:33:06 [2025-04-03 14:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826149', 'tblTempUsageDetail_20' ) start [2025-04-03 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826149', 'tblTempUsageDetail_20' ) end [2025-04-03 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826149', 'tblTempVendorCDR_20' ) start [2025-04-03 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826149', 'tblTempVendorCDR_20' ) end [2025-04-03 14:33:24] Production.INFO: ProcessCDR(1,14826149,1,1,2) [2025-04-03 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826149', 'tblTempUsageDetail_20' ) start [2025-04-03 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826149', 'tblTempUsageDetail_20' ) end [2025-04-03 14:33:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:33:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:33:30] Production.INFO: ==31360== Releasing lock... [2025-04-03 14:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:33:30] Production.INFO: 83.25 MB #Memory Used# [2025-04-03 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:34:06 [end_date_ymd] => 2025-04-03 14:34:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:34:06' and `end` < '2025-04-03 14: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-03 14:34:20] Production.INFO: count ==7313 [2025-04-03 14:34:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:34:06 - End Time 2025-04-03 14:34:06 [2025-04-03 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826154', 'tblTempUsageDetail_20' ) start [2025-04-03 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826154', 'tblTempUsageDetail_20' ) end [2025-04-03 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826154', 'tblTempVendorCDR_20' ) start [2025-04-03 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826154', 'tblTempVendorCDR_20' ) end [2025-04-03 14:34:24] Production.INFO: ProcessCDR(1,14826154,1,1,2) [2025-04-03 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826154', 'tblTempUsageDetail_20' ) start [2025-04-03 14:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826154', 'tblTempUsageDetail_20' ) end [2025-04-03 14:34:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:34:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:34:30] Production.INFO: ==31438== Releasing lock... [2025-04-03 14:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:34:30] Production.INFO: 83.25 MB #Memory Used# [2025-04-03 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:35:06 [end_date_ymd] => 2025-04-03 14:35:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:35:06' and `end` < '2025-04-03 14: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-03 14:35:20] Production.INFO: count ==7300 [2025-04-03 14:35:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:35:06 - End Time 2025-04-03 14:35:06 [2025-04-03 14:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826159', 'tblTempUsageDetail_20' ) start [2025-04-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826159', 'tblTempUsageDetail_20' ) end [2025-04-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826159', 'tblTempVendorCDR_20' ) start [2025-04-03 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826159', 'tblTempVendorCDR_20' ) end [2025-04-03 14:35:25] Production.INFO: ProcessCDR(1,14826159,1,1,2) [2025-04-03 14:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826159', 'tblTempUsageDetail_20' ) start [2025-04-03 14:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826159', 'tblTempUsageDetail_20' ) end [2025-04-03 14:35:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:35:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:35:30] Production.INFO: ==31514== Releasing lock... [2025-04-03 14:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:35:30] Production.INFO: 83 MB #Memory Used# [2025-04-03 14:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:36:07 [end_date_ymd] => 2025-04-03 14:36:07 [RateCDR] => 1 ) [2025-04-03 14:36: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-03 11:36:07' and `end` < '2025-04-03 14:36: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-03 14:36:20] Production.INFO: count ==7265 [2025-04-03 14:36:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:36:07 - End Time 2025-04-03 14:36:07 [2025-04-03 14:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826164', 'tblTempUsageDetail_20' ) start [2025-04-03 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826164', 'tblTempUsageDetail_20' ) end [2025-04-03 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826164', 'tblTempVendorCDR_20' ) start [2025-04-03 14:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826164', 'tblTempVendorCDR_20' ) end [2025-04-03 14:36:25] Production.INFO: ProcessCDR(1,14826164,1,1,2) [2025-04-03 14:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826164', 'tblTempUsageDetail_20' ) start [2025-04-03 14:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826164', 'tblTempUsageDetail_20' ) end [2025-04-03 14:36:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:36:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:36:30] Production.INFO: ==31593== Releasing lock... [2025-04-03 14:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:36:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:37:06 [end_date_ymd] => 2025-04-03 14:37:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:37:06' and `end` < '2025-04-03 14: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-03 14:37:20] Production.INFO: count ==7232 [2025-04-03 14:37:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:37:06 - End Time 2025-04-03 14:37:06 [2025-04-03 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826169', 'tblTempUsageDetail_20' ) start [2025-04-03 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826169', 'tblTempUsageDetail_20' ) end [2025-04-03 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826169', 'tblTempVendorCDR_20' ) start [2025-04-03 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826169', 'tblTempVendorCDR_20' ) end [2025-04-03 14:37:24] Production.INFO: ProcessCDR(1,14826169,1,1,2) [2025-04-03 14:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826169', 'tblTempUsageDetail_20' ) start [2025-04-03 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826169', 'tblTempUsageDetail_20' ) end [2025-04-03 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:37:30] Production.INFO: ==31673== Releasing lock... [2025-04-03 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:37:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:38:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:38:07 [end_date_ymd] => 2025-04-03 14:38:07 [RateCDR] => 1 ) [2025-04-03 14:38: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-03 11:38:07' and `end` < '2025-04-03 14:38: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-03 14:38:21] Production.INFO: count ==7207 [2025-04-03 14:38:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:38:07 - End Time 2025-04-03 14:38:07 [2025-04-03 14:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826174', 'tblTempUsageDetail_20' ) start [2025-04-03 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826174', 'tblTempUsageDetail_20' ) end [2025-04-03 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826174', 'tblTempVendorCDR_20' ) start [2025-04-03 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826174', 'tblTempVendorCDR_20' ) end [2025-04-03 14:38:25] Production.INFO: ProcessCDR(1,14826174,1,1,2) [2025-04-03 14:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826174', 'tblTempUsageDetail_20' ) start [2025-04-03 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826174', 'tblTempUsageDetail_20' ) end [2025-04-03 14:38:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:38:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:38:31] Production.INFO: ==31754== Releasing lock... [2025-04-03 14:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:38:31] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:39:06 [end_date_ymd] => 2025-04-03 14:39:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:39:06' and `end` < '2025-04-03 14: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-03 14:39:19] Production.INFO: count ==7208 [2025-04-03 14:39:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:39:06 - End Time 2025-04-03 14:39:06 [2025-04-03 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826179', 'tblTempUsageDetail_20' ) start [2025-04-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826179', 'tblTempUsageDetail_20' ) end [2025-04-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826179', 'tblTempVendorCDR_20' ) start [2025-04-03 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826179', 'tblTempVendorCDR_20' ) end [2025-04-03 14:39:23] Production.INFO: ProcessCDR(1,14826179,1,1,2) [2025-04-03 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826179', 'tblTempUsageDetail_20' ) start [2025-04-03 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826179', 'tblTempUsageDetail_20' ) end [2025-04-03 14:39:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:39:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:39:30] Production.INFO: ==31830== Releasing lock... [2025-04-03 14:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:39:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:40:07 [end_date_ymd] => 2025-04-03 14:40:07 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:40:07' and `end` < '2025-04-03 14: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-03 14:40:21] Production.INFO: count ==7213 [2025-04-03 14:40:25] Production.ERROR: pbx CDR StartTime 2025-04-03 11:40:07 - End Time 2025-04-03 14:40:07 [2025-04-03 14:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826185', 'tblTempUsageDetail_20' ) start [2025-04-03 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826185', 'tblTempUsageDetail_20' ) end [2025-04-03 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826185', 'tblTempVendorCDR_20' ) start [2025-04-03 14:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826185', 'tblTempVendorCDR_20' ) end [2025-04-03 14:40:25] Production.INFO: ProcessCDR(1,14826185,1,1,2) [2025-04-03 14:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826185', 'tblTempUsageDetail_20' ) start [2025-04-03 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826185', 'tblTempUsageDetail_20' ) end [2025-04-03 14:40:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:40:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:40:31] Production.INFO: ==31909== Releasing lock... [2025-04-03 14:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:40:31] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:41:06 [end_date_ymd] => 2025-04-03 14:41:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:41:06' and `end` < '2025-04-03 14: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-03 14:41:20] Production.INFO: count ==7220 [2025-04-03 14:41:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:41:06 - End Time 2025-04-03 14:41:06 [2025-04-03 14:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826190', 'tblTempUsageDetail_20' ) start [2025-04-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826190', 'tblTempUsageDetail_20' ) end [2025-04-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826190', 'tblTempVendorCDR_20' ) start [2025-04-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826190', 'tblTempVendorCDR_20' ) end [2025-04-03 14:41:24] Production.INFO: ProcessCDR(1,14826190,1,1,2) [2025-04-03 14:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826190', 'tblTempUsageDetail_20' ) start [2025-04-03 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826190', 'tblTempUsageDetail_20' ) end [2025-04-03 14:41:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:41:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:41:30] Production.INFO: ==31985== Releasing lock... [2025-04-03 14:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:41:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:42:06 [end_date_ymd] => 2025-04-03 14:42:06 [RateCDR] => 1 ) [2025-04-03 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:42:06' and `end` < '2025-04-03 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:42:20] Production.INFO: count ==7236 [2025-04-03 14:42:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:42:06 - End Time 2025-04-03 14:42:06 [2025-04-03 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826195', 'tblTempUsageDetail_20' ) start [2025-04-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826195', 'tblTempUsageDetail_20' ) end [2025-04-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826195', 'tblTempVendorCDR_20' ) start [2025-04-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826195', 'tblTempVendorCDR_20' ) end [2025-04-03 14:42:25] Production.INFO: ProcessCDR(1,14826195,1,1,2) [2025-04-03 14:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826195', 'tblTempUsageDetail_20' ) start [2025-04-03 14:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826195', 'tblTempUsageDetail_20' ) end [2025-04-03 14:42:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:42:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:42:31] Production.INFO: ==32101== Releasing lock... [2025-04-03 14:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:42:31] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:43:06 [end_date_ymd] => 2025-04-03 14:43:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:43:06' and `end` < '2025-04-03 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-03 14:43:20] Production.INFO: count ==7248 [2025-04-03 14:43:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:43:06 - End Time 2025-04-03 14:43:06 [2025-04-03 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826200', 'tblTempUsageDetail_20' ) start [2025-04-03 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826200', 'tblTempUsageDetail_20' ) end [2025-04-03 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826200', 'tblTempVendorCDR_20' ) start [2025-04-03 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826200', 'tblTempVendorCDR_20' ) end [2025-04-03 14:43:24] Production.INFO: ProcessCDR(1,14826200,1,1,2) [2025-04-03 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826200', 'tblTempUsageDetail_20' ) start [2025-04-03 14:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826200', 'tblTempUsageDetail_20' ) end [2025-04-03 14:43:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:43:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:43:30] Production.INFO: ==32177== Releasing lock... [2025-04-03 14:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:43:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:44:06 [end_date_ymd] => 2025-04-03 14:44:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:44:06' and `end` < '2025-04-03 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-03 14:44:20] Production.INFO: count ==7264 [2025-04-03 14:44:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:44:06 - End Time 2025-04-03 14:44:06 [2025-04-03 14:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826205', 'tblTempUsageDetail_20' ) start [2025-04-03 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826205', 'tblTempUsageDetail_20' ) end [2025-04-03 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826205', 'tblTempVendorCDR_20' ) start [2025-04-03 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826205', 'tblTempVendorCDR_20' ) end [2025-04-03 14:44:24] Production.INFO: ProcessCDR(1,14826205,1,1,2) [2025-04-03 14:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826205', 'tblTempUsageDetail_20' ) start [2025-04-03 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826205', 'tblTempUsageDetail_20' ) end [2025-04-03 14:44:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:44:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:44:31] Production.INFO: ==32257== Releasing lock... [2025-04-03 14:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:44:31] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:45:05 [end_date_ymd] => 2025-04-03 14:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:45:05' and `end` < '2025-04-03 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-03 14:45:19] Production.INFO: count ==7266 [2025-04-03 14:45:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:45:05 - End Time 2025-04-03 14:45:05 [2025-04-03 14:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826210', 'tblTempUsageDetail_20' ) start [2025-04-03 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826210', 'tblTempUsageDetail_20' ) end [2025-04-03 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826210', 'tblTempVendorCDR_20' ) start [2025-04-03 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826210', 'tblTempVendorCDR_20' ) end [2025-04-03 14:45:24] Production.INFO: ProcessCDR(1,14826210,1,1,2) [2025-04-03 14:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826210', 'tblTempUsageDetail_20' ) start [2025-04-03 14:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826210', 'tblTempUsageDetail_20' ) end [2025-04-03 14:45:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:45:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:45:30] Production.INFO: ==32334== Releasing lock... [2025-04-03 14:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:45:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:46:06 [end_date_ymd] => 2025-04-03 14:46:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:46:06' and `end` < '2025-04-03 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-03 14:46:20] Production.INFO: count ==7274 [2025-04-03 14:46:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:46:06 - End Time 2025-04-03 14:46:06 [2025-04-03 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826215', 'tblTempUsageDetail_20' ) start [2025-04-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826215', 'tblTempUsageDetail_20' ) end [2025-04-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826215', 'tblTempVendorCDR_20' ) start [2025-04-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826215', 'tblTempVendorCDR_20' ) end [2025-04-03 14:46:24] Production.INFO: ProcessCDR(1,14826215,1,1,2) [2025-04-03 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826215', 'tblTempUsageDetail_20' ) start [2025-04-03 14:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826215', 'tblTempUsageDetail_20' ) end [2025-04-03 14:46:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:46:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:46:30] Production.INFO: ==32406== Releasing lock... [2025-04-03 14:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:46:30] Production.INFO: 83 MB #Memory Used# [2025-04-03 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:47:05 [end_date_ymd] => 2025-04-03 14:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:47:05' and `end` < '2025-04-03 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-03 14:47:19] Production.INFO: count ==7376 [2025-04-03 14:47:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:47:05 - End Time 2025-04-03 14:47:05 [2025-04-03 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826220', 'tblTempUsageDetail_20' ) start [2025-04-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826220', 'tblTempUsageDetail_20' ) end [2025-04-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826220', 'tblTempVendorCDR_20' ) start [2025-04-03 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826220', 'tblTempVendorCDR_20' ) end [2025-04-03 14:47:23] Production.INFO: ProcessCDR(1,14826220,1,1,2) [2025-04-03 14:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826220', 'tblTempUsageDetail_20' ) start [2025-04-03 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826220', 'tblTempUsageDetail_20' ) end [2025-04-03 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:47:29] Production.INFO: ==32481== Releasing lock... [2025-04-03 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:47:29] Production.INFO: 83.75 MB #Memory Used# [2025-04-03 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:48:06 [end_date_ymd] => 2025-04-03 14:48:06 [RateCDR] => 1 ) [2025-04-03 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:48:06' and `end` < '2025-04-03 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:48:20] Production.INFO: count ==7364 [2025-04-03 14:48:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:48:06 - End Time 2025-04-03 14:48:06 [2025-04-03 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826225', 'tblTempUsageDetail_20' ) start [2025-04-03 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826225', 'tblTempUsageDetail_20' ) end [2025-04-03 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826225', 'tblTempVendorCDR_20' ) start [2025-04-03 14:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826225', 'tblTempVendorCDR_20' ) end [2025-04-03 14:48:25] Production.INFO: ProcessCDR(1,14826225,1,1,2) [2025-04-03 14:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826225', 'tblTempUsageDetail_20' ) start [2025-04-03 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826225', 'tblTempUsageDetail_20' ) end [2025-04-03 14:48:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:48:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:48:31] Production.INFO: ==32556== Releasing lock... [2025-04-03 14:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:48:31] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:49:05 [end_date_ymd] => 2025-04-03 14:49:05 [RateCDR] => 1 ) [2025-04-03 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:49:05' and `end` < '2025-04-03 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:49:19] Production.INFO: count ==7344 [2025-04-03 14:49:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:49:05 - End Time 2025-04-03 14:49:05 [2025-04-03 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826230', 'tblTempUsageDetail_20' ) start [2025-04-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826230', 'tblTempUsageDetail_20' ) end [2025-04-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826230', 'tblTempVendorCDR_20' ) start [2025-04-03 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826230', 'tblTempVendorCDR_20' ) end [2025-04-03 14:49:23] Production.INFO: ProcessCDR(1,14826230,1,1,2) [2025-04-03 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826230', 'tblTempUsageDetail_20' ) start [2025-04-03 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826230', 'tblTempUsageDetail_20' ) end [2025-04-03 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:49:29] Production.INFO: ==32629== Releasing lock... [2025-04-03 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:49:29] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:50:07 [end_date_ymd] => 2025-04-03 14:50:07 [RateCDR] => 1 ) [2025-04-03 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:50:07' and `end` < '2025-04-03 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:50:21] Production.INFO: count ==7319 [2025-04-03 14:50:25] Production.ERROR: pbx CDR StartTime 2025-04-03 11:50:07 - End Time 2025-04-03 14:50:07 [2025-04-03 14:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826236', 'tblTempUsageDetail_20' ) start [2025-04-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826236', 'tblTempUsageDetail_20' ) end [2025-04-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826236', 'tblTempVendorCDR_20' ) start [2025-04-03 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826236', 'tblTempVendorCDR_20' ) end [2025-04-03 14:50:25] Production.INFO: ProcessCDR(1,14826236,1,1,2) [2025-04-03 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826236', 'tblTempUsageDetail_20' ) start [2025-04-03 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826236', 'tblTempUsageDetail_20' ) end [2025-04-03 14:50:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:50:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:50:31] Production.INFO: ==32708== Releasing lock... [2025-04-03 14:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:50:31] Production.INFO: 83.25 MB #Memory Used# [2025-04-03 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:51:05 [end_date_ymd] => 2025-04-03 14:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:51:05' and `end` < '2025-04-03 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-03 14:51:19] Production.INFO: count ==7354 [2025-04-03 14:51:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:51:05 - End Time 2025-04-03 14:51:05 [2025-04-03 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826241', 'tblTempUsageDetail_20' ) start [2025-04-03 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826241', 'tblTempUsageDetail_20' ) end [2025-04-03 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826241', 'tblTempVendorCDR_20' ) start [2025-04-03 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826241', 'tblTempVendorCDR_20' ) end [2025-04-03 14:51:24] Production.INFO: ProcessCDR(1,14826241,1,1,2) [2025-04-03 14:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826241', 'tblTempUsageDetail_20' ) start [2025-04-03 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826241', 'tblTempUsageDetail_20' ) end [2025-04-03 14:51:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:51:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:51:30] Production.INFO: ==328== Releasing lock... [2025-04-03 14:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:51:30] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:52:05 [end_date_ymd] => 2025-04-03 14:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:52:05' and `end` < '2025-04-03 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-03 14:52:20] Production.INFO: count ==7339 [2025-04-03 14:52:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:52:05 - End Time 2025-04-03 14:52:05 [2025-04-03 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826246', 'tblTempUsageDetail_20' ) start [2025-04-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826246', 'tblTempUsageDetail_20' ) end [2025-04-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826246', 'tblTempVendorCDR_20' ) start [2025-04-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826246', 'tblTempVendorCDR_20' ) end [2025-04-03 14:52:24] Production.INFO: ProcessCDR(1,14826246,1,1,2) [2025-04-03 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826246', 'tblTempUsageDetail_20' ) start [2025-04-03 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826246', 'tblTempUsageDetail_20' ) end [2025-04-03 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:52:29] Production.INFO: ==415== Releasing lock... [2025-04-03 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:52:29] Production.INFO: 83.75 MB #Memory Used# [2025-04-03 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:53:05 [end_date_ymd] => 2025-04-03 14:53:05 [RateCDR] => 1 ) [2025-04-03 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:53:05' and `end` < '2025-04-03 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:53:20] Production.INFO: count ==7339 [2025-04-03 14:53:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:53:05 - End Time 2025-04-03 14:53:05 [2025-04-03 14:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826251', 'tblTempUsageDetail_20' ) start [2025-04-03 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826251', 'tblTempUsageDetail_20' ) end [2025-04-03 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826251', 'tblTempVendorCDR_20' ) start [2025-04-03 14:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826251', 'tblTempVendorCDR_20' ) end [2025-04-03 14:53:24] Production.INFO: ProcessCDR(1,14826251,1,1,2) [2025-04-03 14:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826251', 'tblTempUsageDetail_20' ) start [2025-04-03 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826251', 'tblTempUsageDetail_20' ) end [2025-04-03 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:53:30] Production.INFO: ==495== Releasing lock... [2025-04-03 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:53:30] Production.INFO: 83.5 MB #Memory Used# [2025-04-03 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:54:06 [end_date_ymd] => 2025-04-03 14:54:06 [RateCDR] => 1 ) [2025-04-03 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:54:06' and `end` < '2025-04-03 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:54:20] Production.INFO: count ==7324 [2025-04-03 14:54:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:54:06 - End Time 2025-04-03 14:54:06 [2025-04-03 14:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826256', 'tblTempUsageDetail_20' ) start [2025-04-03 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826256', 'tblTempUsageDetail_20' ) end [2025-04-03 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826256', 'tblTempVendorCDR_20' ) start [2025-04-03 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826256', 'tblTempVendorCDR_20' ) end [2025-04-03 14:54:24] Production.INFO: ProcessCDR(1,14826256,1,1,2) [2025-04-03 14:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826256', 'tblTempUsageDetail_20' ) start [2025-04-03 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826256', 'tblTempUsageDetail_20' ) end [2025-04-03 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:54:30] Production.INFO: ==570== Releasing lock... [2025-04-03 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:54:30] Production.INFO: 83.25 MB #Memory Used# [2025-04-03 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:55:06 [end_date_ymd] => 2025-04-03 14:55:06 [RateCDR] => 1 ) [2025-04-03 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-03 11:55:06' and `end` < '2025-04-03 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-03 14:55:20] Production.INFO: count ==7298 [2025-04-03 14:55:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:55:06 - End Time 2025-04-03 14:55:06 [2025-04-03 14:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826261', 'tblTempUsageDetail_20' ) start [2025-04-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826261', 'tblTempUsageDetail_20' ) end [2025-04-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826261', 'tblTempVendorCDR_20' ) start [2025-04-03 14:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826261', 'tblTempVendorCDR_20' ) end [2025-04-03 14:55:24] Production.INFO: ProcessCDR(1,14826261,1,1,2) [2025-04-03 14:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826261', 'tblTempUsageDetail_20' ) start [2025-04-03 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826261', 'tblTempUsageDetail_20' ) end [2025-04-03 14:55:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:55:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:55:30] Production.INFO: ==654== Releasing lock... [2025-04-03 14:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:55:30] Production.INFO: 83 MB #Memory Used# [2025-04-03 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:56:06 [end_date_ymd] => 2025-04-03 14:56:06 [RateCDR] => 1 ) [2025-04-03 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:56:06' and `end` < '2025-04-03 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:56:20] Production.INFO: count ==7261 [2025-04-03 14:56:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:56:06 - End Time 2025-04-03 14:56:06 [2025-04-03 14:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826266', 'tblTempUsageDetail_20' ) start [2025-04-03 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826266', 'tblTempUsageDetail_20' ) end [2025-04-03 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826266', 'tblTempVendorCDR_20' ) start [2025-04-03 14:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826266', 'tblTempVendorCDR_20' ) end [2025-04-03 14:56:24] Production.INFO: ProcessCDR(1,14826266,1,1,2) [2025-04-03 14:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826266', 'tblTempUsageDetail_20' ) start [2025-04-03 14:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826266', 'tblTempUsageDetail_20' ) end [2025-04-03 14:56:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:56:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:56:30] Production.INFO: ==758== Releasing lock... [2025-04-03 14:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:56:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:57:06 [end_date_ymd] => 2025-04-03 14:57:06 [RateCDR] => 1 ) [2025-04-03 14: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-03 11:57:06' and `end` < '2025-04-03 14: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-03 14:57:20] Production.INFO: count ==7220 [2025-04-03 14:57:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:57:06 - End Time 2025-04-03 14:57:06 [2025-04-03 14:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826271', 'tblTempUsageDetail_20' ) start [2025-04-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826271', 'tblTempUsageDetail_20' ) end [2025-04-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826271', 'tblTempVendorCDR_20' ) start [2025-04-03 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826271', 'tblTempVendorCDR_20' ) end [2025-04-03 14:57:24] Production.INFO: ProcessCDR(1,14826271,1,1,2) [2025-04-03 14:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826271', 'tblTempUsageDetail_20' ) start [2025-04-03 14:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826271', 'tblTempUsageDetail_20' ) end [2025-04-03 14:57:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:57:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:57:30] Production.INFO: ==833== Releasing lock... [2025-04-03 14:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:57:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:58:06 [end_date_ymd] => 2025-04-03 14:58:06 [RateCDR] => 1 ) [2025-04-03 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 11:58:06' and `end` < '2025-04-03 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 14:58:20] Production.INFO: count ==7217 [2025-04-03 14:58:24] Production.ERROR: pbx CDR StartTime 2025-04-03 11:58:06 - End Time 2025-04-03 14:58:06 [2025-04-03 14:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826276', 'tblTempUsageDetail_20' ) start [2025-04-03 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826276', 'tblTempUsageDetail_20' ) end [2025-04-03 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826276', 'tblTempVendorCDR_20' ) start [2025-04-03 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826276', 'tblTempVendorCDR_20' ) end [2025-04-03 14:58:24] Production.INFO: ProcessCDR(1,14826276,1,1,2) [2025-04-03 14:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826276', 'tblTempUsageDetail_20' ) start [2025-04-03 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826276', 'tblTempUsageDetail_20' ) end [2025-04-03 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:58:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:58:30] Production.INFO: ==952== Releasing lock... [2025-04-03 14:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:58:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 11:59:05 [end_date_ymd] => 2025-04-03 14:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 11:59:05' and `end` < '2025-04-03 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-03 14:59:19] Production.INFO: count ==7223 [2025-04-03 14:59:23] Production.ERROR: pbx CDR StartTime 2025-04-03 11:59:05 - End Time 2025-04-03 14:59:05 [2025-04-03 14:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826281', 'tblTempUsageDetail_20' ) start [2025-04-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826281', 'tblTempUsageDetail_20' ) end [2025-04-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826281', 'tblTempVendorCDR_20' ) start [2025-04-03 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826281', 'tblTempVendorCDR_20' ) end [2025-04-03 14:59:23] Production.INFO: ProcessCDR(1,14826281,1,1,2) [2025-04-03 14:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 14:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826281', 'tblTempUsageDetail_20' ) start [2025-04-03 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826281', 'tblTempUsageDetail_20' ) end [2025-04-03 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 14:59:28] Production.INFO: ==1037== Releasing lock... [2025-04-03 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 14:59:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:00:07 [end_date_ymd] => 2025-04-03 15:00:07 [RateCDR] => 1 ) [2025-04-03 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:00:07' and `end` < '2025-04-03 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:00:21] Production.INFO: count ==7220 [2025-04-03 15:00:25] Production.ERROR: pbx CDR StartTime 2025-04-03 12:00:07 - End Time 2025-04-03 15:00:07 [2025-04-03 15:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826286', 'tblTempUsageDetail_20' ) start [2025-04-03 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826286', 'tblTempUsageDetail_20' ) end [2025-04-03 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826286', 'tblTempVendorCDR_20' ) start [2025-04-03 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826286', 'tblTempVendorCDR_20' ) end [2025-04-03 15:00:25] Production.INFO: ProcessCDR(1,14826286,1,1,2) [2025-04-03 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826286', 'tblTempUsageDetail_20' ) start [2025-04-03 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826286', 'tblTempUsageDetail_20' ) end [2025-04-03 15:00:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:00:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:00:31] Production.INFO: ==1115== Releasing lock... [2025-04-03 15:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:00:31] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:01:06 [end_date_ymd] => 2025-04-03 15:01:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:01:06' and `end` < '2025-04-03 15: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-03 15:01:20] Production.INFO: count ==7190 [2025-04-03 15:01:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:01:06 - End Time 2025-04-03 15:01:06 [2025-04-03 15:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826292', 'tblTempUsageDetail_20' ) start [2025-04-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826292', 'tblTempUsageDetail_20' ) end [2025-04-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826292', 'tblTempVendorCDR_20' ) start [2025-04-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826292', 'tblTempVendorCDR_20' ) end [2025-04-03 15:01:24] Production.INFO: ProcessCDR(1,14826292,1,1,2) [2025-04-03 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826292', 'tblTempUsageDetail_20' ) start [2025-04-03 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826292', 'tblTempUsageDetail_20' ) end [2025-04-03 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:01:29] Production.INFO: ==1301== Releasing lock... [2025-04-03 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:01:29] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:02:06 [end_date_ymd] => 2025-04-03 15:02:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:02:06' and `end` < '2025-04-03 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-03 15:02:20] Production.INFO: count ==7197 [2025-04-03 15:02:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:02:06 - End Time 2025-04-03 15:02:06 [2025-04-03 15:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826297', 'tblTempUsageDetail_20' ) start [2025-04-03 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826297', 'tblTempUsageDetail_20' ) end [2025-04-03 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826297', 'tblTempVendorCDR_20' ) start [2025-04-03 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826297', 'tblTempVendorCDR_20' ) end [2025-04-03 15:02:25] Production.INFO: ProcessCDR(1,14826297,1,1,2) [2025-04-03 15:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826297', 'tblTempUsageDetail_20' ) start [2025-04-03 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826297', 'tblTempUsageDetail_20' ) end [2025-04-03 15:02:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:02:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:02:31] Production.INFO: ==1377== Releasing lock... [2025-04-03 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:02:31] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:03:06 [end_date_ymd] => 2025-04-03 15:03:06 [RateCDR] => 1 ) [2025-04-03 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:03:06' and `end` < '2025-04-03 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:03:20] Production.INFO: count ==7201 [2025-04-03 15:03:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:03:06 - End Time 2025-04-03 15:03:06 [2025-04-03 15:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826302', 'tblTempUsageDetail_20' ) start [2025-04-03 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826302', 'tblTempUsageDetail_20' ) end [2025-04-03 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826302', 'tblTempVendorCDR_20' ) start [2025-04-03 15:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826302', 'tblTempVendorCDR_20' ) end [2025-04-03 15:03:24] Production.INFO: ProcessCDR(1,14826302,1,1,2) [2025-04-03 15:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826302', 'tblTempUsageDetail_20' ) start [2025-04-03 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826302', 'tblTempUsageDetail_20' ) end [2025-04-03 15:03:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:03:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:03:31] Production.INFO: ==1451== Releasing lock... [2025-04-03 15:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:03:31] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:04:06 [end_date_ymd] => 2025-04-03 15:04:06 [RateCDR] => 1 ) [2025-04-03 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:04:06' and `end` < '2025-04-03 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:04:20] Production.INFO: count ==7198 [2025-04-03 15:04:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:04:06 - End Time 2025-04-03 15:04:06 [2025-04-03 15:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826307', 'tblTempUsageDetail_20' ) start [2025-04-03 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826307', 'tblTempUsageDetail_20' ) end [2025-04-03 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826307', 'tblTempVendorCDR_20' ) start [2025-04-03 15:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826307', 'tblTempVendorCDR_20' ) end [2025-04-03 15:04:24] Production.INFO: ProcessCDR(1,14826307,1,1,2) [2025-04-03 15:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826307', 'tblTempUsageDetail_20' ) start [2025-04-03 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826307', 'tblTempUsageDetail_20' ) end [2025-04-03 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:04:30] Production.INFO: ==1563== Releasing lock... [2025-04-03 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:04:30] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:05:05 [end_date_ymd] => 2025-04-03 15:05:05 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:05:05' and `end` < '2025-04-03 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-03 15:05:20] Production.INFO: count ==7218 [2025-04-03 15:05:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:05:05 - End Time 2025-04-03 15:05:05 [2025-04-03 15:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826312', 'tblTempUsageDetail_20' ) start [2025-04-03 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826312', 'tblTempUsageDetail_20' ) end [2025-04-03 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826312', 'tblTempVendorCDR_20' ) start [2025-04-03 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826312', 'tblTempVendorCDR_20' ) end [2025-04-03 15:05:24] Production.INFO: ProcessCDR(1,14826312,1,1,2) [2025-04-03 15:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826312', 'tblTempUsageDetail_20' ) start [2025-04-03 15:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826312', 'tblTempUsageDetail_20' ) end [2025-04-03 15:05:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:05:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:05:30] Production.INFO: ==1718== Releasing lock... [2025-04-03 15:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:05:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:06:07 [end_date_ymd] => 2025-04-03 15:06:07 [RateCDR] => 1 ) [2025-04-03 15:06: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-03 12:06:07' and `end` < '2025-04-03 15:06: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-03 15:06:21] Production.INFO: count ==7223 [2025-04-03 15:06:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:06:07 - End Time 2025-04-03 15:06:07 [2025-04-03 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826317', 'tblTempUsageDetail_20' ) start [2025-04-03 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826317', 'tblTempUsageDetail_20' ) end [2025-04-03 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826317', 'tblTempVendorCDR_20' ) start [2025-04-03 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826317', 'tblTempVendorCDR_20' ) end [2025-04-03 15:06:25] Production.INFO: ProcessCDR(1,14826317,1,1,2) [2025-04-03 15:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826317', 'tblTempUsageDetail_20' ) start [2025-04-03 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826317', 'tblTempUsageDetail_20' ) end [2025-04-03 15:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:06:29] Production.INFO: ==1794== Releasing lock... [2025-04-03 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:06:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:07:05 [end_date_ymd] => 2025-04-03 15:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:07:05' and `end` < '2025-04-03 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-03 15:07:19] Production.INFO: count ==7220 [2025-04-03 15:07:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:07:05 - End Time 2025-04-03 15:07:05 [2025-04-03 15:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826322', 'tblTempUsageDetail_20' ) start [2025-04-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826322', 'tblTempUsageDetail_20' ) end [2025-04-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826322', 'tblTempVendorCDR_20' ) start [2025-04-03 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826322', 'tblTempVendorCDR_20' ) end [2025-04-03 15:07:23] Production.INFO: ProcessCDR(1,14826322,1,1,2) [2025-04-03 15:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826322', 'tblTempUsageDetail_20' ) start [2025-04-03 15:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826322', 'tblTempUsageDetail_20' ) end [2025-04-03 15:07:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:07:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:07:29] Production.INFO: ==1873== Releasing lock... [2025-04-03 15:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:07:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:08:06 [end_date_ymd] => 2025-04-03 15:08:06 [RateCDR] => 1 ) [2025-04-03 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:08:06' and `end` < '2025-04-03 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:08:20] Production.INFO: count ==7215 [2025-04-03 15:08:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:08:06 - End Time 2025-04-03 15:08:06 [2025-04-03 15:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826327', 'tblTempUsageDetail_20' ) start [2025-04-03 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826327', 'tblTempUsageDetail_20' ) end [2025-04-03 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826327', 'tblTempVendorCDR_20' ) start [2025-04-03 15:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826327', 'tblTempVendorCDR_20' ) end [2025-04-03 15:08:24] Production.INFO: ProcessCDR(1,14826327,1,1,2) [2025-04-03 15:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826327', 'tblTempUsageDetail_20' ) start [2025-04-03 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826327', 'tblTempUsageDetail_20' ) end [2025-04-03 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:08:28] Production.INFO: ==2026== Releasing lock... [2025-04-03 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:08:28] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:09:05 [end_date_ymd] => 2025-04-03 15:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:09:05' and `end` < '2025-04-03 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-03 15:09:20] Production.INFO: count ==7216 [2025-04-03 15:09:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:09:05 - End Time 2025-04-03 15:09:05 [2025-04-03 15:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826332', 'tblTempUsageDetail_20' ) start [2025-04-03 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826332', 'tblTempUsageDetail_20' ) end [2025-04-03 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826332', 'tblTempVendorCDR_20' ) start [2025-04-03 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826332', 'tblTempVendorCDR_20' ) end [2025-04-03 15:09:24] Production.INFO: ProcessCDR(1,14826332,1,1,2) [2025-04-03 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826332', 'tblTempUsageDetail_20' ) start [2025-04-03 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826332', 'tblTempUsageDetail_20' ) end [2025-04-03 15:09:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:09:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:09:29] Production.INFO: ==2099== Releasing lock... [2025-04-03 15:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:09:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:10:07 [end_date_ymd] => 2025-04-03 15:10:07 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:10:07' and `end` < '2025-04-03 15: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-03 15:10:21] Production.INFO: count ==7227 [2025-04-03 15:10:25] Production.ERROR: pbx CDR StartTime 2025-04-03 12:10:07 - End Time 2025-04-03 15:10:07 [2025-04-03 15:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826338', 'tblTempUsageDetail_20' ) start [2025-04-03 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826338', 'tblTempUsageDetail_20' ) end [2025-04-03 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826338', 'tblTempVendorCDR_20' ) start [2025-04-03 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826338', 'tblTempVendorCDR_20' ) end [2025-04-03 15:10:25] Production.INFO: ProcessCDR(1,14826338,1,1,2) [2025-04-03 15:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826338', 'tblTempUsageDetail_20' ) start [2025-04-03 15:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826338', 'tblTempUsageDetail_20' ) end [2025-04-03 15:10:32] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:10:32] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:10:32] Production.INFO: ==2192== Releasing lock... [2025-04-03 15:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:10:32] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:11:05 [end_date_ymd] => 2025-04-03 15:11:05 [RateCDR] => 1 ) [2025-04-03 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:11:05' and `end` < '2025-04-03 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:11:20] Production.INFO: count ==7239 [2025-04-03 15:11:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:11:05 - End Time 2025-04-03 15:11:05 [2025-04-03 15:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826343', 'tblTempUsageDetail_20' ) start [2025-04-03 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826343', 'tblTempUsageDetail_20' ) end [2025-04-03 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826343', 'tblTempVendorCDR_20' ) start [2025-04-03 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826343', 'tblTempVendorCDR_20' ) end [2025-04-03 15:11:24] Production.INFO: ProcessCDR(1,14826343,1,1,2) [2025-04-03 15:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826343', 'tblTempUsageDetail_20' ) start [2025-04-03 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826343', 'tblTempUsageDetail_20' ) end [2025-04-03 15:11:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:11:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:11:30] Production.INFO: ==2270== Releasing lock... [2025-04-03 15:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:11:30] Production.INFO: 82.75 MB #Memory Used# [2025-04-03 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:12:05 [end_date_ymd] => 2025-04-03 15:12:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:12:05' and `end` < '2025-04-03 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-03 15:12:19] Production.INFO: count ==7232 [2025-04-03 15:12:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:12:05 - End Time 2025-04-03 15:12:05 [2025-04-03 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826348', 'tblTempUsageDetail_20' ) start [2025-04-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826348', 'tblTempUsageDetail_20' ) end [2025-04-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826348', 'tblTempVendorCDR_20' ) start [2025-04-03 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826348', 'tblTempVendorCDR_20' ) end [2025-04-03 15:12:23] Production.INFO: ProcessCDR(1,14826348,1,1,2) [2025-04-03 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826348', 'tblTempUsageDetail_20' ) start [2025-04-03 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826348', 'tblTempUsageDetail_20' ) end [2025-04-03 15:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:12:29] Production.INFO: ==2432== Releasing lock... [2025-04-03 15:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:12:29] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:13:05 [end_date_ymd] => 2025-04-03 15:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:13:05' and `end` < '2025-04-03 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-03 15:13:20] Production.INFO: count ==7230 [2025-04-03 15:13:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:13:05 - End Time 2025-04-03 15:13:05 [2025-04-03 15:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826353', 'tblTempUsageDetail_20' ) start [2025-04-03 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826353', 'tblTempUsageDetail_20' ) end [2025-04-03 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826353', 'tblTempVendorCDR_20' ) start [2025-04-03 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826353', 'tblTempVendorCDR_20' ) end [2025-04-03 15:13:24] Production.INFO: ProcessCDR(1,14826353,1,1,2) [2025-04-03 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826353', 'tblTempUsageDetail_20' ) start [2025-04-03 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826353', 'tblTempUsageDetail_20' ) end [2025-04-03 15:13:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:13:30] Production.INFO: ==2541== Releasing lock... [2025-04-03 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:13:30] Production.INFO: 82.5 MB #Memory Used# [2025-04-03 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:14:06 [end_date_ymd] => 2025-04-03 15:14:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:14:06' and `end` < '2025-04-03 15: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-03 15:14:20] Production.INFO: count ==7197 [2025-04-03 15:14:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:14:06 - End Time 2025-04-03 15:14:06 [2025-04-03 15:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826358', 'tblTempUsageDetail_20' ) start [2025-04-03 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826358', 'tblTempUsageDetail_20' ) end [2025-04-03 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826358', 'tblTempVendorCDR_20' ) start [2025-04-03 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826358', 'tblTempVendorCDR_20' ) end [2025-04-03 15:14:24] Production.INFO: ProcessCDR(1,14826358,1,1,2) [2025-04-03 15:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826358', 'tblTempUsageDetail_20' ) start [2025-04-03 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826358', 'tblTempUsageDetail_20' ) end [2025-04-03 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:14:30] Production.INFO: ==2620== Releasing lock... [2025-04-03 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:14:30] Production.INFO: 82.25 MB #Memory Used# [2025-04-03 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:15:05 [end_date_ymd] => 2025-04-03 15:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:15:05' and `end` < '2025-04-03 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-03 15:15:19] Production.INFO: count ==7165 [2025-04-03 15:15:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:15:05 - End Time 2025-04-03 15:15:05 [2025-04-03 15:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826363', 'tblTempUsageDetail_20' ) start [2025-04-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826363', 'tblTempUsageDetail_20' ) end [2025-04-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826363', 'tblTempVendorCDR_20' ) start [2025-04-03 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826363', 'tblTempVendorCDR_20' ) end [2025-04-03 15:15:23] Production.INFO: ProcessCDR(1,14826363,1,1,2) [2025-04-03 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826363', 'tblTempUsageDetail_20' ) start [2025-04-03 15:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826363', 'tblTempUsageDetail_20' ) end [2025-04-03 15:15:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:15:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:15:29] Production.INFO: ==2774== Releasing lock... [2025-04-03 15:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:15:29] Production.INFO: 82 MB #Memory Used# [2025-04-03 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:16:06 [end_date_ymd] => 2025-04-03 15:16:06 [RateCDR] => 1 ) [2025-04-03 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:16:06' and `end` < '2025-04-03 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:16:20] Production.INFO: count ==7126 [2025-04-03 15:16:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:16:06 - End Time 2025-04-03 15:16:06 [2025-04-03 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826368', 'tblTempUsageDetail_20' ) start [2025-04-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826368', 'tblTempUsageDetail_20' ) end [2025-04-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826368', 'tblTempVendorCDR_20' ) start [2025-04-03 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826368', 'tblTempVendorCDR_20' ) end [2025-04-03 15:16:24] Production.INFO: ProcessCDR(1,14826368,1,1,2) [2025-04-03 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826368', 'tblTempUsageDetail_20' ) start [2025-04-03 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826368', 'tblTempUsageDetail_20' ) end [2025-04-03 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:16:29] Production.INFO: ==2848== Releasing lock... [2025-04-03 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:16:29] Production.INFO: 81.75 MB #Memory Used# [2025-04-03 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:17:05 [end_date_ymd] => 2025-04-03 15:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:17:05' and `end` < '2025-04-03 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-03 15:17:19] Production.INFO: count ==7077 [2025-04-03 15:17:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:17:05 - End Time 2025-04-03 15:17:05 [2025-04-03 15:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826373', 'tblTempUsageDetail_20' ) start [2025-04-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826373', 'tblTempUsageDetail_20' ) end [2025-04-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826373', 'tblTempVendorCDR_20' ) start [2025-04-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826373', 'tblTempVendorCDR_20' ) end [2025-04-03 15:17:23] Production.INFO: ProcessCDR(1,14826373,1,1,2) [2025-04-03 15:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826373', 'tblTempUsageDetail_20' ) start [2025-04-03 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826373', 'tblTempUsageDetail_20' ) end [2025-04-03 15:17:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:17:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:17:29] Production.INFO: ==2927== Releasing lock... [2025-04-03 15:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:17:29] Production.INFO: 81.5 MB #Memory Used# [2025-04-03 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:18:06 [end_date_ymd] => 2025-04-03 15:18:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:18:06' and `end` < '2025-04-03 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-03 15:18:21] Production.INFO: count ==7089 [2025-04-03 15:18:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:18:06 - End Time 2025-04-03 15:18:06 [2025-04-03 15:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826378', 'tblTempUsageDetail_20' ) start [2025-04-03 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826378', 'tblTempUsageDetail_20' ) end [2025-04-03 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826378', 'tblTempVendorCDR_20' ) start [2025-04-03 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826378', 'tblTempVendorCDR_20' ) end [2025-04-03 15:18:24] Production.INFO: ProcessCDR(1,14826378,1,1,2) [2025-04-03 15:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826378', 'tblTempUsageDetail_20' ) start [2025-04-03 15:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826378', 'tblTempUsageDetail_20' ) end [2025-04-03 15:18:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:18:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:18:30] Production.INFO: ==3000== Releasing lock... [2025-04-03 15:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:18:30] Production.INFO: 81.5 MB #Memory Used# [2025-04-03 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:19:05 [end_date_ymd] => 2025-04-03 15:19:05 [RateCDR] => 1 ) [2025-04-03 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:19:05' and `end` < '2025-04-03 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:19:19] Production.INFO: count ==7091 [2025-04-03 15:19:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:19:05 - End Time 2025-04-03 15:19:05 [2025-04-03 15:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826383', 'tblTempUsageDetail_20' ) start [2025-04-03 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826383', 'tblTempUsageDetail_20' ) end [2025-04-03 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826383', 'tblTempVendorCDR_20' ) start [2025-04-03 15:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826383', 'tblTempVendorCDR_20' ) end [2025-04-03 15:19:23] Production.INFO: ProcessCDR(1,14826383,1,1,2) [2025-04-03 15:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826383', 'tblTempUsageDetail_20' ) start [2025-04-03 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826383', 'tblTempUsageDetail_20' ) end [2025-04-03 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:19:29] Production.INFO: ==3076== Releasing lock... [2025-04-03 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:19:29] Production.INFO: 81.5 MB #Memory Used# [2025-04-03 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:20:07 [end_date_ymd] => 2025-04-03 15:20:07 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:20:07' and `end` < '2025-04-03 15: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-03 15:20:21] Production.INFO: count ==7066 [2025-04-03 15:20:25] Production.ERROR: pbx CDR StartTime 2025-04-03 12:20:07 - End Time 2025-04-03 15:20:07 [2025-04-03 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826389', 'tblTempUsageDetail_20' ) start [2025-04-03 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826389', 'tblTempUsageDetail_20' ) end [2025-04-03 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826389', 'tblTempVendorCDR_20' ) start [2025-04-03 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826389', 'tblTempVendorCDR_20' ) end [2025-04-03 15:20:25] Production.INFO: ProcessCDR(1,14826389,1,1,2) [2025-04-03 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826389', 'tblTempUsageDetail_20' ) start [2025-04-03 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826389', 'tblTempUsageDetail_20' ) end [2025-04-03 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:20:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:20:31] Production.INFO: ==3160== Releasing lock... [2025-04-03 15:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:20:31] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:21:05 [end_date_ymd] => 2025-04-03 15:21:05 [RateCDR] => 1 ) [2025-04-03 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:21:05' and `end` < '2025-04-03 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:21:19] Production.INFO: count ==7016 [2025-04-03 15:21:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:21:05 - End Time 2025-04-03 15:21:05 [2025-04-03 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826394', 'tblTempUsageDetail_20' ) start [2025-04-03 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826394', 'tblTempUsageDetail_20' ) end [2025-04-03 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826394', 'tblTempVendorCDR_20' ) start [2025-04-03 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826394', 'tblTempVendorCDR_20' ) end [2025-04-03 15:21:23] Production.INFO: ProcessCDR(1,14826394,1,1,2) [2025-04-03 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826394', 'tblTempUsageDetail_20' ) start [2025-04-03 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826394', 'tblTempUsageDetail_20' ) end [2025-04-03 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:21:29] Production.INFO: ==3235== Releasing lock... [2025-04-03 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:21:29] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:22:06 [end_date_ymd] => 2025-04-03 15:22:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:22:06' and `end` < '2025-04-03 15: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-03 15:22:20] Production.INFO: count ==7011 [2025-04-03 15:22:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:22:06 - End Time 2025-04-03 15:22:06 [2025-04-03 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826399', 'tblTempUsageDetail_20' ) start [2025-04-03 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826399', 'tblTempUsageDetail_20' ) end [2025-04-03 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826399', 'tblTempVendorCDR_20' ) start [2025-04-03 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826399', 'tblTempVendorCDR_20' ) end [2025-04-03 15:22:24] Production.INFO: ProcessCDR(1,14826399,1,1,2) [2025-04-03 15:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826399', 'tblTempUsageDetail_20' ) start [2025-04-03 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826399', 'tblTempUsageDetail_20' ) end [2025-04-03 15:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:22:29] Production.INFO: ==3309== Releasing lock... [2025-04-03 15:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:22:29] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:23:06 [end_date_ymd] => 2025-04-03 15:23:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:23:06' and `end` < '2025-04-03 15: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-03 15:23:20] Production.INFO: count ==7012 [2025-04-03 15:23:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:23:06 - End Time 2025-04-03 15:23:06 [2025-04-03 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826404', 'tblTempUsageDetail_20' ) start [2025-04-03 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826404', 'tblTempUsageDetail_20' ) end [2025-04-03 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826404', 'tblTempVendorCDR_20' ) start [2025-04-03 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826404', 'tblTempVendorCDR_20' ) end [2025-04-03 15:23:24] Production.INFO: ProcessCDR(1,14826404,1,1,2) [2025-04-03 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826404', 'tblTempUsageDetail_20' ) start [2025-04-03 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826404', 'tblTempUsageDetail_20' ) end [2025-04-03 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:23:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:23:30] Production.INFO: ==3386== Releasing lock... [2025-04-03 15:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:23:30] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:24:06 [end_date_ymd] => 2025-04-03 15:24:06 [RateCDR] => 1 ) [2025-04-03 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:24:06' and `end` < '2025-04-03 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:24:20] Production.INFO: count ==7015 [2025-04-03 15:24:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:24:06 - End Time 2025-04-03 15:24:06 [2025-04-03 15:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826409', 'tblTempUsageDetail_20' ) start [2025-04-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826409', 'tblTempUsageDetail_20' ) end [2025-04-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826409', 'tblTempVendorCDR_20' ) start [2025-04-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826409', 'tblTempVendorCDR_20' ) end [2025-04-03 15:24:24] Production.INFO: ProcessCDR(1,14826409,1,1,2) [2025-04-03 15:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826409', 'tblTempUsageDetail_20' ) start [2025-04-03 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826409', 'tblTempUsageDetail_20' ) end [2025-04-03 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:24:29] Production.INFO: ==3466== Releasing lock... [2025-04-03 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:24:29] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:25:06 [end_date_ymd] => 2025-04-03 15:25:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:25:06' and `end` < '2025-04-03 15: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-03 15:25:20] Production.INFO: count ==6997 [2025-04-03 15:25:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:25:06 - End Time 2025-04-03 15:25:06 [2025-04-03 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826414', 'tblTempUsageDetail_20' ) start [2025-04-03 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826414', 'tblTempUsageDetail_20' ) end [2025-04-03 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826414', 'tblTempVendorCDR_20' ) start [2025-04-03 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826414', 'tblTempVendorCDR_20' ) end [2025-04-03 15:25:24] Production.INFO: ProcessCDR(1,14826414,1,1,2) [2025-04-03 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826414', 'tblTempUsageDetail_20' ) start [2025-04-03 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826414', 'tblTempUsageDetail_20' ) end [2025-04-03 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:25:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:25:30] Production.INFO: ==3565== Releasing lock... [2025-04-03 15:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:25:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:26:06 [end_date_ymd] => 2025-04-03 15:26:06 [RateCDR] => 1 ) [2025-04-03 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:26:06' and `end` < '2025-04-03 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:26:20] Production.INFO: count ==6991 [2025-04-03 15:26:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:26:06 - End Time 2025-04-03 15:26:06 [2025-04-03 15:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826419', 'tblTempUsageDetail_20' ) start [2025-04-03 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826419', 'tblTempUsageDetail_20' ) end [2025-04-03 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826419', 'tblTempVendorCDR_20' ) start [2025-04-03 15:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826419', 'tblTempVendorCDR_20' ) end [2025-04-03 15:26:24] Production.INFO: ProcessCDR(1,14826419,1,1,2) [2025-04-03 15:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826419', 'tblTempUsageDetail_20' ) start [2025-04-03 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826419', 'tblTempUsageDetail_20' ) end [2025-04-03 15:26:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:26:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:26:30] Production.INFO: ==3641== Releasing lock... [2025-04-03 15:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:26:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:27:06 [end_date_ymd] => 2025-04-03 15:27:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:27:06' and `end` < '2025-04-03 15: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-03 15:27:20] Production.INFO: count ==6976 [2025-04-03 15:27:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:27:06 - End Time 2025-04-03 15:27:06 [2025-04-03 15:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826424', 'tblTempUsageDetail_20' ) start [2025-04-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826424', 'tblTempUsageDetail_20' ) end [2025-04-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826424', 'tblTempVendorCDR_20' ) start [2025-04-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826424', 'tblTempVendorCDR_20' ) end [2025-04-03 15:27:24] Production.INFO: ProcessCDR(1,14826424,1,1,2) [2025-04-03 15:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826424', 'tblTempUsageDetail_20' ) start [2025-04-03 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826424', 'tblTempUsageDetail_20' ) end [2025-04-03 15:27:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:27:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:27:30] Production.INFO: ==3716== Releasing lock... [2025-04-03 15:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:27:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:28:05 [end_date_ymd] => 2025-04-03 15:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:28:05' and `end` < '2025-04-03 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-03 15:28:19] Production.INFO: count ==6969 [2025-04-03 15:28:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:28:05 - End Time 2025-04-03 15:28:05 [2025-04-03 15:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826429', 'tblTempUsageDetail_20' ) start [2025-04-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826429', 'tblTempUsageDetail_20' ) end [2025-04-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826429', 'tblTempVendorCDR_20' ) start [2025-04-03 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826429', 'tblTempVendorCDR_20' ) end [2025-04-03 15:28:23] Production.INFO: ProcessCDR(1,14826429,1,1,2) [2025-04-03 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826429', 'tblTempUsageDetail_20' ) start [2025-04-03 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826429', 'tblTempUsageDetail_20' ) end [2025-04-03 15:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:28:29] Production.INFO: ==3796== Releasing lock... [2025-04-03 15:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:28:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:29:06 [end_date_ymd] => 2025-04-03 15:29:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:29:06' and `end` < '2025-04-03 15: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-03 15:29:20] Production.INFO: count ==6982 [2025-04-03 15:29:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:29:06 - End Time 2025-04-03 15:29:06 [2025-04-03 15:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826434', 'tblTempUsageDetail_20' ) start [2025-04-03 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826434', 'tblTempUsageDetail_20' ) end [2025-04-03 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826434', 'tblTempVendorCDR_20' ) start [2025-04-03 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826434', 'tblTempVendorCDR_20' ) end [2025-04-03 15:29:24] Production.INFO: ProcessCDR(1,14826434,1,1,2) [2025-04-03 15:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826434', 'tblTempUsageDetail_20' ) start [2025-04-03 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826434', 'tblTempUsageDetail_20' ) end [2025-04-03 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:29:30] Production.INFO: ==3912== Releasing lock... [2025-04-03 15:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:29:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:30:06 [end_date_ymd] => 2025-04-03 15:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:30:06' and `end` < '2025-04-03 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-03 15:30:20] Production.INFO: count ==6980 [2025-04-03 15:30:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:30:06 - End Time 2025-04-03 15:30:06 [2025-04-03 15:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826440', 'tblTempUsageDetail_20' ) start [2025-04-03 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826440', 'tblTempUsageDetail_20' ) end [2025-04-03 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826440', 'tblTempVendorCDR_20' ) start [2025-04-03 15:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826440', 'tblTempVendorCDR_20' ) end [2025-04-03 15:30:24] Production.INFO: ProcessCDR(1,14826440,1,1,2) [2025-04-03 15:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826440', 'tblTempUsageDetail_20' ) start [2025-04-03 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826440', 'tblTempUsageDetail_20' ) end [2025-04-03 15:30:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:30:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:30:30] Production.INFO: ==3992== Releasing lock... [2025-04-03 15:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:30:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:31:06 [end_date_ymd] => 2025-04-03 15:31:06 [RateCDR] => 1 ) [2025-04-03 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:31:06' and `end` < '2025-04-03 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:31:20] Production.INFO: count ==6987 [2025-04-03 15:31:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:31:06 - End Time 2025-04-03 15:31:06 [2025-04-03 15:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826445', 'tblTempUsageDetail_20' ) start [2025-04-03 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826445', 'tblTempUsageDetail_20' ) end [2025-04-03 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826445', 'tblTempVendorCDR_20' ) start [2025-04-03 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826445', 'tblTempVendorCDR_20' ) end [2025-04-03 15:31:23] Production.INFO: ProcessCDR(1,14826445,1,1,2) [2025-04-03 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826445', 'tblTempUsageDetail_20' ) start [2025-04-03 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826445', 'tblTempUsageDetail_20' ) end [2025-04-03 15:31:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:31:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:31:29] Production.INFO: ==4070== Releasing lock... [2025-04-03 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:31:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:32:06 [end_date_ymd] => 2025-04-03 15:32:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:32:06' and `end` < '2025-04-03 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-03 15:32:20] Production.INFO: count ==6982 [2025-04-03 15:32:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:32:06 - End Time 2025-04-03 15:32:06 [2025-04-03 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826450', 'tblTempUsageDetail_20' ) start [2025-04-03 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826450', 'tblTempUsageDetail_20' ) end [2025-04-03 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826450', 'tblTempVendorCDR_20' ) start [2025-04-03 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826450', 'tblTempVendorCDR_20' ) end [2025-04-03 15:32:23] Production.INFO: ProcessCDR(1,14826450,1,1,2) [2025-04-03 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826450', 'tblTempUsageDetail_20' ) start [2025-04-03 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826450', 'tblTempUsageDetail_20' ) end [2025-04-03 15:32:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:32:29] Production.INFO: ==4143== Releasing lock... [2025-04-03 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:32:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:33:06 [end_date_ymd] => 2025-04-03 15:33:06 [RateCDR] => 1 ) [2025-04-03 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:33:06' and `end` < '2025-04-03 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:33:20] Production.INFO: count ==6987 [2025-04-03 15:33:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:33:06 - End Time 2025-04-03 15:33:06 [2025-04-03 15:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826455', 'tblTempUsageDetail_20' ) start [2025-04-03 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826455', 'tblTempUsageDetail_20' ) end [2025-04-03 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826455', 'tblTempVendorCDR_20' ) start [2025-04-03 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826455', 'tblTempVendorCDR_20' ) end [2025-04-03 15:33:24] Production.INFO: ProcessCDR(1,14826455,1,1,2) [2025-04-03 15:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826455', 'tblTempUsageDetail_20' ) start [2025-04-03 15:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826455', 'tblTempUsageDetail_20' ) end [2025-04-03 15:33:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:33:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:33:30] Production.INFO: ==4215== Releasing lock... [2025-04-03 15:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:33:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:34:05 [end_date_ymd] => 2025-04-03 15:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:34:05' and `end` < '2025-04-03 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-03 15:34:19] Production.INFO: count ==6972 [2025-04-03 15:34:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:34:05 - End Time 2025-04-03 15:34:05 [2025-04-03 15:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826460', 'tblTempUsageDetail_20' ) start [2025-04-03 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826460', 'tblTempUsageDetail_20' ) end [2025-04-03 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826460', 'tblTempVendorCDR_20' ) start [2025-04-03 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826460', 'tblTempVendorCDR_20' ) end [2025-04-03 15:34:23] Production.INFO: ProcessCDR(1,14826460,1,1,2) [2025-04-03 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826460', 'tblTempUsageDetail_20' ) start [2025-04-03 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826460', 'tblTempUsageDetail_20' ) end [2025-04-03 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:34:29] Production.INFO: ==4288== Releasing lock... [2025-04-03 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:34:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:35:05 [end_date_ymd] => 2025-04-03 15:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:35:05' and `end` < '2025-04-03 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-03 15:35:19] Production.INFO: count ==6996 [2025-04-03 15:35:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:35:05 - End Time 2025-04-03 15:35:05 [2025-04-03 15:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826465', 'tblTempUsageDetail_20' ) start [2025-04-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826465', 'tblTempUsageDetail_20' ) end [2025-04-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826465', 'tblTempVendorCDR_20' ) start [2025-04-03 15:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826465', 'tblTempVendorCDR_20' ) end [2025-04-03 15:35:23] Production.INFO: ProcessCDR(1,14826465,1,1,2) [2025-04-03 15:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826465', 'tblTempUsageDetail_20' ) start [2025-04-03 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826465', 'tblTempUsageDetail_20' ) end [2025-04-03 15:35:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:35:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:35:29] Production.INFO: ==4370== Releasing lock... [2025-04-03 15:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:35:29] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:36:05 [end_date_ymd] => 2025-04-03 15:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:36:05' and `end` < '2025-04-03 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-03 15:36:19] Production.INFO: count ==7003 [2025-04-03 15:36:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:36:05 - End Time 2025-04-03 15:36:05 [2025-04-03 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826470', 'tblTempUsageDetail_20' ) start [2025-04-03 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826470', 'tblTempUsageDetail_20' ) end [2025-04-03 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826470', 'tblTempVendorCDR_20' ) start [2025-04-03 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826470', 'tblTempVendorCDR_20' ) end [2025-04-03 15:36:24] Production.INFO: ProcessCDR(1,14826470,1,1,2) [2025-04-03 15:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826470', 'tblTempUsageDetail_20' ) start [2025-04-03 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826470', 'tblTempUsageDetail_20' ) end [2025-04-03 15:36:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:36:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:36:29] Production.INFO: ==4448== Releasing lock... [2025-04-03 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:36:29] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:37:06 [end_date_ymd] => 2025-04-03 15:37:06 [RateCDR] => 1 ) [2025-04-03 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:37:06' and `end` < '2025-04-03 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:37:20] Production.INFO: count ==7044 [2025-04-03 15:37:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:37:06 - End Time 2025-04-03 15:37:06 [2025-04-03 15:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826475', 'tblTempUsageDetail_20' ) start [2025-04-03 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826475', 'tblTempUsageDetail_20' ) end [2025-04-03 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826475', 'tblTempVendorCDR_20' ) start [2025-04-03 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826475', 'tblTempVendorCDR_20' ) end [2025-04-03 15:37:24] Production.INFO: ProcessCDR(1,14826475,1,1,2) [2025-04-03 15:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826475', 'tblTempUsageDetail_20' ) start [2025-04-03 15:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826475', 'tblTempUsageDetail_20' ) end [2025-04-03 15:37:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:37:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:37:30] Production.INFO: ==4522== Releasing lock... [2025-04-03 15:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:37:30] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:38:05 [end_date_ymd] => 2025-04-03 15:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:38:05' and `end` < '2025-04-03 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-03 15:38:20] Production.INFO: count ==7040 [2025-04-03 15:38:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:38:05 - End Time 2025-04-03 15:38:05 [2025-04-03 15:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826480', 'tblTempUsageDetail_20' ) start [2025-04-03 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826480', 'tblTempUsageDetail_20' ) end [2025-04-03 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826480', 'tblTempVendorCDR_20' ) start [2025-04-03 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826480', 'tblTempVendorCDR_20' ) end [2025-04-03 15:38:24] Production.INFO: ProcessCDR(1,14826480,1,1,2) [2025-04-03 15:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826480', 'tblTempUsageDetail_20' ) start [2025-04-03 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826480', 'tblTempUsageDetail_20' ) end [2025-04-03 15:38:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:38:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:38:29] Production.INFO: ==4602== Releasing lock... [2025-04-03 15:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:38:29] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:39:06 [end_date_ymd] => 2025-04-03 15:39:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:39:06' and `end` < '2025-04-03 15: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-03 15:39:20] Production.INFO: count ==6980 [2025-04-03 15:39:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:39:06 - End Time 2025-04-03 15:39:06 [2025-04-03 15:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826485', 'tblTempUsageDetail_20' ) start [2025-04-03 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826485', 'tblTempUsageDetail_20' ) end [2025-04-03 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826485', 'tblTempVendorCDR_20' ) start [2025-04-03 15:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826485', 'tblTempVendorCDR_20' ) end [2025-04-03 15:39:24] Production.INFO: ProcessCDR(1,14826485,1,1,2) [2025-04-03 15:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826485', 'tblTempUsageDetail_20' ) start [2025-04-03 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826485', 'tblTempUsageDetail_20' ) end [2025-04-03 15:39:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:39:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:39:30] Production.INFO: ==4675== Releasing lock... [2025-04-03 15:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:39:30] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:40:07 [end_date_ymd] => 2025-04-03 15:40:07 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:40:07' and `end` < '2025-04-03 15: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-03 15:40:21] Production.INFO: count ==6899 [2025-04-03 15:40:25] Production.ERROR: pbx CDR StartTime 2025-04-03 12:40:07 - End Time 2025-04-03 15:40:07 [2025-04-03 15:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826490', 'tblTempUsageDetail_20' ) start [2025-04-03 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826490', 'tblTempUsageDetail_20' ) end [2025-04-03 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826490', 'tblTempVendorCDR_20' ) start [2025-04-03 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826490', 'tblTempVendorCDR_20' ) end [2025-04-03 15:40:25] Production.INFO: ProcessCDR(1,14826490,1,1,2) [2025-04-03 15:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826490', 'tblTempUsageDetail_20' ) start [2025-04-03 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826490', 'tblTempUsageDetail_20' ) end [2025-04-03 15:40:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:40:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:40:31] Production.INFO: ==4749== Releasing lock... [2025-04-03 15:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:40:31] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:41:06 [end_date_ymd] => 2025-04-03 15:41:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:41:06' and `end` < '2025-04-03 15: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-03 15:41:20] Production.INFO: count ==6839 [2025-04-03 15:41:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:41:06 - End Time 2025-04-03 15:41:06 [2025-04-03 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826496', 'tblTempUsageDetail_20' ) start [2025-04-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826496', 'tblTempUsageDetail_20' ) end [2025-04-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826496', 'tblTempVendorCDR_20' ) start [2025-04-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826496', 'tblTempVendorCDR_20' ) end [2025-04-03 15:41:24] Production.INFO: ProcessCDR(1,14826496,1,1,2) [2025-04-03 15:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826496', 'tblTempUsageDetail_20' ) start [2025-04-03 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826496', 'tblTempUsageDetail_20' ) end [2025-04-03 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:41:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:41:30] Production.INFO: ==4826== Releasing lock... [2025-04-03 15:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:41:30] Production.INFO: 79.25 MB #Memory Used# [2025-04-03 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:42:06 [end_date_ymd] => 2025-04-03 15:42:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:42:06' and `end` < '2025-04-03 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-03 15:42:20] Production.INFO: count ==6791 [2025-04-03 15:42:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:42:06 - End Time 2025-04-03 15:42:06 [2025-04-03 15:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826501', 'tblTempUsageDetail_20' ) start [2025-04-03 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826501', 'tblTempUsageDetail_20' ) end [2025-04-03 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826501', 'tblTempVendorCDR_20' ) start [2025-04-03 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826501', 'tblTempVendorCDR_20' ) end [2025-04-03 15:42:24] Production.INFO: ProcessCDR(1,14826501,1,1,2) [2025-04-03 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826501', 'tblTempUsageDetail_20' ) start [2025-04-03 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826501', 'tblTempUsageDetail_20' ) end [2025-04-03 15:42:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:42:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:42:30] Production.INFO: ==4902== Releasing lock... [2025-04-03 15:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:42:30] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:43:05 [end_date_ymd] => 2025-04-03 15:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:43:05' and `end` < '2025-04-03 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-03 15:43:19] Production.INFO: count ==6809 [2025-04-03 15:43:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:43:05 - End Time 2025-04-03 15:43:05 [2025-04-03 15:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826506', 'tblTempUsageDetail_20' ) start [2025-04-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826506', 'tblTempUsageDetail_20' ) end [2025-04-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826506', 'tblTempVendorCDR_20' ) start [2025-04-03 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826506', 'tblTempVendorCDR_20' ) end [2025-04-03 15:43:23] Production.INFO: ProcessCDR(1,14826506,1,1,2) [2025-04-03 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826506', 'tblTempUsageDetail_20' ) start [2025-04-03 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826506', 'tblTempUsageDetail_20' ) end [2025-04-03 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:43:29] Production.INFO: ==4977== Releasing lock... [2025-04-03 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:43:29] Production.INFO: 79 MB #Memory Used# [2025-04-03 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:44:06 [end_date_ymd] => 2025-04-03 15:44:06 [RateCDR] => 1 ) [2025-04-03 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:44:06' and `end` < '2025-04-03 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:44:20] Production.INFO: count ==6806 [2025-04-03 15:44:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:44:06 - End Time 2025-04-03 15:44:06 [2025-04-03 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826511', 'tblTempUsageDetail_20' ) start [2025-04-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826511', 'tblTempUsageDetail_20' ) end [2025-04-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826511', 'tblTempVendorCDR_20' ) start [2025-04-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826511', 'tblTempVendorCDR_20' ) end [2025-04-03 15:44:24] Production.INFO: ProcessCDR(1,14826511,1,1,2) [2025-04-03 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826511', 'tblTempUsageDetail_20' ) start [2025-04-03 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826511', 'tblTempUsageDetail_20' ) end [2025-04-03 15:44:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:44:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:44:30] Production.INFO: ==5089== Releasing lock... [2025-04-03 15:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:44:30] Production.INFO: 79 MB #Memory Used# [2025-04-03 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:45:05 [end_date_ymd] => 2025-04-03 15:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:45:05' and `end` < '2025-04-03 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-03 15:45:19] Production.INFO: count ==6782 [2025-04-03 15:45:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:45:05 - End Time 2025-04-03 15:45:05 [2025-04-03 15:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826516', 'tblTempUsageDetail_20' ) start [2025-04-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826516', 'tblTempUsageDetail_20' ) end [2025-04-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826516', 'tblTempVendorCDR_20' ) start [2025-04-03 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826516', 'tblTempVendorCDR_20' ) end [2025-04-03 15:45:23] Production.INFO: ProcessCDR(1,14826516,1,1,2) [2025-04-03 15:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826516', 'tblTempUsageDetail_20' ) start [2025-04-03 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826516', 'tblTempUsageDetail_20' ) end [2025-04-03 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:45:27] Production.INFO: ==5162== Releasing lock... [2025-04-03 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:45:27] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:46:06 [end_date_ymd] => 2025-04-03 15:46:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:46:06' and `end` < '2025-04-03 15: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-03 15:46:20] Production.INFO: count ==6769 [2025-04-03 15:46:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:46:06 - End Time 2025-04-03 15:46:06 [2025-04-03 15:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826521', 'tblTempUsageDetail_20' ) start [2025-04-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826521', 'tblTempUsageDetail_20' ) end [2025-04-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826521', 'tblTempVendorCDR_20' ) start [2025-04-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826521', 'tblTempVendorCDR_20' ) end [2025-04-03 15:46:24] Production.INFO: ProcessCDR(1,14826521,1,1,2) [2025-04-03 15:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826521', 'tblTempUsageDetail_20' ) start [2025-04-03 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826521', 'tblTempUsageDetail_20' ) end [2025-04-03 15:46:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:46:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:46:30] Production.INFO: ==5235== Releasing lock... [2025-04-03 15:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:46:30] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:47:06 [end_date_ymd] => 2025-04-03 15:47:06 [RateCDR] => 1 ) [2025-04-03 15: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-03 12:47:06' and `end` < '2025-04-03 15: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-03 15:47:20] Production.INFO: count ==6755 [2025-04-03 15:47:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:47:06 - End Time 2025-04-03 15:47:06 [2025-04-03 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826526', 'tblTempUsageDetail_20' ) start [2025-04-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826526', 'tblTempUsageDetail_20' ) end [2025-04-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826526', 'tblTempVendorCDR_20' ) start [2025-04-03 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826526', 'tblTempVendorCDR_20' ) end [2025-04-03 15:47:24] Production.INFO: ProcessCDR(1,14826526,1,1,2) [2025-04-03 15:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826526', 'tblTempUsageDetail_20' ) start [2025-04-03 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826526', 'tblTempUsageDetail_20' ) end [2025-04-03 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:47:29] Production.INFO: ==5307== Releasing lock... [2025-04-03 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:47:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:48:06 [end_date_ymd] => 2025-04-03 15:48:06 [RateCDR] => 1 ) [2025-04-03 15:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:48:06' and `end` < '2025-04-03 15:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:48:20] Production.INFO: count ==6762 [2025-04-03 15:48:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:48:06 - End Time 2025-04-03 15:48:06 [2025-04-03 15:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826531', 'tblTempUsageDetail_20' ) start [2025-04-03 15:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826531', 'tblTempUsageDetail_20' ) end [2025-04-03 15:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826531', 'tblTempVendorCDR_20' ) start [2025-04-03 15:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826531', 'tblTempVendorCDR_20' ) end [2025-04-03 15:48:24] Production.INFO: ProcessCDR(1,14826531,1,1,2) [2025-04-03 15:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826531', 'tblTempUsageDetail_20' ) start [2025-04-03 15:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826531', 'tblTempUsageDetail_20' ) end [2025-04-03 15:48:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:48:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:48:29] Production.INFO: ==5380== Releasing lock... [2025-04-03 15:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:48:29] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:49:05 [end_date_ymd] => 2025-04-03 15:49:05 [RateCDR] => 1 ) [2025-04-03 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:49:05' and `end` < '2025-04-03 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:49:20] Production.INFO: count ==6765 [2025-04-03 15:49:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:49:05 - End Time 2025-04-03 15:49:05 [2025-04-03 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826536', 'tblTempUsageDetail_20' ) start [2025-04-03 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826536', 'tblTempUsageDetail_20' ) end [2025-04-03 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826536', 'tblTempVendorCDR_20' ) start [2025-04-03 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826536', 'tblTempVendorCDR_20' ) end [2025-04-03 15:49:24] Production.INFO: ProcessCDR(1,14826536,1,1,2) [2025-04-03 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826536', 'tblTempUsageDetail_20' ) start [2025-04-03 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826536', 'tblTempUsageDetail_20' ) end [2025-04-03 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:49:30] Production.INFO: ==5455== Releasing lock... [2025-04-03 15:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:49:30] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:50:07 [end_date_ymd] => 2025-04-03 15:50:07 [RateCDR] => 1 ) [2025-04-03 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:50:07' and `end` < '2025-04-03 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:50:21] Production.INFO: count ==6784 [2025-04-03 15:50:25] Production.ERROR: pbx CDR StartTime 2025-04-03 12:50:07 - End Time 2025-04-03 15:50:07 [2025-04-03 15:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826542', 'tblTempUsageDetail_20' ) start [2025-04-03 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826542', 'tblTempUsageDetail_20' ) end [2025-04-03 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826542', 'tblTempVendorCDR_20' ) start [2025-04-03 15:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826542', 'tblTempVendorCDR_20' ) end [2025-04-03 15:50:25] Production.INFO: ProcessCDR(1,14826542,1,1,2) [2025-04-03 15:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826542', 'tblTempUsageDetail_20' ) start [2025-04-03 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826542', 'tblTempUsageDetail_20' ) end [2025-04-03 15:50:31] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:50:31] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:50:31] Production.INFO: ==5532== Releasing lock... [2025-04-03 15:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:50:31] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:51:05 [end_date_ymd] => 2025-04-03 15:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:51:05' and `end` < '2025-04-03 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-03 15:51:19] Production.INFO: count ==6881 [2025-04-03 15:51:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:51:05 - End Time 2025-04-03 15:51:05 [2025-04-03 15:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826547', 'tblTempUsageDetail_20' ) start [2025-04-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826547', 'tblTempUsageDetail_20' ) end [2025-04-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826547', 'tblTempVendorCDR_20' ) start [2025-04-03 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826547', 'tblTempVendorCDR_20' ) end [2025-04-03 15:51:23] Production.INFO: ProcessCDR(1,14826547,1,1,2) [2025-04-03 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826547', 'tblTempUsageDetail_20' ) start [2025-04-03 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826547', 'tblTempUsageDetail_20' ) end [2025-04-03 15:51:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:51:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:51:29] Production.INFO: ==5605== Releasing lock... [2025-04-03 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:51:29] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:52:06 [end_date_ymd] => 2025-04-03 15:52:06 [RateCDR] => 1 ) [2025-04-03 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:52:06' and `end` < '2025-04-03 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:52:20] Production.INFO: count ==7066 [2025-04-03 15:52:24] Production.ERROR: pbx CDR StartTime 2025-04-03 12:52:06 - End Time 2025-04-03 15:52:06 [2025-04-03 15:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826552', 'tblTempUsageDetail_20' ) start [2025-04-03 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826552', 'tblTempUsageDetail_20' ) end [2025-04-03 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826552', 'tblTempVendorCDR_20' ) start [2025-04-03 15:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826552', 'tblTempVendorCDR_20' ) end [2025-04-03 15:52:24] Production.INFO: ProcessCDR(1,14826552,1,1,2) [2025-04-03 15:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826552', 'tblTempUsageDetail_20' ) start [2025-04-03 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826552', 'tblTempUsageDetail_20' ) end [2025-04-03 15:52:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:52:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:52:30] Production.INFO: ==5682== Releasing lock... [2025-04-03 15:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:52:30] Production.INFO: 80.75 MB #Memory Used# [2025-04-03 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:53:05 [end_date_ymd] => 2025-04-03 15:53:05 [RateCDR] => 1 ) [2025-04-03 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:53:05' and `end` < '2025-04-03 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:53:19] Production.INFO: count ==7032 [2025-04-03 15:53:22] Production.ERROR: pbx CDR StartTime 2025-04-03 12:53:05 - End Time 2025-04-03 15:53:05 [2025-04-03 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826557', 'tblTempUsageDetail_20' ) start [2025-04-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826557', 'tblTempUsageDetail_20' ) end [2025-04-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826557', 'tblTempVendorCDR_20' ) start [2025-04-03 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826557', 'tblTempVendorCDR_20' ) end [2025-04-03 15:53:23] Production.INFO: ProcessCDR(1,14826557,1,1,2) [2025-04-03 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826557', 'tblTempUsageDetail_20' ) start [2025-04-03 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826557', 'tblTempUsageDetail_20' ) end [2025-04-03 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:53:28] Production.INFO: ==5756== Releasing lock... [2025-04-03 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:53:28] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:54:05 [end_date_ymd] => 2025-04-03 15:54:05 [RateCDR] => 1 ) [2025-04-03 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:54:05' and `end` < '2025-04-03 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:54:19] Production.INFO: count ==7010 [2025-04-03 15:54:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:54:05 - End Time 2025-04-03 15:54:05 [2025-04-03 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826562', 'tblTempUsageDetail_20' ) start [2025-04-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826562', 'tblTempUsageDetail_20' ) end [2025-04-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826562', 'tblTempVendorCDR_20' ) start [2025-04-03 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826562', 'tblTempVendorCDR_20' ) end [2025-04-03 15:54:23] Production.INFO: ProcessCDR(1,14826562,1,1,2) [2025-04-03 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826562', 'tblTempUsageDetail_20' ) start [2025-04-03 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826562', 'tblTempUsageDetail_20' ) end [2025-04-03 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:54:29] Production.INFO: ==5827== Releasing lock... [2025-04-03 15:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:54:29] Production.INFO: 80.5 MB #Memory Used# [2025-04-03 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:55:05 [end_date_ymd] => 2025-04-03 15:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:55:05' and `end` < '2025-04-03 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-03 15:55:19] Production.INFO: count ==6995 [2025-04-03 15:55:22] Production.ERROR: pbx CDR StartTime 2025-04-03 12:55:05 - End Time 2025-04-03 15:55:05 [2025-04-03 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826567', 'tblTempUsageDetail_20' ) start [2025-04-03 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826567', 'tblTempUsageDetail_20' ) end [2025-04-03 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826567', 'tblTempVendorCDR_20' ) start [2025-04-03 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826567', 'tblTempVendorCDR_20' ) end [2025-04-03 15:55:22] Production.INFO: ProcessCDR(1,14826567,1,1,2) [2025-04-03 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826567', 'tblTempUsageDetail_20' ) start [2025-04-03 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826567', 'tblTempUsageDetail_20' ) end [2025-04-03 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:55:28] Production.INFO: ==5904== Releasing lock... [2025-04-03 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:55:28] Production.INFO: 80.25 MB #Memory Used# [2025-04-03 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:56:06 [end_date_ymd] => 2025-04-03 15:56:06 [RateCDR] => 1 ) [2025-04-03 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-03 12:56:06' and `end` < '2025-04-03 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-03 15:56:20] Production.INFO: count ==6963 [2025-04-03 15:56:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:56:06 - End Time 2025-04-03 15:56:06 [2025-04-03 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826572', 'tblTempUsageDetail_20' ) start [2025-04-03 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826572', 'tblTempUsageDetail_20' ) end [2025-04-03 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826572', 'tblTempVendorCDR_20' ) start [2025-04-03 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826572', 'tblTempVendorCDR_20' ) end [2025-04-03 15:56:24] Production.INFO: ProcessCDR(1,14826572,1,1,2) [2025-04-03 15:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826572', 'tblTempUsageDetail_20' ) start [2025-04-03 15:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826572', 'tblTempUsageDetail_20' ) end [2025-04-03 15:56:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:56:29] Production.INFO: ==5983== Releasing lock... [2025-04-03 15:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:56:29] Production.INFO: 80 MB #Memory Used# [2025-04-03 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:57:05 [end_date_ymd] => 2025-04-03 15:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:57:05' and `end` < '2025-04-03 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-03 15:57:19] Production.INFO: count ==6960 [2025-04-03 15:57:22] Production.ERROR: pbx CDR StartTime 2025-04-03 12:57:05 - End Time 2025-04-03 15:57:05 [2025-04-03 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826577', 'tblTempUsageDetail_20' ) start [2025-04-03 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826577', 'tblTempUsageDetail_20' ) end [2025-04-03 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826577', 'tblTempVendorCDR_20' ) start [2025-04-03 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826577', 'tblTempVendorCDR_20' ) end [2025-04-03 15:57:22] Production.INFO: ProcessCDR(1,14826577,1,1,2) [2025-04-03 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826577', 'tblTempUsageDetail_20' ) start [2025-04-03 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826577', 'tblTempUsageDetail_20' ) end [2025-04-03 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:57:28] Production.INFO: ==6055== Releasing lock... [2025-04-03 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:57:28] Production.INFO: 80 MB #Memory Used# [2025-04-03 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:58:05 [end_date_ymd] => 2025-04-03 15:58:05 [RateCDR] => 1 ) [2025-04-03 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-03 12:58:05' and `end` < '2025-04-03 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-03 15:58:19] Production.INFO: count ==6938 [2025-04-03 15:58:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:58:05 - End Time 2025-04-03 15:58:05 [2025-04-03 15:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826582', 'tblTempUsageDetail_20' ) start [2025-04-03 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826582', 'tblTempUsageDetail_20' ) end [2025-04-03 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826582', 'tblTempVendorCDR_20' ) start [2025-04-03 15:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826582', 'tblTempVendorCDR_20' ) end [2025-04-03 15:58:23] Production.INFO: ProcessCDR(1,14826582,1,1,2) [2025-04-03 15:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826582', 'tblTempUsageDetail_20' ) start [2025-04-03 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826582', 'tblTempUsageDetail_20' ) end [2025-04-03 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:58:28] Production.INFO: ==6130== Releasing lock... [2025-04-03 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:58:28] Production.INFO: 80 MB #Memory Used# [2025-04-03 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 12:59:05 [end_date_ymd] => 2025-04-03 15:59:05 [RateCDR] => 1 ) [2025-04-03 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 12:59:05' and `end` < '2025-04-03 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 15:59:19] Production.INFO: count ==6916 [2025-04-03 15:59:23] Production.ERROR: pbx CDR StartTime 2025-04-03 12:59:05 - End Time 2025-04-03 15:59:05 [2025-04-03 15:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826587', 'tblTempUsageDetail_20' ) start [2025-04-03 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826587', 'tblTempUsageDetail_20' ) end [2025-04-03 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826587', 'tblTempVendorCDR_20' ) start [2025-04-03 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826587', 'tblTempVendorCDR_20' ) end [2025-04-03 15:59:23] Production.INFO: ProcessCDR(1,14826587,1,1,2) [2025-04-03 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 15:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826587', 'tblTempUsageDetail_20' ) start [2025-04-03 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826587', 'tblTempUsageDetail_20' ) end [2025-04-03 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 15:59:28] Production.INFO: ==6200== Releasing lock... [2025-04-03 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 15:59:28] Production.INFO: 79.75 MB #Memory Used# [2025-04-03 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:00:06 [end_date_ymd] => 2025-04-03 16:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 13:00:06' and `end` < '2025-04-03 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-03 16:00:20] Production.INFO: count ==6885 [2025-04-03 16:00:24] Production.ERROR: pbx CDR StartTime 2025-04-03 13:00:06 - End Time 2025-04-03 16:00:06 [2025-04-03 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826592', 'tblTempUsageDetail_20' ) start [2025-04-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826592', 'tblTempUsageDetail_20' ) end [2025-04-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826592', 'tblTempVendorCDR_20' ) start [2025-04-03 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826592', 'tblTempVendorCDR_20' ) end [2025-04-03 16:00:24] Production.INFO: ProcessCDR(1,14826592,1,1,2) [2025-04-03 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826592', 'tblTempUsageDetail_20' ) start [2025-04-03 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826592', 'tblTempUsageDetail_20' ) end [2025-04-03 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:00:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:00:30] Production.INFO: ==6314== Releasing lock... [2025-04-03 16:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:00:30] Production.INFO: 79.5 MB #Memory Used# [2025-04-03 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:01:06 [end_date_ymd] => 2025-04-03 16:01:06 [RateCDR] => 1 ) [2025-04-03 16:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:01:06' and `end` < '2025-04-03 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:01:20] Production.INFO: count ==6840 [2025-04-03 16:01:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:01:06 - End Time 2025-04-03 16:01:06 [2025-04-03 16:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826598', 'tblTempUsageDetail_20' ) start [2025-04-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826598', 'tblTempUsageDetail_20' ) end [2025-04-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826598', 'tblTempVendorCDR_20' ) start [2025-04-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826598', 'tblTempVendorCDR_20' ) end [2025-04-03 16:01:24] Production.INFO: ProcessCDR(1,14826598,1,1,2) [2025-04-03 16:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826598', 'tblTempUsageDetail_20' ) start [2025-04-03 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826598', 'tblTempUsageDetail_20' ) end [2025-04-03 16:01:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:01:30] Production.INFO: ==6400== Releasing lock... [2025-04-03 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:01:30] Production.INFO: 79.25 MB #Memory Used# [2025-04-03 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:02:05 [end_date_ymd] => 2025-04-03 16:02:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:02:05' and `end` < '2025-04-03 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-03 16:02:20] Production.INFO: count ==6796 [2025-04-03 16:02:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:02:05 - End Time 2025-04-03 16:02:05 [2025-04-03 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826603', 'tblTempUsageDetail_20' ) start [2025-04-03 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826603', 'tblTempUsageDetail_20' ) end [2025-04-03 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826603', 'tblTempVendorCDR_20' ) start [2025-04-03 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826603', 'tblTempVendorCDR_20' ) end [2025-04-03 16:02:24] Production.INFO: ProcessCDR(1,14826603,1,1,2) [2025-04-03 16:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826603', 'tblTempUsageDetail_20' ) start [2025-04-03 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826603', 'tblTempUsageDetail_20' ) end [2025-04-03 16:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:02:29] Production.INFO: ==6473== Releasing lock... [2025-04-03 16:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:02:29] Production.INFO: 78.75 MB #Memory Used# [2025-04-03 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:03:06 [end_date_ymd] => 2025-04-03 16:03:06 [RateCDR] => 1 ) [2025-04-03 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-03 13:03:06' and `end` < '2025-04-03 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-03 16:03:20] Production.INFO: count ==6758 [2025-04-03 16:03:24] Production.ERROR: pbx CDR StartTime 2025-04-03 13:03:06 - End Time 2025-04-03 16:03:06 [2025-04-03 16:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826608', 'tblTempUsageDetail_20' ) start [2025-04-03 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826608', 'tblTempUsageDetail_20' ) end [2025-04-03 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826608', 'tblTempVendorCDR_20' ) start [2025-04-03 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826608', 'tblTempVendorCDR_20' ) end [2025-04-03 16:03:24] Production.INFO: ProcessCDR(1,14826608,1,1,2) [2025-04-03 16:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826608', 'tblTempUsageDetail_20' ) start [2025-04-03 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826608', 'tblTempUsageDetail_20' ) end [2025-04-03 16:03:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:03:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:03:30] Production.INFO: ==6551== Releasing lock... [2025-04-03 16:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:03:30] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:04:06 [end_date_ymd] => 2025-04-03 16:04:06 [RateCDR] => 1 ) [2025-04-03 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:04:06' and `end` < '2025-04-03 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:04:20] Production.INFO: count ==6734 [2025-04-03 16:04:24] Production.ERROR: pbx CDR StartTime 2025-04-03 13:04:06 - End Time 2025-04-03 16:04:06 [2025-04-03 16:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826613', 'tblTempUsageDetail_20' ) start [2025-04-03 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826613', 'tblTempUsageDetail_20' ) end [2025-04-03 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826613', 'tblTempVendorCDR_20' ) start [2025-04-03 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826613', 'tblTempVendorCDR_20' ) end [2025-04-03 16:04:24] Production.INFO: ProcessCDR(1,14826613,1,1,2) [2025-04-03 16:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826613', 'tblTempUsageDetail_20' ) start [2025-04-03 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826613', 'tblTempUsageDetail_20' ) end [2025-04-03 16:04:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:04:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:04:30] Production.INFO: ==6621== Releasing lock... [2025-04-03 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:04:30] Production.INFO: 78.5 MB #Memory Used# [2025-04-03 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:05:06 [end_date_ymd] => 2025-04-03 16:05:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:05:06' and `end` < '2025-04-03 16: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-03 16:05:20] Production.INFO: count ==6723 [2025-04-03 16:05:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:05:06 - End Time 2025-04-03 16:05:06 [2025-04-03 16:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826618', 'tblTempUsageDetail_20' ) start [2025-04-03 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826618', 'tblTempUsageDetail_20' ) end [2025-04-03 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826618', 'tblTempVendorCDR_20' ) start [2025-04-03 16:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826618', 'tblTempVendorCDR_20' ) end [2025-04-03 16:05:24] Production.INFO: ProcessCDR(1,14826618,1,1,2) [2025-04-03 16:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826618', 'tblTempUsageDetail_20' ) start [2025-04-03 16:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826618', 'tblTempUsageDetail_20' ) end [2025-04-03 16:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:05:29] Production.INFO: ==6694== Releasing lock... [2025-04-03 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:05:29] Production.INFO: 78.25 MB #Memory Used# [2025-04-03 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:06:05 [end_date_ymd] => 2025-04-03 16:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:06:05' and `end` < '2025-04-03 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-03 16:06:19] Production.INFO: count ==6710 [2025-04-03 16:06:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:06:05 - End Time 2025-04-03 16:06:05 [2025-04-03 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826623', 'tblTempUsageDetail_20' ) start [2025-04-03 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826623', 'tblTempUsageDetail_20' ) end [2025-04-03 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826623', 'tblTempVendorCDR_20' ) start [2025-04-03 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826623', 'tblTempVendorCDR_20' ) end [2025-04-03 16:06:22] Production.INFO: ProcessCDR(1,14826623,1,1,2) [2025-04-03 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826623', 'tblTempUsageDetail_20' ) start [2025-04-03 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826623', 'tblTempUsageDetail_20' ) end [2025-04-03 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:06:27] Production.INFO: ==6763== Releasing lock... [2025-04-03 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:06:27] Production.INFO: 78.25 MB #Memory Used# [2025-04-03 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:07:06 [end_date_ymd] => 2025-04-03 16:07:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:07:06' and `end` < '2025-04-03 16: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-03 16:07:20] Production.INFO: count ==6665 [2025-04-03 16:07:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:07:06 - End Time 2025-04-03 16:07:06 [2025-04-03 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826628', 'tblTempUsageDetail_20' ) start [2025-04-03 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826628', 'tblTempUsageDetail_20' ) end [2025-04-03 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826628', 'tblTempVendorCDR_20' ) start [2025-04-03 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826628', 'tblTempVendorCDR_20' ) end [2025-04-03 16:07:23] Production.INFO: ProcessCDR(1,14826628,1,1,2) [2025-04-03 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826628', 'tblTempUsageDetail_20' ) start [2025-04-03 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826628', 'tblTempUsageDetail_20' ) end [2025-04-03 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:07:28] Production.INFO: ==6840== Releasing lock... [2025-04-03 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:07:28] Production.INFO: 77.75 MB #Memory Used# [2025-04-03 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:08:06 [end_date_ymd] => 2025-04-03 16:08:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:08:06' and `end` < '2025-04-03 16: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-03 16:08:20] Production.INFO: count ==6624 [2025-04-03 16:08:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:08:06 - End Time 2025-04-03 16:08:06 [2025-04-03 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826633', 'tblTempUsageDetail_20' ) start [2025-04-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826633', 'tblTempUsageDetail_20' ) end [2025-04-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826633', 'tblTempVendorCDR_20' ) start [2025-04-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826633', 'tblTempVendorCDR_20' ) end [2025-04-03 16:08:23] Production.INFO: ProcessCDR(1,14826633,1,1,2) [2025-04-03 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826633', 'tblTempUsageDetail_20' ) start [2025-04-03 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826633', 'tblTempUsageDetail_20' ) end [2025-04-03 16:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:08:29] Production.INFO: ==6920== Releasing lock... [2025-04-03 16:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:08:29] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:09:05 [end_date_ymd] => 2025-04-03 16:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:09:05' and `end` < '2025-04-03 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-03 16:09:19] Production.INFO: count ==6583 [2025-04-03 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:09:05 - End Time 2025-04-03 16:09:05 [2025-04-03 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826638', 'tblTempUsageDetail_20' ) start [2025-04-03 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826638', 'tblTempUsageDetail_20' ) end [2025-04-03 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826638', 'tblTempVendorCDR_20' ) start [2025-04-03 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826638', 'tblTempVendorCDR_20' ) end [2025-04-03 16:09:23] Production.INFO: ProcessCDR(1,14826638,1,1,2) [2025-04-03 16:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826638', 'tblTempUsageDetail_20' ) start [2025-04-03 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826638', 'tblTempUsageDetail_20' ) end [2025-04-03 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:09:28] Production.INFO: ==6992== Releasing lock... [2025-04-03 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:09:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:10:05 [end_date_ymd] => 2025-04-03 16:10:05 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:10:05' and `end` < '2025-04-03 16: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-03 16:10:19] Production.INFO: count ==6573 [2025-04-03 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:10:05 - End Time 2025-04-03 16:10:05 [2025-04-03 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826644', 'tblTempUsageDetail_20' ) start [2025-04-03 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826644', 'tblTempUsageDetail_20' ) end [2025-04-03 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826644', 'tblTempVendorCDR_20' ) start [2025-04-03 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826644', 'tblTempVendorCDR_20' ) end [2025-04-03 16:10:23] Production.INFO: ProcessCDR(1,14826644,1,1,2) [2025-04-03 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826644', 'tblTempUsageDetail_20' ) start [2025-04-03 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826644', 'tblTempUsageDetail_20' ) end [2025-04-03 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:10:28] Production.INFO: ==7066== Releasing lock... [2025-04-03 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:10:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:11:06 [end_date_ymd] => 2025-04-03 16:11:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:11:06' and `end` < '2025-04-03 16: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-03 16:11:20] Production.INFO: count ==6617 [2025-04-03 16:11:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:11:06 - End Time 2025-04-03 16:11:06 [2025-04-03 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826649', 'tblTempUsageDetail_20' ) start [2025-04-03 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826649', 'tblTempUsageDetail_20' ) end [2025-04-03 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826649', 'tblTempVendorCDR_20' ) start [2025-04-03 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826649', 'tblTempVendorCDR_20' ) end [2025-04-03 16:11:23] Production.INFO: ProcessCDR(1,14826649,1,1,2) [2025-04-03 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826649', 'tblTempUsageDetail_20' ) start [2025-04-03 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826649', 'tblTempUsageDetail_20' ) end [2025-04-03 16:11:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:11:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:11:29] Production.INFO: ==7145== Releasing lock... [2025-04-03 16:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:11:29] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:12:05 [end_date_ymd] => 2025-04-03 16:12:05 [RateCDR] => 1 ) [2025-04-03 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:12:05' and `end` < '2025-04-03 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:12:19] Production.INFO: count ==6599 [2025-04-03 16:12:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:12:05 - End Time 2025-04-03 16:12:05 [2025-04-03 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826654', 'tblTempUsageDetail_20' ) start [2025-04-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826654', 'tblTempUsageDetail_20' ) end [2025-04-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826654', 'tblTempVendorCDR_20' ) start [2025-04-03 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826654', 'tblTempVendorCDR_20' ) end [2025-04-03 16:12:22] Production.INFO: ProcessCDR(1,14826654,1,1,2) [2025-04-03 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826654', 'tblTempUsageDetail_20' ) start [2025-04-03 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826654', 'tblTempUsageDetail_20' ) end [2025-04-03 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:12:28] Production.INFO: ==7216== Releasing lock... [2025-04-03 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:12:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:13:05 [end_date_ymd] => 2025-04-03 16:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:13:05' and `end` < '2025-04-03 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-03 16:13:19] Production.INFO: count ==6615 [2025-04-03 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:13:05 - End Time 2025-04-03 16:13:05 [2025-04-03 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826659', 'tblTempUsageDetail_20' ) start [2025-04-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826659', 'tblTempUsageDetail_20' ) end [2025-04-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826659', 'tblTempVendorCDR_20' ) start [2025-04-03 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826659', 'tblTempVendorCDR_20' ) end [2025-04-03 16:13:22] Production.INFO: ProcessCDR(1,14826659,1,1,2) [2025-04-03 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826659', 'tblTempUsageDetail_20' ) start [2025-04-03 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826659', 'tblTempUsageDetail_20' ) end [2025-04-03 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:13:28] Production.INFO: ==7301== Releasing lock... [2025-04-03 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:13:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:14:05 [end_date_ymd] => 2025-04-03 16:14:05 [RateCDR] => 1 ) [2025-04-03 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:14:05' and `end` < '2025-04-03 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:14:19] Production.INFO: count ==6619 [2025-04-03 16:14:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:14:05 - End Time 2025-04-03 16:14:05 [2025-04-03 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826664', 'tblTempUsageDetail_20' ) start [2025-04-03 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826664', 'tblTempUsageDetail_20' ) end [2025-04-03 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826664', 'tblTempVendorCDR_20' ) start [2025-04-03 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826664', 'tblTempVendorCDR_20' ) end [2025-04-03 16:14:22] Production.INFO: ProcessCDR(1,14826664,1,1,2) [2025-04-03 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826664', 'tblTempUsageDetail_20' ) start [2025-04-03 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826664', 'tblTempUsageDetail_20' ) end [2025-04-03 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:14:27] Production.INFO: ==7374== Releasing lock... [2025-04-03 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:14:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:15:05 [end_date_ymd] => 2025-04-03 16:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:15:05' and `end` < '2025-04-03 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-03 16:15:19] Production.INFO: count ==6607 [2025-04-03 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:15:05 - End Time 2025-04-03 16:15:05 [2025-04-03 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826669', 'tblTempUsageDetail_20' ) start [2025-04-03 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826669', 'tblTempUsageDetail_20' ) end [2025-04-03 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826669', 'tblTempVendorCDR_20' ) start [2025-04-03 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826669', 'tblTempVendorCDR_20' ) end [2025-04-03 16:15:23] Production.INFO: ProcessCDR(1,14826669,1,1,2) [2025-04-03 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826669', 'tblTempUsageDetail_20' ) start [2025-04-03 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826669', 'tblTempUsageDetail_20' ) end [2025-04-03 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:15:28] Production.INFO: ==7496== Releasing lock... [2025-04-03 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:15:28] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:16:05 [end_date_ymd] => 2025-04-03 16:16:05 [RateCDR] => 1 ) [2025-04-03 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:16:05' and `end` < '2025-04-03 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:16:19] Production.INFO: count ==6616 [2025-04-03 16:16:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:16:05 - End Time 2025-04-03 16:16:05 [2025-04-03 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826674', 'tblTempUsageDetail_20' ) start [2025-04-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826674', 'tblTempUsageDetail_20' ) end [2025-04-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826674', 'tblTempVendorCDR_20' ) start [2025-04-03 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826674', 'tblTempVendorCDR_20' ) end [2025-04-03 16:16:22] Production.INFO: ProcessCDR(1,14826674,1,1,2) [2025-04-03 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826674', 'tblTempUsageDetail_20' ) start [2025-04-03 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826674', 'tblTempUsageDetail_20' ) end [2025-04-03 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:16:27] Production.INFO: ==7574== Releasing lock... [2025-04-03 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:16:27] Production.INFO: 77.5 MB #Memory Used# [2025-04-03 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:17:05 [end_date_ymd] => 2025-04-03 16:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:17:05' and `end` < '2025-04-03 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-03 16:17:19] Production.INFO: count ==6587 [2025-04-03 16:17:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:17:05 - End Time 2025-04-03 16:17:05 [2025-04-03 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826679', 'tblTempUsageDetail_20' ) start [2025-04-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826679', 'tblTempUsageDetail_20' ) end [2025-04-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826679', 'tblTempVendorCDR_20' ) start [2025-04-03 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826679', 'tblTempVendorCDR_20' ) end [2025-04-03 16:17:23] Production.INFO: ProcessCDR(1,14826679,1,1,2) [2025-04-03 16:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826679', 'tblTempUsageDetail_20' ) start [2025-04-03 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826679', 'tblTempUsageDetail_20' ) end [2025-04-03 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:17:28] Production.INFO: ==7646== Releasing lock... [2025-04-03 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:17:28] Production.INFO: 77.25 MB #Memory Used# [2025-04-03 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:18:06 [end_date_ymd] => 2025-04-03 16:18:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:18:06' and `end` < '2025-04-03 16: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-03 16:18:20] Production.INFO: count ==6534 [2025-04-03 16:18:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:18:06 - End Time 2025-04-03 16:18:06 [2025-04-03 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826684', 'tblTempUsageDetail_20' ) start [2025-04-03 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826684', 'tblTempUsageDetail_20' ) end [2025-04-03 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826684', 'tblTempVendorCDR_20' ) start [2025-04-03 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826684', 'tblTempVendorCDR_20' ) end [2025-04-03 16:18:23] Production.INFO: ProcessCDR(1,14826684,1,1,2) [2025-04-03 16:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826684', 'tblTempUsageDetail_20' ) start [2025-04-03 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826684', 'tblTempUsageDetail_20' ) end [2025-04-03 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:18:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:18:29] Production.INFO: ==7726== Releasing lock... [2025-04-03 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:18:29] Production.INFO: 77 MB #Memory Used# [2025-04-03 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:19:05 [end_date_ymd] => 2025-04-03 16:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:19:05' and `end` < '2025-04-03 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-03 16:19:19] Production.INFO: count ==6493 [2025-04-03 16:19:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:19:05 - End Time 2025-04-03 16:19:05 [2025-04-03 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826689', 'tblTempUsageDetail_20' ) start [2025-04-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826689', 'tblTempUsageDetail_20' ) end [2025-04-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826689', 'tblTempVendorCDR_20' ) start [2025-04-03 16:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826689', 'tblTempVendorCDR_20' ) end [2025-04-03 16:19:23] Production.INFO: ProcessCDR(1,14826689,1,1,2) [2025-04-03 16:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826689', 'tblTempUsageDetail_20' ) start [2025-04-03 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826689', 'tblTempUsageDetail_20' ) end [2025-04-03 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:19:28] Production.INFO: ==7801== Releasing lock... [2025-04-03 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:19:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:20:06 [end_date_ymd] => 2025-04-03 16:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 13:20:06' and `end` < '2025-04-03 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-03 16:20:20] Production.INFO: count ==6430 [2025-04-03 16:20:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:20:06 - End Time 2025-04-03 16:20:06 [2025-04-03 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826695', 'tblTempUsageDetail_20' ) start [2025-04-03 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826695', 'tblTempUsageDetail_20' ) end [2025-04-03 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826695', 'tblTempVendorCDR_20' ) start [2025-04-03 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826695', 'tblTempVendorCDR_20' ) end [2025-04-03 16:20:24] Production.INFO: ProcessCDR(1,14826695,1,1,2) [2025-04-03 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826695', 'tblTempUsageDetail_20' ) start [2025-04-03 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826695', 'tblTempUsageDetail_20' ) end [2025-04-03 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:20:29] Production.INFO: ==7877== Releasing lock... [2025-04-03 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:20:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:21:05 [end_date_ymd] => 2025-04-03 16:21:05 [RateCDR] => 1 ) [2025-04-03 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:21:05' and `end` < '2025-04-03 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:21:19] Production.INFO: count ==6413 [2025-04-03 16:21:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:21:05 - End Time 2025-04-03 16:21:05 [2025-04-03 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826700', 'tblTempUsageDetail_20' ) start [2025-04-03 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826700', 'tblTempUsageDetail_20' ) end [2025-04-03 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826700', 'tblTempVendorCDR_20' ) start [2025-04-03 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826700', 'tblTempVendorCDR_20' ) end [2025-04-03 16:21:22] Production.INFO: ProcessCDR(1,14826700,1,1,2) [2025-04-03 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826700', 'tblTempUsageDetail_20' ) start [2025-04-03 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826700', 'tblTempUsageDetail_20' ) end [2025-04-03 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:21:27] Production.INFO: ==7956== Releasing lock... [2025-04-03 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:21:27] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:22:06 [end_date_ymd] => 2025-04-03 16:22:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:22:06' and `end` < '2025-04-03 16: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-03 16:22:20] Production.INFO: count ==6353 [2025-04-03 16:22:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:22:06 - End Time 2025-04-03 16:22:06 [2025-04-03 16:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826705', 'tblTempUsageDetail_20' ) start [2025-04-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826705', 'tblTempUsageDetail_20' ) end [2025-04-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826705', 'tblTempVendorCDR_20' ) start [2025-04-03 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826705', 'tblTempVendorCDR_20' ) end [2025-04-03 16:22:23] Production.INFO: ProcessCDR(1,14826705,1,1,2) [2025-04-03 16:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826705', 'tblTempUsageDetail_20' ) start [2025-04-03 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826705', 'tblTempUsageDetail_20' ) end [2025-04-03 16:22:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:22:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:22:29] Production.INFO: ==8029== Releasing lock... [2025-04-03 16:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:22:29] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:23:06 [end_date_ymd] => 2025-04-03 16:23:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:23:06' and `end` < '2025-04-03 16: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-03 16:23:20] Production.INFO: count ==6302 [2025-04-03 16:23:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:23:06 - End Time 2025-04-03 16:23:06 [2025-04-03 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826710', 'tblTempUsageDetail_20' ) start [2025-04-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826710', 'tblTempUsageDetail_20' ) end [2025-04-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826710', 'tblTempVendorCDR_20' ) start [2025-04-03 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826710', 'tblTempVendorCDR_20' ) end [2025-04-03 16:23:23] Production.INFO: ProcessCDR(1,14826710,1,1,2) [2025-04-03 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826710', 'tblTempUsageDetail_20' ) start [2025-04-03 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826710', 'tblTempUsageDetail_20' ) end [2025-04-03 16:23:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:23:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:23:29] Production.INFO: ==8106== Releasing lock... [2025-04-03 16:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:23:29] Production.INFO: 75.25 MB #Memory Used# [2025-04-03 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:24:06 [end_date_ymd] => 2025-04-03 16:24:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:24:06' and `end` < '2025-04-03 16: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-03 16:24:20] Production.INFO: count ==6289 [2025-04-03 16:24:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:24:06 - End Time 2025-04-03 16:24:06 [2025-04-03 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826715', 'tblTempUsageDetail_20' ) start [2025-04-03 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826715', 'tblTempUsageDetail_20' ) end [2025-04-03 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826715', 'tblTempVendorCDR_20' ) start [2025-04-03 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826715', 'tblTempVendorCDR_20' ) end [2025-04-03 16:24:23] Production.INFO: ProcessCDR(1,14826715,1,1,2) [2025-04-03 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826715', 'tblTempUsageDetail_20' ) start [2025-04-03 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826715', 'tblTempUsageDetail_20' ) end [2025-04-03 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:24:28] Production.INFO: ==8181== Releasing lock... [2025-04-03 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:24:28] Production.INFO: 75 MB #Memory Used# [2025-04-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:25:05 [end_date_ymd] => 2025-04-03 16:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:25:05' and `end` < '2025-04-03 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-03 16:25:19] Production.INFO: count ==6280 [2025-04-03 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:25:05 - End Time 2025-04-03 16:25:05 [2025-04-03 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826720', 'tblTempUsageDetail_20' ) start [2025-04-03 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826720', 'tblTempUsageDetail_20' ) end [2025-04-03 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826720', 'tblTempVendorCDR_20' ) start [2025-04-03 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826720', 'tblTempVendorCDR_20' ) end [2025-04-03 16:25:22] Production.INFO: ProcessCDR(1,14826720,1,1,2) [2025-04-03 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826720', 'tblTempUsageDetail_20' ) start [2025-04-03 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826720', 'tblTempUsageDetail_20' ) end [2025-04-03 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:25:27] Production.INFO: ==8254== Releasing lock... [2025-04-03 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:25:27] Production.INFO: 75 MB #Memory Used# [2025-04-03 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:26:05 [end_date_ymd] => 2025-04-03 16:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:26:05' and `end` < '2025-04-03 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-03 16:26:19] Production.INFO: count ==6277 [2025-04-03 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:26:05 - End Time 2025-04-03 16:26:05 [2025-04-03 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826725', 'tblTempUsageDetail_20' ) start [2025-04-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826725', 'tblTempUsageDetail_20' ) end [2025-04-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826725', 'tblTempVendorCDR_20' ) start [2025-04-03 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826725', 'tblTempVendorCDR_20' ) end [2025-04-03 16:26:22] Production.INFO: ProcessCDR(1,14826725,1,1,2) [2025-04-03 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826725', 'tblTempUsageDetail_20' ) start [2025-04-03 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826725', 'tblTempUsageDetail_20' ) end [2025-04-03 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:26:28] Production.INFO: ==8329== Releasing lock... [2025-04-03 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:26:28] Production.INFO: 75 MB #Memory Used# [2025-04-03 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:27:05 [end_date_ymd] => 2025-04-03 16:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:27:05' and `end` < '2025-04-03 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-03 16:27:19] Production.INFO: count ==6286 [2025-04-03 16:27:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:27:05 - End Time 2025-04-03 16:27:05 [2025-04-03 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826730', 'tblTempUsageDetail_20' ) start [2025-04-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826730', 'tblTempUsageDetail_20' ) end [2025-04-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826730', 'tblTempVendorCDR_20' ) start [2025-04-03 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826730', 'tblTempVendorCDR_20' ) end [2025-04-03 16:27:22] Production.INFO: ProcessCDR(1,14826730,1,1,2) [2025-04-03 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826730', 'tblTempUsageDetail_20' ) start [2025-04-03 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826730', 'tblTempUsageDetail_20' ) end [2025-04-03 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:27:27] Production.INFO: ==8409== Releasing lock... [2025-04-03 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:27:27] Production.INFO: 75 MB #Memory Used# [2025-04-03 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:28:06 [end_date_ymd] => 2025-04-03 16:28:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:28:06' and `end` < '2025-04-03 16: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-03 16:28:20] Production.INFO: count ==6291 [2025-04-03 16:28:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:28:06 - End Time 2025-04-03 16:28:06 [2025-04-03 16:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826735', 'tblTempUsageDetail_20' ) start [2025-04-03 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826735', 'tblTempUsageDetail_20' ) end [2025-04-03 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826735', 'tblTempVendorCDR_20' ) start [2025-04-03 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826735', 'tblTempVendorCDR_20' ) end [2025-04-03 16:28:23] Production.INFO: ProcessCDR(1,14826735,1,1,2) [2025-04-03 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826735', 'tblTempUsageDetail_20' ) start [2025-04-03 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826735', 'tblTempUsageDetail_20' ) end [2025-04-03 16:28:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:28:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:28:29] Production.INFO: ==8485== Releasing lock... [2025-04-03 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:28:29] Production.INFO: 75 MB #Memory Used# [2025-04-03 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:29:05 [end_date_ymd] => 2025-04-03 16:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:29:05' and `end` < '2025-04-03 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-03 16:29:19] Production.INFO: count ==6299 [2025-04-03 16:29:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:29:05 - End Time 2025-04-03 16:29:05 [2025-04-03 16:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826740', 'tblTempUsageDetail_20' ) start [2025-04-03 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826740', 'tblTempUsageDetail_20' ) end [2025-04-03 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826740', 'tblTempVendorCDR_20' ) start [2025-04-03 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826740', 'tblTempVendorCDR_20' ) end [2025-04-03 16:29:22] Production.INFO: ProcessCDR(1,14826740,1,1,2) [2025-04-03 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826740', 'tblTempUsageDetail_20' ) start [2025-04-03 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826740', 'tblTempUsageDetail_20' ) end [2025-04-03 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:29:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:29:28] Production.INFO: ==8560== Releasing lock... [2025-04-03 16:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:29:28] Production.INFO: 75.25 MB #Memory Used# [2025-04-03 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:30:06 [end_date_ymd] => 2025-04-03 16:30:06 [RateCDR] => 1 ) [2025-04-03 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:30:06' and `end` < '2025-04-03 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:30:20] Production.INFO: count ==6354 [2025-04-03 16:30:24] Production.ERROR: pbx CDR StartTime 2025-04-03 13:30:06 - End Time 2025-04-03 16:30:06 [2025-04-03 16:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826746', 'tblTempUsageDetail_20' ) start [2025-04-03 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826746', 'tblTempUsageDetail_20' ) end [2025-04-03 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826746', 'tblTempVendorCDR_20' ) start [2025-04-03 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826746', 'tblTempVendorCDR_20' ) end [2025-04-03 16:30:24] Production.INFO: ProcessCDR(1,14826746,1,1,2) [2025-04-03 16:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826746', 'tblTempUsageDetail_20' ) start [2025-04-03 16:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826746', 'tblTempUsageDetail_20' ) end [2025-04-03 16:30:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:30:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:30:30] Production.INFO: ==8658== Releasing lock... [2025-04-03 16:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:30:30] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:31:05 [end_date_ymd] => 2025-04-03 16:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:31:05' and `end` < '2025-04-03 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-03 16:31:19] Production.INFO: count ==6391 [2025-04-03 16:31:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:31:05 - End Time 2025-04-03 16:31:05 [2025-04-03 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826751', 'tblTempUsageDetail_20' ) start [2025-04-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826751', 'tblTempUsageDetail_20' ) end [2025-04-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826751', 'tblTempVendorCDR_20' ) start [2025-04-03 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826751', 'tblTempVendorCDR_20' ) end [2025-04-03 16:31:22] Production.INFO: ProcessCDR(1,14826751,1,1,2) [2025-04-03 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826751', 'tblTempUsageDetail_20' ) start [2025-04-03 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826751', 'tblTempUsageDetail_20' ) end [2025-04-03 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:31:27] Production.INFO: ==8756== Releasing lock... [2025-04-03 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:31:27] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:32:06 [end_date_ymd] => 2025-04-03 16:32:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:32:06' and `end` < '2025-04-03 16: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-03 16:32:20] Production.INFO: count ==6373 [2025-04-03 16:32:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:32:06 - End Time 2025-04-03 16:32:06 [2025-04-03 16:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826756', 'tblTempUsageDetail_20' ) start [2025-04-03 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826756', 'tblTempUsageDetail_20' ) end [2025-04-03 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826756', 'tblTempVendorCDR_20' ) start [2025-04-03 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826756', 'tblTempVendorCDR_20' ) end [2025-04-03 16:32:23] Production.INFO: ProcessCDR(1,14826756,1,1,2) [2025-04-03 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826756', 'tblTempUsageDetail_20' ) start [2025-04-03 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826756', 'tblTempUsageDetail_20' ) end [2025-04-03 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:32:28] Production.INFO: ==8835== Releasing lock... [2025-04-03 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:32:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:33:05 [end_date_ymd] => 2025-04-03 16:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:33:05' and `end` < '2025-04-03 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-03 16:33:19] Production.INFO: count ==6370 [2025-04-03 16:33:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:33:05 - End Time 2025-04-03 16:33:05 [2025-04-03 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826761', 'tblTempUsageDetail_20' ) start [2025-04-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826761', 'tblTempUsageDetail_20' ) end [2025-04-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826761', 'tblTempVendorCDR_20' ) start [2025-04-03 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826761', 'tblTempVendorCDR_20' ) end [2025-04-03 16:33:22] Production.INFO: ProcessCDR(1,14826761,1,1,2) [2025-04-03 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826761', 'tblTempUsageDetail_20' ) start [2025-04-03 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826761', 'tblTempUsageDetail_20' ) end [2025-04-03 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:33:28] Production.INFO: ==8907== Releasing lock... [2025-04-03 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:33:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:34:06 [end_date_ymd] => 2025-04-03 16:34:06 [RateCDR] => 1 ) [2025-04-03 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:34:06' and `end` < '2025-04-03 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:34:20] Production.INFO: count ==6382 [2025-04-03 16:34:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:34:06 - End Time 2025-04-03 16:34:06 [2025-04-03 16:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826766', 'tblTempUsageDetail_20' ) start [2025-04-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826766', 'tblTempUsageDetail_20' ) end [2025-04-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826766', 'tblTempVendorCDR_20' ) start [2025-04-03 16:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826766', 'tblTempVendorCDR_20' ) end [2025-04-03 16:34:23] Production.INFO: ProcessCDR(1,14826766,1,1,2) [2025-04-03 16:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826766', 'tblTempUsageDetail_20' ) start [2025-04-03 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826766', 'tblTempUsageDetail_20' ) end [2025-04-03 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:34:28] Production.INFO: ==8992== Releasing lock... [2025-04-03 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:34:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:35:05 [end_date_ymd] => 2025-04-03 16:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:35:05' and `end` < '2025-04-03 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-03 16:35:19] Production.INFO: count ==6400 [2025-04-03 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:35:05 - End Time 2025-04-03 16:35:05 [2025-04-03 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826771', 'tblTempUsageDetail_20' ) start [2025-04-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826771', 'tblTempUsageDetail_20' ) end [2025-04-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826771', 'tblTempVendorCDR_20' ) start [2025-04-03 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826771', 'tblTempVendorCDR_20' ) end [2025-04-03 16:35:22] Production.INFO: ProcessCDR(1,14826771,1,1,2) [2025-04-03 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826771', 'tblTempUsageDetail_20' ) start [2025-04-03 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826771', 'tblTempUsageDetail_20' ) end [2025-04-03 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:35:28] Production.INFO: ==9066== Releasing lock... [2025-04-03 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:35:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:36:05 [end_date_ymd] => 2025-04-03 16:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:36:05' and `end` < '2025-04-03 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-03 16:36:20] Production.INFO: count ==6413 [2025-04-03 16:36:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:36:05 - End Time 2025-04-03 16:36:05 [2025-04-03 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826776', 'tblTempUsageDetail_20' ) start [2025-04-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826776', 'tblTempUsageDetail_20' ) end [2025-04-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826776', 'tblTempVendorCDR_20' ) start [2025-04-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826776', 'tblTempVendorCDR_20' ) end [2025-04-03 16:36:23] Production.INFO: ProcessCDR(1,14826776,1,1,2) [2025-04-03 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826776', 'tblTempUsageDetail_20' ) start [2025-04-03 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826776', 'tblTempUsageDetail_20' ) end [2025-04-03 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:36:28] Production.INFO: ==9138== Releasing lock... [2025-04-03 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:36:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:37:05 [end_date_ymd] => 2025-04-03 16:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:37:05' and `end` < '2025-04-03 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-03 16:37:19] Production.INFO: count ==6416 [2025-04-03 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:37:05 - End Time 2025-04-03 16:37:05 [2025-04-03 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826781', 'tblTempUsageDetail_20' ) start [2025-04-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826781', 'tblTempUsageDetail_20' ) end [2025-04-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826781', 'tblTempVendorCDR_20' ) start [2025-04-03 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826781', 'tblTempVendorCDR_20' ) end [2025-04-03 16:37:22] Production.INFO: ProcessCDR(1,14826781,1,1,2) [2025-04-03 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826781', 'tblTempUsageDetail_20' ) start [2025-04-03 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826781', 'tblTempUsageDetail_20' ) end [2025-04-03 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:37:27] Production.INFO: ==9214== Releasing lock... [2025-04-03 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:37:27] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:38:05 [end_date_ymd] => 2025-04-03 16:38:05 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:38:05' and `end` < '2025-04-03 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-03 16:38:20] Production.INFO: count ==6427 [2025-04-03 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:38:05 - End Time 2025-04-03 16:38:05 [2025-04-03 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826786', 'tblTempUsageDetail_20' ) start [2025-04-03 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826786', 'tblTempUsageDetail_20' ) end [2025-04-03 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826786', 'tblTempVendorCDR_20' ) start [2025-04-03 16:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826786', 'tblTempVendorCDR_20' ) end [2025-04-03 16:38:23] Production.INFO: ProcessCDR(1,14826786,1,1,2) [2025-04-03 16:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826786', 'tblTempUsageDetail_20' ) start [2025-04-03 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826786', 'tblTempUsageDetail_20' ) end [2025-04-03 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:38:28] Production.INFO: ==9292== Releasing lock... [2025-04-03 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:38:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:39:06 [end_date_ymd] => 2025-04-03 16:39:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:39:06' and `end` < '2025-04-03 16: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-03 16:39:20] Production.INFO: count ==6443 [2025-04-03 16:39:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:39:06 - End Time 2025-04-03 16:39:06 [2025-04-03 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826791', 'tblTempUsageDetail_20' ) start [2025-04-03 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826791', 'tblTempUsageDetail_20' ) end [2025-04-03 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826791', 'tblTempVendorCDR_20' ) start [2025-04-03 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826791', 'tblTempVendorCDR_20' ) end [2025-04-03 16:39:23] Production.INFO: ProcessCDR(1,14826791,1,1,2) [2025-04-03 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826791', 'tblTempUsageDetail_20' ) start [2025-04-03 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826791', 'tblTempUsageDetail_20' ) end [2025-04-03 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:39:28] Production.INFO: ==9364== Releasing lock... [2025-04-03 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:39:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:40:06 [end_date_ymd] => 2025-04-03 16:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 13:40:06' and `end` < '2025-04-03 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-03 16:40:20] Production.INFO: count ==6421 [2025-04-03 16:40:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:40:06 - End Time 2025-04-03 16:40:06 [2025-04-03 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826797', 'tblTempUsageDetail_20' ) start [2025-04-03 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826797', 'tblTempUsageDetail_20' ) end [2025-04-03 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826797', 'tblTempVendorCDR_20' ) start [2025-04-03 16:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826797', 'tblTempVendorCDR_20' ) end [2025-04-03 16:40:24] Production.INFO: ProcessCDR(1,14826797,1,1,2) [2025-04-03 16:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826797', 'tblTempUsageDetail_20' ) start [2025-04-03 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826797', 'tblTempUsageDetail_20' ) end [2025-04-03 16:40:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:40:29] Production.INFO: ==9444== Releasing lock... [2025-04-03 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:40:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:41:06 [end_date_ymd] => 2025-04-03 16:41:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:41:06' and `end` < '2025-04-03 16: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-03 16:41:20] Production.INFO: count ==6442 [2025-04-03 16:41:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:41:06 - End Time 2025-04-03 16:41:06 [2025-04-03 16:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826802', 'tblTempUsageDetail_20' ) start [2025-04-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826802', 'tblTempUsageDetail_20' ) end [2025-04-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826802', 'tblTempVendorCDR_20' ) start [2025-04-03 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826802', 'tblTempVendorCDR_20' ) end [2025-04-03 16:41:23] Production.INFO: ProcessCDR(1,14826802,1,1,2) [2025-04-03 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826802', 'tblTempUsageDetail_20' ) start [2025-04-03 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826802', 'tblTempUsageDetail_20' ) end [2025-04-03 16:41:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:41:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:41:29] Production.INFO: ==9525== Releasing lock... [2025-04-03 16:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:41:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:42:05 [end_date_ymd] => 2025-04-03 16:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:42:05' and `end` < '2025-04-03 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-03 16:42:19] Production.INFO: count ==6430 [2025-04-03 16:42:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:42:05 - End Time 2025-04-03 16:42:05 [2025-04-03 16:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826807', 'tblTempUsageDetail_20' ) start [2025-04-03 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826807', 'tblTempUsageDetail_20' ) end [2025-04-03 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826807', 'tblTempVendorCDR_20' ) start [2025-04-03 16:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826807', 'tblTempVendorCDR_20' ) end [2025-04-03 16:42:23] Production.INFO: ProcessCDR(1,14826807,1,1,2) [2025-04-03 16:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826807', 'tblTempUsageDetail_20' ) start [2025-04-03 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826807', 'tblTempUsageDetail_20' ) end [2025-04-03 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:42:28] Production.INFO: ==9594== Releasing lock... [2025-04-03 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:42:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:43:05 [end_date_ymd] => 2025-04-03 16:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:43:05' and `end` < '2025-04-03 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-03 16:43:19] Production.INFO: count ==6437 [2025-04-03 16:43:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:43:05 - End Time 2025-04-03 16:43:05 [2025-04-03 16:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826812', 'tblTempUsageDetail_20' ) start [2025-04-03 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826812', 'tblTempUsageDetail_20' ) end [2025-04-03 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826812', 'tblTempVendorCDR_20' ) start [2025-04-03 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826812', 'tblTempVendorCDR_20' ) end [2025-04-03 16:43:23] Production.INFO: ProcessCDR(1,14826812,1,1,2) [2025-04-03 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826812', 'tblTempUsageDetail_20' ) start [2025-04-03 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826812', 'tblTempUsageDetail_20' ) end [2025-04-03 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:43:28] Production.INFO: ==9676== Releasing lock... [2025-04-03 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:43:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:44:05 [end_date_ymd] => 2025-04-03 16:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:44:05' and `end` < '2025-04-03 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-03 16:44:20] Production.INFO: count ==6446 [2025-04-03 16:44:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:44:05 - End Time 2025-04-03 16:44:05 [2025-04-03 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826817', 'tblTempUsageDetail_20' ) start [2025-04-03 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826817', 'tblTempUsageDetail_20' ) end [2025-04-03 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826817', 'tblTempVendorCDR_20' ) start [2025-04-03 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826817', 'tblTempVendorCDR_20' ) end [2025-04-03 16:44:23] Production.INFO: ProcessCDR(1,14826817,1,1,2) [2025-04-03 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826817', 'tblTempUsageDetail_20' ) start [2025-04-03 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826817', 'tblTempUsageDetail_20' ) end [2025-04-03 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:44:29] Production.INFO: ==9747== Releasing lock... [2025-04-03 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:44:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:45:06 [end_date_ymd] => 2025-04-03 16:45:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:45:06' and `end` < '2025-04-03 16: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-03 16:45:20] Production.INFO: count ==6467 [2025-04-03 16:45:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:45:06 - End Time 2025-04-03 16:45:06 [2025-04-03 16:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826822', 'tblTempUsageDetail_20' ) start [2025-04-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826822', 'tblTempUsageDetail_20' ) end [2025-04-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826822', 'tblTempVendorCDR_20' ) start [2025-04-03 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826822', 'tblTempVendorCDR_20' ) end [2025-04-03 16:45:23] Production.INFO: ProcessCDR(1,14826822,1,1,2) [2025-04-03 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826822', 'tblTempUsageDetail_20' ) start [2025-04-03 16:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826822', 'tblTempUsageDetail_20' ) end [2025-04-03 16:45:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:45:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:45:29] Production.INFO: ==9827== Releasing lock... [2025-04-03 16:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:45:29] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:46:05 [end_date_ymd] => 2025-04-03 16:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:46:05' and `end` < '2025-04-03 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-03 16:46:19] Production.INFO: count ==6467 [2025-04-03 16:46:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:46:05 - End Time 2025-04-03 16:46:05 [2025-04-03 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826827', 'tblTempUsageDetail_20' ) start [2025-04-03 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826827', 'tblTempUsageDetail_20' ) end [2025-04-03 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826827', 'tblTempVendorCDR_20' ) start [2025-04-03 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826827', 'tblTempVendorCDR_20' ) end [2025-04-03 16:46:23] Production.INFO: ProcessCDR(1,14826827,1,1,2) [2025-04-03 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826827', 'tblTempUsageDetail_20' ) start [2025-04-03 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826827', 'tblTempUsageDetail_20' ) end [2025-04-03 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:46:28] Production.INFO: ==9944== Releasing lock... [2025-04-03 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:46:28] Production.INFO: 76.5 MB #Memory Used# [2025-04-03 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:47:06 [end_date_ymd] => 2025-04-03 16:47:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:47:06' and `end` < '2025-04-03 16: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-03 16:47:20] Production.INFO: count ==6445 [2025-04-03 16:47:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:47:06 - End Time 2025-04-03 16:47:06 [2025-04-03 16:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826832', 'tblTempUsageDetail_20' ) start [2025-04-03 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826832', 'tblTempUsageDetail_20' ) end [2025-04-03 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826832', 'tblTempVendorCDR_20' ) start [2025-04-03 16:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826832', 'tblTempVendorCDR_20' ) end [2025-04-03 16:47:23] Production.INFO: ProcessCDR(1,14826832,1,1,2) [2025-04-03 16:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826832', 'tblTempUsageDetail_20' ) start [2025-04-03 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826832', 'tblTempUsageDetail_20' ) end [2025-04-03 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:47:28] Production.INFO: ==10018== Releasing lock... [2025-04-03 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:47:28] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:48:04 [end_date_ymd] => 2025-04-03 16:48:04 [RateCDR] => 1 ) [2025-04-03 16:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:48:04' and `end` < '2025-04-03 16:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:48:18] Production.INFO: count ==6428 [2025-04-03 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-03 13:48:04 - End Time 2025-04-03 16:48:04 [2025-04-03 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826837', 'tblTempUsageDetail_20' ) start [2025-04-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826837', 'tblTempUsageDetail_20' ) end [2025-04-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826837', 'tblTempVendorCDR_20' ) start [2025-04-03 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826837', 'tblTempVendorCDR_20' ) end [2025-04-03 16:48:22] Production.INFO: ProcessCDR(1,14826837,1,1,2) [2025-04-03 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826837', 'tblTempUsageDetail_20' ) start [2025-04-03 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826837', 'tblTempUsageDetail_20' ) end [2025-04-03 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:48:27] Production.INFO: ==10092== Releasing lock... [2025-04-03 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:48:27] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:49:05 [end_date_ymd] => 2025-04-03 16:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:49:05' and `end` < '2025-04-03 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-03 16:49:19] Production.INFO: count ==6427 [2025-04-03 16:49:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:49:05 - End Time 2025-04-03 16:49:05 [2025-04-03 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826842', 'tblTempUsageDetail_20' ) start [2025-04-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826842', 'tblTempUsageDetail_20' ) end [2025-04-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826842', 'tblTempVendorCDR_20' ) start [2025-04-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826842', 'tblTempVendorCDR_20' ) end [2025-04-03 16:49:22] Production.INFO: ProcessCDR(1,14826842,1,1,2) [2025-04-03 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826842', 'tblTempUsageDetail_20' ) start [2025-04-03 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826842', 'tblTempUsageDetail_20' ) end [2025-04-03 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:49:27] Production.INFO: ==10170== Releasing lock... [2025-04-03 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:49:27] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:50:05 [end_date_ymd] => 2025-04-03 16:50:05 [RateCDR] => 1 ) [2025-04-03 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:50:05' and `end` < '2025-04-03 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:50:20] Production.INFO: count ==6398 [2025-04-03 16:50:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:50:05 - End Time 2025-04-03 16:50:05 [2025-04-03 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826848', 'tblTempUsageDetail_20' ) start [2025-04-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826848', 'tblTempUsageDetail_20' ) end [2025-04-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826848', 'tblTempVendorCDR_20' ) start [2025-04-03 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826848', 'tblTempVendorCDR_20' ) end [2025-04-03 16:50:23] Production.INFO: ProcessCDR(1,14826848,1,1,2) [2025-04-03 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826848', 'tblTempUsageDetail_20' ) start [2025-04-03 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826848', 'tblTempUsageDetail_20' ) end [2025-04-03 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:50:28] Production.INFO: ==10242== Releasing lock... [2025-04-03 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:50:28] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:51:06 [end_date_ymd] => 2025-04-03 16:51:06 [RateCDR] => 1 ) [2025-04-03 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:51:06' and `end` < '2025-04-03 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:51:20] Production.INFO: count ==6398 [2025-04-03 16:51:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:51:06 - End Time 2025-04-03 16:51:06 [2025-04-03 16:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826853', 'tblTempUsageDetail_20' ) start [2025-04-03 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826853', 'tblTempUsageDetail_20' ) end [2025-04-03 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826853', 'tblTempVendorCDR_20' ) start [2025-04-03 16:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826853', 'tblTempVendorCDR_20' ) end [2025-04-03 16:51:23] Production.INFO: ProcessCDR(1,14826853,1,1,2) [2025-04-03 16:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826853', 'tblTempUsageDetail_20' ) start [2025-04-03 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826853', 'tblTempUsageDetail_20' ) end [2025-04-03 16:51:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:51:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:51:29] Production.INFO: ==10321== Releasing lock... [2025-04-03 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:51:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:52:06 [end_date_ymd] => 2025-04-03 16:52:06 [RateCDR] => 1 ) [2025-04-03 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:52:06' and `end` < '2025-04-03 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:52:20] Production.INFO: count ==6398 [2025-04-03 16:52:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:52:06 - End Time 2025-04-03 16:52:06 [2025-04-03 16:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826858', 'tblTempUsageDetail_20' ) start [2025-04-03 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826858', 'tblTempUsageDetail_20' ) end [2025-04-03 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826858', 'tblTempVendorCDR_20' ) start [2025-04-03 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826858', 'tblTempVendorCDR_20' ) end [2025-04-03 16:52:23] Production.INFO: ProcessCDR(1,14826858,1,1,2) [2025-04-03 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826858', 'tblTempUsageDetail_20' ) start [2025-04-03 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826858', 'tblTempUsageDetail_20' ) end [2025-04-03 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:52:29] Production.INFO: ==10396== Releasing lock... [2025-04-03 16:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:52:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:53:05 [end_date_ymd] => 2025-04-03 16:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:53:05' and `end` < '2025-04-03 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-03 16:53:19] Production.INFO: count ==6375 [2025-04-03 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:53:05 - End Time 2025-04-03 16:53:05 [2025-04-03 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826863', 'tblTempUsageDetail_20' ) start [2025-04-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826863', 'tblTempUsageDetail_20' ) end [2025-04-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826863', 'tblTempVendorCDR_20' ) start [2025-04-03 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826863', 'tblTempVendorCDR_20' ) end [2025-04-03 16:53:22] Production.INFO: ProcessCDR(1,14826863,1,1,2) [2025-04-03 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826863', 'tblTempUsageDetail_20' ) start [2025-04-03 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826863', 'tblTempUsageDetail_20' ) end [2025-04-03 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:53:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:53:28] Production.INFO: ==10472== Releasing lock... [2025-04-03 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:53:28] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:54:06 [end_date_ymd] => 2025-04-03 16:54:06 [RateCDR] => 1 ) [2025-04-03 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:54:06' and `end` < '2025-04-03 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:54:20] Production.INFO: count ==6359 [2025-04-03 16:54:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:54:06 - End Time 2025-04-03 16:54:06 [2025-04-03 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826868', 'tblTempUsageDetail_20' ) start [2025-04-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826868', 'tblTempUsageDetail_20' ) end [2025-04-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826868', 'tblTempVendorCDR_20' ) start [2025-04-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826868', 'tblTempVendorCDR_20' ) end [2025-04-03 16:54:23] Production.INFO: ProcessCDR(1,14826868,1,1,2) [2025-04-03 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826868', 'tblTempUsageDetail_20' ) start [2025-04-03 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826868', 'tblTempUsageDetail_20' ) end [2025-04-03 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:54:29] Production.INFO: ==10553== Releasing lock... [2025-04-03 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:54:29] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:55:05 [end_date_ymd] => 2025-04-03 16:55:05 [RateCDR] => 1 ) [2025-04-03 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 13:55:05' and `end` < '2025-04-03 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 16:55:19] Production.INFO: count ==6355 [2025-04-03 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:55:05 - End Time 2025-04-03 16:55:05 [2025-04-03 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826873', 'tblTempUsageDetail_20' ) start [2025-04-03 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826873', 'tblTempUsageDetail_20' ) end [2025-04-03 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826873', 'tblTempVendorCDR_20' ) start [2025-04-03 16:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826873', 'tblTempVendorCDR_20' ) end [2025-04-03 16:55:23] Production.INFO: ProcessCDR(1,14826873,1,1,2) [2025-04-03 16:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826873', 'tblTempUsageDetail_20' ) start [2025-04-03 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826873', 'tblTempUsageDetail_20' ) end [2025-04-03 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:55:28] Production.INFO: ==10625== Releasing lock... [2025-04-03 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:55:28] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:56:05 [end_date_ymd] => 2025-04-03 16:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:56:05' and `end` < '2025-04-03 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-03 16:56:19] Production.INFO: count ==6363 [2025-04-03 16:56:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:56:05 - End Time 2025-04-03 16:56:05 [2025-04-03 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826878', 'tblTempUsageDetail_20' ) start [2025-04-03 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826878', 'tblTempUsageDetail_20' ) end [2025-04-03 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826878', 'tblTempVendorCDR_20' ) start [2025-04-03 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826878', 'tblTempVendorCDR_20' ) end [2025-04-03 16:56:23] Production.INFO: ProcessCDR(1,14826878,1,1,2) [2025-04-03 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826878', 'tblTempUsageDetail_20' ) start [2025-04-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826878', 'tblTempUsageDetail_20' ) end [2025-04-03 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:56:28] Production.INFO: ==10704== Releasing lock... [2025-04-03 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:56:28] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:57:06 [end_date_ymd] => 2025-04-03 16:57:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:57:06' and `end` < '2025-04-03 16: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-03 16:57:20] Production.INFO: count ==6360 [2025-04-03 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:57:06 - End Time 2025-04-03 16:57:06 [2025-04-03 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826883', 'tblTempUsageDetail_20' ) start [2025-04-03 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826883', 'tblTempUsageDetail_20' ) end [2025-04-03 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826883', 'tblTempVendorCDR_20' ) start [2025-04-03 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826883', 'tblTempVendorCDR_20' ) end [2025-04-03 16:57:23] Production.INFO: ProcessCDR(1,14826883,1,1,2) [2025-04-03 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826883', 'tblTempUsageDetail_20' ) start [2025-04-03 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826883', 'tblTempUsageDetail_20' ) end [2025-04-03 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:57:28] Production.INFO: ==10779== Releasing lock... [2025-04-03 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:57:28] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:58:06 [end_date_ymd] => 2025-04-03 16:58:06 [RateCDR] => 1 ) [2025-04-03 16: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-03 13:58:06' and `end` < '2025-04-03 16: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-03 16:58:20] Production.INFO: count ==6377 [2025-04-03 16:58:23] Production.ERROR: pbx CDR StartTime 2025-04-03 13:58:06 - End Time 2025-04-03 16:58:06 [2025-04-03 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826888', 'tblTempUsageDetail_20' ) start [2025-04-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826888', 'tblTempUsageDetail_20' ) end [2025-04-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826888', 'tblTempVendorCDR_20' ) start [2025-04-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826888', 'tblTempVendorCDR_20' ) end [2025-04-03 16:58:23] Production.INFO: ProcessCDR(1,14826888,1,1,2) [2025-04-03 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826888', 'tblTempUsageDetail_20' ) start [2025-04-03 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826888', 'tblTempUsageDetail_20' ) end [2025-04-03 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:58:29] Production.INFO: ==10861== Releasing lock... [2025-04-03 16:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:58:29] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 13:59:05 [end_date_ymd] => 2025-04-03 16:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 13:59:05' and `end` < '2025-04-03 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-03 16:59:19] Production.INFO: count ==6360 [2025-04-03 16:59:22] Production.ERROR: pbx CDR StartTime 2025-04-03 13:59:05 - End Time 2025-04-03 16:59:05 [2025-04-03 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826893', 'tblTempUsageDetail_20' ) start [2025-04-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826893', 'tblTempUsageDetail_20' ) end [2025-04-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826893', 'tblTempVendorCDR_20' ) start [2025-04-03 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826893', 'tblTempVendorCDR_20' ) end [2025-04-03 16:59:22] Production.INFO: ProcessCDR(1,14826893,1,1,2) [2025-04-03 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826893', 'tblTempUsageDetail_20' ) start [2025-04-03 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826893', 'tblTempUsageDetail_20' ) end [2025-04-03 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 16:59:27] Production.INFO: ==10939== Releasing lock... [2025-04-03 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 16:59:27] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:00:06 [end_date_ymd] => 2025-04-03 17:00:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:00:06' and `end` < '2025-04-03 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-03 17:00:20] Production.INFO: count ==6355 [2025-04-03 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:00:06 - End Time 2025-04-03 17:00:06 [2025-04-03 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826899', 'tblTempUsageDetail_20' ) start [2025-04-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826899', 'tblTempUsageDetail_20' ) end [2025-04-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826899', 'tblTempVendorCDR_20' ) start [2025-04-03 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826899', 'tblTempVendorCDR_20' ) end [2025-04-03 17:00:23] Production.INFO: ProcessCDR(1,14826899,1,1,2) [2025-04-03 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826899', 'tblTempUsageDetail_20' ) start [2025-04-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826899', 'tblTempUsageDetail_20' ) end [2025-04-03 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:00:29] Production.INFO: ==11018== Releasing lock... [2025-04-03 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:00:29] Production.INFO: 75.5 MB #Memory Used# [2025-04-03 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:01:05 [end_date_ymd] => 2025-04-03 17:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:01:05' and `end` < '2025-04-03 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-03 17:01:19] Production.INFO: count ==6393 [2025-04-03 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:01:05 - End Time 2025-04-03 17:01:05 [2025-04-03 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826904', 'tblTempUsageDetail_20' ) start [2025-04-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826904', 'tblTempUsageDetail_20' ) end [2025-04-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826904', 'tblTempVendorCDR_20' ) start [2025-04-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826904', 'tblTempVendorCDR_20' ) end [2025-04-03 17:01:22] Production.INFO: ProcessCDR(1,14826904,1,1,2) [2025-04-03 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826904', 'tblTempUsageDetail_20' ) start [2025-04-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826904', 'tblTempUsageDetail_20' ) end [2025-04-03 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:01:26] Production.INFO: ==11145== Releasing lock... [2025-04-03 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:01:26] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:02:06 [end_date_ymd] => 2025-04-03 17:02:06 [RateCDR] => 1 ) [2025-04-03 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:02:06' and `end` < '2025-04-03 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:02:20] Production.INFO: count ==6395 [2025-04-03 17:02:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:02:06 - End Time 2025-04-03 17:02:06 [2025-04-03 17:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826909', 'tblTempUsageDetail_20' ) start [2025-04-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826909', 'tblTempUsageDetail_20' ) end [2025-04-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826909', 'tblTempVendorCDR_20' ) start [2025-04-03 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826909', 'tblTempVendorCDR_20' ) end [2025-04-03 17:02:23] Production.INFO: ProcessCDR(1,14826909,1,1,2) [2025-04-03 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826909', 'tblTempUsageDetail_20' ) start [2025-04-03 17:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826909', 'tblTempUsageDetail_20' ) end [2025-04-03 17:02:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:02:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:02:29] Production.INFO: ==11226== Releasing lock... [2025-04-03 17:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:02:29] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:03:05 [end_date_ymd] => 2025-04-03 17:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:03:05' and `end` < '2025-04-03 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-03 17:03:19] Production.INFO: count ==6411 [2025-04-03 17:03:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:03:05 - End Time 2025-04-03 17:03:05 [2025-04-03 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826914', 'tblTempUsageDetail_20' ) start [2025-04-03 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826914', 'tblTempUsageDetail_20' ) end [2025-04-03 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826914', 'tblTempVendorCDR_20' ) start [2025-04-03 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826914', 'tblTempVendorCDR_20' ) end [2025-04-03 17:03:23] Production.INFO: ProcessCDR(1,14826914,1,1,2) [2025-04-03 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826914', 'tblTempUsageDetail_20' ) start [2025-04-03 17:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826914', 'tblTempUsageDetail_20' ) end [2025-04-03 17:03:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:03:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:03:29] Production.INFO: ==11301== Releasing lock... [2025-04-03 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:03:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:04:06 [end_date_ymd] => 2025-04-03 17:04:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:04:06' and `end` < '2025-04-03 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-03 17:04:20] Production.INFO: count ==6430 [2025-04-03 17:04:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:04:06 - End Time 2025-04-03 17:04:06 [2025-04-03 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826919', 'tblTempUsageDetail_20' ) start [2025-04-03 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826919', 'tblTempUsageDetail_20' ) end [2025-04-03 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826919', 'tblTempVendorCDR_20' ) start [2025-04-03 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826919', 'tblTempVendorCDR_20' ) end [2025-04-03 17:04:24] Production.INFO: ProcessCDR(1,14826919,1,1,2) [2025-04-03 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826919', 'tblTempUsageDetail_20' ) start [2025-04-03 17:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826919', 'tblTempUsageDetail_20' ) end [2025-04-03 17:04:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:04:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:04:29] Production.INFO: ==11380== Releasing lock... [2025-04-03 17:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:04:29] Production.INFO: 76.25 MB #Memory Used# [2025-04-03 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:05:06 [end_date_ymd] => 2025-04-03 17:05:06 [RateCDR] => 1 ) [2025-04-03 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:05:06' and `end` < '2025-04-03 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:05:19] Production.INFO: count ==6422 [2025-04-03 17:05:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:05:06 - End Time 2025-04-03 17:05:06 [2025-04-03 17:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826924', 'tblTempUsageDetail_20' ) start [2025-04-03 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826924', 'tblTempUsageDetail_20' ) end [2025-04-03 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826924', 'tblTempVendorCDR_20' ) start [2025-04-03 17:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826924', 'tblTempVendorCDR_20' ) end [2025-04-03 17:05:23] Production.INFO: ProcessCDR(1,14826924,1,1,2) [2025-04-03 17:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826924', 'tblTempUsageDetail_20' ) start [2025-04-03 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826924', 'tblTempUsageDetail_20' ) end [2025-04-03 17:05:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:05:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:05:29] Production.INFO: ==11457== Releasing lock... [2025-04-03 17:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:05:29] Production.INFO: 76 MB #Memory Used# [2025-04-03 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:06:06 [end_date_ymd] => 2025-04-03 17:06:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:06:06' and `end` < '2025-04-03 17: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-03 17:06:20] Production.INFO: count ==6387 [2025-04-03 17:06:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:06:06 - End Time 2025-04-03 17:06:06 [2025-04-03 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826929', 'tblTempUsageDetail_20' ) start [2025-04-03 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826929', 'tblTempUsageDetail_20' ) end [2025-04-03 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826929', 'tblTempVendorCDR_20' ) start [2025-04-03 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826929', 'tblTempVendorCDR_20' ) end [2025-04-03 17:06:23] Production.INFO: ProcessCDR(1,14826929,1,1,2) [2025-04-03 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826929', 'tblTempUsageDetail_20' ) start [2025-04-03 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826929', 'tblTempUsageDetail_20' ) end [2025-04-03 17:06:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:06:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:06:29] Production.INFO: ==11536== Releasing lock... [2025-04-03 17:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:06:29] Production.INFO: 75.75 MB #Memory Used# [2025-04-03 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:07:06 [end_date_ymd] => 2025-04-03 17:07:06 [RateCDR] => 1 ) [2025-04-03 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:07:06' and `end` < '2025-04-03 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:07:20] Production.INFO: count ==6315 [2025-04-03 17:07:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:07:06 - End Time 2025-04-03 17:07:06 [2025-04-03 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826934', 'tblTempUsageDetail_20' ) start [2025-04-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826934', 'tblTempUsageDetail_20' ) end [2025-04-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826934', 'tblTempVendorCDR_20' ) start [2025-04-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826934', 'tblTempVendorCDR_20' ) end [2025-04-03 17:07:23] Production.INFO: ProcessCDR(1,14826934,1,1,2) [2025-04-03 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826934', 'tblTempUsageDetail_20' ) start [2025-04-03 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826934', 'tblTempUsageDetail_20' ) end [2025-04-03 17:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:07:28] Production.INFO: ==11615== Releasing lock... [2025-04-03 17:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:07:28] Production.INFO: 75.25 MB #Memory Used# [2025-04-03 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:08:06 [end_date_ymd] => 2025-04-03 17:08:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:08:06' and `end` < '2025-04-03 17: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-03 17:08:20] Production.INFO: count ==6274 [2025-04-03 17:08:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:08:06 - End Time 2025-04-03 17:08:06 [2025-04-03 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826939', 'tblTempUsageDetail_20' ) start [2025-04-03 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826939', 'tblTempUsageDetail_20' ) end [2025-04-03 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826939', 'tblTempVendorCDR_20' ) start [2025-04-03 17:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826939', 'tblTempVendorCDR_20' ) end [2025-04-03 17:08:24] Production.INFO: ProcessCDR(1,14826939,1,1,2) [2025-04-03 17:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826939', 'tblTempUsageDetail_20' ) start [2025-04-03 17:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826939', 'tblTempUsageDetail_20' ) end [2025-04-03 17:08:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:08:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:08:29] Production.INFO: ==11691== Releasing lock... [2025-04-03 17:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:08:29] Production.INFO: 75 MB #Memory Used# [2025-04-03 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:09:05 [end_date_ymd] => 2025-04-03 17:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:09:05' and `end` < '2025-04-03 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-03 17:09:19] Production.INFO: count ==6248 [2025-04-03 17:09:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:09:05 - End Time 2025-04-03 17:09:05 [2025-04-03 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826944', 'tblTempUsageDetail_20' ) start [2025-04-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826944', 'tblTempUsageDetail_20' ) end [2025-04-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826944', 'tblTempVendorCDR_20' ) start [2025-04-03 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826944', 'tblTempVendorCDR_20' ) end [2025-04-03 17:09:22] Production.INFO: ProcessCDR(1,14826944,1,1,2) [2025-04-03 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826944', 'tblTempUsageDetail_20' ) start [2025-04-03 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826944', 'tblTempUsageDetail_20' ) end [2025-04-03 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:09:28] Production.INFO: ==11764== Releasing lock... [2025-04-03 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:09:28] Production.INFO: 74.75 MB #Memory Used# [2025-04-03 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:10:06 [end_date_ymd] => 2025-04-03 17:10:06 [RateCDR] => 1 ) [2025-04-03 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:10:06' and `end` < '2025-04-03 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:10:20] Production.INFO: count ==6207 [2025-04-03 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:10:06 - End Time 2025-04-03 17:10:06 [2025-04-03 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826950', 'tblTempUsageDetail_20' ) start [2025-04-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826950', 'tblTempUsageDetail_20' ) end [2025-04-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826950', 'tblTempVendorCDR_20' ) start [2025-04-03 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826950', 'tblTempVendorCDR_20' ) end [2025-04-03 17:10:23] Production.INFO: ProcessCDR(1,14826950,1,1,2) [2025-04-03 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826950', 'tblTempUsageDetail_20' ) start [2025-04-03 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826950', 'tblTempUsageDetail_20' ) end [2025-04-03 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:10:28] Production.INFO: ==11840== Releasing lock... [2025-04-03 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:10:28] Production.INFO: 74.5 MB #Memory Used# [2025-04-03 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:11:05 [end_date_ymd] => 2025-04-03 17:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:11:05' and `end` < '2025-04-03 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-03 17:11:19] Production.INFO: count ==6192 [2025-04-03 17:11:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:11:05 - End Time 2025-04-03 17:11:05 [2025-04-03 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826955', 'tblTempUsageDetail_20' ) start [2025-04-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826955', 'tblTempUsageDetail_20' ) end [2025-04-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826955', 'tblTempVendorCDR_20' ) start [2025-04-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826955', 'tblTempVendorCDR_20' ) end [2025-04-03 17:11:22] Production.INFO: ProcessCDR(1,14826955,1,1,2) [2025-04-03 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826955', 'tblTempUsageDetail_20' ) start [2025-04-03 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826955', 'tblTempUsageDetail_20' ) end [2025-04-03 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:11:27] Production.INFO: ==11922== Releasing lock... [2025-04-03 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:11:27] Production.INFO: 74.25 MB #Memory Used# [2025-04-03 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:12:06 [end_date_ymd] => 2025-04-03 17:12:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:12:06' and `end` < '2025-04-03 17: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-03 17:12:20] Production.INFO: count ==6161 [2025-04-03 17:12:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:12:06 - End Time 2025-04-03 17:12:06 [2025-04-03 17:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826960', 'tblTempUsageDetail_20' ) start [2025-04-03 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826960', 'tblTempUsageDetail_20' ) end [2025-04-03 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826960', 'tblTempVendorCDR_20' ) start [2025-04-03 17:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826960', 'tblTempVendorCDR_20' ) end [2025-04-03 17:12:23] Production.INFO: ProcessCDR(1,14826960,1,1,2) [2025-04-03 17:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826960', 'tblTempUsageDetail_20' ) start [2025-04-03 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826960', 'tblTempUsageDetail_20' ) end [2025-04-03 17:12:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:12:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:12:29] Production.INFO: ==11996== Releasing lock... [2025-04-03 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:12:29] Production.INFO: 74 MB #Memory Used# [2025-04-03 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:13:05 [end_date_ymd] => 2025-04-03 17:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:13:05' and `end` < '2025-04-03 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-03 17:13:19] Production.INFO: count ==6102 [2025-04-03 17:13:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:13:05 - End Time 2025-04-03 17:13:05 [2025-04-03 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826965', 'tblTempUsageDetail_20' ) start [2025-04-03 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826965', 'tblTempUsageDetail_20' ) end [2025-04-03 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826965', 'tblTempVendorCDR_20' ) start [2025-04-03 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826965', 'tblTempVendorCDR_20' ) end [2025-04-03 17:13:22] Production.INFO: ProcessCDR(1,14826965,1,1,2) [2025-04-03 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826965', 'tblTempUsageDetail_20' ) start [2025-04-03 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826965', 'tblTempUsageDetail_20' ) end [2025-04-03 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:13:28] Production.INFO: ==12081== Releasing lock... [2025-04-03 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:13:28] Production.INFO: 73.75 MB #Memory Used# [2025-04-03 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:14:06 [end_date_ymd] => 2025-04-03 17:14:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:14:06' and `end` < '2025-04-03 17: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-03 17:14:21] Production.INFO: count ==6061 [2025-04-03 17:14:24] Production.ERROR: pbx CDR StartTime 2025-04-03 14:14:06 - End Time 2025-04-03 17:14:06 [2025-04-03 17:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826970', 'tblTempUsageDetail_20' ) start [2025-04-03 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826970', 'tblTempUsageDetail_20' ) end [2025-04-03 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826970', 'tblTempVendorCDR_20' ) start [2025-04-03 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826970', 'tblTempVendorCDR_20' ) end [2025-04-03 17:14:24] Production.INFO: ProcessCDR(1,14826970,1,1,2) [2025-04-03 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826970', 'tblTempUsageDetail_20' ) start [2025-04-03 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826970', 'tblTempUsageDetail_20' ) end [2025-04-03 17:14:30] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:14:30] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:14:30] Production.INFO: ==12157== Releasing lock... [2025-04-03 17:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:14:30] Production.INFO: 73.25 MB #Memory Used# [2025-04-03 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:15:06 [end_date_ymd] => 2025-04-03 17:15:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:15:06' and `end` < '2025-04-03 17: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-03 17:15:20] Production.INFO: count ==5960 [2025-04-03 17:15:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:15:06 - End Time 2025-04-03 17:15:06 [2025-04-03 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826975', 'tblTempUsageDetail_20' ) start [2025-04-03 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826975', 'tblTempUsageDetail_20' ) end [2025-04-03 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826975', 'tblTempVendorCDR_20' ) start [2025-04-03 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826975', 'tblTempVendorCDR_20' ) end [2025-04-03 17:15:23] Production.INFO: ProcessCDR(1,14826975,1,1,2) [2025-04-03 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826975', 'tblTempUsageDetail_20' ) start [2025-04-03 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826975', 'tblTempUsageDetail_20' ) end [2025-04-03 17:15:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:15:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:15:28] Production.INFO: ==12233== Releasing lock... [2025-04-03 17:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:15:28] Production.INFO: 72.5 MB #Memory Used# [2025-04-03 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:16:06 [end_date_ymd] => 2025-04-03 17:16:06 [RateCDR] => 1 ) [2025-04-03 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:16:06' and `end` < '2025-04-03 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:16:20] Production.INFO: count ==5868 [2025-04-03 17:16:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:16:06 - End Time 2025-04-03 17:16:06 [2025-04-03 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826980', 'tblTempUsageDetail_20' ) start [2025-04-03 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826980', 'tblTempUsageDetail_20' ) end [2025-04-03 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826980', 'tblTempVendorCDR_20' ) start [2025-04-03 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826980', 'tblTempVendorCDR_20' ) end [2025-04-03 17:16:22] Production.INFO: ProcessCDR(1,14826980,1,1,2) [2025-04-03 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826980', 'tblTempUsageDetail_20' ) start [2025-04-03 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826980', 'tblTempUsageDetail_20' ) end [2025-04-03 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:16:27] Production.INFO: ==12309== Releasing lock... [2025-04-03 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:16:27] Production.INFO: 72 MB #Memory Used# [2025-04-03 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:17:05 [end_date_ymd] => 2025-04-03 17:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:17:05' and `end` < '2025-04-03 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-03 17:17:19] Production.INFO: count ==5780 [2025-04-03 17:17:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:17:05 - End Time 2025-04-03 17:17:05 [2025-04-03 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826985', 'tblTempUsageDetail_20' ) start [2025-04-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826985', 'tblTempUsageDetail_20' ) end [2025-04-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826985', 'tblTempVendorCDR_20' ) start [2025-04-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826985', 'tblTempVendorCDR_20' ) end [2025-04-03 17:17:22] Production.INFO: ProcessCDR(1,14826985,1,1,2) [2025-04-03 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826985', 'tblTempUsageDetail_20' ) start [2025-04-03 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826985', 'tblTempUsageDetail_20' ) end [2025-04-03 17:17:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:17:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:17:28] Production.INFO: ==12419== Releasing lock... [2025-04-03 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:17:28] Production.INFO: 71.25 MB #Memory Used# [2025-04-03 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:18:06 [end_date_ymd] => 2025-04-03 17:18:06 [RateCDR] => 1 ) [2025-04-03 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:18:06' and `end` < '2025-04-03 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:18:20] Production.INFO: count ==5707 [2025-04-03 17:18:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:18:06 - End Time 2025-04-03 17:18:06 [2025-04-03 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826990', 'tblTempUsageDetail_20' ) start [2025-04-03 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826990', 'tblTempUsageDetail_20' ) end [2025-04-03 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826990', 'tblTempVendorCDR_20' ) start [2025-04-03 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826990', 'tblTempVendorCDR_20' ) end [2025-04-03 17:18:23] Production.INFO: ProcessCDR(1,14826990,1,1,2) [2025-04-03 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826990', 'tblTempUsageDetail_20' ) start [2025-04-03 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826990', 'tblTempUsageDetail_20' ) end [2025-04-03 17:18:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:18:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:18:28] Production.INFO: ==12512== Releasing lock... [2025-04-03 17:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:18:28] Production.INFO: 70.75 MB #Memory Used# [2025-04-03 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:19:05 [end_date_ymd] => 2025-04-03 17:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:19:05' and `end` < '2025-04-03 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-03 17:19:19] Production.INFO: count ==5674 [2025-04-03 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:19:05 - End Time 2025-04-03 17:19:05 [2025-04-03 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826995', 'tblTempUsageDetail_20' ) start [2025-04-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14826995', 'tblTempUsageDetail_20' ) end [2025-04-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826995', 'tblTempVendorCDR_20' ) start [2025-04-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14826995', 'tblTempVendorCDR_20' ) end [2025-04-03 17:19:22] Production.INFO: ProcessCDR(1,14826995,1,1,2) [2025-04-03 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14826995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14826995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14826995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14826995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826995', 'tblTempUsageDetail_20' ) start [2025-04-03 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14826995', 'tblTempUsageDetail_20' ) end [2025-04-03 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:19:27] Production.INFO: ==12588== Releasing lock... [2025-04-03 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:19:27] Production.INFO: 70.5 MB #Memory Used# [2025-04-03 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:20:06 [end_date_ymd] => 2025-04-03 17:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:20:06' and `end` < '2025-04-03 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-03 17:20:20] Production.INFO: count ==5651 [2025-04-03 17:20:23] Production.ERROR: pbx CDR StartTime 2025-04-03 14:20:06 - End Time 2025-04-03 17:20:06 [2025-04-03 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827000', 'tblTempUsageDetail_20' ) start [2025-04-03 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827000', 'tblTempUsageDetail_20' ) end [2025-04-03 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827000', 'tblTempVendorCDR_20' ) start [2025-04-03 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827000', 'tblTempVendorCDR_20' ) end [2025-04-03 17:20:23] Production.INFO: ProcessCDR(1,14827000,1,1,2) [2025-04-03 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827000', 'tblTempUsageDetail_20' ) start [2025-04-03 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827000', 'tblTempUsageDetail_20' ) end [2025-04-03 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:20:29] Production.INFO: ==12663== Releasing lock... [2025-04-03 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:20:29] Production.INFO: 70.25 MB #Memory Used# [2025-04-03 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:21:05 [end_date_ymd] => 2025-04-03 17:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:21:05' and `end` < '2025-04-03 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-03 17:21:19] Production.INFO: count ==5568 [2025-04-03 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:21:05 - End Time 2025-04-03 17:21:05 [2025-04-03 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827006', 'tblTempUsageDetail_20' ) start [2025-04-03 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827006', 'tblTempUsageDetail_20' ) end [2025-04-03 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827006', 'tblTempVendorCDR_20' ) start [2025-04-03 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827006', 'tblTempVendorCDR_20' ) end [2025-04-03 17:21:21] Production.INFO: ProcessCDR(1,14827006,1,1,2) [2025-04-03 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827006', 'tblTempUsageDetail_20' ) start [2025-04-03 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827006', 'tblTempUsageDetail_20' ) end [2025-04-03 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:21:27] Production.INFO: ==12740== Releasing lock... [2025-04-03 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:21:27] Production.INFO: 69.75 MB #Memory Used# [2025-04-03 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:22:06 [end_date_ymd] => 2025-04-03 17:22:06 [RateCDR] => 1 ) [2025-04-03 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:22:06' and `end` < '2025-04-03 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:22:19] Production.INFO: count ==5559 [2025-04-03 17:22:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:22:06 - End Time 2025-04-03 17:22:06 [2025-04-03 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827011', 'tblTempUsageDetail_20' ) start [2025-04-03 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827011', 'tblTempUsageDetail_20' ) end [2025-04-03 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827011', 'tblTempVendorCDR_20' ) start [2025-04-03 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827011', 'tblTempVendorCDR_20' ) end [2025-04-03 17:22:22] Production.INFO: ProcessCDR(1,14827011,1,1,2) [2025-04-03 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827011', 'tblTempUsageDetail_20' ) start [2025-04-03 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827011', 'tblTempUsageDetail_20' ) end [2025-04-03 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:22:27] Production.INFO: ==12813== Releasing lock... [2025-04-03 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:22:27] Production.INFO: 69.5 MB #Memory Used# [2025-04-03 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:23:05 [end_date_ymd] => 2025-04-03 17:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:23:05' and `end` < '2025-04-03 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:23:19] Production.INFO: count ==5529 [2025-04-03 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:23:05 - End Time 2025-04-03 17:23:05 [2025-04-03 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827016', 'tblTempUsageDetail_20' ) start [2025-04-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827016', 'tblTempUsageDetail_20' ) end [2025-04-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827016', 'tblTempVendorCDR_20' ) start [2025-04-03 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827016', 'tblTempVendorCDR_20' ) end [2025-04-03 17:23:21] Production.INFO: ProcessCDR(1,14827016,1,1,2) [2025-04-03 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827016', 'tblTempUsageDetail_20' ) start [2025-04-03 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827016', 'tblTempUsageDetail_20' ) end [2025-04-03 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:23:26] Production.INFO: ==12891== Releasing lock... [2025-04-03 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:23:26] Production.INFO: 69.5 MB #Memory Used# [2025-04-03 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:24:05 [end_date_ymd] => 2025-04-03 17:24:05 [RateCDR] => 1 ) [2025-04-03 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:24:05' and `end` < '2025-04-03 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:24:19] Production.INFO: count ==5519 [2025-04-03 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:24:05 - End Time 2025-04-03 17:24:05 [2025-04-03 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827021', 'tblTempUsageDetail_20' ) start [2025-04-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827021', 'tblTempUsageDetail_20' ) end [2025-04-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827021', 'tblTempVendorCDR_20' ) start [2025-04-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827021', 'tblTempVendorCDR_20' ) end [2025-04-03 17:24:21] Production.INFO: ProcessCDR(1,14827021,1,1,2) [2025-04-03 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827021', 'tblTempUsageDetail_20' ) start [2025-04-03 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827021', 'tblTempUsageDetail_20' ) end [2025-04-03 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:24:27] Production.INFO: ==12969== Releasing lock... [2025-04-03 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:24:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:25:05 [end_date_ymd] => 2025-04-03 17:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:25:05' and `end` < '2025-04-03 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-03 17:25:19] Production.INFO: count ==5516 [2025-04-03 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:25:05 - End Time 2025-04-03 17:25:05 [2025-04-03 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827026', 'tblTempUsageDetail_20' ) start [2025-04-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827026', 'tblTempUsageDetail_20' ) end [2025-04-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827026', 'tblTempVendorCDR_20' ) start [2025-04-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827026', 'tblTempVendorCDR_20' ) end [2025-04-03 17:25:21] Production.INFO: ProcessCDR(1,14827026,1,1,2) [2025-04-03 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827026', 'tblTempUsageDetail_20' ) start [2025-04-03 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827026', 'tblTempUsageDetail_20' ) end [2025-04-03 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:25:27] Production.INFO: ==13042== Releasing lock... [2025-04-03 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:25:27] Production.INFO: 69.25 MB #Memory Used# [2025-04-03 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:26:06 [end_date_ymd] => 2025-04-03 17:26:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:26:06' and `end` < '2025-04-03 17: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-03 17:26:19] Production.INFO: count ==5443 [2025-04-03 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:26:06 - End Time 2025-04-03 17:26:06 [2025-04-03 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827031', 'tblTempUsageDetail_20' ) start [2025-04-03 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827031', 'tblTempUsageDetail_20' ) end [2025-04-03 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827031', 'tblTempVendorCDR_20' ) start [2025-04-03 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827031', 'tblTempVendorCDR_20' ) end [2025-04-03 17:26:22] Production.INFO: ProcessCDR(1,14827031,1,1,2) [2025-04-03 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827031', 'tblTempUsageDetail_20' ) start [2025-04-03 17:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827031', 'tblTempUsageDetail_20' ) end [2025-04-03 17:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:26:27] Production.INFO: ==13117== Releasing lock... [2025-04-03 17:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:26:27] Production.INFO: 68.75 MB #Memory Used# [2025-04-03 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:27:05 [end_date_ymd] => 2025-04-03 17:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:27:05' and `end` < '2025-04-03 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-03 17:27:18] Production.INFO: count ==5429 [2025-04-03 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:27:05 - End Time 2025-04-03 17:27:05 [2025-04-03 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827036', 'tblTempUsageDetail_20' ) start [2025-04-03 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827036', 'tblTempUsageDetail_20' ) end [2025-04-03 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827036', 'tblTempVendorCDR_20' ) start [2025-04-03 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827036', 'tblTempVendorCDR_20' ) end [2025-04-03 17:27:21] Production.INFO: ProcessCDR(1,14827036,1,1,2) [2025-04-03 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827036', 'tblTempUsageDetail_20' ) start [2025-04-03 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827036', 'tblTempUsageDetail_20' ) end [2025-04-03 17:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:27:26] Production.INFO: ==13193== Releasing lock... [2025-04-03 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:27:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-03 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:28:05 [end_date_ymd] => 2025-04-03 17:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:28:05' and `end` < '2025-04-03 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-03 17:28:19] Production.INFO: count ==5426 [2025-04-03 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:28:05 - End Time 2025-04-03 17:28:05 [2025-04-03 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827041', 'tblTempUsageDetail_20' ) start [2025-04-03 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827041', 'tblTempUsageDetail_20' ) end [2025-04-03 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827041', 'tblTempVendorCDR_20' ) start [2025-04-03 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827041', 'tblTempVendorCDR_20' ) end [2025-04-03 17:28:22] Production.INFO: ProcessCDR(1,14827041,1,1,2) [2025-04-03 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827041', 'tblTempUsageDetail_20' ) start [2025-04-03 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827041', 'tblTempUsageDetail_20' ) end [2025-04-03 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:28:26] Production.INFO: ==13274== Releasing lock... [2025-04-03 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:28:26] Production.INFO: 68.75 MB #Memory Used# [2025-04-03 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:29:05 [end_date_ymd] => 2025-04-03 17:29:05 [RateCDR] => 1 ) [2025-04-03 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:29:05' and `end` < '2025-04-03 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:29:18] Production.INFO: count ==5420 [2025-04-03 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:29:05 - End Time 2025-04-03 17:29:05 [2025-04-03 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827046', 'tblTempUsageDetail_20' ) start [2025-04-03 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827046', 'tblTempUsageDetail_20' ) end [2025-04-03 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827046', 'tblTempVendorCDR_20' ) start [2025-04-03 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827046', 'tblTempVendorCDR_20' ) end [2025-04-03 17:29:21] Production.INFO: ProcessCDR(1,14827046,1,1,2) [2025-04-03 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827046', 'tblTempUsageDetail_20' ) start [2025-04-03 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827046', 'tblTempUsageDetail_20' ) end [2025-04-03 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:29:26] Production.INFO: ==13350== Releasing lock... [2025-04-03 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:29:26] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:30:06 [end_date_ymd] => 2025-04-03 17:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:30:06' and `end` < '2025-04-03 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-03 17:30:19] Production.INFO: count ==5406 [2025-04-03 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:30:06 - End Time 2025-04-03 17:30:06 [2025-04-03 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827051', 'tblTempUsageDetail_20' ) start [2025-04-03 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827051', 'tblTempUsageDetail_20' ) end [2025-04-03 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827051', 'tblTempVendorCDR_20' ) start [2025-04-03 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827051', 'tblTempVendorCDR_20' ) end [2025-04-03 17:30:22] Production.INFO: ProcessCDR(1,14827051,1,1,2) [2025-04-03 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827051', 'tblTempUsageDetail_20' ) start [2025-04-03 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827051', 'tblTempUsageDetail_20' ) end [2025-04-03 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:30:27] Production.INFO: ==13430== Releasing lock... [2025-04-03 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:30:27] Production.INFO: 68.5 MB #Memory Used# [2025-04-03 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:31:05 [end_date_ymd] => 2025-04-03 17:31:05 [RateCDR] => 1 ) [2025-04-03 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:31:05' and `end` < '2025-04-03 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:31:18] Production.INFO: count ==5332 [2025-04-03 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:31:05 - End Time 2025-04-03 17:31:05 [2025-04-03 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827057', 'tblTempUsageDetail_20' ) start [2025-04-03 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827057', 'tblTempUsageDetail_20' ) end [2025-04-03 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827057', 'tblTempVendorCDR_20' ) start [2025-04-03 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827057', 'tblTempVendorCDR_20' ) end [2025-04-03 17:31:21] Production.INFO: ProcessCDR(1,14827057,1,1,2) [2025-04-03 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827057', 'tblTempUsageDetail_20' ) start [2025-04-03 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827057', 'tblTempUsageDetail_20' ) end [2025-04-03 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:31:26] Production.INFO: ==13504== Releasing lock... [2025-04-03 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:31:26] Production.INFO: 68 MB #Memory Used# [2025-04-03 17:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:32:04 [end_date_ymd] => 2025-04-03 17:32:04 [RateCDR] => 1 ) [2025-04-03 17:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:32:04' and `end` < '2025-04-03 17:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:32:18] Production.INFO: count ==5298 [2025-04-03 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:32:04 - End Time 2025-04-03 17:32:04 [2025-04-03 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827061', 'tblTempUsageDetail_20' ) start [2025-04-03 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827061', 'tblTempUsageDetail_20' ) end [2025-04-03 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827061', 'tblTempVendorCDR_20' ) start [2025-04-03 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827061', 'tblTempVendorCDR_20' ) end [2025-04-03 17:32:20] Production.INFO: ProcessCDR(1,14827061,1,1,2) [2025-04-03 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827061', 'tblTempUsageDetail_20' ) start [2025-04-03 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827061', 'tblTempUsageDetail_20' ) end [2025-04-03 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:32:25] Production.INFO: ==13626== Releasing lock... [2025-04-03 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:32:25] Production.INFO: 67.75 MB #Memory Used# [2025-04-03 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:33:06 [end_date_ymd] => 2025-04-03 17:33:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:33:06' and `end` < '2025-04-03 17: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-03 17:33:19] Production.INFO: count ==5281 [2025-04-03 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:33:06 - End Time 2025-04-03 17:33:06 [2025-04-03 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827067', 'tblTempUsageDetail_20' ) start [2025-04-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827067', 'tblTempUsageDetail_20' ) end [2025-04-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827067', 'tblTempVendorCDR_20' ) start [2025-04-03 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827067', 'tblTempVendorCDR_20' ) end [2025-04-03 17:33:22] Production.INFO: ProcessCDR(1,14827067,1,1,2) [2025-04-03 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827067', 'tblTempUsageDetail_20' ) start [2025-04-03 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827067', 'tblTempUsageDetail_20' ) end [2025-04-03 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:33:27] Production.INFO: ==13702== Releasing lock... [2025-04-03 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:33:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-03 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:34:05 [end_date_ymd] => 2025-04-03 17:34:05 [RateCDR] => 1 ) [2025-04-03 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:34:05' and `end` < '2025-04-03 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:34:19] Production.INFO: count ==5262 [2025-04-03 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:34:05 - End Time 2025-04-03 17:34:05 [2025-04-03 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827072', 'tblTempUsageDetail_20' ) start [2025-04-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827072', 'tblTempUsageDetail_20' ) end [2025-04-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827072', 'tblTempVendorCDR_20' ) start [2025-04-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827072', 'tblTempVendorCDR_20' ) end [2025-04-03 17:34:21] Production.INFO: ProcessCDR(1,14827072,1,1,2) [2025-04-03 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827072', 'tblTempUsageDetail_20' ) start [2025-04-03 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827072', 'tblTempUsageDetail_20' ) end [2025-04-03 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:34:27] Production.INFO: ==13778== Releasing lock... [2025-04-03 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:34:27] Production.INFO: 67.5 MB #Memory Used# [2025-04-03 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:35:05 [end_date_ymd] => 2025-04-03 17:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:35:05' and `end` < '2025-04-03 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-03 17:35:19] Production.INFO: count ==5256 [2025-04-03 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:35:05 - End Time 2025-04-03 17:35:05 [2025-04-03 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827077', 'tblTempUsageDetail_20' ) start [2025-04-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827077', 'tblTempUsageDetail_20' ) end [2025-04-03 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827077', 'tblTempVendorCDR_20' ) start [2025-04-03 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827077', 'tblTempVendorCDR_20' ) end [2025-04-03 17:35:22] Production.INFO: ProcessCDR(1,14827077,1,1,2) [2025-04-03 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827077', 'tblTempUsageDetail_20' ) start [2025-04-03 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827077', 'tblTempUsageDetail_20' ) end [2025-04-03 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:35:27] Production.INFO: ==13856== Releasing lock... [2025-04-03 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:35:27] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:36:05 [end_date_ymd] => 2025-04-03 17:36:05 [RateCDR] => 1 ) [2025-04-03 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:36:05' and `end` < '2025-04-03 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:36:19] Production.INFO: count ==5250 [2025-04-03 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:36:05 - End Time 2025-04-03 17:36:05 [2025-04-03 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827082', 'tblTempUsageDetail_20' ) start [2025-04-03 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827082', 'tblTempUsageDetail_20' ) end [2025-04-03 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827082', 'tblTempVendorCDR_20' ) start [2025-04-03 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827082', 'tblTempVendorCDR_20' ) end [2025-04-03 17:36:21] Production.INFO: ProcessCDR(1,14827082,1,1,2) [2025-04-03 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827082', 'tblTempUsageDetail_20' ) start [2025-04-03 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827082', 'tblTempUsageDetail_20' ) end [2025-04-03 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:36:25] Production.INFO: ==13929== Releasing lock... [2025-04-03 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:36:25] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:37:06 [end_date_ymd] => 2025-04-03 17:37:06 [RateCDR] => 1 ) [2025-04-03 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:37:06' and `end` < '2025-04-03 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:37:20] Production.INFO: count ==5231 [2025-04-03 17:37:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:37:06 - End Time 2025-04-03 17:37:06 [2025-04-03 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827087', 'tblTempUsageDetail_20' ) start [2025-04-03 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827087', 'tblTempUsageDetail_20' ) end [2025-04-03 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827087', 'tblTempVendorCDR_20' ) start [2025-04-03 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827087', 'tblTempVendorCDR_20' ) end [2025-04-03 17:37:22] Production.INFO: ProcessCDR(1,14827087,1,1,2) [2025-04-03 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827087', 'tblTempUsageDetail_20' ) start [2025-04-03 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827087', 'tblTempUsageDetail_20' ) end [2025-04-03 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:37:26] Production.INFO: ==14008== Releasing lock... [2025-04-03 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-04-03 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:38:05 [end_date_ymd] => 2025-04-03 17:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:38:05' and `end` < '2025-04-03 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-03 17:38:19] Production.INFO: count ==5209 [2025-04-03 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:38:05 - End Time 2025-04-03 17:38:05 [2025-04-03 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827092', 'tblTempUsageDetail_20' ) start [2025-04-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827092', 'tblTempUsageDetail_20' ) end [2025-04-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827092', 'tblTempVendorCDR_20' ) start [2025-04-03 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827092', 'tblTempVendorCDR_20' ) end [2025-04-03 17:38:21] Production.INFO: ProcessCDR(1,14827092,1,1,2) [2025-04-03 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827092', 'tblTempUsageDetail_20' ) start [2025-04-03 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827092', 'tblTempUsageDetail_20' ) end [2025-04-03 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:38:26] Production.INFO: ==14083== Releasing lock... [2025-04-03 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:38:26] Production.INFO: 67 MB #Memory Used# [2025-04-03 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:39:05 [end_date_ymd] => 2025-04-03 17:39:05 [RateCDR] => 1 ) [2025-04-03 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:39:05' and `end` < '2025-04-03 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:39:19] Production.INFO: count ==5177 [2025-04-03 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:39:05 - End Time 2025-04-03 17:39:05 [2025-04-03 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827097', 'tblTempUsageDetail_20' ) start [2025-04-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827097', 'tblTempUsageDetail_20' ) end [2025-04-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827097', 'tblTempVendorCDR_20' ) start [2025-04-03 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827097', 'tblTempVendorCDR_20' ) end [2025-04-03 17:39:21] Production.INFO: ProcessCDR(1,14827097,1,1,2) [2025-04-03 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827097', 'tblTempUsageDetail_20' ) start [2025-04-03 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827097', 'tblTempUsageDetail_20' ) end [2025-04-03 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:39:27] Production.INFO: ==14157== Releasing lock... [2025-04-03 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:39:27] Production.INFO: 66.75 MB #Memory Used# [2025-04-03 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:40:06 [end_date_ymd] => 2025-04-03 17:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:40:06' and `end` < '2025-04-03 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-03 17:40:20] Production.INFO: count ==5200 [2025-04-03 17:40:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:40:06 - End Time 2025-04-03 17:40:06 [2025-04-03 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827103', 'tblTempUsageDetail_20' ) start [2025-04-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827103', 'tblTempUsageDetail_20' ) end [2025-04-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827103', 'tblTempVendorCDR_20' ) start [2025-04-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827103', 'tblTempVendorCDR_20' ) end [2025-04-03 17:40:22] Production.INFO: ProcessCDR(1,14827103,1,1,2) [2025-04-03 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827103', 'tblTempUsageDetail_20' ) start [2025-04-03 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827103', 'tblTempUsageDetail_20' ) end [2025-04-03 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:40:26] Production.INFO: ==14234== Releasing lock... [2025-04-03 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:40:26] Production.INFO: 67 MB #Memory Used# [2025-04-03 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:41:05 [end_date_ymd] => 2025-04-03 17:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:41:05' and `end` < '2025-04-03 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-03 17:41:19] Production.INFO: count ==5107 [2025-04-03 17:41:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:41:05 - End Time 2025-04-03 17:41:05 [2025-04-03 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827108', 'tblTempUsageDetail_20' ) start [2025-04-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827108', 'tblTempUsageDetail_20' ) end [2025-04-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827108', 'tblTempVendorCDR_20' ) start [2025-04-03 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827108', 'tblTempVendorCDR_20' ) end [2025-04-03 17:41:22] Production.INFO: ProcessCDR(1,14827108,1,1,2) [2025-04-03 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827108', 'tblTempUsageDetail_20' ) start [2025-04-03 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827108', 'tblTempUsageDetail_20' ) end [2025-04-03 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:41:27] Production.INFO: ==14314== Releasing lock... [2025-04-03 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:41:27] Production.INFO: 66.25 MB #Memory Used# [2025-04-03 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:42:04 [end_date_ymd] => 2025-04-03 17:42:04 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:42:04' and `end` < '2025-04-03 17: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-03 17:42:18] Production.INFO: count ==5077 [2025-04-03 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:42:04 - End Time 2025-04-03 17:42:04 [2025-04-03 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827113', 'tblTempUsageDetail_20' ) start [2025-04-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827113', 'tblTempUsageDetail_20' ) end [2025-04-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827113', 'tblTempVendorCDR_20' ) start [2025-04-03 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827113', 'tblTempVendorCDR_20' ) end [2025-04-03 17:42:20] Production.INFO: ProcessCDR(1,14827113,1,1,2) [2025-04-03 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827113', 'tblTempUsageDetail_20' ) start [2025-04-03 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827113', 'tblTempUsageDetail_20' ) end [2025-04-03 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:42:26] Production.INFO: ==14387== Releasing lock... [2025-04-03 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:42:26] Production.INFO: 66 MB #Memory Used# [2025-04-03 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:43:05 [end_date_ymd] => 2025-04-03 17:43:05 [RateCDR] => 1 ) [2025-04-03 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:43:05' and `end` < '2025-04-03 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:43:19] Production.INFO: count ==5071 [2025-04-03 17:43:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:43:05 - End Time 2025-04-03 17:43:05 [2025-04-03 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827118', 'tblTempUsageDetail_20' ) start [2025-04-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827118', 'tblTempUsageDetail_20' ) end [2025-04-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827118', 'tblTempVendorCDR_20' ) start [2025-04-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827118', 'tblTempVendorCDR_20' ) end [2025-04-03 17:43:21] Production.INFO: ProcessCDR(1,14827118,1,1,2) [2025-04-03 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827118', 'tblTempUsageDetail_20' ) start [2025-04-03 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827118', 'tblTempUsageDetail_20' ) end [2025-04-03 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:43:27] Production.INFO: ==14466== Releasing lock... [2025-04-03 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:43:27] Production.INFO: 66 MB #Memory Used# [2025-04-03 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:44:06 [end_date_ymd] => 2025-04-03 17:44:06 [RateCDR] => 1 ) [2025-04-03 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:44:06' and `end` < '2025-04-03 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:44:19] Production.INFO: count ==5059 [2025-04-03 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:44:06 - End Time 2025-04-03 17:44:06 [2025-04-03 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827123', 'tblTempUsageDetail_20' ) start [2025-04-03 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827123', 'tblTempUsageDetail_20' ) end [2025-04-03 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827123', 'tblTempVendorCDR_20' ) start [2025-04-03 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827123', 'tblTempVendorCDR_20' ) end [2025-04-03 17:44:22] Production.INFO: ProcessCDR(1,14827123,1,1,2) [2025-04-03 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827123', 'tblTempUsageDetail_20' ) start [2025-04-03 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827123', 'tblTempUsageDetail_20' ) end [2025-04-03 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:44:27] Production.INFO: ==14541== Releasing lock... [2025-04-03 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:44:27] Production.INFO: 65.75 MB #Memory Used# [2025-04-03 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:45:05 [end_date_ymd] => 2025-04-03 17:45:05 [RateCDR] => 1 ) [2025-04-03 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:45:05' and `end` < '2025-04-03 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:45:18] Production.INFO: count ==5014 [2025-04-03 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:45:05 - End Time 2025-04-03 17:45:05 [2025-04-03 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827127', 'tblTempUsageDetail_20' ) start [2025-04-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827127', 'tblTempUsageDetail_20' ) end [2025-04-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827127', 'tblTempVendorCDR_20' ) start [2025-04-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827127', 'tblTempVendorCDR_20' ) end [2025-04-03 17:45:21] Production.INFO: ProcessCDR(1,14827127,1,1,2) [2025-04-03 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827127', 'tblTempUsageDetail_20' ) start [2025-04-03 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827127', 'tblTempUsageDetail_20' ) end [2025-04-03 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:45:26] Production.INFO: ==14616== Releasing lock... [2025-04-03 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:45:26] Production.INFO: 65.5 MB #Memory Used# [2025-04-03 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:46:06 [end_date_ymd] => 2025-04-03 17:46:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:46:06' and `end` < '2025-04-03 17: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-03 17:46:20] Production.INFO: count ==4956 [2025-04-03 17:46:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:46:06 - End Time 2025-04-03 17:46:06 [2025-04-03 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827133', 'tblTempUsageDetail_20' ) start [2025-04-03 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827133', 'tblTempUsageDetail_20' ) end [2025-04-03 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827133', 'tblTempVendorCDR_20' ) start [2025-04-03 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827133', 'tblTempVendorCDR_20' ) end [2025-04-03 17:46:22] Production.INFO: ProcessCDR(1,14827133,1,1,2) [2025-04-03 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827133', 'tblTempUsageDetail_20' ) start [2025-04-03 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827133', 'tblTempUsageDetail_20' ) end [2025-04-03 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:46:27] Production.INFO: ==14694== Releasing lock... [2025-04-03 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:46:27] Production.INFO: 65 MB #Memory Used# [2025-04-03 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:47:05 [end_date_ymd] => 2025-04-03 17:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:47:05' and `end` < '2025-04-03 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-03 17:47:19] Production.INFO: count ==4924 [2025-04-03 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:47:05 - End Time 2025-04-03 17:47:05 [2025-04-03 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827138', 'tblTempUsageDetail_20' ) start [2025-04-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827138', 'tblTempUsageDetail_20' ) end [2025-04-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827138', 'tblTempVendorCDR_20' ) start [2025-04-03 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827138', 'tblTempVendorCDR_20' ) end [2025-04-03 17:47:21] Production.INFO: ProcessCDR(1,14827138,1,1,2) [2025-04-03 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827138', 'tblTempUsageDetail_20' ) start [2025-04-03 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827138', 'tblTempUsageDetail_20' ) end [2025-04-03 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:47:25] Production.INFO: ==14764== Releasing lock... [2025-04-03 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:47:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-03 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:48:05 [end_date_ymd] => 2025-04-03 17:48:05 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:48:05' and `end` < '2025-04-03 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-03 17:48:19] Production.INFO: count ==4940 [2025-04-03 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:48:05 - End Time 2025-04-03 17:48:05 [2025-04-03 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827143', 'tblTempUsageDetail_20' ) start [2025-04-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827143', 'tblTempUsageDetail_20' ) end [2025-04-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827143', 'tblTempVendorCDR_20' ) start [2025-04-03 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827143', 'tblTempVendorCDR_20' ) end [2025-04-03 17:48:21] Production.INFO: ProcessCDR(1,14827143,1,1,2) [2025-04-03 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827143', 'tblTempUsageDetail_20' ) start [2025-04-03 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827143', 'tblTempUsageDetail_20' ) end [2025-04-03 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:48:27] Production.INFO: ==14878== Releasing lock... [2025-04-03 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:48:27] Production.INFO: 65 MB #Memory Used# [2025-04-03 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:49:05 [end_date_ymd] => 2025-04-03 17:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:49:05' and `end` < '2025-04-03 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-03 17:49:19] Production.INFO: count ==4919 [2025-04-03 17:49:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:49:05 - End Time 2025-04-03 17:49:05 [2025-04-03 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827148', 'tblTempUsageDetail_20' ) start [2025-04-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827148', 'tblTempUsageDetail_20' ) end [2025-04-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827148', 'tblTempVendorCDR_20' ) start [2025-04-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827148', 'tblTempVendorCDR_20' ) end [2025-04-03 17:49:21] Production.INFO: ProcessCDR(1,14827148,1,1,2) [2025-04-03 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827148', 'tblTempUsageDetail_20' ) start [2025-04-03 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827148', 'tblTempUsageDetail_20' ) end [2025-04-03 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:49:26] Production.INFO: ==14952== Releasing lock... [2025-04-03 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:49:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-03 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:50:06 [end_date_ymd] => 2025-04-03 17:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 14:50:06' and `end` < '2025-04-03 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-03 17:50:20] Production.INFO: count ==4918 [2025-04-03 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:50:06 - End Time 2025-04-03 17:50:06 [2025-04-03 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827154', 'tblTempUsageDetail_20' ) start [2025-04-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827154', 'tblTempUsageDetail_20' ) end [2025-04-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827154', 'tblTempVendorCDR_20' ) start [2025-04-03 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827154', 'tblTempVendorCDR_20' ) end [2025-04-03 17:50:22] Production.INFO: ProcessCDR(1,14827154,1,1,2) [2025-04-03 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827154', 'tblTempUsageDetail_20' ) start [2025-04-03 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827154', 'tblTempUsageDetail_20' ) end [2025-04-03 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:50:28] Production.INFO: ==15026== Releasing lock... [2025-04-03 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:50:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-03 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:51:05 [end_date_ymd] => 2025-04-03 17:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:51:05' and `end` < '2025-04-03 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-03 17:51:18] Production.INFO: count ==4869 [2025-04-03 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:51:05 - End Time 2025-04-03 17:51:05 [2025-04-03 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827159', 'tblTempUsageDetail_20' ) start [2025-04-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827159', 'tblTempUsageDetail_20' ) end [2025-04-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827159', 'tblTempVendorCDR_20' ) start [2025-04-03 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827159', 'tblTempVendorCDR_20' ) end [2025-04-03 17:51:20] Production.INFO: ProcessCDR(1,14827159,1,1,2) [2025-04-03 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827159', 'tblTempUsageDetail_20' ) start [2025-04-03 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827159', 'tblTempUsageDetail_20' ) end [2025-04-03 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:51:24] Production.INFO: ==15100== Releasing lock... [2025-04-03 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:51:24] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:52:05 [end_date_ymd] => 2025-04-03 17:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:52:05' and `end` < '2025-04-03 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-03 17:52:19] Production.INFO: count ==4864 [2025-04-03 17:52:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:52:05 - End Time 2025-04-03 17:52:05 [2025-04-03 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827164', 'tblTempUsageDetail_20' ) start [2025-04-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827164', 'tblTempUsageDetail_20' ) end [2025-04-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827164', 'tblTempVendorCDR_20' ) start [2025-04-03 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827164', 'tblTempVendorCDR_20' ) end [2025-04-03 17:52:21] Production.INFO: ProcessCDR(1,14827164,1,1,2) [2025-04-03 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827164', 'tblTempUsageDetail_20' ) start [2025-04-03 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827164', 'tblTempUsageDetail_20' ) end [2025-04-03 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:52:26] Production.INFO: ==15176== Releasing lock... [2025-04-03 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:52:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:53:05 [end_date_ymd] => 2025-04-03 17:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:53:05' and `end` < '2025-04-03 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-03 17:53:19] Production.INFO: count ==4845 [2025-04-03 17:53:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:53:05 - End Time 2025-04-03 17:53:05 [2025-04-03 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827169', 'tblTempUsageDetail_20' ) start [2025-04-03 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827169', 'tblTempUsageDetail_20' ) end [2025-04-03 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827169', 'tblTempVendorCDR_20' ) start [2025-04-03 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827169', 'tblTempVendorCDR_20' ) end [2025-04-03 17:53:21] Production.INFO: ProcessCDR(1,14827169,1,1,2) [2025-04-03 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827169', 'tblTempUsageDetail_20' ) start [2025-04-03 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827169', 'tblTempUsageDetail_20' ) end [2025-04-03 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:53:26] Production.INFO: ==15249== Releasing lock... [2025-04-03 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:53:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-03 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:54:06 [end_date_ymd] => 2025-04-03 17:54:06 [RateCDR] => 1 ) [2025-04-03 17: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-03 14:54:06' and `end` < '2025-04-03 17: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-03 17:54:20] Production.INFO: count ==4890 [2025-04-03 17:54:22] Production.ERROR: pbx CDR StartTime 2025-04-03 14:54:06 - End Time 2025-04-03 17:54:06 [2025-04-03 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827174', 'tblTempUsageDetail_20' ) start [2025-04-03 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827174', 'tblTempUsageDetail_20' ) end [2025-04-03 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827174', 'tblTempVendorCDR_20' ) start [2025-04-03 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827174', 'tblTempVendorCDR_20' ) end [2025-04-03 17:54:22] Production.INFO: ProcessCDR(1,14827174,1,1,2) [2025-04-03 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827174', 'tblTempUsageDetail_20' ) start [2025-04-03 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827174', 'tblTempUsageDetail_20' ) end [2025-04-03 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:54:26] Production.INFO: ==15323== Releasing lock... [2025-04-03 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:54:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:55:05 [end_date_ymd] => 2025-04-03 17:55:05 [RateCDR] => 1 ) [2025-04-03 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:55:05' and `end` < '2025-04-03 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:55:18] Production.INFO: count ==4894 [2025-04-03 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:55:05 - End Time 2025-04-03 17:55:05 [2025-04-03 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827179', 'tblTempUsageDetail_20' ) start [2025-04-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827179', 'tblTempUsageDetail_20' ) end [2025-04-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827179', 'tblTempVendorCDR_20' ) start [2025-04-03 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827179', 'tblTempVendorCDR_20' ) end [2025-04-03 17:55:21] Production.INFO: ProcessCDR(1,14827179,1,1,2) [2025-04-03 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827179', 'tblTempUsageDetail_20' ) start [2025-04-03 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827179', 'tblTempUsageDetail_20' ) end [2025-04-03 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:55:26] Production.INFO: ==15395== Releasing lock... [2025-04-03 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:56:05 [end_date_ymd] => 2025-04-03 17:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:56:05' and `end` < '2025-04-03 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-03 17:56:19] Production.INFO: count ==4886 [2025-04-03 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:56:05 - End Time 2025-04-03 17:56:05 [2025-04-03 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827184', 'tblTempUsageDetail_20' ) start [2025-04-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827184', 'tblTempUsageDetail_20' ) end [2025-04-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827184', 'tblTempVendorCDR_20' ) start [2025-04-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827184', 'tblTempVendorCDR_20' ) end [2025-04-03 17:56:21] Production.INFO: ProcessCDR(1,14827184,1,1,2) [2025-04-03 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827184', 'tblTempUsageDetail_20' ) start [2025-04-03 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827184', 'tblTempUsageDetail_20' ) end [2025-04-03 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:56:26] Production.INFO: ==15469== Releasing lock... [2025-04-03 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:56:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:57:05 [end_date_ymd] => 2025-04-03 17:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 14:57:05' and `end` < '2025-04-03 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-03 17:57:18] Production.INFO: count ==4874 [2025-04-03 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:57:05 - End Time 2025-04-03 17:57:05 [2025-04-03 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827189', 'tblTempUsageDetail_20' ) start [2025-04-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827189', 'tblTempUsageDetail_20' ) end [2025-04-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827189', 'tblTempVendorCDR_20' ) start [2025-04-03 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827189', 'tblTempVendorCDR_20' ) end [2025-04-03 17:57:20] Production.INFO: ProcessCDR(1,14827189,1,1,2) [2025-04-03 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827189', 'tblTempUsageDetail_20' ) start [2025-04-03 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827189', 'tblTempUsageDetail_20' ) end [2025-04-03 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:57:26] Production.INFO: ==15540== Releasing lock... [2025-04-03 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:58:06 [end_date_ymd] => 2025-04-03 17:58:06 [RateCDR] => 1 ) [2025-04-03 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:58:06' and `end` < '2025-04-03 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:58:19] Production.INFO: count ==4873 [2025-04-03 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-03 14:58:06 - End Time 2025-04-03 17:58:06 [2025-04-03 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827194', 'tblTempUsageDetail_20' ) start [2025-04-03 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827194', 'tblTempUsageDetail_20' ) end [2025-04-03 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827194', 'tblTempVendorCDR_20' ) start [2025-04-03 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827194', 'tblTempVendorCDR_20' ) end [2025-04-03 17:58:21] Production.INFO: ProcessCDR(1,14827194,1,1,2) [2025-04-03 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827194', 'tblTempUsageDetail_20' ) start [2025-04-03 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827194', 'tblTempUsageDetail_20' ) end [2025-04-03 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:58:26] Production.INFO: ==15615== Releasing lock... [2025-04-03 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 14:59:05 [end_date_ymd] => 2025-04-03 17:59:05 [RateCDR] => 1 ) [2025-04-03 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 14:59:05' and `end` < '2025-04-03 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 17:59:18] Production.INFO: count ==4872 [2025-04-03 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-03 14:59:05 - End Time 2025-04-03 17:59:05 [2025-04-03 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827199', 'tblTempUsageDetail_20' ) start [2025-04-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827199', 'tblTempUsageDetail_20' ) end [2025-04-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827199', 'tblTempVendorCDR_20' ) start [2025-04-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827199', 'tblTempVendorCDR_20' ) end [2025-04-03 17:59:21] Production.INFO: ProcessCDR(1,14827199,1,1,2) [2025-04-03 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827199', 'tblTempUsageDetail_20' ) start [2025-04-03 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827199', 'tblTempUsageDetail_20' ) end [2025-04-03 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 17:59:26] Production.INFO: ==15692== Releasing lock... [2025-04-03 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 17:59:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:00:07 [end_date_ymd] => 2025-04-03 18:00:07 [RateCDR] => 1 ) [2025-04-03 18:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:00:07' and `end` < '2025-04-03 18:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:00:20] Production.INFO: count ==4866 [2025-04-03 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:00:07 - End Time 2025-04-03 18:00:07 [2025-04-03 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827205', 'tblTempUsageDetail_20' ) start [2025-04-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827205', 'tblTempUsageDetail_20' ) end [2025-04-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827205', 'tblTempVendorCDR_20' ) start [2025-04-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827205', 'tblTempVendorCDR_20' ) end [2025-04-03 18:00:22] Production.INFO: ProcessCDR(1,14827205,1,1,2) [2025-04-03 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827205', 'tblTempUsageDetail_20' ) start [2025-04-03 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827205', 'tblTempUsageDetail_20' ) end [2025-04-03 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:00:28] Production.INFO: ==15769== Releasing lock... [2025-04-03 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-03 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:01:05 [end_date_ymd] => 2025-04-03 18:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:01:05' and `end` < '2025-04-03 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-03 18:01:19] Production.INFO: count ==4838 [2025-04-03 18:01:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:01:05 - End Time 2025-04-03 18:01:05 [2025-04-03 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827210', 'tblTempUsageDetail_20' ) start [2025-04-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827210', 'tblTempUsageDetail_20' ) end [2025-04-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827210', 'tblTempVendorCDR_20' ) start [2025-04-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827210', 'tblTempVendorCDR_20' ) end [2025-04-03 18:01:21] Production.INFO: ProcessCDR(1,14827210,1,1,2) [2025-04-03 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827210', 'tblTempUsageDetail_20' ) start [2025-04-03 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827210', 'tblTempUsageDetail_20' ) end [2025-04-03 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:01:26] Production.INFO: ==15854== Releasing lock... [2025-04-03 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:01:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-03 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:02:06 [end_date_ymd] => 2025-04-03 18:02:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:02:06' and `end` < '2025-04-03 18: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-03 18:02:19] Production.INFO: count ==4808 [2025-04-03 18:02:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:02:06 - End Time 2025-04-03 18:02:06 [2025-04-03 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827215', 'tblTempUsageDetail_20' ) start [2025-04-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827215', 'tblTempUsageDetail_20' ) end [2025-04-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827215', 'tblTempVendorCDR_20' ) start [2025-04-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827215', 'tblTempVendorCDR_20' ) end [2025-04-03 18:02:21] Production.INFO: ProcessCDR(1,14827215,1,1,2) [2025-04-03 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827215', 'tblTempUsageDetail_20' ) start [2025-04-03 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827215', 'tblTempUsageDetail_20' ) end [2025-04-03 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:02:27] Production.INFO: ==15929== Releasing lock... [2025-04-03 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:02:27] Production.INFO: 64 MB #Memory Used# [2025-04-03 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:03:05 [end_date_ymd] => 2025-04-03 18:03:05 [RateCDR] => 1 ) [2025-04-03 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:03:05' and `end` < '2025-04-03 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:03:19] Production.INFO: count ==4760 [2025-04-03 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:03:05 - End Time 2025-04-03 18:03:05 [2025-04-03 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827220', 'tblTempUsageDetail_20' ) start [2025-04-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827220', 'tblTempUsageDetail_20' ) end [2025-04-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827220', 'tblTempVendorCDR_20' ) start [2025-04-03 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827220', 'tblTempVendorCDR_20' ) end [2025-04-03 18:03:21] Production.INFO: ProcessCDR(1,14827220,1,1,2) [2025-04-03 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827220', 'tblTempUsageDetail_20' ) start [2025-04-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827220', 'tblTempUsageDetail_20' ) end [2025-04-03 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:03:25] Production.INFO: ==16040== Releasing lock... [2025-04-03 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:03:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-03 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:04:05 [end_date_ymd] => 2025-04-03 18:04:05 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:04:05' and `end` < '2025-04-03 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-03 18:04:19] Production.INFO: count ==4752 [2025-04-03 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:04:05 - End Time 2025-04-03 18:04:05 [2025-04-03 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827225', 'tblTempUsageDetail_20' ) start [2025-04-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827225', 'tblTempUsageDetail_20' ) end [2025-04-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827225', 'tblTempVendorCDR_20' ) start [2025-04-03 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827225', 'tblTempVendorCDR_20' ) end [2025-04-03 18:04:21] Production.INFO: ProcessCDR(1,14827225,1,1,2) [2025-04-03 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827225', 'tblTempUsageDetail_20' ) start [2025-04-03 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827225', 'tblTempUsageDetail_20' ) end [2025-04-03 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:04:25] Production.INFO: ==16116== Releasing lock... [2025-04-03 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:04:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-03 18:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:05:07 [end_date_ymd] => 2025-04-03 18:05:07 [RateCDR] => 1 ) [2025-04-03 18:05: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-03 15:05:07' and `end` < '2025-04-03 18:05: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-03 18:05:20] Production.INFO: count ==4727 [2025-04-03 18:05:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:05:07 - End Time 2025-04-03 18:05:07 [2025-04-03 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827230', 'tblTempUsageDetail_20' ) start [2025-04-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827230', 'tblTempUsageDetail_20' ) end [2025-04-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827230', 'tblTempVendorCDR_20' ) start [2025-04-03 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827230', 'tblTempVendorCDR_20' ) end [2025-04-03 18:05:23] Production.INFO: ProcessCDR(1,14827230,1,1,2) [2025-04-03 18:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827230', 'tblTempUsageDetail_20' ) start [2025-04-03 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827230', 'tblTempUsageDetail_20' ) end [2025-04-03 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:05:26] Production.INFO: ==16197== Releasing lock... [2025-04-03 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:05:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:06:05 [end_date_ymd] => 2025-04-03 18:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:06:05' and `end` < '2025-04-03 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-03 18:06:18] Production.INFO: count ==4711 [2025-04-03 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:06:05 - End Time 2025-04-03 18:06:05 [2025-04-03 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827235', 'tblTempUsageDetail_20' ) start [2025-04-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827235', 'tblTempUsageDetail_20' ) end [2025-04-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827235', 'tblTempVendorCDR_20' ) start [2025-04-03 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827235', 'tblTempVendorCDR_20' ) end [2025-04-03 18:06:21] Production.INFO: ProcessCDR(1,14827235,1,1,2) [2025-04-03 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827235', 'tblTempUsageDetail_20' ) start [2025-04-03 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827235', 'tblTempUsageDetail_20' ) end [2025-04-03 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:06:26] Production.INFO: ==16295== Releasing lock... [2025-04-03 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:06:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:07:06 [end_date_ymd] => 2025-04-03 18:07:06 [RateCDR] => 1 ) [2025-04-03 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-03 15:07:06' and `end` < '2025-04-03 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-03 18:07:20] Production.INFO: count ==4707 [2025-04-03 18:07:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:07:06 - End Time 2025-04-03 18:07:06 [2025-04-03 18:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827240', 'tblTempUsageDetail_20' ) start [2025-04-03 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827240', 'tblTempUsageDetail_20' ) end [2025-04-03 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827240', 'tblTempVendorCDR_20' ) start [2025-04-03 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827240', 'tblTempVendorCDR_20' ) end [2025-04-03 18:07:22] Production.INFO: ProcessCDR(1,14827240,1,1,2) [2025-04-03 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827240', 'tblTempUsageDetail_20' ) start [2025-04-03 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827240', 'tblTempUsageDetail_20' ) end [2025-04-03 18:07:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:07:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:07:28] Production.INFO: ==16401== Releasing lock... [2025-04-03 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:07:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:08:05 [end_date_ymd] => 2025-04-03 18:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:08:05' and `end` < '2025-04-03 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-03 18:08:19] Production.INFO: count ==4700 [2025-04-03 18:08:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:08:05 - End Time 2025-04-03 18:08:05 [2025-04-03 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827245', 'tblTempUsageDetail_20' ) start [2025-04-03 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827245', 'tblTempUsageDetail_20' ) end [2025-04-03 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827245', 'tblTempVendorCDR_20' ) start [2025-04-03 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827245', 'tblTempVendorCDR_20' ) end [2025-04-03 18:08:21] Production.INFO: ProcessCDR(1,14827245,1,1,2) [2025-04-03 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827245', 'tblTempUsageDetail_20' ) start [2025-04-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827245', 'tblTempUsageDetail_20' ) end [2025-04-03 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:08:25] Production.INFO: ==16503== Releasing lock... [2025-04-03 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:08:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:09:06 [end_date_ymd] => 2025-04-03 18:09:06 [RateCDR] => 1 ) [2025-04-03 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:09:06' and `end` < '2025-04-03 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:09:19] Production.INFO: count ==4706 [2025-04-03 18:09:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:09:06 - End Time 2025-04-03 18:09:06 [2025-04-03 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827250', 'tblTempUsageDetail_20' ) start [2025-04-03 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827250', 'tblTempUsageDetail_20' ) end [2025-04-03 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827250', 'tblTempVendorCDR_20' ) start [2025-04-03 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827250', 'tblTempVendorCDR_20' ) end [2025-04-03 18:09:22] Production.INFO: ProcessCDR(1,14827250,1,1,2) [2025-04-03 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827250', 'tblTempUsageDetail_20' ) start [2025-04-03 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827250', 'tblTempUsageDetail_20' ) end [2025-04-03 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:09:27] Production.INFO: ==16610== Releasing lock... [2025-04-03 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:09:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:10:06 [end_date_ymd] => 2025-04-03 18:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 15:10:06' and `end` < '2025-04-03 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-03 18:10:20] Production.INFO: count ==4696 [2025-04-03 18:10:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:10:06 - End Time 2025-04-03 18:10:06 [2025-04-03 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827256', 'tblTempUsageDetail_20' ) start [2025-04-03 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827256', 'tblTempUsageDetail_20' ) end [2025-04-03 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827256', 'tblTempVendorCDR_20' ) start [2025-04-03 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827256', 'tblTempVendorCDR_20' ) end [2025-04-03 18:10:22] Production.INFO: ProcessCDR(1,14827256,1,1,2) [2025-04-03 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827256', 'tblTempUsageDetail_20' ) start [2025-04-03 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827256', 'tblTempUsageDetail_20' ) end [2025-04-03 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:10:28] Production.INFO: ==16715== Releasing lock... [2025-04-03 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:10:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-03 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:11:06 [end_date_ymd] => 2025-04-03 18:11:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:11:06' and `end` < '2025-04-03 18: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-03 18:11:19] Production.INFO: count ==4629 [2025-04-03 18:11:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:11:06 - End Time 2025-04-03 18:11:06 [2025-04-03 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827261', 'tblTempUsageDetail_20' ) start [2025-04-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827261', 'tblTempUsageDetail_20' ) end [2025-04-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827261', 'tblTempVendorCDR_20' ) start [2025-04-03 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827261', 'tblTempVendorCDR_20' ) end [2025-04-03 18:11:21] Production.INFO: ProcessCDR(1,14827261,1,1,2) [2025-04-03 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827261', 'tblTempUsageDetail_20' ) start [2025-04-03 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827261', 'tblTempUsageDetail_20' ) end [2025-04-03 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:11:27] Production.INFO: ==16830== Releasing lock... [2025-04-03 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:11:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-03 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:12:05 [end_date_ymd] => 2025-04-03 18:12:05 [RateCDR] => 1 ) [2025-04-03 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:12:05' and `end` < '2025-04-03 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:12:19] Production.INFO: count ==4609 [2025-04-03 18:12:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:12:05 - End Time 2025-04-03 18:12:05 [2025-04-03 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827266', 'tblTempUsageDetail_20' ) start [2025-04-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827266', 'tblTempUsageDetail_20' ) end [2025-04-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827266', 'tblTempVendorCDR_20' ) start [2025-04-03 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827266', 'tblTempVendorCDR_20' ) end [2025-04-03 18:12:21] Production.INFO: ProcessCDR(1,14827266,1,1,2) [2025-04-03 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827266', 'tblTempUsageDetail_20' ) start [2025-04-03 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827266', 'tblTempUsageDetail_20' ) end [2025-04-03 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:12:25] Production.INFO: ==16931== Releasing lock... [2025-04-03 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:12:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-03 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:13:06 [end_date_ymd] => 2025-04-03 18:13:06 [RateCDR] => 1 ) [2025-04-03 18:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:13:06' and `end` < '2025-04-03 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:13:20] Production.INFO: count ==4617 [2025-04-03 18:13:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:13:06 - End Time 2025-04-03 18:13:06 [2025-04-03 18:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827271', 'tblTempUsageDetail_20' ) start [2025-04-03 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827271', 'tblTempUsageDetail_20' ) end [2025-04-03 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827271', 'tblTempVendorCDR_20' ) start [2025-04-03 18:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827271', 'tblTempVendorCDR_20' ) end [2025-04-03 18:13:22] Production.INFO: ProcessCDR(1,14827271,1,1,2) [2025-04-03 18:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827271', 'tblTempUsageDetail_20' ) start [2025-04-03 18:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827271', 'tblTempUsageDetail_20' ) end [2025-04-03 18:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:13:27] Production.INFO: ==17040== Releasing lock... [2025-04-03 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:13:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-03 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:14:05 [end_date_ymd] => 2025-04-03 18:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:14:05' and `end` < '2025-04-03 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-03 18:14:19] Production.INFO: count ==4614 [2025-04-03 18:14:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:14:05 - End Time 2025-04-03 18:14:05 [2025-04-03 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827276', 'tblTempUsageDetail_20' ) start [2025-04-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827276', 'tblTempUsageDetail_20' ) end [2025-04-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827276', 'tblTempVendorCDR_20' ) start [2025-04-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827276', 'tblTempVendorCDR_20' ) end [2025-04-03 18:14:21] Production.INFO: ProcessCDR(1,14827276,1,1,2) [2025-04-03 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827276', 'tblTempUsageDetail_20' ) start [2025-04-03 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827276', 'tblTempUsageDetail_20' ) end [2025-04-03 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:14:27] Production.INFO: ==17147== Releasing lock... [2025-04-03 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:14:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-03 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:15:05 [end_date_ymd] => 2025-04-03 18:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:15:05' and `end` < '2025-04-03 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-03 18:15:19] Production.INFO: count ==4615 [2025-04-03 18:15:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:15:05 - End Time 2025-04-03 18:15:05 [2025-04-03 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827281', 'tblTempUsageDetail_20' ) start [2025-04-03 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827281', 'tblTempUsageDetail_20' ) end [2025-04-03 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827281', 'tblTempVendorCDR_20' ) start [2025-04-03 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827281', 'tblTempVendorCDR_20' ) end [2025-04-03 18:15:21] Production.INFO: ProcessCDR(1,14827281,1,1,2) [2025-04-03 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827281', 'tblTempUsageDetail_20' ) start [2025-04-03 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827281', 'tblTempUsageDetail_20' ) end [2025-04-03 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:15:25] Production.INFO: ==17266== Releasing lock... [2025-04-03 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:15:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-03 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:16:06 [end_date_ymd] => 2025-04-03 18:16:06 [RateCDR] => 1 ) [2025-04-03 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:16:06' and `end` < '2025-04-03 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:16:19] Production.INFO: count ==4609 [2025-04-03 18:16:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:16:06 - End Time 2025-04-03 18:16:06 [2025-04-03 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827286', 'tblTempUsageDetail_20' ) start [2025-04-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827286', 'tblTempUsageDetail_20' ) end [2025-04-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827286', 'tblTempVendorCDR_20' ) start [2025-04-03 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827286', 'tblTempVendorCDR_20' ) end [2025-04-03 18:16:22] Production.INFO: ProcessCDR(1,14827286,1,1,2) [2025-04-03 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827286', 'tblTempUsageDetail_20' ) start [2025-04-03 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827286', 'tblTempUsageDetail_20' ) end [2025-04-03 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:16:25] Production.INFO: ==17385== Releasing lock... [2025-04-03 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:16:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-03 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:17:05 [end_date_ymd] => 2025-04-03 18:17:05 [RateCDR] => 1 ) [2025-04-03 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:17:05' and `end` < '2025-04-03 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:17:19] Production.INFO: count ==4590 [2025-04-03 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:17:05 - End Time 2025-04-03 18:17:05 [2025-04-03 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827291', 'tblTempUsageDetail_20' ) start [2025-04-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827291', 'tblTempUsageDetail_20' ) end [2025-04-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827291', 'tblTempVendorCDR_20' ) start [2025-04-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827291', 'tblTempVendorCDR_20' ) end [2025-04-03 18:17:21] Production.INFO: ProcessCDR(1,14827291,1,1,2) [2025-04-03 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827291', 'tblTempUsageDetail_20' ) start [2025-04-03 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827291', 'tblTempUsageDetail_20' ) end [2025-04-03 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:17:27] Production.INFO: ==17499== Releasing lock... [2025-04-03 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:17:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-03 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:18:06 [end_date_ymd] => 2025-04-03 18:18:06 [RateCDR] => 1 ) [2025-04-03 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:18:06' and `end` < '2025-04-03 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:18:19] Production.INFO: count ==4574 [2025-04-03 18:18:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:18:06 - End Time 2025-04-03 18:18:06 [2025-04-03 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827296', 'tblTempUsageDetail_20' ) start [2025-04-03 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827296', 'tblTempUsageDetail_20' ) end [2025-04-03 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827296', 'tblTempVendorCDR_20' ) start [2025-04-03 18:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827296', 'tblTempVendorCDR_20' ) end [2025-04-03 18:18:22] Production.INFO: ProcessCDR(1,14827296,1,1,2) [2025-04-03 18:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827296', 'tblTempUsageDetail_20' ) start [2025-04-03 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827296', 'tblTempUsageDetail_20' ) end [2025-04-03 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:18:27] Production.INFO: ==17615== Releasing lock... [2025-04-03 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:18:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-03 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:19:06 [end_date_ymd] => 2025-04-03 18:19:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:19:06' and `end` < '2025-04-03 18: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-03 18:19:19] Production.INFO: count ==4568 [2025-04-03 18:19:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:19:06 - End Time 2025-04-03 18:19:06 [2025-04-03 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827301', 'tblTempUsageDetail_20' ) start [2025-04-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827301', 'tblTempUsageDetail_20' ) end [2025-04-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827301', 'tblTempVendorCDR_20' ) start [2025-04-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827301', 'tblTempVendorCDR_20' ) end [2025-04-03 18:19:21] Production.INFO: ProcessCDR(1,14827301,1,1,2) [2025-04-03 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827301', 'tblTempUsageDetail_20' ) start [2025-04-03 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827301', 'tblTempUsageDetail_20' ) end [2025-04-03 18:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:19:27] Production.INFO: ==17772== Releasing lock... [2025-04-03 18:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:19:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-03 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:20:07 [end_date_ymd] => 2025-04-03 18:20:07 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:20:07' and `end` < '2025-04-03 18: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-03 18:20:20] Production.INFO: count ==4560 [2025-04-03 18:20:22] Production.ERROR: pbx CDR StartTime 2025-04-03 15:20:07 - End Time 2025-04-03 18:20:07 [2025-04-03 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827307', 'tblTempUsageDetail_20' ) start [2025-04-03 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827307', 'tblTempUsageDetail_20' ) end [2025-04-03 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827307', 'tblTempVendorCDR_20' ) start [2025-04-03 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827307', 'tblTempVendorCDR_20' ) end [2025-04-03 18:20:22] Production.INFO: ProcessCDR(1,14827307,1,1,2) [2025-04-03 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827307', 'tblTempUsageDetail_20' ) start [2025-04-03 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827307', 'tblTempUsageDetail_20' ) end [2025-04-03 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:20:28] Production.INFO: ==17889== Releasing lock... [2025-04-03 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:20:28] Production.INFO: 62 MB #Memory Used# [2025-04-03 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:21:05 [end_date_ymd] => 2025-04-03 18:21:05 [RateCDR] => 1 ) [2025-04-03 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:21:05' and `end` < '2025-04-03 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:21:19] Production.INFO: count ==4534 [2025-04-03 18:21:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:21:05 - End Time 2025-04-03 18:21:05 [2025-04-03 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827312', 'tblTempUsageDetail_20' ) start [2025-04-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827312', 'tblTempUsageDetail_20' ) end [2025-04-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827312', 'tblTempVendorCDR_20' ) start [2025-04-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827312', 'tblTempVendorCDR_20' ) end [2025-04-03 18:21:21] Production.INFO: ProcessCDR(1,14827312,1,1,2) [2025-04-03 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827312', 'tblTempUsageDetail_20' ) start [2025-04-03 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827312', 'tblTempUsageDetail_20' ) end [2025-04-03 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:21:26] Production.INFO: ==18006== Releasing lock... [2025-04-03 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:21:26] Production.INFO: 62 MB #Memory Used# [2025-04-03 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:22:06 [end_date_ymd] => 2025-04-03 18:22:06 [RateCDR] => 1 ) [2025-04-03 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:22:06' and `end` < '2025-04-03 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:22:19] Production.INFO: count ==4528 [2025-04-03 18:22:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:22:06 - End Time 2025-04-03 18:22:06 [2025-04-03 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827317', 'tblTempUsageDetail_20' ) start [2025-04-03 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827317', 'tblTempUsageDetail_20' ) end [2025-04-03 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827317', 'tblTempVendorCDR_20' ) start [2025-04-03 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827317', 'tblTempVendorCDR_20' ) end [2025-04-03 18:22:21] Production.INFO: ProcessCDR(1,14827317,1,1,2) [2025-04-03 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827317', 'tblTempUsageDetail_20' ) start [2025-04-03 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827317', 'tblTempUsageDetail_20' ) end [2025-04-03 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:22:27] Production.INFO: ==18126== Releasing lock... [2025-04-03 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:22:27] Production.INFO: 62 MB #Memory Used# [2025-04-03 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:23:05 [end_date_ymd] => 2025-04-03 18:23:05 [RateCDR] => 1 ) [2025-04-03 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:23:05' and `end` < '2025-04-03 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:23:19] Production.INFO: count ==4514 [2025-04-03 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:23:05 - End Time 2025-04-03 18:23:05 [2025-04-03 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827322', 'tblTempUsageDetail_20' ) start [2025-04-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827322', 'tblTempUsageDetail_20' ) end [2025-04-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827322', 'tblTempVendorCDR_20' ) start [2025-04-03 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827322', 'tblTempVendorCDR_20' ) end [2025-04-03 18:23:21] Production.INFO: ProcessCDR(1,14827322,1,1,2) [2025-04-03 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827322', 'tblTempUsageDetail_20' ) start [2025-04-03 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827322', 'tblTempUsageDetail_20' ) end [2025-04-03 18:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:23:26] Production.INFO: ==18238== Releasing lock... [2025-04-03 18:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:23:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-03 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:24:06 [end_date_ymd] => 2025-04-03 18:24:06 [RateCDR] => 1 ) [2025-04-03 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:24:06' and `end` < '2025-04-03 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:24:19] Production.INFO: count ==4487 [2025-04-03 18:24:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:24:06 - End Time 2025-04-03 18:24:06 [2025-04-03 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827327', 'tblTempUsageDetail_20' ) start [2025-04-03 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827327', 'tblTempUsageDetail_20' ) end [2025-04-03 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827327', 'tblTempVendorCDR_20' ) start [2025-04-03 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827327', 'tblTempVendorCDR_20' ) end [2025-04-03 18:24:21] Production.INFO: ProcessCDR(1,14827327,1,1,2) [2025-04-03 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827327', 'tblTempUsageDetail_20' ) start [2025-04-03 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827327', 'tblTempUsageDetail_20' ) end [2025-04-03 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:24:25] Production.INFO: ==18333== Releasing lock... [2025-04-03 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:24:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:25:05 [end_date_ymd] => 2025-04-03 18:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:25:05' and `end` < '2025-04-03 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-03 18:25:18] Production.INFO: count ==4492 [2025-04-03 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:25:05 - End Time 2025-04-03 18:25:05 [2025-04-03 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827332', 'tblTempUsageDetail_20' ) start [2025-04-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827332', 'tblTempUsageDetail_20' ) end [2025-04-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827332', 'tblTempVendorCDR_20' ) start [2025-04-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827332', 'tblTempVendorCDR_20' ) end [2025-04-03 18:25:20] Production.INFO: ProcessCDR(1,14827332,1,1,2) [2025-04-03 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827332', 'tblTempUsageDetail_20' ) start [2025-04-03 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827332', 'tblTempUsageDetail_20' ) end [2025-04-03 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:25:24] Production.INFO: ==18425== Releasing lock... [2025-04-03 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:25:24] Production.INFO: 61.5 MB #Memory Used# [2025-04-03 18:26:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:26:21 [end_date_ymd] => 2025-04-03 18:26:21 [RateCDR] => 1 ) [2025-04-03 18:26: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-03 15:26:21' and `end` < '2025-04-03 18:26: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-03 18:26:34] Production.INFO: count ==4482 [2025-04-03 18:27:52] Production.ERROR: pbx CDR StartTime 2025-04-03 15:26:21 - End Time 2025-04-03 18:26:21 [2025-04-03 18:27:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:27:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827337', 'tblTempUsageDetail_20' ) start [2025-04-03 18:28:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827337', 'tblTempUsageDetail_20' ) end [2025-04-03 18:28:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827337', 'tblTempVendorCDR_20' ) start [2025-04-03 18:28:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827337', 'tblTempVendorCDR_20' ) end [2025-04-03 18:28:07] Production.INFO: ProcessCDR(1,14827337,1,1,2) [2025-04-03 18:28:07] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:28:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:28:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827337', 'tblTempUsageDetail_20' ) start [2025-04-03 18:28:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827337', 'tblTempUsageDetail_20' ) end [2025-04-03 18:28:54] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:28:54] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:29:03] Production.INFO: ==18524== Releasing lock... [2025-04-03 18:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:29:03] Production.INFO: 61.5 MB #Memory Used# [2025-04-03 18:30:34] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:30:34 [end_date_ymd] => 2025-04-03 18:30:34 [RateCDR] => 1 ) [2025-04-03 18:30:34] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:30:34' and `end` < '2025-04-03 18:30:34' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:30:47] Production.INFO: count ==4394 [2025-04-03 18:31:43] Production.ERROR: pbx CDR StartTime 2025-04-03 15:30:34 - End Time 2025-04-03 18:30:34 [2025-04-03 18:31:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:31:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827351', 'tblTempUsageDetail_20' ) start [2025-04-03 18:31:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827351', 'tblTempUsageDetail_20' ) end [2025-04-03 18:31:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827351', 'tblTempVendorCDR_20' ) start [2025-04-03 18:32:14] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827351', 'tblTempVendorCDR_20' ) end [2025-04-03 18:32:14] Production.INFO: ProcessCDR(1,14827351,1,1,2) [2025-04-03 18:32:14] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:33:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:33:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827351', 'tblTempUsageDetail_20' ) start [2025-04-03 18:33:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827351', 'tblTempUsageDetail_20' ) end [2025-04-03 18:33:01] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:33:01] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:33:02] Production.INFO: ==18892== Releasing lock... [2025-04-03 18:33:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:33:02] Production.INFO: 60.75 MB #Memory Used# [2025-04-03 18:33:37] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:33:37 [end_date_ymd] => 2025-04-03 18:33:37 [RateCDR] => 1 ) [2025-04-03 18:33:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:33:37' and `end` < '2025-04-03 18:33:37' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:33:51] Production.INFO: count ==4325 [2025-04-03 18:34:47] Production.ERROR: pbx CDR StartTime 2025-04-03 15:33:37 - End Time 2025-04-03 18:33:37 [2025-04-03 18:34:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:34:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827362', 'tblTempUsageDetail_20' ) start [2025-04-03 18:34:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827362', 'tblTempUsageDetail_20' ) end [2025-04-03 18:34:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827362', 'tblTempVendorCDR_20' ) start [2025-04-03 18:34:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827362', 'tblTempVendorCDR_20' ) end [2025-04-03 18:34:47] Production.INFO: ProcessCDR(1,14827362,1,1,2) [2025-04-03 18:34:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:34:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:34:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:34:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:34:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827362', 'tblTempUsageDetail_20' ) start [2025-04-03 18:34:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827362', 'tblTempUsageDetail_20' ) end [2025-04-03 18:34:53] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:34:53] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:34:53] Production.INFO: ==19175== Releasing lock... [2025-04-03 18:34:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:34:53] Production.INFO: 60.25 MB #Memory Used# [2025-04-03 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:35:05 [end_date_ymd] => 2025-04-03 18:35:05 [RateCDR] => 1 ) [2025-04-03 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:35:05' and `end` < '2025-04-03 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-03 18:35:19] Production.INFO: count ==4280 [2025-04-03 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:35:05 - End Time 2025-04-03 18:35:05 [2025-04-03 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827370', 'tblTempUsageDetail_20' ) start [2025-04-03 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827370', 'tblTempUsageDetail_20' ) end [2025-04-03 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827370', 'tblTempVendorCDR_20' ) start [2025-04-03 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827370', 'tblTempVendorCDR_20' ) end [2025-04-03 18:35:21] Production.INFO: ProcessCDR(1,14827370,1,1,2) [2025-04-03 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827370', 'tblTempUsageDetail_20' ) start [2025-04-03 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827370', 'tblTempUsageDetail_20' ) end [2025-04-03 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:35:26] Production.INFO: ==19403== Releasing lock... [2025-04-03 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:35:26] Production.INFO: 60 MB #Memory Used# [2025-04-03 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:36:05 [end_date_ymd] => 2025-04-03 18:36:05 [RateCDR] => 1 ) [2025-04-03 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:36:05' and `end` < '2025-04-03 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:36:19] Production.INFO: count ==4277 [2025-04-03 18:36:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:36:05 - End Time 2025-04-03 18:36:05 [2025-04-03 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827375', 'tblTempUsageDetail_20' ) start [2025-04-03 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827375', 'tblTempUsageDetail_20' ) end [2025-04-03 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827375', 'tblTempVendorCDR_20' ) start [2025-04-03 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827375', 'tblTempVendorCDR_20' ) end [2025-04-03 18:36:21] Production.INFO: ProcessCDR(1,14827375,1,1,2) [2025-04-03 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827375', 'tblTempUsageDetail_20' ) start [2025-04-03 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827375', 'tblTempUsageDetail_20' ) end [2025-04-03 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:36:26] Production.INFO: ==19495== Releasing lock... [2025-04-03 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:36:26] Production.INFO: 60 MB #Memory Used# [2025-04-03 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:37:05 [end_date_ymd] => 2025-04-03 18:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:37:05' and `end` < '2025-04-03 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-03 18:37:19] Production.INFO: count ==4260 [2025-04-03 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:37:05 - End Time 2025-04-03 18:37:05 [2025-04-03 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827380', 'tblTempUsageDetail_20' ) start [2025-04-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827380', 'tblTempUsageDetail_20' ) end [2025-04-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827380', 'tblTempVendorCDR_20' ) start [2025-04-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827380', 'tblTempVendorCDR_20' ) end [2025-04-03 18:37:20] Production.INFO: ProcessCDR(1,14827380,1,1,2) [2025-04-03 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827380', 'tblTempUsageDetail_20' ) start [2025-04-03 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827380', 'tblTempUsageDetail_20' ) end [2025-04-03 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:37:24] Production.INFO: ==19589== Releasing lock... [2025-04-03 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:37:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-03 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:38:05 [end_date_ymd] => 2025-04-03 18:38:05 [RateCDR] => 1 ) [2025-04-03 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:38:05' and `end` < '2025-04-03 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:38:18] Production.INFO: count ==4262 [2025-04-03 18:38:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:38:05 - End Time 2025-04-03 18:38:05 [2025-04-03 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827385', 'tblTempUsageDetail_20' ) start [2025-04-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827385', 'tblTempUsageDetail_20' ) end [2025-04-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827385', 'tblTempVendorCDR_20' ) start [2025-04-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827385', 'tblTempVendorCDR_20' ) end [2025-04-03 18:38:20] Production.INFO: ProcessCDR(1,14827385,1,1,2) [2025-04-03 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827385', 'tblTempUsageDetail_20' ) start [2025-04-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827385', 'tblTempUsageDetail_20' ) end [2025-04-03 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:38:26] Production.INFO: ==19673== Releasing lock... [2025-04-03 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:38:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-03 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:39:05 [end_date_ymd] => 2025-04-03 18:39:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:39:05' and `end` < '2025-04-03 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-03 18:39:18] Production.INFO: count ==4248 [2025-04-03 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:39:05 - End Time 2025-04-03 18:39:05 [2025-04-03 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827390', 'tblTempUsageDetail_20' ) start [2025-04-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827390', 'tblTempUsageDetail_20' ) end [2025-04-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827390', 'tblTempVendorCDR_20' ) start [2025-04-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827390', 'tblTempVendorCDR_20' ) end [2025-04-03 18:39:20] Production.INFO: ProcessCDR(1,14827390,1,1,2) [2025-04-03 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827390', 'tblTempUsageDetail_20' ) start [2025-04-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827390', 'tblTempUsageDetail_20' ) end [2025-04-03 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:39:24] Production.INFO: ==19746== Releasing lock... [2025-04-03 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:39:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-03 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:40:06 [end_date_ymd] => 2025-04-03 18:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 15:40:06' and `end` < '2025-04-03 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-03 18:40:20] Production.INFO: count ==4260 [2025-04-03 18:40:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:40:06 - End Time 2025-04-03 18:40:06 [2025-04-03 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827395', 'tblTempUsageDetail_20' ) start [2025-04-03 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827395', 'tblTempUsageDetail_20' ) end [2025-04-03 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827395', 'tblTempVendorCDR_20' ) start [2025-04-03 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827395', 'tblTempVendorCDR_20' ) end [2025-04-03 18:40:22] Production.INFO: ProcessCDR(1,14827395,1,1,2) [2025-04-03 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827395', 'tblTempUsageDetail_20' ) start [2025-04-03 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827395', 'tblTempUsageDetail_20' ) end [2025-04-03 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:40:27] Production.INFO: ==19822== Releasing lock... [2025-04-03 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:40:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-03 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:41:05 [end_date_ymd] => 2025-04-03 18:41:05 [RateCDR] => 1 ) [2025-04-03 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:41:05' and `end` < '2025-04-03 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:41:19] Production.INFO: count ==4211 [2025-04-03 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:41:05 - End Time 2025-04-03 18:41:05 [2025-04-03 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827401', 'tblTempUsageDetail_20' ) start [2025-04-03 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827401', 'tblTempUsageDetail_20' ) end [2025-04-03 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827401', 'tblTempVendorCDR_20' ) start [2025-04-03 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827401', 'tblTempVendorCDR_20' ) end [2025-04-03 18:41:21] Production.INFO: ProcessCDR(1,14827401,1,1,2) [2025-04-03 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827401', 'tblTempUsageDetail_20' ) start [2025-04-03 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827401', 'tblTempUsageDetail_20' ) end [2025-04-03 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:41:24] Production.INFO: ==19897== Releasing lock... [2025-04-03 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:41:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-03 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:42:05 [end_date_ymd] => 2025-04-03 18:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:42:05' and `end` < '2025-04-03 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-03 18:42:19] Production.INFO: count ==4182 [2025-04-03 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:42:05 - End Time 2025-04-03 18:42:05 [2025-04-03 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827406', 'tblTempUsageDetail_20' ) start [2025-04-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827406', 'tblTempUsageDetail_20' ) end [2025-04-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827406', 'tblTempVendorCDR_20' ) start [2025-04-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827406', 'tblTempVendorCDR_20' ) end [2025-04-03 18:42:20] Production.INFO: ProcessCDR(1,14827406,1,1,2) [2025-04-03 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827406', 'tblTempUsageDetail_20' ) start [2025-04-03 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827406', 'tblTempUsageDetail_20' ) end [2025-04-03 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:42:24] Production.INFO: ==19966== Releasing lock... [2025-04-03 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:42:24] Production.INFO: 59.25 MB #Memory Used# [2025-04-03 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:43:06 [end_date_ymd] => 2025-04-03 18:43:06 [RateCDR] => 1 ) [2025-04-03 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-03 15:43:06' and `end` < '2025-04-03 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-03 18:43:19] Production.INFO: count ==4163 [2025-04-03 18:43:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:43:06 - End Time 2025-04-03 18:43:06 [2025-04-03 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827411', 'tblTempUsageDetail_20' ) start [2025-04-03 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827411', 'tblTempUsageDetail_20' ) end [2025-04-03 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827411', 'tblTempVendorCDR_20' ) start [2025-04-03 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827411', 'tblTempVendorCDR_20' ) end [2025-04-03 18:43:21] Production.INFO: ProcessCDR(1,14827411,1,1,2) [2025-04-03 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827411', 'tblTempUsageDetail_20' ) start [2025-04-03 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827411', 'tblTempUsageDetail_20' ) end [2025-04-03 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:43:25] Production.INFO: ==20050== Releasing lock... [2025-04-03 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:43:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-03 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:44:06 [end_date_ymd] => 2025-04-03 18:44:06 [RateCDR] => 1 ) [2025-04-03 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:44:06' and `end` < '2025-04-03 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:44:19] Production.INFO: count ==4153 [2025-04-03 18:44:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:44:06 - End Time 2025-04-03 18:44:06 [2025-04-03 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827416', 'tblTempUsageDetail_20' ) start [2025-04-03 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827416', 'tblTempUsageDetail_20' ) end [2025-04-03 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827416', 'tblTempVendorCDR_20' ) start [2025-04-03 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827416', 'tblTempVendorCDR_20' ) end [2025-04-03 18:44:21] Production.INFO: ProcessCDR(1,14827416,1,1,2) [2025-04-03 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827416', 'tblTempUsageDetail_20' ) start [2025-04-03 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827416', 'tblTempUsageDetail_20' ) end [2025-04-03 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:44:26] Production.INFO: ==20120== Releasing lock... [2025-04-03 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:44:26] Production.INFO: 59 MB #Memory Used# [2025-04-03 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:45:05 [end_date_ymd] => 2025-04-03 18:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:45:05' and `end` < '2025-04-03 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-03 18:45:18] Production.INFO: count ==4144 [2025-04-03 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:45:05 - End Time 2025-04-03 18:45:05 [2025-04-03 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827421', 'tblTempUsageDetail_20' ) start [2025-04-03 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827421', 'tblTempUsageDetail_20' ) end [2025-04-03 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827421', 'tblTempVendorCDR_20' ) start [2025-04-03 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827421', 'tblTempVendorCDR_20' ) end [2025-04-03 18:45:20] Production.INFO: ProcessCDR(1,14827421,1,1,2) [2025-04-03 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827421', 'tblTempUsageDetail_20' ) start [2025-04-03 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827421', 'tblTempUsageDetail_20' ) end [2025-04-03 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:45:23] Production.INFO: ==20199== Releasing lock... [2025-04-03 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:45:23] Production.INFO: 59 MB #Memory Used# [2025-04-03 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:46:06 [end_date_ymd] => 2025-04-03 18:46:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:46:06' and `end` < '2025-04-03 18: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-03 18:46:19] Production.INFO: count ==4126 [2025-04-03 18:46:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:46:06 - End Time 2025-04-03 18:46:06 [2025-04-03 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827426', 'tblTempUsageDetail_20' ) start [2025-04-03 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827426', 'tblTempUsageDetail_20' ) end [2025-04-03 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827426', 'tblTempVendorCDR_20' ) start [2025-04-03 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827426', 'tblTempVendorCDR_20' ) end [2025-04-03 18:46:21] Production.INFO: ProcessCDR(1,14827426,1,1,2) [2025-04-03 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827426', 'tblTempUsageDetail_20' ) start [2025-04-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827426', 'tblTempUsageDetail_20' ) end [2025-04-03 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:46:24] Production.INFO: ==20281== Releasing lock... [2025-04-03 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:46:24] Production.INFO: 58.75 MB #Memory Used# [2025-04-03 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:47:05 [end_date_ymd] => 2025-04-03 18:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:47:05' and `end` < '2025-04-03 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-03 18:47:18] Production.INFO: count ==4135 [2025-04-03 18:47:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:47:05 - End Time 2025-04-03 18:47:05 [2025-04-03 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827431', 'tblTempUsageDetail_20' ) start [2025-04-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827431', 'tblTempUsageDetail_20' ) end [2025-04-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827431', 'tblTempVendorCDR_20' ) start [2025-04-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827431', 'tblTempVendorCDR_20' ) end [2025-04-03 18:47:20] Production.INFO: ProcessCDR(1,14827431,1,1,2) [2025-04-03 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827431', 'tblTempUsageDetail_20' ) start [2025-04-03 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827431', 'tblTempUsageDetail_20' ) end [2025-04-03 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:47:25] Production.INFO: ==20355== Releasing lock... [2025-04-03 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:47:25] Production.INFO: 59 MB #Memory Used# [2025-04-03 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:48:06 [end_date_ymd] => 2025-04-03 18:48:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:48:06' and `end` < '2025-04-03 18: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-03 18:48:19] Production.INFO: count ==4138 [2025-04-03 18:48:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:48:06 - End Time 2025-04-03 18:48:06 [2025-04-03 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827436', 'tblTempUsageDetail_20' ) start [2025-04-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827436', 'tblTempUsageDetail_20' ) end [2025-04-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827436', 'tblTempVendorCDR_20' ) start [2025-04-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827436', 'tblTempVendorCDR_20' ) end [2025-04-03 18:48:21] Production.INFO: ProcessCDR(1,14827436,1,1,2) [2025-04-03 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827436', 'tblTempUsageDetail_20' ) start [2025-04-03 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827436', 'tblTempUsageDetail_20' ) end [2025-04-03 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:48:26] Production.INFO: ==20436== Releasing lock... [2025-04-03 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:48:26] Production.INFO: 59 MB #Memory Used# [2025-04-03 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:49:05 [end_date_ymd] => 2025-04-03 18:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:49:05' and `end` < '2025-04-03 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-03 18:49:19] Production.INFO: count ==4085 [2025-04-03 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:49:05 - End Time 2025-04-03 18:49:05 [2025-04-03 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827441', 'tblTempUsageDetail_20' ) start [2025-04-03 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827441', 'tblTempUsageDetail_20' ) end [2025-04-03 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827441', 'tblTempVendorCDR_20' ) start [2025-04-03 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827441', 'tblTempVendorCDR_20' ) end [2025-04-03 18:49:20] Production.INFO: ProcessCDR(1,14827441,1,1,2) [2025-04-03 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827441', 'tblTempUsageDetail_20' ) start [2025-04-03 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827441', 'tblTempUsageDetail_20' ) end [2025-04-03 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:49:24] Production.INFO: ==20518== Releasing lock... [2025-04-03 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:49:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-03 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:50:06 [end_date_ymd] => 2025-04-03 18:50:06 [RateCDR] => 1 ) [2025-04-03 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:50:06' and `end` < '2025-04-03 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:50:19] Production.INFO: count ==4030 [2025-04-03 18:50:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:50:06 - End Time 2025-04-03 18:50:06 [2025-04-03 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827447', 'tblTempUsageDetail_20' ) start [2025-04-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827447', 'tblTempUsageDetail_20' ) end [2025-04-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827447', 'tblTempVendorCDR_20' ) start [2025-04-03 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827447', 'tblTempVendorCDR_20' ) end [2025-04-03 18:50:21] Production.INFO: ProcessCDR(1,14827447,1,1,2) [2025-04-03 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827447', 'tblTempUsageDetail_20' ) start [2025-04-03 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827447', 'tblTempUsageDetail_20' ) end [2025-04-03 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:50:26] Production.INFO: ==20643== Releasing lock... [2025-04-03 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:50:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-03 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:51:05 [end_date_ymd] => 2025-04-03 18:51:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:51:05' and `end` < '2025-04-03 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-03 18:51:18] Production.INFO: count ==3851 [2025-04-03 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:51:05 - End Time 2025-04-03 18:51:05 [2025-04-03 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827452', 'tblTempUsageDetail_20' ) start [2025-04-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827452', 'tblTempUsageDetail_20' ) end [2025-04-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827452', 'tblTempVendorCDR_20' ) start [2025-04-03 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827452', 'tblTempVendorCDR_20' ) end [2025-04-03 18:51:20] Production.INFO: ProcessCDR(1,14827452,1,1,2) [2025-04-03 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827452', 'tblTempUsageDetail_20' ) start [2025-04-03 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827452', 'tblTempUsageDetail_20' ) end [2025-04-03 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:51:26] Production.INFO: ==20724== Releasing lock... [2025-04-03 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:51:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-03 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:52:06 [end_date_ymd] => 2025-04-03 18:52:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:52:06' and `end` < '2025-04-03 18: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-03 18:52:19] Production.INFO: count ==3777 [2025-04-03 18:52:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:52:06 - End Time 2025-04-03 18:52:06 [2025-04-03 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827457', 'tblTempUsageDetail_20' ) start [2025-04-03 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827457', 'tblTempUsageDetail_20' ) end [2025-04-03 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827457', 'tblTempVendorCDR_20' ) start [2025-04-03 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827457', 'tblTempVendorCDR_20' ) end [2025-04-03 18:52:21] Production.INFO: ProcessCDR(1,14827457,1,1,2) [2025-04-03 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827457', 'tblTempUsageDetail_20' ) start [2025-04-03 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827457', 'tblTempUsageDetail_20' ) end [2025-04-03 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:52:24] Production.INFO: ==20806== Releasing lock... [2025-04-03 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:52:24] Production.INFO: 56.75 MB #Memory Used# [2025-04-03 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:53:05 [end_date_ymd] => 2025-04-03 18:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:53:05' and `end` < '2025-04-03 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-03 18:53:19] Production.INFO: count ==3761 [2025-04-03 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:53:05 - End Time 2025-04-03 18:53:05 [2025-04-03 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827462', 'tblTempUsageDetail_20' ) start [2025-04-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827462', 'tblTempUsageDetail_20' ) end [2025-04-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827462', 'tblTempVendorCDR_20' ) start [2025-04-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827462', 'tblTempVendorCDR_20' ) end [2025-04-03 18:53:20] Production.INFO: ProcessCDR(1,14827462,1,1,2) [2025-04-03 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827462', 'tblTempUsageDetail_20' ) start [2025-04-03 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827462', 'tblTempUsageDetail_20' ) end [2025-04-03 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:53:24] Production.INFO: ==20883== Releasing lock... [2025-04-03 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:53:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-03 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:54:06 [end_date_ymd] => 2025-04-03 18:54:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:54:06' and `end` < '2025-04-03 18: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-03 18:54:19] Production.INFO: count ==3748 [2025-04-03 18:54:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:54:06 - End Time 2025-04-03 18:54:06 [2025-04-03 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827467', 'tblTempUsageDetail_20' ) start [2025-04-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827467', 'tblTempUsageDetail_20' ) end [2025-04-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827467', 'tblTempVendorCDR_20' ) start [2025-04-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827467', 'tblTempVendorCDR_20' ) end [2025-04-03 18:54:20] Production.INFO: ProcessCDR(1,14827467,1,1,2) [2025-04-03 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827467', 'tblTempUsageDetail_20' ) start [2025-04-03 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827467', 'tblTempUsageDetail_20' ) end [2025-04-03 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:54:25] Production.INFO: ==20966== Releasing lock... [2025-04-03 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:54:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-03 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:55:05 [end_date_ymd] => 2025-04-03 18:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 15:55:05' and `end` < '2025-04-03 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-03 18:55:18] Production.INFO: count ==3755 [2025-04-03 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:55:05 - End Time 2025-04-03 18:55:05 [2025-04-03 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827472', 'tblTempUsageDetail_20' ) start [2025-04-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827472', 'tblTempUsageDetail_20' ) end [2025-04-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827472', 'tblTempVendorCDR_20' ) start [2025-04-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827472', 'tblTempVendorCDR_20' ) end [2025-04-03 18:55:20] Production.INFO: ProcessCDR(1,14827472,1,1,2) [2025-04-03 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827472', 'tblTempUsageDetail_20' ) start [2025-04-03 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827472', 'tblTempUsageDetail_20' ) end [2025-04-03 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:55:25] Production.INFO: ==21049== Releasing lock... [2025-04-03 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:55:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-03 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:56:06 [end_date_ymd] => 2025-04-03 18:56:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:56:06' and `end` < '2025-04-03 18: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-03 18:56:19] Production.INFO: count ==3730 [2025-04-03 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:56:06 - End Time 2025-04-03 18:56:06 [2025-04-03 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827477', 'tblTempUsageDetail_20' ) start [2025-04-03 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827477', 'tblTempUsageDetail_20' ) end [2025-04-03 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827477', 'tblTempVendorCDR_20' ) start [2025-04-03 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827477', 'tblTempVendorCDR_20' ) end [2025-04-03 18:56:21] Production.INFO: ProcessCDR(1,14827477,1,1,2) [2025-04-03 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827477', 'tblTempUsageDetail_20' ) start [2025-04-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827477', 'tblTempUsageDetail_20' ) end [2025-04-03 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:56:24] Production.INFO: ==21142== Releasing lock... [2025-04-03 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:56:24] Production.INFO: 56 MB #Memory Used# [2025-04-03 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:57:05 [end_date_ymd] => 2025-04-03 18:57:05 [RateCDR] => 1 ) [2025-04-03 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:57:05' and `end` < '2025-04-03 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:57:19] Production.INFO: count ==3720 [2025-04-03 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:57:05 - End Time 2025-04-03 18:57:05 [2025-04-03 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827482', 'tblTempUsageDetail_20' ) start [2025-04-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827482', 'tblTempUsageDetail_20' ) end [2025-04-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827482', 'tblTempVendorCDR_20' ) start [2025-04-03 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827482', 'tblTempVendorCDR_20' ) end [2025-04-03 18:57:20] Production.INFO: ProcessCDR(1,14827482,1,1,2) [2025-04-03 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827482', 'tblTempUsageDetail_20' ) start [2025-04-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827482', 'tblTempUsageDetail_20' ) end [2025-04-03 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:57:24] Production.INFO: ==21231== Releasing lock... [2025-04-03 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:57:24] Production.INFO: 56.25 MB #Memory Used# [2025-04-03 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:58:06 [end_date_ymd] => 2025-04-03 18:58:06 [RateCDR] => 1 ) [2025-04-03 18: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-03 15:58:06' and `end` < '2025-04-03 18: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-03 18:58:19] Production.INFO: count ==3714 [2025-04-03 18:58:21] Production.ERROR: pbx CDR StartTime 2025-04-03 15:58:06 - End Time 2025-04-03 18:58:06 [2025-04-03 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827487', 'tblTempUsageDetail_20' ) start [2025-04-03 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827487', 'tblTempUsageDetail_20' ) end [2025-04-03 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827487', 'tblTempVendorCDR_20' ) start [2025-04-03 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827487', 'tblTempVendorCDR_20' ) end [2025-04-03 18:58:21] Production.INFO: ProcessCDR(1,14827487,1,1,2) [2025-04-03 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827487', 'tblTempUsageDetail_20' ) start [2025-04-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827487', 'tblTempUsageDetail_20' ) end [2025-04-03 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:58:24] Production.INFO: ==21318== Releasing lock... [2025-04-03 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:58:24] Production.INFO: 56.5 MB #Memory Used# [2025-04-03 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 15:59:05 [end_date_ymd] => 2025-04-03 18:59:05 [RateCDR] => 1 ) [2025-04-03 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 15:59:05' and `end` < '2025-04-03 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 18:59:18] Production.INFO: count ==3701 [2025-04-03 18:59:20] Production.ERROR: pbx CDR StartTime 2025-04-03 15:59:05 - End Time 2025-04-03 18:59:05 [2025-04-03 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827492', 'tblTempUsageDetail_20' ) start [2025-04-03 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827492', 'tblTempUsageDetail_20' ) end [2025-04-03 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827492', 'tblTempVendorCDR_20' ) start [2025-04-03 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827492', 'tblTempVendorCDR_20' ) end [2025-04-03 18:59:20] Production.INFO: ProcessCDR(1,14827492,1,1,2) [2025-04-03 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827492', 'tblTempUsageDetail_20' ) start [2025-04-03 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827492', 'tblTempUsageDetail_20' ) end [2025-04-03 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 18:59:23] Production.INFO: ==21404== Releasing lock... [2025-04-03 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 18:59:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-03 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:00:07 [end_date_ymd] => 2025-04-03 19:00:07 [RateCDR] => 1 ) [2025-04-03 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:00:07' and `end` < '2025-04-03 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:00:20] Production.INFO: count ==3684 [2025-04-03 19:00:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:00:07 - End Time 2025-04-03 19:00:07 [2025-04-03 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827498', 'tblTempUsageDetail_20' ) start [2025-04-03 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827498', 'tblTempUsageDetail_20' ) end [2025-04-03 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827498', 'tblTempVendorCDR_20' ) start [2025-04-03 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827498', 'tblTempVendorCDR_20' ) end [2025-04-03 19:00:22] Production.INFO: ProcessCDR(1,14827498,1,1,2) [2025-04-03 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827498', 'tblTempUsageDetail_20' ) start [2025-04-03 19:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827498', 'tblTempUsageDetail_20' ) end [2025-04-03 19:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:00:27] Production.INFO: ==21496== Releasing lock... [2025-04-03 19:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:00:27] Production.INFO: 55.5 MB #Memory Used# [2025-04-03 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:01:05 [end_date_ymd] => 2025-04-03 19:01:05 [RateCDR] => 1 ) [2025-04-03 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:01:05' and `end` < '2025-04-03 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:01:18] Production.INFO: count ==3644 [2025-04-03 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:01:05 - End Time 2025-04-03 19:01:05 [2025-04-03 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827503', 'tblTempUsageDetail_20' ) start [2025-04-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827503', 'tblTempUsageDetail_20' ) end [2025-04-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827503', 'tblTempVendorCDR_20' ) start [2025-04-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827503', 'tblTempVendorCDR_20' ) end [2025-04-03 19:01:20] Production.INFO: ProcessCDR(1,14827503,1,1,2) [2025-04-03 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827503', 'tblTempUsageDetail_20' ) start [2025-04-03 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827503', 'tblTempUsageDetail_20' ) end [2025-04-03 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:01:23] Production.INFO: ==21598== Releasing lock... [2025-04-03 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:01:23] Production.INFO: 55.5 MB #Memory Used# [2025-04-03 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:02:06 [end_date_ymd] => 2025-04-03 19:02:06 [RateCDR] => 1 ) [2025-04-03 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:02:06' and `end` < '2025-04-03 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:02:20] Production.INFO: count ==3645 [2025-04-03 19:02:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:02:06 - End Time 2025-04-03 19:02:06 [2025-04-03 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827508', 'tblTempUsageDetail_20' ) start [2025-04-03 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827508', 'tblTempUsageDetail_20' ) end [2025-04-03 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827508', 'tblTempVendorCDR_20' ) start [2025-04-03 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827508', 'tblTempVendorCDR_20' ) end [2025-04-03 19:02:21] Production.INFO: ProcessCDR(1,14827508,1,1,2) [2025-04-03 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827508', 'tblTempUsageDetail_20' ) start [2025-04-03 19:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827508', 'tblTempUsageDetail_20' ) end [2025-04-03 19:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:02:28] Production.INFO: ==21760== Releasing lock... [2025-04-03 19:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:02:28] Production.INFO: 55.25 MB #Memory Used# [2025-04-03 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:03:05 [end_date_ymd] => 2025-04-03 19:03:05 [RateCDR] => 1 ) [2025-04-03 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:03:05' and `end` < '2025-04-03 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:03:19] Production.INFO: count ==3651 [2025-04-03 19:03:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:03:05 - End Time 2025-04-03 19:03:05 [2025-04-03 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827513', 'tblTempUsageDetail_20' ) start [2025-04-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827513', 'tblTempUsageDetail_20' ) end [2025-04-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827513', 'tblTempVendorCDR_20' ) start [2025-04-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827513', 'tblTempVendorCDR_20' ) end [2025-04-03 19:03:20] Production.INFO: ProcessCDR(1,14827513,1,1,2) [2025-04-03 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827513', 'tblTempUsageDetail_20' ) start [2025-04-03 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827513', 'tblTempUsageDetail_20' ) end [2025-04-03 19:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:03:26] Production.INFO: ==21836== Releasing lock... [2025-04-03 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:03:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-03 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:04:06 [end_date_ymd] => 2025-04-03 19:04:06 [RateCDR] => 1 ) [2025-04-03 19:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:04:06' and `end` < '2025-04-03 19:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:04:20] Production.INFO: count ==3619 [2025-04-03 19:04:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:04:06 - End Time 2025-04-03 19:04:06 [2025-04-03 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827518', 'tblTempUsageDetail_20' ) start [2025-04-03 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827518', 'tblTempUsageDetail_20' ) end [2025-04-03 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827518', 'tblTempVendorCDR_20' ) start [2025-04-03 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827518', 'tblTempVendorCDR_20' ) end [2025-04-03 19:04:21] Production.INFO: ProcessCDR(1,14827518,1,1,2) [2025-04-03 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827518', 'tblTempUsageDetail_20' ) start [2025-04-03 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827518', 'tblTempUsageDetail_20' ) end [2025-04-03 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:04:25] Production.INFO: ==21923== Releasing lock... [2025-04-03 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:04:25] Production.INFO: 56 MB #Memory Used# [2025-04-03 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:05:06 [end_date_ymd] => 2025-04-03 19:05:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:05:06' and `end` < '2025-04-03 19: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-03 19:05:19] Production.INFO: count ==3581 [2025-04-03 19:05:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:05:06 - End Time 2025-04-03 19:05:06 [2025-04-03 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827523', 'tblTempUsageDetail_20' ) start [2025-04-03 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827523', 'tblTempUsageDetail_20' ) end [2025-04-03 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827523', 'tblTempVendorCDR_20' ) start [2025-04-03 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827523', 'tblTempVendorCDR_20' ) end [2025-04-03 19:05:21] Production.INFO: ProcessCDR(1,14827523,1,1,2) [2025-04-03 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827523', 'tblTempUsageDetail_20' ) start [2025-04-03 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827523', 'tblTempUsageDetail_20' ) end [2025-04-03 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:05:25] Production.INFO: ==22116== Releasing lock... [2025-04-03 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:05:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-03 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:06:05 [end_date_ymd] => 2025-04-03 19:06:05 [RateCDR] => 1 ) [2025-04-03 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:06:05' and `end` < '2025-04-03 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:06:19] Production.INFO: count ==3580 [2025-04-03 19:06:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:06:05 - End Time 2025-04-03 19:06:05 [2025-04-03 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827528', 'tblTempUsageDetail_20' ) start [2025-04-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827528', 'tblTempUsageDetail_20' ) end [2025-04-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827528', 'tblTempVendorCDR_20' ) start [2025-04-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827528', 'tblTempVendorCDR_20' ) end [2025-04-03 19:06:20] Production.INFO: ProcessCDR(1,14827528,1,1,2) [2025-04-03 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827528', 'tblTempUsageDetail_20' ) start [2025-04-03 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827528', 'tblTempUsageDetail_20' ) end [2025-04-03 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:06:26] Production.INFO: ==22198== Releasing lock... [2025-04-03 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:06:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-03 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:07:05 [end_date_ymd] => 2025-04-03 19:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:07:05' and `end` < '2025-04-03 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-03 19:07:19] Production.INFO: count ==3576 [2025-04-03 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:07:05 - End Time 2025-04-03 19:07:05 [2025-04-03 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827533', 'tblTempUsageDetail_20' ) start [2025-04-03 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827533', 'tblTempUsageDetail_20' ) end [2025-04-03 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827533', 'tblTempVendorCDR_20' ) start [2025-04-03 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827533', 'tblTempVendorCDR_20' ) end [2025-04-03 19:07:20] Production.INFO: ProcessCDR(1,14827533,1,1,2) [2025-04-03 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827533', 'tblTempUsageDetail_20' ) start [2025-04-03 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827533', 'tblTempUsageDetail_20' ) end [2025-04-03 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:07:24] Production.INFO: ==22278== Releasing lock... [2025-04-03 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:07:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-03 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:08:06 [end_date_ymd] => 2025-04-03 19:08:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:08:06' and `end` < '2025-04-03 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-03 19:08:19] Production.INFO: count ==3572 [2025-04-03 19:08:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:08:06 - End Time 2025-04-03 19:08:06 [2025-04-03 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827538', 'tblTempUsageDetail_20' ) start [2025-04-03 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827538', 'tblTempUsageDetail_20' ) end [2025-04-03 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827538', 'tblTempVendorCDR_20' ) start [2025-04-03 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827538', 'tblTempVendorCDR_20' ) end [2025-04-03 19:08:21] Production.INFO: ProcessCDR(1,14827538,1,1,2) [2025-04-03 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827538', 'tblTempUsageDetail_20' ) start [2025-04-03 19:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827538', 'tblTempUsageDetail_20' ) end [2025-04-03 19:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:08:27] Production.INFO: ==22358== Releasing lock... [2025-04-03 19:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:08:27] Production.INFO: 55.75 MB #Memory Used# [2025-04-03 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:09:06 [end_date_ymd] => 2025-04-03 19:09:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:09:06' and `end` < '2025-04-03 19: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-03 19:09:19] Production.INFO: count ==3572 [2025-04-03 19:09:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:09:06 - End Time 2025-04-03 19:09:06 [2025-04-03 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827543', 'tblTempUsageDetail_20' ) start [2025-04-03 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827543', 'tblTempUsageDetail_20' ) end [2025-04-03 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827543', 'tblTempVendorCDR_20' ) start [2025-04-03 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827543', 'tblTempVendorCDR_20' ) end [2025-04-03 19:09:21] Production.INFO: ProcessCDR(1,14827543,1,1,2) [2025-04-03 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827543', 'tblTempUsageDetail_20' ) start [2025-04-03 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827543', 'tblTempUsageDetail_20' ) end [2025-04-03 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:09:26] Production.INFO: ==22522== Releasing lock... [2025-04-03 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:09:26] Production.INFO: 56 MB #Memory Used# [2025-04-03 19:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:10:07 [end_date_ymd] => 2025-04-03 19:10:07 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:10:07' and `end` < '2025-04-03 19: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-03 19:10:20] Production.INFO: count ==3556 [2025-04-03 19:10:22] Production.ERROR: pbx CDR StartTime 2025-04-03 16:10:07 - End Time 2025-04-03 19:10:07 [2025-04-03 19:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827548', 'tblTempUsageDetail_20' ) start [2025-04-03 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827548', 'tblTempUsageDetail_20' ) end [2025-04-03 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827548', 'tblTempVendorCDR_20' ) start [2025-04-03 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827548', 'tblTempVendorCDR_20' ) end [2025-04-03 19:10:22] Production.INFO: ProcessCDR(1,14827548,1,1,2) [2025-04-03 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827548', 'tblTempUsageDetail_20' ) start [2025-04-03 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827548', 'tblTempUsageDetail_20' ) end [2025-04-03 19:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:10:28] Production.INFO: ==22598== Releasing lock... [2025-04-03 19:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:10:28] Production.INFO: 54.5 MB #Memory Used# [2025-04-03 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:11:06 [end_date_ymd] => 2025-04-03 19:11:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:11:06' and `end` < '2025-04-03 19: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-03 19:11:19] Production.INFO: count ==3480 [2025-04-03 19:11:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:11:06 - End Time 2025-04-03 19:11:06 [2025-04-03 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827554', 'tblTempUsageDetail_20' ) start [2025-04-03 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827554', 'tblTempUsageDetail_20' ) end [2025-04-03 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827554', 'tblTempVendorCDR_20' ) start [2025-04-03 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827554', 'tblTempVendorCDR_20' ) end [2025-04-03 19:11:21] Production.INFO: ProcessCDR(1,14827554,1,1,2) [2025-04-03 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827554', 'tblTempUsageDetail_20' ) start [2025-04-03 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827554', 'tblTempUsageDetail_20' ) end [2025-04-03 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:11:25] Production.INFO: ==22683== Releasing lock... [2025-04-03 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:11:25] Production.INFO: 55 MB #Memory Used# [2025-04-03 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:12:06 [end_date_ymd] => 2025-04-03 19:12:06 [RateCDR] => 1 ) [2025-04-03 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:12:06' and `end` < '2025-04-03 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:12:19] Production.INFO: count ==3454 [2025-04-03 19:12:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:12:06 - End Time 2025-04-03 19:12:06 [2025-04-03 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827559', 'tblTempUsageDetail_20' ) start [2025-04-03 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827559', 'tblTempUsageDetail_20' ) end [2025-04-03 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827559', 'tblTempVendorCDR_20' ) start [2025-04-03 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827559', 'tblTempVendorCDR_20' ) end [2025-04-03 19:12:21] Production.INFO: ProcessCDR(1,14827559,1,1,2) [2025-04-03 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827559', 'tblTempUsageDetail_20' ) start [2025-04-03 19:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827559', 'tblTempUsageDetail_20' ) end [2025-04-03 19:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:12:27] Production.INFO: ==22841== Releasing lock... [2025-04-03 19:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:12:27] Production.INFO: 55 MB #Memory Used# [2025-04-03 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:13:05 [end_date_ymd] => 2025-04-03 19:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:13:05' and `end` < '2025-04-03 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-03 19:13:19] Production.INFO: count ==3440 [2025-04-03 19:13:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:13:05 - End Time 2025-04-03 19:13:05 [2025-04-03 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827564', 'tblTempUsageDetail_20' ) start [2025-04-03 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827564', 'tblTempUsageDetail_20' ) end [2025-04-03 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827564', 'tblTempVendorCDR_20' ) start [2025-04-03 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827564', 'tblTempVendorCDR_20' ) end [2025-04-03 19:13:20] Production.INFO: ProcessCDR(1,14827564,1,1,2) [2025-04-03 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827564', 'tblTempUsageDetail_20' ) start [2025-04-03 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827564', 'tblTempUsageDetail_20' ) end [2025-04-03 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:13:24] Production.INFO: ==22923== Releasing lock... [2025-04-03 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:13:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:14:06 [end_date_ymd] => 2025-04-03 19:14:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:14:06' and `end` < '2025-04-03 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-03 19:14:19] Production.INFO: count ==3432 [2025-04-03 19:14:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:14:06 - End Time 2025-04-03 19:14:06 [2025-04-03 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827569', 'tblTempUsageDetail_20' ) start [2025-04-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827569', 'tblTempUsageDetail_20' ) end [2025-04-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827569', 'tblTempVendorCDR_20' ) start [2025-04-03 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827569', 'tblTempVendorCDR_20' ) end [2025-04-03 19:14:21] Production.INFO: ProcessCDR(1,14827569,1,1,2) [2025-04-03 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827569', 'tblTempUsageDetail_20' ) start [2025-04-03 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827569', 'tblTempUsageDetail_20' ) end [2025-04-03 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:14:25] Production.INFO: ==23001== Releasing lock... [2025-04-03 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:14:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:15:05 [end_date_ymd] => 2025-04-03 19:15:05 [RateCDR] => 1 ) [2025-04-03 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:15:05' and `end` < '2025-04-03 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:15:18] Production.INFO: count ==3425 [2025-04-03 19:15:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:15:05 - End Time 2025-04-03 19:15:05 [2025-04-03 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827574', 'tblTempUsageDetail_20' ) start [2025-04-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827574', 'tblTempUsageDetail_20' ) end [2025-04-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827574', 'tblTempVendorCDR_20' ) start [2025-04-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827574', 'tblTempVendorCDR_20' ) end [2025-04-03 19:15:20] Production.INFO: ProcessCDR(1,14827574,1,1,2) [2025-04-03 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827574', 'tblTempUsageDetail_20' ) start [2025-04-03 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827574', 'tblTempUsageDetail_20' ) end [2025-04-03 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:15:24] Production.INFO: ==23080== Releasing lock... [2025-04-03 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:15:24] Production.INFO: 54.25 MB #Memory Used# [2025-04-03 19:16:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:16:07 [end_date_ymd] => 2025-04-03 19:16:07 [RateCDR] => 1 ) [2025-04-03 19:16: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-03 16:16:07' and `end` < '2025-04-03 19:16: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-03 19:16:20] Production.INFO: count ==3422 [2025-04-03 19:16:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:16:07 - End Time 2025-04-03 19:16:07 [2025-04-03 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827579', 'tblTempUsageDetail_20' ) start [2025-04-03 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827579', 'tblTempUsageDetail_20' ) end [2025-04-03 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827579', 'tblTempVendorCDR_20' ) start [2025-04-03 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827579', 'tblTempVendorCDR_20' ) end [2025-04-03 19:16:21] Production.INFO: ProcessCDR(1,14827579,1,1,2) [2025-04-03 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827579', 'tblTempUsageDetail_20' ) start [2025-04-03 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827579', 'tblTempUsageDetail_20' ) end [2025-04-03 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:16:26] Production.INFO: ==23242== Releasing lock... [2025-04-03 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:16:26] Production.INFO: 54 MB #Memory Used# [2025-04-03 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:17:06 [end_date_ymd] => 2025-04-03 19:17:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:17:06' and `end` < '2025-04-03 19: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-03 19:17:19] Production.INFO: count ==3434 [2025-04-03 19:17:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:17:06 - End Time 2025-04-03 19:17:06 [2025-04-03 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827584', 'tblTempUsageDetail_20' ) start [2025-04-03 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827584', 'tblTempUsageDetail_20' ) end [2025-04-03 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827584', 'tblTempVendorCDR_20' ) start [2025-04-03 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827584', 'tblTempVendorCDR_20' ) end [2025-04-03 19:17:21] Production.INFO: ProcessCDR(1,14827584,1,1,2) [2025-04-03 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827584', 'tblTempUsageDetail_20' ) start [2025-04-03 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827584', 'tblTempUsageDetail_20' ) end [2025-04-03 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:17:27] Production.INFO: ==23323== Releasing lock... [2025-04-03 19:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:17:27] Production.INFO: 53.5 MB #Memory Used# [2025-04-03 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:18:05 [end_date_ymd] => 2025-04-03 19:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:18:05' and `end` < '2025-04-03 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-03 19:18:18] Production.INFO: count ==3426 [2025-04-03 19:18:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:18:05 - End Time 2025-04-03 19:18:05 [2025-04-03 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827589', 'tblTempUsageDetail_20' ) start [2025-04-03 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827589', 'tblTempUsageDetail_20' ) end [2025-04-03 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827589', 'tblTempVendorCDR_20' ) start [2025-04-03 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827589', 'tblTempVendorCDR_20' ) end [2025-04-03 19:18:20] Production.INFO: ProcessCDR(1,14827589,1,1,2) [2025-04-03 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827589', 'tblTempUsageDetail_20' ) start [2025-04-03 19:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827589', 'tblTempUsageDetail_20' ) end [2025-04-03 19:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:18:26] Production.INFO: ==23399== Releasing lock... [2025-04-03 19:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:18:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-03 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:19:05 [end_date_ymd] => 2025-04-03 19:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:19:05' and `end` < '2025-04-03 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-03 19:19:18] Production.INFO: count ==3424 [2025-04-03 19:19:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:19:05 - End Time 2025-04-03 19:19:05 [2025-04-03 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827594', 'tblTempUsageDetail_20' ) start [2025-04-03 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827594', 'tblTempUsageDetail_20' ) end [2025-04-03 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827594', 'tblTempVendorCDR_20' ) start [2025-04-03 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827594', 'tblTempVendorCDR_20' ) end [2025-04-03 19:19:20] Production.INFO: ProcessCDR(1,14827594,1,1,2) [2025-04-03 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827594', 'tblTempUsageDetail_20' ) start [2025-04-03 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827594', 'tblTempUsageDetail_20' ) end [2025-04-03 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:19:24] Production.INFO: ==23479== Releasing lock... [2025-04-03 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:19:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-03 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:20:06 [end_date_ymd] => 2025-04-03 19:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:20:06' and `end` < '2025-04-03 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-03 19:20:19] Production.INFO: count ==3416 [2025-04-03 19:20:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:20:06 - End Time 2025-04-03 19:20:06 [2025-04-03 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827599', 'tblTempUsageDetail_20' ) start [2025-04-03 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827599', 'tblTempUsageDetail_20' ) end [2025-04-03 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827599', 'tblTempVendorCDR_20' ) start [2025-04-03 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827599', 'tblTempVendorCDR_20' ) end [2025-04-03 19:20:21] Production.INFO: ProcessCDR(1,14827599,1,1,2) [2025-04-03 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827599', 'tblTempUsageDetail_20' ) start [2025-04-03 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827599', 'tblTempUsageDetail_20' ) end [2025-04-03 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:20:24] Production.INFO: ==23564== Releasing lock... [2025-04-03 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:20:24] Production.INFO: 54.5 MB #Memory Used# [2025-04-03 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:21:06 [end_date_ymd] => 2025-04-03 19:21:06 [RateCDR] => 1 ) [2025-04-03 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:21:06' and `end` < '2025-04-03 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:21:19] Production.INFO: count ==3345 [2025-04-03 19:21:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:21:06 - End Time 2025-04-03 19:21:06 [2025-04-03 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827605', 'tblTempUsageDetail_20' ) start [2025-04-03 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827605', 'tblTempUsageDetail_20' ) end [2025-04-03 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827605', 'tblTempVendorCDR_20' ) start [2025-04-03 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827605', 'tblTempVendorCDR_20' ) end [2025-04-03 19:21:20] Production.INFO: ProcessCDR(1,14827605,1,1,2) [2025-04-03 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827605', 'tblTempUsageDetail_20' ) start [2025-04-03 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827605', 'tblTempUsageDetail_20' ) end [2025-04-03 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:21:24] Production.INFO: ==23681== Releasing lock... [2025-04-03 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:21:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-03 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:22:05 [end_date_ymd] => 2025-04-03 19:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:22:05' and `end` < '2025-04-03 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-03 19:22:19] Production.INFO: count ==3325 [2025-04-03 19:22:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:22:05 - End Time 2025-04-03 19:22:05 [2025-04-03 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827610', 'tblTempUsageDetail_20' ) start [2025-04-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827610', 'tblTempUsageDetail_20' ) end [2025-04-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827610', 'tblTempVendorCDR_20' ) start [2025-04-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827610', 'tblTempVendorCDR_20' ) end [2025-04-03 19:22:20] Production.INFO: ProcessCDR(1,14827610,1,1,2) [2025-04-03 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827610', 'tblTempUsageDetail_20' ) start [2025-04-03 19:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827610', 'tblTempUsageDetail_20' ) end [2025-04-03 19:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:22:26] Production.INFO: ==23762== Releasing lock... [2025-04-03 19:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:22:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-03 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:23:06 [end_date_ymd] => 2025-04-03 19:23:06 [RateCDR] => 1 ) [2025-04-03 19:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:23:06' and `end` < '2025-04-03 19:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:23:19] Production.INFO: count ==3310 [2025-04-03 19:23:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:23:06 - End Time 2025-04-03 19:23:06 [2025-04-03 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827615', 'tblTempUsageDetail_20' ) start [2025-04-03 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827615', 'tblTempUsageDetail_20' ) end [2025-04-03 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827615', 'tblTempVendorCDR_20' ) start [2025-04-03 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827615', 'tblTempVendorCDR_20' ) end [2025-04-03 19:23:21] Production.INFO: ProcessCDR(1,14827615,1,1,2) [2025-04-03 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827615', 'tblTempUsageDetail_20' ) start [2025-04-03 19:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827615', 'tblTempUsageDetail_20' ) end [2025-04-03 19:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:23:26] Production.INFO: ==23844== Releasing lock... [2025-04-03 19:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:23:26] Production.INFO: 53 MB #Memory Used# [2025-04-03 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:24:05 [end_date_ymd] => 2025-04-03 19:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:24:05' and `end` < '2025-04-03 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-03 19:24:18] Production.INFO: count ==3291 [2025-04-03 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:24:05 - End Time 2025-04-03 19:24:05 [2025-04-03 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827620', 'tblTempUsageDetail_20' ) start [2025-04-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827620', 'tblTempUsageDetail_20' ) end [2025-04-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827620', 'tblTempVendorCDR_20' ) start [2025-04-03 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827620', 'tblTempVendorCDR_20' ) end [2025-04-03 19:24:20] Production.INFO: ProcessCDR(1,14827620,1,1,2) [2025-04-03 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827620', 'tblTempUsageDetail_20' ) start [2025-04-03 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827620', 'tblTempUsageDetail_20' ) end [2025-04-03 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:24:25] Production.INFO: ==23922== Releasing lock... [2025-04-03 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:24:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-03 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:25:06 [end_date_ymd] => 2025-04-03 19:25:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:25:06' and `end` < '2025-04-03 19: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-03 19:25:19] Production.INFO: count ==3284 [2025-04-03 19:25:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:25:06 - End Time 2025-04-03 19:25:06 [2025-04-03 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827625', 'tblTempUsageDetail_20' ) start [2025-04-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827625', 'tblTempUsageDetail_20' ) end [2025-04-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827625', 'tblTempVendorCDR_20' ) start [2025-04-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827625', 'tblTempVendorCDR_20' ) end [2025-04-03 19:25:20] Production.INFO: ProcessCDR(1,14827625,1,1,2) [2025-04-03 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827625', 'tblTempUsageDetail_20' ) start [2025-04-03 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827625', 'tblTempUsageDetail_20' ) end [2025-04-03 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:25:24] Production.INFO: ==24005== Releasing lock... [2025-04-03 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:25:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:26:06 [end_date_ymd] => 2025-04-03 19:26:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:26:06' and `end` < '2025-04-03 19: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-03 19:26:19] Production.INFO: count ==3263 [2025-04-03 19:26:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:26:06 - End Time 2025-04-03 19:26:06 [2025-04-03 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827630', 'tblTempUsageDetail_20' ) start [2025-04-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827630', 'tblTempUsageDetail_20' ) end [2025-04-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827630', 'tblTempVendorCDR_20' ) start [2025-04-03 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827630', 'tblTempVendorCDR_20' ) end [2025-04-03 19:26:20] Production.INFO: ProcessCDR(1,14827630,1,1,2) [2025-04-03 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827630', 'tblTempUsageDetail_20' ) start [2025-04-03 19:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827630', 'tblTempUsageDetail_20' ) end [2025-04-03 19:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:26:26] Production.INFO: ==24083== Releasing lock... [2025-04-03 19:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:26:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-03 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:27:06 [end_date_ymd] => 2025-04-03 19:27:06 [RateCDR] => 1 ) [2025-04-03 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:27:06' and `end` < '2025-04-03 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:27:19] Production.INFO: count ==3241 [2025-04-03 19:27:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:27:06 - End Time 2025-04-03 19:27:06 [2025-04-03 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827635', 'tblTempUsageDetail_20' ) start [2025-04-03 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827635', 'tblTempUsageDetail_20' ) end [2025-04-03 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827635', 'tblTempVendorCDR_20' ) start [2025-04-03 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827635', 'tblTempVendorCDR_20' ) end [2025-04-03 19:27:20] Production.INFO: ProcessCDR(1,14827635,1,1,2) [2025-04-03 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827635', 'tblTempUsageDetail_20' ) start [2025-04-03 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827635', 'tblTempUsageDetail_20' ) end [2025-04-03 19:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:27:26] Production.INFO: ==24165== Releasing lock... [2025-04-03 19:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:27:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-03 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:28:05 [end_date_ymd] => 2025-04-03 19:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:28:05' and `end` < '2025-04-03 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-03 19:28:19] Production.INFO: count ==3217 [2025-04-03 19:28:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:28:05 - End Time 2025-04-03 19:28:05 [2025-04-03 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827640', 'tblTempUsageDetail_20' ) start [2025-04-03 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827640', 'tblTempUsageDetail_20' ) end [2025-04-03 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827640', 'tblTempVendorCDR_20' ) start [2025-04-03 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827640', 'tblTempVendorCDR_20' ) end [2025-04-03 19:28:20] Production.INFO: ProcessCDR(1,14827640,1,1,2) [2025-04-03 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827640', 'tblTempUsageDetail_20' ) start [2025-04-03 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827640', 'tblTempUsageDetail_20' ) end [2025-04-03 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:28:24] Production.INFO: ==24249== Releasing lock... [2025-04-03 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:28:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-03 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:29:06 [end_date_ymd] => 2025-04-03 19:29:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:29:06' and `end` < '2025-04-03 19: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-03 19:29:19] Production.INFO: count ==3164 [2025-04-03 19:29:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:29:06 - End Time 2025-04-03 19:29:06 [2025-04-03 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827645', 'tblTempUsageDetail_20' ) start [2025-04-03 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827645', 'tblTempUsageDetail_20' ) end [2025-04-03 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827645', 'tblTempVendorCDR_20' ) start [2025-04-03 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827645', 'tblTempVendorCDR_20' ) end [2025-04-03 19:29:21] Production.INFO: ProcessCDR(1,14827645,1,1,2) [2025-04-03 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827645', 'tblTempUsageDetail_20' ) start [2025-04-03 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827645', 'tblTempUsageDetail_20' ) end [2025-04-03 19:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:29:26] Production.INFO: ==24331== Releasing lock... [2025-04-03 19:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:29:26] Production.INFO: 51.5 MB #Memory Used# [2025-04-03 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:30:06 [end_date_ymd] => 2025-04-03 19:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:30:06' and `end` < '2025-04-03 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-03 19:30:20] Production.INFO: count ==3136 [2025-04-03 19:30:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:30:06 - End Time 2025-04-03 19:30:06 [2025-04-03 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827651', 'tblTempUsageDetail_20' ) start [2025-04-03 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827651', 'tblTempUsageDetail_20' ) end [2025-04-03 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827651', 'tblTempVendorCDR_20' ) start [2025-04-03 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827651', 'tblTempVendorCDR_20' ) end [2025-04-03 19:30:21] Production.INFO: ProcessCDR(1,14827651,1,1,2) [2025-04-03 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827651', 'tblTempUsageDetail_20' ) start [2025-04-03 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827651', 'tblTempUsageDetail_20' ) end [2025-04-03 19:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:30:27] Production.INFO: ==24414== Releasing lock... [2025-04-03 19:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:30:27] Production.INFO: 51.5 MB #Memory Used# [2025-04-03 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:31:06 [end_date_ymd] => 2025-04-03 19:31:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:31:06' and `end` < '2025-04-03 19: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-03 19:31:19] Production.INFO: count ==3083 [2025-04-03 19:31:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:31:06 - End Time 2025-04-03 19:31:06 [2025-04-03 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827656', 'tblTempUsageDetail_20' ) start [2025-04-03 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827656', 'tblTempUsageDetail_20' ) end [2025-04-03 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827656', 'tblTempVendorCDR_20' ) start [2025-04-03 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827656', 'tblTempVendorCDR_20' ) end [2025-04-03 19:31:20] Production.INFO: ProcessCDR(1,14827656,1,1,2) [2025-04-03 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827656', 'tblTempUsageDetail_20' ) start [2025-04-03 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827656', 'tblTempUsageDetail_20' ) end [2025-04-03 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:31:24] Production.INFO: ==24497== Releasing lock... [2025-04-03 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:31:24] Production.INFO: 51 MB #Memory Used# [2025-04-03 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:32:06 [end_date_ymd] => 2025-04-03 19:32:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:32:06' and `end` < '2025-04-03 19: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-03 19:32:19] Production.INFO: count ==3074 [2025-04-03 19:32:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:32:06 - End Time 2025-04-03 19:32:06 [2025-04-03 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827661', 'tblTempUsageDetail_20' ) start [2025-04-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827661', 'tblTempUsageDetail_20' ) end [2025-04-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827661', 'tblTempVendorCDR_20' ) start [2025-04-03 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827661', 'tblTempVendorCDR_20' ) end [2025-04-03 19:32:20] Production.INFO: ProcessCDR(1,14827661,1,1,2) [2025-04-03 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827661', 'tblTempUsageDetail_20' ) start [2025-04-03 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827661', 'tblTempUsageDetail_20' ) end [2025-04-03 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:32:24] Production.INFO: ==24577== Releasing lock... [2025-04-03 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:32:24] Production.INFO: 51 MB #Memory Used# [2025-04-03 19:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:33:07 [end_date_ymd] => 2025-04-03 19:33:07 [RateCDR] => 1 ) [2025-04-03 19:33: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-03 16:33:07' and `end` < '2025-04-03 19:33: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-03 19:33:20] Production.INFO: count ==3063 [2025-04-03 19:33:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:33:07 - End Time 2025-04-03 19:33:07 [2025-04-03 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827666', 'tblTempUsageDetail_20' ) start [2025-04-03 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827666', 'tblTempUsageDetail_20' ) end [2025-04-03 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827666', 'tblTempVendorCDR_20' ) start [2025-04-03 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827666', 'tblTempVendorCDR_20' ) end [2025-04-03 19:33:21] Production.INFO: ProcessCDR(1,14827666,1,1,2) [2025-04-03 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827666', 'tblTempUsageDetail_20' ) start [2025-04-03 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827666', 'tblTempUsageDetail_20' ) end [2025-04-03 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:33:25] Production.INFO: ==24657== Releasing lock... [2025-04-03 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:33:25] Production.INFO: 51 MB #Memory Used# [2025-04-03 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:34:06 [end_date_ymd] => 2025-04-03 19:34:06 [RateCDR] => 1 ) [2025-04-03 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:34:06' and `end` < '2025-04-03 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:34:19] Production.INFO: count ==3028 [2025-04-03 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:34:06 - End Time 2025-04-03 19:34:06 [2025-04-03 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827671', 'tblTempUsageDetail_20' ) start [2025-04-03 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827671', 'tblTempUsageDetail_20' ) end [2025-04-03 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827671', 'tblTempVendorCDR_20' ) start [2025-04-03 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827671', 'tblTempVendorCDR_20' ) end [2025-04-03 19:34:20] Production.INFO: ProcessCDR(1,14827671,1,1,2) [2025-04-03 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827671', 'tblTempUsageDetail_20' ) start [2025-04-03 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827671', 'tblTempUsageDetail_20' ) end [2025-04-03 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:34:24] Production.INFO: ==24737== Releasing lock... [2025-04-03 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:34:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-03 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:35:06 [end_date_ymd] => 2025-04-03 19:35:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:35:06' and `end` < '2025-04-03 19: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-03 19:35:19] Production.INFO: count ==3002 [2025-04-03 19:35:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:35:06 - End Time 2025-04-03 19:35:06 [2025-04-03 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827676', 'tblTempUsageDetail_20' ) start [2025-04-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827676', 'tblTempUsageDetail_20' ) end [2025-04-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827676', 'tblTempVendorCDR_20' ) start [2025-04-03 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827676', 'tblTempVendorCDR_20' ) end [2025-04-03 19:35:20] Production.INFO: ProcessCDR(1,14827676,1,1,2) [2025-04-03 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827676', 'tblTempUsageDetail_20' ) start [2025-04-03 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827676', 'tblTempUsageDetail_20' ) end [2025-04-03 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:35:24] Production.INFO: ==24815== Releasing lock... [2025-04-03 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:35:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-03 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:36:05 [end_date_ymd] => 2025-04-03 19:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:36:05' and `end` < '2025-04-03 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-03 19:36:19] Production.INFO: count ==2987 [2025-04-03 19:36:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:36:05 - End Time 2025-04-03 19:36:05 [2025-04-03 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827681', 'tblTempUsageDetail_20' ) start [2025-04-03 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827681', 'tblTempUsageDetail_20' ) end [2025-04-03 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827681', 'tblTempVendorCDR_20' ) start [2025-04-03 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827681', 'tblTempVendorCDR_20' ) end [2025-04-03 19:36:20] Production.INFO: ProcessCDR(1,14827681,1,1,2) [2025-04-03 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827681', 'tblTempUsageDetail_20' ) start [2025-04-03 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827681', 'tblTempUsageDetail_20' ) end [2025-04-03 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:36:23] Production.INFO: ==24933== Releasing lock... [2025-04-03 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:36:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-03 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:37:06 [end_date_ymd] => 2025-04-03 19:37:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:37:06' and `end` < '2025-04-03 19: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-03 19:37:19] Production.INFO: count ==2961 [2025-04-03 19:37:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:37:06 - End Time 2025-04-03 19:37:06 [2025-04-03 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827686', 'tblTempUsageDetail_20' ) start [2025-04-03 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827686', 'tblTempUsageDetail_20' ) end [2025-04-03 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827686', 'tblTempVendorCDR_20' ) start [2025-04-03 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827686', 'tblTempVendorCDR_20' ) end [2025-04-03 19:37:20] Production.INFO: ProcessCDR(1,14827686,1,1,2) [2025-04-03 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827686', 'tblTempUsageDetail_20' ) start [2025-04-03 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827686', 'tblTempUsageDetail_20' ) end [2025-04-03 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:37:24] Production.INFO: ==25010== Releasing lock... [2025-04-03 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:37:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:38:06 [end_date_ymd] => 2025-04-03 19:38:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:38:06' and `end` < '2025-04-03 19: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-03 19:38:19] Production.INFO: count ==2942 [2025-04-03 19:38:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:38:06 - End Time 2025-04-03 19:38:06 [2025-04-03 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827691', 'tblTempUsageDetail_20' ) start [2025-04-03 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827691', 'tblTempUsageDetail_20' ) end [2025-04-03 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827691', 'tblTempVendorCDR_20' ) start [2025-04-03 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827691', 'tblTempVendorCDR_20' ) end [2025-04-03 19:38:20] Production.INFO: ProcessCDR(1,14827691,1,1,2) [2025-04-03 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827691', 'tblTempUsageDetail_20' ) start [2025-04-03 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827691', 'tblTempUsageDetail_20' ) end [2025-04-03 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:38:24] Production.INFO: ==25089== Releasing lock... [2025-04-03 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:38:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:39:06 [end_date_ymd] => 2025-04-03 19:39:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:39:06' and `end` < '2025-04-03 19: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-03 19:39:19] Production.INFO: count ==2920 [2025-04-03 19:39:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:39:06 - End Time 2025-04-03 19:39:06 [2025-04-03 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827696', 'tblTempUsageDetail_20' ) start [2025-04-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827696', 'tblTempUsageDetail_20' ) end [2025-04-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827696', 'tblTempVendorCDR_20' ) start [2025-04-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827696', 'tblTempVendorCDR_20' ) end [2025-04-03 19:39:20] Production.INFO: ProcessCDR(1,14827696,1,1,2) [2025-04-03 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827696', 'tblTempUsageDetail_20' ) start [2025-04-03 19:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827696', 'tblTempUsageDetail_20' ) end [2025-04-03 19:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:39:25] Production.INFO: ==25167== Releasing lock... [2025-04-03 19:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:39:25] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:40:06 [end_date_ymd] => 2025-04-03 19:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:40:06' and `end` < '2025-04-03 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-03 19:40:19] Production.INFO: count ==2913 [2025-04-03 19:40:21] Production.ERROR: pbx CDR StartTime 2025-04-03 16:40:06 - End Time 2025-04-03 19:40:06 [2025-04-03 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827702', 'tblTempUsageDetail_20' ) start [2025-04-03 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827702', 'tblTempUsageDetail_20' ) end [2025-04-03 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827702', 'tblTempVendorCDR_20' ) start [2025-04-03 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827702', 'tblTempVendorCDR_20' ) end [2025-04-03 19:40:21] Production.INFO: ProcessCDR(1,14827702,1,1,2) [2025-04-03 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827702', 'tblTempUsageDetail_20' ) start [2025-04-03 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827702', 'tblTempUsageDetail_20' ) end [2025-04-03 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:40:26] Production.INFO: ==25250== Releasing lock... [2025-04-03 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:40:26] Production.INFO: 49.75 MB #Memory Used# [2025-04-03 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:41:06 [end_date_ymd] => 2025-04-03 19:41:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:41:06' and `end` < '2025-04-03 19: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-03 19:41:19] Production.INFO: count ==2808 [2025-04-03 19:41:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:41:06 - End Time 2025-04-03 19:41:06 [2025-04-03 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827707', 'tblTempUsageDetail_20' ) start [2025-04-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827707', 'tblTempUsageDetail_20' ) end [2025-04-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827707', 'tblTempVendorCDR_20' ) start [2025-04-03 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827707', 'tblTempVendorCDR_20' ) end [2025-04-03 19:41:20] Production.INFO: ProcessCDR(1,14827707,1,1,2) [2025-04-03 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827707', 'tblTempUsageDetail_20' ) start [2025-04-03 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827707', 'tblTempUsageDetail_20' ) end [2025-04-03 19:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:41:26] Production.INFO: ==25330== Releasing lock... [2025-04-03 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:41:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:42:05 [end_date_ymd] => 2025-04-03 19:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:42:05' and `end` < '2025-04-03 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-03 19:42:19] Production.INFO: count ==2799 [2025-04-03 19:42:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:42:05 - End Time 2025-04-03 19:42:05 [2025-04-03 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827712', 'tblTempUsageDetail_20' ) start [2025-04-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827712', 'tblTempUsageDetail_20' ) end [2025-04-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827712', 'tblTempVendorCDR_20' ) start [2025-04-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827712', 'tblTempVendorCDR_20' ) end [2025-04-03 19:42:20] Production.INFO: ProcessCDR(1,14827712,1,1,2) [2025-04-03 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827712', 'tblTempUsageDetail_20' ) start [2025-04-03 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827712', 'tblTempUsageDetail_20' ) end [2025-04-03 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:42:24] Production.INFO: ==25405== Releasing lock... [2025-04-03 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:42:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-03 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:43:06 [end_date_ymd] => 2025-04-03 19:43:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:43:06' and `end` < '2025-04-03 19: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-03 19:43:19] Production.INFO: count ==2814 [2025-04-03 19:43:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:43:06 - End Time 2025-04-03 19:43:06 [2025-04-03 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827717', 'tblTempUsageDetail_20' ) start [2025-04-03 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827717', 'tblTempUsageDetail_20' ) end [2025-04-03 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827717', 'tblTempVendorCDR_20' ) start [2025-04-03 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827717', 'tblTempVendorCDR_20' ) end [2025-04-03 19:43:20] Production.INFO: ProcessCDR(1,14827717,1,1,2) [2025-04-03 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827717', 'tblTempUsageDetail_20' ) start [2025-04-03 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827717', 'tblTempUsageDetail_20' ) end [2025-04-03 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:43:24] Production.INFO: ==25490== Releasing lock... [2025-04-03 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:43:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:44:05 [end_date_ymd] => 2025-04-03 19:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:44:05' and `end` < '2025-04-03 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-03 19:44:19] Production.INFO: count ==2821 [2025-04-03 19:44:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:44:05 - End Time 2025-04-03 19:44:05 [2025-04-03 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827722', 'tblTempUsageDetail_20' ) start [2025-04-03 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827722', 'tblTempUsageDetail_20' ) end [2025-04-03 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827722', 'tblTempVendorCDR_20' ) start [2025-04-03 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827722', 'tblTempVendorCDR_20' ) end [2025-04-03 19:44:20] Production.INFO: ProcessCDR(1,14827722,1,1,2) [2025-04-03 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827722', 'tblTempUsageDetail_20' ) start [2025-04-03 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827722', 'tblTempUsageDetail_20' ) end [2025-04-03 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:44:24] Production.INFO: ==25566== Releasing lock... [2025-04-03 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:44:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:45:05 [end_date_ymd] => 2025-04-03 19:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:45:05' and `end` < '2025-04-03 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-03 19:45:18] Production.INFO: count ==2816 [2025-04-03 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:45:05 - End Time 2025-04-03 19:45:05 [2025-04-03 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827727', 'tblTempUsageDetail_20' ) start [2025-04-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827727', 'tblTempUsageDetail_20' ) end [2025-04-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827727', 'tblTempVendorCDR_20' ) start [2025-04-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827727', 'tblTempVendorCDR_20' ) end [2025-04-03 19:45:19] Production.INFO: ProcessCDR(1,14827727,1,1,2) [2025-04-03 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827727', 'tblTempUsageDetail_20' ) start [2025-04-03 19:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827727', 'tblTempUsageDetail_20' ) end [2025-04-03 19:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:45:25] Production.INFO: ==25644== Releasing lock... [2025-04-03 19:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:45:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:46:06 [end_date_ymd] => 2025-04-03 19:46:06 [RateCDR] => 1 ) [2025-04-03 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:46:06' and `end` < '2025-04-03 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:46:19] Production.INFO: count ==2812 [2025-04-03 19:46:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:46:06 - End Time 2025-04-03 19:46:06 [2025-04-03 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827732', 'tblTempUsageDetail_20' ) start [2025-04-03 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827732', 'tblTempUsageDetail_20' ) end [2025-04-03 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827732', 'tblTempVendorCDR_20' ) start [2025-04-03 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827732', 'tblTempVendorCDR_20' ) end [2025-04-03 19:46:20] Production.INFO: ProcessCDR(1,14827732,1,1,2) [2025-04-03 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827732', 'tblTempUsageDetail_20' ) start [2025-04-03 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827732', 'tblTempUsageDetail_20' ) end [2025-04-03 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:46:23] Production.INFO: ==25722== Releasing lock... [2025-04-03 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:46:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:47:06 [end_date_ymd] => 2025-04-03 19:47:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:47:06' and `end` < '2025-04-03 19: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-03 19:47:19] Production.INFO: count ==2810 [2025-04-03 19:47:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:47:06 - End Time 2025-04-03 19:47:06 [2025-04-03 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827737', 'tblTempUsageDetail_20' ) start [2025-04-03 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827737', 'tblTempUsageDetail_20' ) end [2025-04-03 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827737', 'tblTempVendorCDR_20' ) start [2025-04-03 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827737', 'tblTempVendorCDR_20' ) end [2025-04-03 19:47:20] Production.INFO: ProcessCDR(1,14827737,1,1,2) [2025-04-03 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827737', 'tblTempUsageDetail_20' ) start [2025-04-03 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827737', 'tblTempUsageDetail_20' ) end [2025-04-03 19:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:47:26] Production.INFO: ==25797== Releasing lock... [2025-04-03 19:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:47:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:48:05 [end_date_ymd] => 2025-04-03 19:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:48:05' and `end` < '2025-04-03 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-03 19:48:18] Production.INFO: count ==2814 [2025-04-03 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:48:05 - End Time 2025-04-03 19:48:05 [2025-04-03 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827742', 'tblTempUsageDetail_20' ) start [2025-04-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827742', 'tblTempUsageDetail_20' ) end [2025-04-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827742', 'tblTempVendorCDR_20' ) start [2025-04-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827742', 'tblTempVendorCDR_20' ) end [2025-04-03 19:48:19] Production.INFO: ProcessCDR(1,14827742,1,1,2) [2025-04-03 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827742', 'tblTempUsageDetail_20' ) start [2025-04-03 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827742', 'tblTempUsageDetail_20' ) end [2025-04-03 19:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:48:25] Production.INFO: ==25902== Releasing lock... [2025-04-03 19:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:48:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-03 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:49:06 [end_date_ymd] => 2025-04-03 19:49:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:49:06' and `end` < '2025-04-03 19: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-03 19:49:19] Production.INFO: count ==2801 [2025-04-03 19:49:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:49:06 - End Time 2025-04-03 19:49:06 [2025-04-03 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827747', 'tblTempUsageDetail_20' ) start [2025-04-03 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827747', 'tblTempUsageDetail_20' ) end [2025-04-03 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827747', 'tblTempVendorCDR_20' ) start [2025-04-03 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827747', 'tblTempVendorCDR_20' ) end [2025-04-03 19:49:20] Production.INFO: ProcessCDR(1,14827747,1,1,2) [2025-04-03 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827747', 'tblTempUsageDetail_20' ) start [2025-04-03 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827747', 'tblTempUsageDetail_20' ) end [2025-04-03 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:49:24] Production.INFO: ==25978== Releasing lock... [2025-04-03 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:49:24] Production.INFO: 49 MB #Memory Used# [2025-04-03 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:50:05 [end_date_ymd] => 2025-04-03 19:50:05 [RateCDR] => 1 ) [2025-04-03 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:50:05' and `end` < '2025-04-03 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:50:19] Production.INFO: count ==2792 [2025-04-03 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:50:05 - End Time 2025-04-03 19:50:05 [2025-04-03 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827752', 'tblTempUsageDetail_20' ) start [2025-04-03 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827752', 'tblTempUsageDetail_20' ) end [2025-04-03 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827752', 'tblTempVendorCDR_20' ) start [2025-04-03 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827752', 'tblTempVendorCDR_20' ) end [2025-04-03 19:50:20] Production.INFO: ProcessCDR(1,14827752,1,1,2) [2025-04-03 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827752', 'tblTempUsageDetail_20' ) start [2025-04-03 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827752', 'tblTempUsageDetail_20' ) end [2025-04-03 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:50:24] Production.INFO: ==26054== Releasing lock... [2025-04-03 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:50:24] Production.INFO: 49 MB #Memory Used# [2025-04-03 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:51:06 [end_date_ymd] => 2025-04-03 19:51:06 [RateCDR] => 1 ) [2025-04-03 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-03 16:51:06' and `end` < '2025-04-03 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:51:19] Production.INFO: count ==2758 [2025-04-03 19:51:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:51:06 - End Time 2025-04-03 19:51:06 [2025-04-03 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827758', 'tblTempUsageDetail_20' ) start [2025-04-03 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827758', 'tblTempUsageDetail_20' ) end [2025-04-03 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827758', 'tblTempVendorCDR_20' ) start [2025-04-03 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827758', 'tblTempVendorCDR_20' ) end [2025-04-03 19:51:20] Production.INFO: ProcessCDR(1,14827758,1,1,2) [2025-04-03 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827758', 'tblTempUsageDetail_20' ) start [2025-04-03 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827758', 'tblTempUsageDetail_20' ) end [2025-04-03 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:51:25] Production.INFO: ==26172== Releasing lock... [2025-04-03 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:51:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-03 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:52:06 [end_date_ymd] => 2025-04-03 19:52:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:52:06' and `end` < '2025-04-03 19: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-03 19:52:19] Production.INFO: count ==2733 [2025-04-03 19:52:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:52:06 - End Time 2025-04-03 19:52:06 [2025-04-03 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827763', 'tblTempUsageDetail_20' ) start [2025-04-03 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827763', 'tblTempUsageDetail_20' ) end [2025-04-03 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827763', 'tblTempVendorCDR_20' ) start [2025-04-03 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827763', 'tblTempVendorCDR_20' ) end [2025-04-03 19:52:20] Production.INFO: ProcessCDR(1,14827763,1,1,2) [2025-04-03 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827763', 'tblTempUsageDetail_20' ) start [2025-04-03 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827763', 'tblTempUsageDetail_20' ) end [2025-04-03 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:52:24] Production.INFO: ==26242== Releasing lock... [2025-04-03 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:52:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:53:05 [end_date_ymd] => 2025-04-03 19:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:53:05' and `end` < '2025-04-03 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-03 19:53:18] Production.INFO: count ==2732 [2025-04-03 19:53:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:53:05 - End Time 2025-04-03 19:53:05 [2025-04-03 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827768', 'tblTempUsageDetail_20' ) start [2025-04-03 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827768', 'tblTempUsageDetail_20' ) end [2025-04-03 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827768', 'tblTempVendorCDR_20' ) start [2025-04-03 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827768', 'tblTempVendorCDR_20' ) end [2025-04-03 19:53:20] Production.INFO: ProcessCDR(1,14827768,1,1,2) [2025-04-03 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827768', 'tblTempUsageDetail_20' ) start [2025-04-03 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827768', 'tblTempUsageDetail_20' ) end [2025-04-03 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:53:24] Production.INFO: ==26320== Releasing lock... [2025-04-03 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:53:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:54:05 [end_date_ymd] => 2025-04-03 19:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 16:54:05' and `end` < '2025-04-03 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-03 19:54:18] Production.INFO: count ==2727 [2025-04-03 19:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:54:05 - End Time 2025-04-03 19:54:05 [2025-04-03 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827773', 'tblTempUsageDetail_20' ) start [2025-04-03 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827773', 'tblTempUsageDetail_20' ) end [2025-04-03 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827773', 'tblTempVendorCDR_20' ) start [2025-04-03 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827773', 'tblTempVendorCDR_20' ) end [2025-04-03 19:54:19] Production.INFO: ProcessCDR(1,14827773,1,1,2) [2025-04-03 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827773', 'tblTempUsageDetail_20' ) start [2025-04-03 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827773', 'tblTempUsageDetail_20' ) end [2025-04-03 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:54:25] Production.INFO: ==26393== Releasing lock... [2025-04-03 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:54:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:55:06 [end_date_ymd] => 2025-04-03 19:55:06 [RateCDR] => 1 ) [2025-04-03 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:55:06' and `end` < '2025-04-03 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:55:19] Production.INFO: count ==2713 [2025-04-03 19:55:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:55:06 - End Time 2025-04-03 19:55:06 [2025-04-03 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827778', 'tblTempUsageDetail_20' ) start [2025-04-03 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827778', 'tblTempUsageDetail_20' ) end [2025-04-03 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827778', 'tblTempVendorCDR_20' ) start [2025-04-03 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827778', 'tblTempVendorCDR_20' ) end [2025-04-03 19:55:20] Production.INFO: ProcessCDR(1,14827778,1,1,2) [2025-04-03 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827778', 'tblTempUsageDetail_20' ) start [2025-04-03 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827778', 'tblTempUsageDetail_20' ) end [2025-04-03 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:55:25] Production.INFO: ==26489== Releasing lock... [2025-04-03 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:55:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-03 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:56:05 [end_date_ymd] => 2025-04-03 19:56:05 [RateCDR] => 1 ) [2025-04-03 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:56:05' and `end` < '2025-04-03 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:56:19] Production.INFO: count ==2700 [2025-04-03 19:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:56:05 - End Time 2025-04-03 19:56:05 [2025-04-03 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827783', 'tblTempUsageDetail_20' ) start [2025-04-03 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827783', 'tblTempUsageDetail_20' ) end [2025-04-03 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827783', 'tblTempVendorCDR_20' ) start [2025-04-03 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827783', 'tblTempVendorCDR_20' ) end [2025-04-03 19:56:20] Production.INFO: ProcessCDR(1,14827783,1,1,2) [2025-04-03 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827783', 'tblTempUsageDetail_20' ) start [2025-04-03 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827783', 'tblTempUsageDetail_20' ) end [2025-04-03 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:56:23] Production.INFO: ==26598== Releasing lock... [2025-04-03 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:56:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-03 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:57:06 [end_date_ymd] => 2025-04-03 19:57:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:57:06' and `end` < '2025-04-03 19: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-03 19:57:19] Production.INFO: count ==2696 [2025-04-03 19:57:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:57:06 - End Time 2025-04-03 19:57:06 [2025-04-03 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827788', 'tblTempUsageDetail_20' ) start [2025-04-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827788', 'tblTempUsageDetail_20' ) end [2025-04-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827788', 'tblTempVendorCDR_20' ) start [2025-04-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827788', 'tblTempVendorCDR_20' ) end [2025-04-03 19:57:20] Production.INFO: ProcessCDR(1,14827788,1,1,2) [2025-04-03 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827788', 'tblTempUsageDetail_20' ) start [2025-04-03 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827788', 'tblTempUsageDetail_20' ) end [2025-04-03 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:57:25] Production.INFO: ==26702== Releasing lock... [2025-04-03 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:57:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-03 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:58:06 [end_date_ymd] => 2025-04-03 19:58:06 [RateCDR] => 1 ) [2025-04-03 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 16:58:06' and `end` < '2025-04-03 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 19:58:18] Production.INFO: count ==2679 [2025-04-03 19:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 16:58:06 - End Time 2025-04-03 19:58:06 [2025-04-03 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827793', 'tblTempUsageDetail_20' ) start [2025-04-03 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827793', 'tblTempUsageDetail_20' ) end [2025-04-03 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827793', 'tblTempVendorCDR_20' ) start [2025-04-03 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827793', 'tblTempVendorCDR_20' ) end [2025-04-03 19:58:19] Production.INFO: ProcessCDR(1,14827793,1,1,2) [2025-04-03 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827793', 'tblTempUsageDetail_20' ) start [2025-04-03 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827793', 'tblTempUsageDetail_20' ) end [2025-04-03 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:58:23] Production.INFO: ==26779== Releasing lock... [2025-04-03 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:58:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-03 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 16:59:06 [end_date_ymd] => 2025-04-03 19:59:06 [RateCDR] => 1 ) [2025-04-03 19: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-03 16:59:06' and `end` < '2025-04-03 19: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-03 19:59:19] Production.INFO: count ==2675 [2025-04-03 19:59:20] Production.ERROR: pbx CDR StartTime 2025-04-03 16:59:06 - End Time 2025-04-03 19:59:06 [2025-04-03 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827798', 'tblTempUsageDetail_20' ) start [2025-04-03 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827798', 'tblTempUsageDetail_20' ) end [2025-04-03 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827798', 'tblTempVendorCDR_20' ) start [2025-04-03 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827798', 'tblTempVendorCDR_20' ) end [2025-04-03 19:59:20] Production.INFO: ProcessCDR(1,14827798,1,1,2) [2025-04-03 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827798', 'tblTempUsageDetail_20' ) start [2025-04-03 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827798', 'tblTempUsageDetail_20' ) end [2025-04-03 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 19:59:24] Production.INFO: ==26858== Releasing lock... [2025-04-03 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 19:59:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-03 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:00:07 [end_date_ymd] => 2025-04-03 20:00:07 [RateCDR] => 1 ) [2025-04-03 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:00:07' and `end` < '2025-04-03 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:00:19] Production.INFO: count ==2656 [2025-04-03 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:00:07 - End Time 2025-04-03 20:00:07 [2025-04-03 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827804', 'tblTempUsageDetail_20' ) start [2025-04-03 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827804', 'tblTempUsageDetail_20' ) end [2025-04-03 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827804', 'tblTempVendorCDR_20' ) start [2025-04-03 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827804', 'tblTempVendorCDR_20' ) end [2025-04-03 20:00:20] Production.INFO: ProcessCDR(1,14827804,1,1,2) [2025-04-03 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827804', 'tblTempUsageDetail_20' ) start [2025-04-03 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827804', 'tblTempUsageDetail_20' ) end [2025-04-03 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:00:24] Production.INFO: ==26933== Releasing lock... [2025-04-03 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:00:24] Production.INFO: 48 MB #Memory Used# [2025-04-03 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:01:06 [end_date_ymd] => 2025-04-03 20:01:06 [RateCDR] => 1 ) [2025-04-03 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:01:06' and `end` < '2025-04-03 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:01:19] Production.INFO: count ==2565 [2025-04-03 20:01:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:01:06 - End Time 2025-04-03 20:01:06 [2025-04-03 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827809', 'tblTempUsageDetail_20' ) start [2025-04-03 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827809', 'tblTempUsageDetail_20' ) end [2025-04-03 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827809', 'tblTempVendorCDR_20' ) start [2025-04-03 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827809', 'tblTempVendorCDR_20' ) end [2025-04-03 20:01:20] Production.INFO: ProcessCDR(1,14827809,1,1,2) [2025-04-03 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827809', 'tblTempUsageDetail_20' ) start [2025-04-03 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827809', 'tblTempUsageDetail_20' ) end [2025-04-03 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:01:24] Production.INFO: ==27063== Releasing lock... [2025-04-03 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:01:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-03 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:02:06 [end_date_ymd] => 2025-04-03 20:02:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:02:06' and `end` < '2025-04-03 20: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-03 20:02:19] Production.INFO: count ==2533 [2025-04-03 20:02:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:02:06 - End Time 2025-04-03 20:02:06 [2025-04-03 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827814', 'tblTempUsageDetail_20' ) start [2025-04-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827814', 'tblTempUsageDetail_20' ) end [2025-04-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827814', 'tblTempVendorCDR_20' ) start [2025-04-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827814', 'tblTempVendorCDR_20' ) end [2025-04-03 20:02:20] Production.INFO: ProcessCDR(1,14827814,1,1,2) [2025-04-03 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827814', 'tblTempUsageDetail_20' ) start [2025-04-03 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827814', 'tblTempUsageDetail_20' ) end [2025-04-03 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:02:24] Production.INFO: ==27135== Releasing lock... [2025-04-03 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:02:24] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:03:06 [end_date_ymd] => 2025-04-03 20:03:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:03:06' and `end` < '2025-04-03 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-03 20:03:19] Production.INFO: count ==2526 [2025-04-03 20:03:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:03:06 - End Time 2025-04-03 20:03:06 [2025-04-03 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827819', 'tblTempUsageDetail_20' ) start [2025-04-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827819', 'tblTempUsageDetail_20' ) end [2025-04-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827819', 'tblTempVendorCDR_20' ) start [2025-04-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827819', 'tblTempVendorCDR_20' ) end [2025-04-03 20:03:20] Production.INFO: ProcessCDR(1,14827819,1,1,2) [2025-04-03 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827819', 'tblTempUsageDetail_20' ) start [2025-04-03 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827819', 'tblTempUsageDetail_20' ) end [2025-04-03 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:03:24] Production.INFO: ==27206== Releasing lock... [2025-04-03 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:03:24] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:04:05 [end_date_ymd] => 2025-04-03 20:04:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:04:05' and `end` < '2025-04-03 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-03 20:04:18] Production.INFO: count ==2524 [2025-04-03 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:04:05 - End Time 2025-04-03 20:04:05 [2025-04-03 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827824', 'tblTempUsageDetail_20' ) start [2025-04-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827824', 'tblTempUsageDetail_20' ) end [2025-04-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827824', 'tblTempVendorCDR_20' ) start [2025-04-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827824', 'tblTempVendorCDR_20' ) end [2025-04-03 20:04:19] Production.INFO: ProcessCDR(1,14827824,1,1,2) [2025-04-03 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827824', 'tblTempUsageDetail_20' ) start [2025-04-03 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827824', 'tblTempUsageDetail_20' ) end [2025-04-03 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:04:23] Production.INFO: ==27279== Releasing lock... [2025-04-03 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:04:23] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:05:07 [end_date_ymd] => 2025-04-03 20:05:07 [RateCDR] => 1 ) [2025-04-03 20:05: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-03 17:05:07' and `end` < '2025-04-03 20:05: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-03 20:05:20] Production.INFO: count ==2526 [2025-04-03 20:05:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:05:07 - End Time 2025-04-03 20:05:07 [2025-04-03 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827829', 'tblTempUsageDetail_20' ) start [2025-04-03 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827829', 'tblTempUsageDetail_20' ) end [2025-04-03 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827829', 'tblTempVendorCDR_20' ) start [2025-04-03 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827829', 'tblTempVendorCDR_20' ) end [2025-04-03 20:05:20] Production.INFO: ProcessCDR(1,14827829,1,1,2) [2025-04-03 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827829', 'tblTempUsageDetail_20' ) start [2025-04-03 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827829', 'tblTempUsageDetail_20' ) end [2025-04-03 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:05:24] Production.INFO: ==27358== Releasing lock... [2025-04-03 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:05:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-03 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:06:06 [end_date_ymd] => 2025-04-03 20:06:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:06:06' and `end` < '2025-04-03 20: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-03 20:06:19] Production.INFO: count ==2529 [2025-04-03 20:06:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:06:06 - End Time 2025-04-03 20:06:06 [2025-04-03 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827834', 'tblTempUsageDetail_20' ) start [2025-04-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827834', 'tblTempUsageDetail_20' ) end [2025-04-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827834', 'tblTempVendorCDR_20' ) start [2025-04-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827834', 'tblTempVendorCDR_20' ) end [2025-04-03 20:06:20] Production.INFO: ProcessCDR(1,14827834,1,1,2) [2025-04-03 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827834', 'tblTempUsageDetail_20' ) start [2025-04-03 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827834', 'tblTempUsageDetail_20' ) end [2025-04-03 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:06:25] Production.INFO: ==27431== Releasing lock... [2025-04-03 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:06:25] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:07:05 [end_date_ymd] => 2025-04-03 20:07:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:07:05' and `end` < '2025-04-03 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-03 20:07:18] Production.INFO: count ==2531 [2025-04-03 20:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:07:05 - End Time 2025-04-03 20:07:05 [2025-04-03 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827839', 'tblTempUsageDetail_20' ) start [2025-04-03 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827839', 'tblTempUsageDetail_20' ) end [2025-04-03 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827839', 'tblTempVendorCDR_20' ) start [2025-04-03 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827839', 'tblTempVendorCDR_20' ) end [2025-04-03 20:07:19] Production.INFO: ProcessCDR(1,14827839,1,1,2) [2025-04-03 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827839', 'tblTempUsageDetail_20' ) start [2025-04-03 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827839', 'tblTempUsageDetail_20' ) end [2025-04-03 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:07:23] Production.INFO: ==27548== Releasing lock... [2025-04-03 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:07:23] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:08:05 [end_date_ymd] => 2025-04-03 20:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:08:05' and `end` < '2025-04-03 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-03 20:08:18] Production.INFO: count ==2516 [2025-04-03 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:08:05 - End Time 2025-04-03 20:08:05 [2025-04-03 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827844', 'tblTempUsageDetail_20' ) start [2025-04-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827844', 'tblTempUsageDetail_20' ) end [2025-04-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827844', 'tblTempVendorCDR_20' ) start [2025-04-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827844', 'tblTempVendorCDR_20' ) end [2025-04-03 20:08:19] Production.INFO: ProcessCDR(1,14827844,1,1,2) [2025-04-03 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827844', 'tblTempUsageDetail_20' ) start [2025-04-03 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827844', 'tblTempUsageDetail_20' ) end [2025-04-03 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:08:24] Production.INFO: ==27618== Releasing lock... [2025-04-03 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:08:24] Production.INFO: 47 MB #Memory Used# [2025-04-03 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:09:06 [end_date_ymd] => 2025-04-03 20:09:06 [RateCDR] => 1 ) [2025-04-03 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:09:06' and `end` < '2025-04-03 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:09:19] Production.INFO: count ==2507 [2025-04-03 20:09:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:09:06 - End Time 2025-04-03 20:09:06 [2025-04-03 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827849', 'tblTempUsageDetail_20' ) start [2025-04-03 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827849', 'tblTempUsageDetail_20' ) end [2025-04-03 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827849', 'tblTempVendorCDR_20' ) start [2025-04-03 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827849', 'tblTempVendorCDR_20' ) end [2025-04-03 20:09:20] Production.INFO: ProcessCDR(1,14827849,1,1,2) [2025-04-03 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827849', 'tblTempUsageDetail_20' ) start [2025-04-03 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827849', 'tblTempUsageDetail_20' ) end [2025-04-03 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:09:25] Production.INFO: ==27692== Releasing lock... [2025-04-03 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:09:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-03 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:10:06 [end_date_ymd] => 2025-04-03 20:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:10:06' and `end` < '2025-04-03 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-03 20:10:19] Production.INFO: count ==2502 [2025-04-03 20:10:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:10:06 - End Time 2025-04-03 20:10:06 [2025-04-03 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827855', 'tblTempUsageDetail_20' ) start [2025-04-03 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827855', 'tblTempUsageDetail_20' ) end [2025-04-03 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827855', 'tblTempVendorCDR_20' ) start [2025-04-03 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827855', 'tblTempVendorCDR_20' ) end [2025-04-03 20:10:20] Production.INFO: ProcessCDR(1,14827855,1,1,2) [2025-04-03 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827855', 'tblTempUsageDetail_20' ) start [2025-04-03 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827855', 'tblTempUsageDetail_20' ) end [2025-04-03 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:10:23] Production.INFO: ==27765== Releasing lock... [2025-04-03 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:10:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-03 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:11:05 [end_date_ymd] => 2025-04-03 20:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:11:05' and `end` < '2025-04-03 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-03 20:11:19] Production.INFO: count ==2415 [2025-04-03 20:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:11:05 - End Time 2025-04-03 20:11:05 [2025-04-03 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827860', 'tblTempUsageDetail_20' ) start [2025-04-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827860', 'tblTempUsageDetail_20' ) end [2025-04-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827860', 'tblTempVendorCDR_20' ) start [2025-04-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827860', 'tblTempVendorCDR_20' ) end [2025-04-03 20:11:19] Production.INFO: ProcessCDR(1,14827860,1,1,2) [2025-04-03 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827860', 'tblTempUsageDetail_20' ) start [2025-04-03 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827860', 'tblTempUsageDetail_20' ) end [2025-04-03 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:11:23] Production.INFO: ==27839== Releasing lock... [2025-04-03 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:11:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-03 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:12:06 [end_date_ymd] => 2025-04-03 20:12:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:12:06' and `end` < '2025-04-03 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-03 20:12:19] Production.INFO: count ==2411 [2025-04-03 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:12:06 - End Time 2025-04-03 20:12:06 [2025-04-03 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827865', 'tblTempUsageDetail_20' ) start [2025-04-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827865', 'tblTempUsageDetail_20' ) end [2025-04-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827865', 'tblTempVendorCDR_20' ) start [2025-04-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827865', 'tblTempVendorCDR_20' ) end [2025-04-03 20:12:19] Production.INFO: ProcessCDR(1,14827865,1,1,2) [2025-04-03 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827865', 'tblTempUsageDetail_20' ) start [2025-04-03 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827865', 'tblTempUsageDetail_20' ) end [2025-04-03 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:12:23] Production.INFO: ==27914== Releasing lock... [2025-04-03 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:12:23] Production.INFO: 46.25 MB #Memory Used# [2025-04-03 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:13:06 [end_date_ymd] => 2025-04-03 20:13:06 [RateCDR] => 1 ) [2025-04-03 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:13:06' and `end` < '2025-04-03 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:13:19] Production.INFO: count ==2405 [2025-04-03 20:13:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:13:06 - End Time 2025-04-03 20:13:06 [2025-04-03 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827870', 'tblTempUsageDetail_20' ) start [2025-04-03 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827870', 'tblTempUsageDetail_20' ) end [2025-04-03 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827870', 'tblTempVendorCDR_20' ) start [2025-04-03 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827870', 'tblTempVendorCDR_20' ) end [2025-04-03 20:13:20] Production.INFO: ProcessCDR(1,14827870,1,1,2) [2025-04-03 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827870', 'tblTempUsageDetail_20' ) start [2025-04-03 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827870', 'tblTempUsageDetail_20' ) end [2025-04-03 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:13:23] Production.INFO: ==27989== Releasing lock... [2025-04-03 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:13:23] Production.INFO: 46 MB #Memory Used# [2025-04-03 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:14:05 [end_date_ymd] => 2025-04-03 20:14:05 [RateCDR] => 1 ) [2025-04-03 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:14:05' and `end` < '2025-04-03 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:14:18] Production.INFO: count ==2404 [2025-04-03 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:14:05 - End Time 2025-04-03 20:14:05 [2025-04-03 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827875', 'tblTempUsageDetail_20' ) start [2025-04-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827875', 'tblTempUsageDetail_20' ) end [2025-04-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827875', 'tblTempVendorCDR_20' ) start [2025-04-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827875', 'tblTempVendorCDR_20' ) end [2025-04-03 20:14:19] Production.INFO: ProcessCDR(1,14827875,1,1,2) [2025-04-03 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827875', 'tblTempUsageDetail_20' ) start [2025-04-03 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827875', 'tblTempUsageDetail_20' ) end [2025-04-03 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:14:24] Production.INFO: ==28060== Releasing lock... [2025-04-03 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:14:24] Production.INFO: 46 MB #Memory Used# [2025-04-03 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:15:05 [end_date_ymd] => 2025-04-03 20:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:15:05' and `end` < '2025-04-03 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-03 20:15:18] Production.INFO: count ==2408 [2025-04-03 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:15:05 - End Time 2025-04-03 20:15:05 [2025-04-03 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827880', 'tblTempUsageDetail_20' ) start [2025-04-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827880', 'tblTempUsageDetail_20' ) end [2025-04-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827880', 'tblTempVendorCDR_20' ) start [2025-04-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827880', 'tblTempVendorCDR_20' ) end [2025-04-03 20:15:19] Production.INFO: ProcessCDR(1,14827880,1,1,2) [2025-04-03 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827880', 'tblTempUsageDetail_20' ) start [2025-04-03 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827880', 'tblTempUsageDetail_20' ) end [2025-04-03 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:15:24] Production.INFO: ==28133== Releasing lock... [2025-04-03 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:15:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-03 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:16:05 [end_date_ymd] => 2025-04-03 20:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:16:05' and `end` < '2025-04-03 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-03 20:16:18] Production.INFO: count ==2388 [2025-04-03 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:16:05 - End Time 2025-04-03 20:16:05 [2025-04-03 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827885', 'tblTempUsageDetail_20' ) start [2025-04-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827885', 'tblTempUsageDetail_20' ) end [2025-04-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827885', 'tblTempVendorCDR_20' ) start [2025-04-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827885', 'tblTempVendorCDR_20' ) end [2025-04-03 20:16:19] Production.INFO: ProcessCDR(1,14827885,1,1,2) [2025-04-03 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827885', 'tblTempUsageDetail_20' ) start [2025-04-03 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827885', 'tblTempUsageDetail_20' ) end [2025-04-03 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:16:23] Production.INFO: ==28203== Releasing lock... [2025-04-03 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:16:23] Production.INFO: 46 MB #Memory Used# [2025-04-03 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:17:06 [end_date_ymd] => 2025-04-03 20:17:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:17:06' and `end` < '2025-04-03 20: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-03 20:17:19] Production.INFO: count ==2381 [2025-04-03 20:17:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:17:06 - End Time 2025-04-03 20:17:06 [2025-04-03 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827890', 'tblTempUsageDetail_20' ) start [2025-04-03 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827890', 'tblTempUsageDetail_20' ) end [2025-04-03 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827890', 'tblTempVendorCDR_20' ) start [2025-04-03 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827890', 'tblTempVendorCDR_20' ) end [2025-04-03 20:17:20] Production.INFO: ProcessCDR(1,14827890,1,1,2) [2025-04-03 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827890', 'tblTempUsageDetail_20' ) start [2025-04-03 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827890', 'tblTempUsageDetail_20' ) end [2025-04-03 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:17:24] Production.INFO: ==28278== Releasing lock... [2025-04-03 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:17:24] Production.INFO: 46 MB #Memory Used# [2025-04-03 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:18:05 [end_date_ymd] => 2025-04-03 20:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:18:05' and `end` < '2025-04-03 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-03 20:18:18] Production.INFO: count ==2380 [2025-04-03 20:18:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:18:05 - End Time 2025-04-03 20:18:05 [2025-04-03 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827895', 'tblTempUsageDetail_20' ) start [2025-04-03 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827895', 'tblTempUsageDetail_20' ) end [2025-04-03 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827895', 'tblTempVendorCDR_20' ) start [2025-04-03 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827895', 'tblTempVendorCDR_20' ) end [2025-04-03 20:18:19] Production.INFO: ProcessCDR(1,14827895,1,1,2) [2025-04-03 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827895', 'tblTempUsageDetail_20' ) start [2025-04-03 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827895', 'tblTempUsageDetail_20' ) end [2025-04-03 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:18:24] Production.INFO: ==28350== Releasing lock... [2025-04-03 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:18:24] Production.INFO: 46 MB #Memory Used# [2025-04-03 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:19:05 [end_date_ymd] => 2025-04-03 20:19:05 [RateCDR] => 1 ) [2025-04-03 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:19:05' and `end` < '2025-04-03 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:19:18] Production.INFO: count ==2354 [2025-04-03 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:19:05 - End Time 2025-04-03 20:19:05 [2025-04-03 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827900', 'tblTempUsageDetail_20' ) start [2025-04-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827900', 'tblTempUsageDetail_20' ) end [2025-04-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827900', 'tblTempVendorCDR_20' ) start [2025-04-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827900', 'tblTempVendorCDR_20' ) end [2025-04-03 20:19:19] Production.INFO: ProcessCDR(1,14827900,1,1,2) [2025-04-03 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827900', 'tblTempUsageDetail_20' ) start [2025-04-03 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827900', 'tblTempUsageDetail_20' ) end [2025-04-03 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:19:23] Production.INFO: ==28422== Releasing lock... [2025-04-03 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:19:23] Production.INFO: 45.75 MB #Memory Used# [2025-04-03 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:20:06 [end_date_ymd] => 2025-04-03 20:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:20:06' and `end` < '2025-04-03 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-03 20:20:19] Production.INFO: count ==2352 [2025-04-03 20:20:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:20:06 - End Time 2025-04-03 20:20:06 [2025-04-03 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827906', 'tblTempUsageDetail_20' ) start [2025-04-03 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827906', 'tblTempUsageDetail_20' ) end [2025-04-03 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827906', 'tblTempVendorCDR_20' ) start [2025-04-03 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827906', 'tblTempVendorCDR_20' ) end [2025-04-03 20:20:20] Production.INFO: ProcessCDR(1,14827906,1,1,2) [2025-04-03 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827906', 'tblTempUsageDetail_20' ) start [2025-04-03 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827906', 'tblTempUsageDetail_20' ) end [2025-04-03 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:20:24] Production.INFO: ==28494== Releasing lock... [2025-04-03 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:20:24] Production.INFO: 45.75 MB #Memory Used# [2025-04-03 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:21:06 [end_date_ymd] => 2025-04-03 20:21:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:21:06' and `end` < '2025-04-03 20: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-03 20:21:19] Production.INFO: count ==2301 [2025-04-03 20:21:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:21:06 - End Time 2025-04-03 20:21:06 [2025-04-03 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827911', 'tblTempUsageDetail_20' ) start [2025-04-03 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827911', 'tblTempUsageDetail_20' ) end [2025-04-03 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827911', 'tblTempVendorCDR_20' ) start [2025-04-03 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827911', 'tblTempVendorCDR_20' ) end [2025-04-03 20:21:20] Production.INFO: ProcessCDR(1,14827911,1,1,2) [2025-04-03 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827911', 'tblTempUsageDetail_20' ) start [2025-04-03 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827911', 'tblTempUsageDetail_20' ) end [2025-04-03 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:21:23] Production.INFO: ==28571== Releasing lock... [2025-04-03 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:22:05 [end_date_ymd] => 2025-04-03 20:22:05 [RateCDR] => 1 ) [2025-04-03 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:22:05' and `end` < '2025-04-03 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:22:18] Production.INFO: count ==2298 [2025-04-03 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-03 17:22:05 - End Time 2025-04-03 20:22:05 [2025-04-03 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827916', 'tblTempUsageDetail_20' ) start [2025-04-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827916', 'tblTempUsageDetail_20' ) end [2025-04-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827916', 'tblTempVendorCDR_20' ) start [2025-04-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827916', 'tblTempVendorCDR_20' ) end [2025-04-03 20:22:18] Production.INFO: ProcessCDR(1,14827916,1,1,2) [2025-04-03 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827916', 'tblTempUsageDetail_20' ) start [2025-04-03 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827916', 'tblTempUsageDetail_20' ) end [2025-04-03 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:22:23] Production.INFO: ==28681== Releasing lock... [2025-04-03 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:22:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:23:05 [end_date_ymd] => 2025-04-03 20:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:23:05' and `end` < '2025-04-03 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-03 20:23:19] Production.INFO: count ==2296 [2025-04-03 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:23:05 - End Time 2025-04-03 20:23:05 [2025-04-03 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827921', 'tblTempUsageDetail_20' ) start [2025-04-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827921', 'tblTempUsageDetail_20' ) end [2025-04-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827921', 'tblTempVendorCDR_20' ) start [2025-04-03 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827921', 'tblTempVendorCDR_20' ) end [2025-04-03 20:23:19] Production.INFO: ProcessCDR(1,14827921,1,1,2) [2025-04-03 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827921', 'tblTempUsageDetail_20' ) start [2025-04-03 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827921', 'tblTempUsageDetail_20' ) end [2025-04-03 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:23:23] Production.INFO: ==28755== Releasing lock... [2025-04-03 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:23:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:24:05 [end_date_ymd] => 2025-04-03 20:24:05 [RateCDR] => 1 ) [2025-04-03 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:24:05' and `end` < '2025-04-03 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:24:18] Production.INFO: count ==2294 [2025-04-03 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:24:05 - End Time 2025-04-03 20:24:05 [2025-04-03 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827926', 'tblTempUsageDetail_20' ) start [2025-04-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827926', 'tblTempUsageDetail_20' ) end [2025-04-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827926', 'tblTempVendorCDR_20' ) start [2025-04-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827926', 'tblTempVendorCDR_20' ) end [2025-04-03 20:24:19] Production.INFO: ProcessCDR(1,14827926,1,1,2) [2025-04-03 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827926', 'tblTempUsageDetail_20' ) start [2025-04-03 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827926', 'tblTempUsageDetail_20' ) end [2025-04-03 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:24:22] Production.INFO: ==28826== Releasing lock... [2025-04-03 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:24:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:25:06 [end_date_ymd] => 2025-04-03 20:25:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:25:06' and `end` < '2025-04-03 20: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-03 20:25:18] Production.INFO: count ==2278 [2025-04-03 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:25:06 - End Time 2025-04-03 20:25:06 [2025-04-03 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827931', 'tblTempUsageDetail_20' ) start [2025-04-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827931', 'tblTempUsageDetail_20' ) end [2025-04-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827931', 'tblTempVendorCDR_20' ) start [2025-04-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827931', 'tblTempVendorCDR_20' ) end [2025-04-03 20:25:19] Production.INFO: ProcessCDR(1,14827931,1,1,2) [2025-04-03 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827931', 'tblTempUsageDetail_20' ) start [2025-04-03 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827931', 'tblTempUsageDetail_20' ) end [2025-04-03 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:25:23] Production.INFO: ==28898== Releasing lock... [2025-04-03 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:25:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:26:05 [end_date_ymd] => 2025-04-03 20:26:05 [RateCDR] => 1 ) [2025-04-03 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:26:05' and `end` < '2025-04-03 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-03 20:26:18] Production.INFO: count ==2282 [2025-04-03 20:26:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:26:05 - End Time 2025-04-03 20:26:05 [2025-04-03 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827936', 'tblTempUsageDetail_20' ) start [2025-04-03 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827936', 'tblTempUsageDetail_20' ) end [2025-04-03 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827936', 'tblTempVendorCDR_20' ) start [2025-04-03 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827936', 'tblTempVendorCDR_20' ) end [2025-04-03 20:26:19] Production.INFO: ProcessCDR(1,14827936,1,1,2) [2025-04-03 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827936', 'tblTempUsageDetail_20' ) start [2025-04-03 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827936', 'tblTempUsageDetail_20' ) end [2025-04-03 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:26:22] Production.INFO: ==28973== Releasing lock... [2025-04-03 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:26:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:27:05 [end_date_ymd] => 2025-04-03 20:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:27:05' and `end` < '2025-04-03 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-03 20:27:18] Production.INFO: count ==2285 [2025-04-03 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:27:05 - End Time 2025-04-03 20:27:05 [2025-04-03 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827941', 'tblTempUsageDetail_20' ) start [2025-04-03 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827941', 'tblTempUsageDetail_20' ) end [2025-04-03 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827941', 'tblTempVendorCDR_20' ) start [2025-04-03 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827941', 'tblTempVendorCDR_20' ) end [2025-04-03 20:27:19] Production.INFO: ProcessCDR(1,14827941,1,1,2) [2025-04-03 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827941', 'tblTempUsageDetail_20' ) start [2025-04-03 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827941', 'tblTempUsageDetail_20' ) end [2025-04-03 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:27:22] Production.INFO: ==29049== Releasing lock... [2025-04-03 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:27:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-03 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:28:05 [end_date_ymd] => 2025-04-03 20:28:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:28:05' and `end` < '2025-04-03 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-03 20:28:18] Production.INFO: count ==2291 [2025-04-03 20:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:28:05 - End Time 2025-04-03 20:28:05 [2025-04-03 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827946', 'tblTempUsageDetail_20' ) start [2025-04-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827946', 'tblTempUsageDetail_20' ) end [2025-04-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827946', 'tblTempVendorCDR_20' ) start [2025-04-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827946', 'tblTempVendorCDR_20' ) end [2025-04-03 20:28:19] Production.INFO: ProcessCDR(1,14827946,1,1,2) [2025-04-03 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827946', 'tblTempUsageDetail_20' ) start [2025-04-03 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827946', 'tblTempUsageDetail_20' ) end [2025-04-03 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:28:24] Production.INFO: ==29124== Releasing lock... [2025-04-03 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:28:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:29:05 [end_date_ymd] => 2025-04-03 20:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:29:05' and `end` < '2025-04-03 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-03 20:29:18] Production.INFO: count ==2283 [2025-04-03 20:29:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:29:05 - End Time 2025-04-03 20:29:05 [2025-04-03 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827951', 'tblTempUsageDetail_20' ) start [2025-04-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827951', 'tblTempUsageDetail_20' ) end [2025-04-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827951', 'tblTempVendorCDR_20' ) start [2025-04-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827951', 'tblTempVendorCDR_20' ) end [2025-04-03 20:29:19] Production.INFO: ProcessCDR(1,14827951,1,1,2) [2025-04-03 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827951', 'tblTempUsageDetail_20' ) start [2025-04-03 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827951', 'tblTempUsageDetail_20' ) end [2025-04-03 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:29:22] Production.INFO: ==29197== Releasing lock... [2025-04-03 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:29:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:30:07 [end_date_ymd] => 2025-04-03 20:30:07 [RateCDR] => 1 ) [2025-04-03 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:30:07' and `end` < '2025-04-03 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:30:20] Production.INFO: count ==2273 [2025-04-03 20:30:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:30:07 - End Time 2025-04-03 20:30:07 [2025-04-03 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827956', 'tblTempUsageDetail_20' ) start [2025-04-03 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827956', 'tblTempUsageDetail_20' ) end [2025-04-03 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827956', 'tblTempVendorCDR_20' ) start [2025-04-03 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827956', 'tblTempVendorCDR_20' ) end [2025-04-03 20:30:21] Production.INFO: ProcessCDR(1,14827956,1,1,2) [2025-04-03 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827956', 'tblTempUsageDetail_20' ) start [2025-04-03 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827956', 'tblTempUsageDetail_20' ) end [2025-04-03 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:30:24] Production.INFO: ==29270== Releasing lock... [2025-04-03 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:30:24] Production.INFO: 45 MB #Memory Used# [2025-04-03 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:31:06 [end_date_ymd] => 2025-04-03 20:31:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:31:06' and `end` < '2025-04-03 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:31:19] Production.INFO: count ==2301 [2025-04-03 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:31:06 - End Time 2025-04-03 20:31:06 [2025-04-03 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827962', 'tblTempUsageDetail_20' ) start [2025-04-03 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827962', 'tblTempUsageDetail_20' ) end [2025-04-03 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827962', 'tblTempVendorCDR_20' ) start [2025-04-03 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827962', 'tblTempVendorCDR_20' ) end [2025-04-03 20:31:20] Production.INFO: ProcessCDR(1,14827962,1,1,2) [2025-04-03 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827962', 'tblTempUsageDetail_20' ) start [2025-04-03 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827962', 'tblTempUsageDetail_20' ) end [2025-04-03 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:31:23] Production.INFO: ==29345== Releasing lock... [2025-04-03 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:32:05 [end_date_ymd] => 2025-04-03 20:32:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:32:05' and `end` < '2025-04-03 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-03 20:32:19] Production.INFO: count ==2312 [2025-04-03 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:32:05 - End Time 2025-04-03 20:32:05 [2025-04-03 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827967', 'tblTempUsageDetail_20' ) start [2025-04-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827967', 'tblTempUsageDetail_20' ) end [2025-04-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827967', 'tblTempVendorCDR_20' ) start [2025-04-03 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827967', 'tblTempVendorCDR_20' ) end [2025-04-03 20:32:19] Production.INFO: ProcessCDR(1,14827967,1,1,2) [2025-04-03 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827967', 'tblTempUsageDetail_20' ) start [2025-04-03 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827967', 'tblTempUsageDetail_20' ) end [2025-04-03 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:32:23] Production.INFO: ==29417== Releasing lock... [2025-04-03 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:32:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-03 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:33:05 [end_date_ymd] => 2025-04-03 20:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:33:05' and `end` < '2025-04-03 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-03 20:33:18] Production.INFO: count ==2307 [2025-04-03 20:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:33:05 - End Time 2025-04-03 20:33:05 [2025-04-03 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827972', 'tblTempUsageDetail_20' ) start [2025-04-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827972', 'tblTempUsageDetail_20' ) end [2025-04-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827972', 'tblTempVendorCDR_20' ) start [2025-04-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827972', 'tblTempVendorCDR_20' ) end [2025-04-03 20:33:19] Production.INFO: ProcessCDR(1,14827972,1,1,2) [2025-04-03 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827972', 'tblTempUsageDetail_20' ) start [2025-04-03 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827972', 'tblTempUsageDetail_20' ) end [2025-04-03 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:33:23] Production.INFO: ==29489== Releasing lock... [2025-04-03 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:33:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:34:05 [end_date_ymd] => 2025-04-03 20:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:34:05' and `end` < '2025-04-03 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-03 20:34:18] Production.INFO: count ==2306 [2025-04-03 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:34:05 - End Time 2025-04-03 20:34:05 [2025-04-03 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827977', 'tblTempUsageDetail_20' ) start [2025-04-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827977', 'tblTempUsageDetail_20' ) end [2025-04-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827977', 'tblTempVendorCDR_20' ) start [2025-04-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827977', 'tblTempVendorCDR_20' ) end [2025-04-03 20:34:19] Production.INFO: ProcessCDR(1,14827977,1,1,2) [2025-04-03 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827977', 'tblTempUsageDetail_20' ) start [2025-04-03 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827977', 'tblTempUsageDetail_20' ) end [2025-04-03 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:34:24] Production.INFO: ==29562== Releasing lock... [2025-04-03 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:34:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:35:05 [end_date_ymd] => 2025-04-03 20:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:35:05' and `end` < '2025-04-03 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-03 20:35:18] Production.INFO: count ==2299 [2025-04-03 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:35:05 - End Time 2025-04-03 20:35:05 [2025-04-03 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827982', 'tblTempUsageDetail_20' ) start [2025-04-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827982', 'tblTempUsageDetail_20' ) end [2025-04-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827982', 'tblTempVendorCDR_20' ) start [2025-04-03 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827982', 'tblTempVendorCDR_20' ) end [2025-04-03 20:35:19] Production.INFO: ProcessCDR(1,14827982,1,1,2) [2025-04-03 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827982', 'tblTempUsageDetail_20' ) start [2025-04-03 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827982', 'tblTempUsageDetail_20' ) end [2025-04-03 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:35:22] Production.INFO: ==29633== Releasing lock... [2025-04-03 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:35:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-03 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:36:06 [end_date_ymd] => 2025-04-03 20:36:06 [RateCDR] => 1 ) [2025-04-03 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:36:06' and `end` < '2025-04-03 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:36:19] Production.INFO: count ==2291 [2025-04-03 20:36:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:36:06 - End Time 2025-04-03 20:36:06 [2025-04-03 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827987', 'tblTempUsageDetail_20' ) start [2025-04-03 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827987', 'tblTempUsageDetail_20' ) end [2025-04-03 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827987', 'tblTempVendorCDR_20' ) start [2025-04-03 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827987', 'tblTempVendorCDR_20' ) end [2025-04-03 20:36:20] Production.INFO: ProcessCDR(1,14827987,1,1,2) [2025-04-03 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827987', 'tblTempUsageDetail_20' ) start [2025-04-03 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827987', 'tblTempUsageDetail_20' ) end [2025-04-03 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:36:23] Production.INFO: ==29706== Releasing lock... [2025-04-03 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:36:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:37:05 [end_date_ymd] => 2025-04-03 20:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:37:05' and `end` < '2025-04-03 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-03 20:37:18] Production.INFO: count ==2285 [2025-04-03 20:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:37:05 - End Time 2025-04-03 20:37:05 [2025-04-03 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827992', 'tblTempUsageDetail_20' ) start [2025-04-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827992', 'tblTempUsageDetail_20' ) end [2025-04-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827992', 'tblTempVendorCDR_20' ) start [2025-04-03 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827992', 'tblTempVendorCDR_20' ) end [2025-04-03 20:37:19] Production.INFO: ProcessCDR(1,14827992,1,1,2) [2025-04-03 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827992', 'tblTempUsageDetail_20' ) start [2025-04-03 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827992', 'tblTempUsageDetail_20' ) end [2025-04-03 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:37:23] Production.INFO: ==29778== Releasing lock... [2025-04-03 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:37:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:38:06 [end_date_ymd] => 2025-04-03 20:38:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:38:06' and `end` < '2025-04-03 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-03 20:38:19] Production.INFO: count ==2284 [2025-04-03 20:38:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:38:06 - End Time 2025-04-03 20:38:06 [2025-04-03 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827997', 'tblTempUsageDetail_20' ) start [2025-04-03 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14827997', 'tblTempUsageDetail_20' ) end [2025-04-03 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827997', 'tblTempVendorCDR_20' ) start [2025-04-03 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14827997', 'tblTempVendorCDR_20' ) end [2025-04-03 20:38:20] Production.INFO: ProcessCDR(1,14827997,1,1,2) [2025-04-03 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14827997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14827997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14827997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14827997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827997', 'tblTempUsageDetail_20' ) start [2025-04-03 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14827997', 'tblTempUsageDetail_20' ) end [2025-04-03 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:38:24] Production.INFO: ==29889== Releasing lock... [2025-04-03 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:38:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:39:05 [end_date_ymd] => 2025-04-03 20:39:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:39:05' and `end` < '2025-04-03 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-03 20:39:18] Production.INFO: count ==2286 [2025-04-03 20:39:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:39:05 - End Time 2025-04-03 20:39:05 [2025-04-03 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828002', 'tblTempUsageDetail_20' ) start [2025-04-03 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828002', 'tblTempUsageDetail_20' ) end [2025-04-03 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828002', 'tblTempVendorCDR_20' ) start [2025-04-03 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828002', 'tblTempVendorCDR_20' ) end [2025-04-03 20:39:19] Production.INFO: ProcessCDR(1,14828002,1,1,2) [2025-04-03 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828002', 'tblTempUsageDetail_20' ) start [2025-04-03 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828002', 'tblTempUsageDetail_20' ) end [2025-04-03 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:39:23] Production.INFO: ==29962== Releasing lock... [2025-04-03 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:39:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:40:06 [end_date_ymd] => 2025-04-03 20:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:40:06' and `end` < '2025-04-03 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-03 20:40:19] Production.INFO: count ==2288 [2025-04-03 20:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:40:06 - End Time 2025-04-03 20:40:06 [2025-04-03 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828008', 'tblTempUsageDetail_20' ) start [2025-04-03 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828008', 'tblTempUsageDetail_20' ) end [2025-04-03 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828008', 'tblTempVendorCDR_20' ) start [2025-04-03 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828008', 'tblTempVendorCDR_20' ) end [2025-04-03 20:40:20] Production.INFO: ProcessCDR(1,14828008,1,1,2) [2025-04-03 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828008', 'tblTempUsageDetail_20' ) start [2025-04-03 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828008', 'tblTempUsageDetail_20' ) end [2025-04-03 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:40:24] Production.INFO: ==30040== Releasing lock... [2025-04-03 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:40:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:41:05 [end_date_ymd] => 2025-04-03 20:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:41:05' and `end` < '2025-04-03 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-03 20:41:19] Production.INFO: count ==2279 [2025-04-03 20:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:41:05 - End Time 2025-04-03 20:41:05 [2025-04-03 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828013', 'tblTempUsageDetail_20' ) start [2025-04-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828013', 'tblTempUsageDetail_20' ) end [2025-04-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828013', 'tblTempVendorCDR_20' ) start [2025-04-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828013', 'tblTempVendorCDR_20' ) end [2025-04-03 20:41:19] Production.INFO: ProcessCDR(1,14828013,1,1,2) [2025-04-03 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828013', 'tblTempUsageDetail_20' ) start [2025-04-03 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828013', 'tblTempUsageDetail_20' ) end [2025-04-03 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:41:25] Production.INFO: ==30115== Releasing lock... [2025-04-03 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:41:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-03 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:42:05 [end_date_ymd] => 2025-04-03 20:42:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:42:05' and `end` < '2025-04-03 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-03 20:42:18] Production.INFO: count ==2276 [2025-04-03 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:42:05 - End Time 2025-04-03 20:42:05 [2025-04-03 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828018', 'tblTempUsageDetail_20' ) start [2025-04-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828018', 'tblTempUsageDetail_20' ) end [2025-04-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828018', 'tblTempVendorCDR_20' ) start [2025-04-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828018', 'tblTempVendorCDR_20' ) end [2025-04-03 20:42:19] Production.INFO: ProcessCDR(1,14828018,1,1,2) [2025-04-03 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828018', 'tblTempUsageDetail_20' ) start [2025-04-03 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828018', 'tblTempUsageDetail_20' ) end [2025-04-03 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:42:23] Production.INFO: ==30191== Releasing lock... [2025-04-03 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:42:23] Production.INFO: 45.5 MB #Memory Used# [2025-04-03 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:43:05 [end_date_ymd] => 2025-04-03 20:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:43:05' and `end` < '2025-04-03 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-03 20:43:18] Production.INFO: count ==2259 [2025-04-03 20:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:43:05 - End Time 2025-04-03 20:43:05 [2025-04-03 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828023', 'tblTempUsageDetail_20' ) start [2025-04-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828023', 'tblTempUsageDetail_20' ) end [2025-04-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828023', 'tblTempVendorCDR_20' ) start [2025-04-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828023', 'tblTempVendorCDR_20' ) end [2025-04-03 20:43:19] Production.INFO: ProcessCDR(1,14828023,1,1,2) [2025-04-03 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828023', 'tblTempUsageDetail_20' ) start [2025-04-03 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828023', 'tblTempUsageDetail_20' ) end [2025-04-03 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:43:24] Production.INFO: ==30269== Releasing lock... [2025-04-03 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:43:24] Production.INFO: 45 MB #Memory Used# [2025-04-03 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:44:06 [end_date_ymd] => 2025-04-03 20:44:06 [RateCDR] => 1 ) [2025-04-03 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:44:06' and `end` < '2025-04-03 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:44:18] Production.INFO: count ==2247 [2025-04-03 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:44:06 - End Time 2025-04-03 20:44:06 [2025-04-03 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828028', 'tblTempUsageDetail_20' ) start [2025-04-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828028', 'tblTempUsageDetail_20' ) end [2025-04-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828028', 'tblTempVendorCDR_20' ) start [2025-04-03 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828028', 'tblTempVendorCDR_20' ) end [2025-04-03 20:44:19] Production.INFO: ProcessCDR(1,14828028,1,1,2) [2025-04-03 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828028', 'tblTempUsageDetail_20' ) start [2025-04-03 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828028', 'tblTempUsageDetail_20' ) end [2025-04-03 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:44:23] Production.INFO: ==30339== Releasing lock... [2025-04-03 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:44:23] Production.INFO: 45 MB #Memory Used# [2025-04-03 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:45:05 [end_date_ymd] => 2025-04-03 20:45:05 [RateCDR] => 1 ) [2025-04-03 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:45:05' and `end` < '2025-04-03 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:45:18] Production.INFO: count ==2238 [2025-04-03 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-03 17:45:05 - End Time 2025-04-03 20:45:05 [2025-04-03 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828033', 'tblTempUsageDetail_20' ) start [2025-04-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828033', 'tblTempUsageDetail_20' ) end [2025-04-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828033', 'tblTempVendorCDR_20' ) start [2025-04-03 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828033', 'tblTempVendorCDR_20' ) end [2025-04-03 20:45:19] Production.INFO: ProcessCDR(1,14828033,1,1,2) [2025-04-03 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828033', 'tblTempUsageDetail_20' ) start [2025-04-03 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828033', 'tblTempUsageDetail_20' ) end [2025-04-03 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:45:22] Production.INFO: ==30412== Releasing lock... [2025-04-03 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:45:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-03 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:46:05 [end_date_ymd] => 2025-04-03 20:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:46:05' and `end` < '2025-04-03 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-03 20:46:18] Production.INFO: count ==2221 [2025-04-03 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:46:05 - End Time 2025-04-03 20:46:05 [2025-04-03 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828038', 'tblTempUsageDetail_20' ) start [2025-04-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828038', 'tblTempUsageDetail_20' ) end [2025-04-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828038', 'tblTempVendorCDR_20' ) start [2025-04-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828038', 'tblTempVendorCDR_20' ) end [2025-04-03 20:46:19] Production.INFO: ProcessCDR(1,14828038,1,1,2) [2025-04-03 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828038', 'tblTempUsageDetail_20' ) start [2025-04-03 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828038', 'tblTempUsageDetail_20' ) end [2025-04-03 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:46:23] Production.INFO: ==30487== Releasing lock... [2025-04-03 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:46:23] Production.INFO: 44.75 MB #Memory Used# [2025-04-03 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:47:05 [end_date_ymd] => 2025-04-03 20:47:05 [RateCDR] => 1 ) [2025-04-03 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:47:05' and `end` < '2025-04-03 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:47:18] Production.INFO: count ==2208 [2025-04-03 20:47:18] Production.ERROR: pbx CDR StartTime 2025-04-03 17:47:05 - End Time 2025-04-03 20:47:05 [2025-04-03 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828043', 'tblTempUsageDetail_20' ) start [2025-04-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828043', 'tblTempUsageDetail_20' ) end [2025-04-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828043', 'tblTempVendorCDR_20' ) start [2025-04-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828043', 'tblTempVendorCDR_20' ) end [2025-04-03 20:47:18] Production.INFO: ProcessCDR(1,14828043,1,1,2) [2025-04-03 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828043', 'tblTempUsageDetail_20' ) start [2025-04-03 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828043', 'tblTempUsageDetail_20' ) end [2025-04-03 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:47:22] Production.INFO: ==30566== Releasing lock... [2025-04-03 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:47:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-03 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:48:05 [end_date_ymd] => 2025-04-03 20:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:48:05' and `end` < '2025-04-03 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-03 20:48:18] Production.INFO: count ==2199 [2025-04-03 20:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:48:05 - End Time 2025-04-03 20:48:05 [2025-04-03 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828048', 'tblTempUsageDetail_20' ) start [2025-04-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828048', 'tblTempUsageDetail_20' ) end [2025-04-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828048', 'tblTempVendorCDR_20' ) start [2025-04-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828048', 'tblTempVendorCDR_20' ) end [2025-04-03 20:48:19] Production.INFO: ProcessCDR(1,14828048,1,1,2) [2025-04-03 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828048', 'tblTempUsageDetail_20' ) start [2025-04-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828048', 'tblTempUsageDetail_20' ) end [2025-04-03 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:48:22] Production.INFO: ==30639== Releasing lock... [2025-04-03 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:48:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-03 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:49:04 [end_date_ymd] => 2025-04-03 20:49:04 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:49:04' and `end` < '2025-04-03 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:49:17] Production.INFO: count ==2188 [2025-04-03 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-03 17:49:04 - End Time 2025-04-03 20:49:04 [2025-04-03 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828053', 'tblTempUsageDetail_20' ) start [2025-04-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828053', 'tblTempUsageDetail_20' ) end [2025-04-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828053', 'tblTempVendorCDR_20' ) start [2025-04-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828053', 'tblTempVendorCDR_20' ) end [2025-04-03 20:49:18] Production.INFO: ProcessCDR(1,14828053,1,1,2) [2025-04-03 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828053', 'tblTempUsageDetail_20' ) start [2025-04-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828053', 'tblTempUsageDetail_20' ) end [2025-04-03 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:49:21] Production.INFO: ==30711== Releasing lock... [2025-04-03 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:49:21] Production.INFO: 44.5 MB #Memory Used# [2025-04-03 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:50:06 [end_date_ymd] => 2025-04-03 20:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 17:50:06' and `end` < '2025-04-03 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-03 20:50:18] Production.INFO: count ==2165 [2025-04-03 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:50:06 - End Time 2025-04-03 20:50:06 [2025-04-03 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828058', 'tblTempUsageDetail_20' ) start [2025-04-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828058', 'tblTempUsageDetail_20' ) end [2025-04-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828058', 'tblTempVendorCDR_20' ) start [2025-04-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828058', 'tblTempVendorCDR_20' ) end [2025-04-03 20:50:19] Production.INFO: ProcessCDR(1,14828058,1,1,2) [2025-04-03 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828058', 'tblTempUsageDetail_20' ) start [2025-04-03 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828058', 'tblTempUsageDetail_20' ) end [2025-04-03 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:50:23] Production.INFO: ==30786== Releasing lock... [2025-04-03 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:50:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-03 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:51:06 [end_date_ymd] => 2025-04-03 20:51:06 [RateCDR] => 1 ) [2025-04-03 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:51:06' and `end` < '2025-04-03 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:51:19] Production.INFO: count ==2087 [2025-04-03 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:51:06 - End Time 2025-04-03 20:51:06 [2025-04-03 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828064', 'tblTempUsageDetail_20' ) start [2025-04-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828064', 'tblTempUsageDetail_20' ) end [2025-04-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828064', 'tblTempVendorCDR_20' ) start [2025-04-03 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828064', 'tblTempVendorCDR_20' ) end [2025-04-03 20:51:19] Production.INFO: ProcessCDR(1,14828064,1,1,2) [2025-04-03 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828064', 'tblTempUsageDetail_20' ) start [2025-04-03 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828064', 'tblTempUsageDetail_20' ) end [2025-04-03 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:51:23] Production.INFO: ==30862== Releasing lock... [2025-04-03 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:51:23] Production.INFO: 44 MB #Memory Used# [2025-04-03 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:52:06 [end_date_ymd] => 2025-04-03 20:52:06 [RateCDR] => 1 ) [2025-04-03 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:52:06' and `end` < '2025-04-03 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:52:18] Production.INFO: count ==2078 [2025-04-03 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:52:06 - End Time 2025-04-03 20:52:06 [2025-04-03 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828069', 'tblTempUsageDetail_20' ) start [2025-04-03 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828069', 'tblTempUsageDetail_20' ) end [2025-04-03 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828069', 'tblTempVendorCDR_20' ) start [2025-04-03 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828069', 'tblTempVendorCDR_20' ) end [2025-04-03 20:52:19] Production.INFO: ProcessCDR(1,14828069,1,1,2) [2025-04-03 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828069', 'tblTempUsageDetail_20' ) start [2025-04-03 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828069', 'tblTempUsageDetail_20' ) end [2025-04-03 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:52:23] Production.INFO: ==30932== Releasing lock... [2025-04-03 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:52:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:53:06 [end_date_ymd] => 2025-04-03 20:53:06 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:53:06' and `end` < '2025-04-03 20: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-03 20:53:19] Production.INFO: count ==2091 [2025-04-03 20:53:20] Production.ERROR: pbx CDR StartTime 2025-04-03 17:53:06 - End Time 2025-04-03 20:53:06 [2025-04-03 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828074', 'tblTempUsageDetail_20' ) start [2025-04-03 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828074', 'tblTempUsageDetail_20' ) end [2025-04-03 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828074', 'tblTempVendorCDR_20' ) start [2025-04-03 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828074', 'tblTempVendorCDR_20' ) end [2025-04-03 20:53:20] Production.INFO: ProcessCDR(1,14828074,1,1,2) [2025-04-03 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828074', 'tblTempUsageDetail_20' ) start [2025-04-03 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828074', 'tblTempUsageDetail_20' ) end [2025-04-03 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:53:25] Production.INFO: ==31044== Releasing lock... [2025-04-03 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:53:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:54:05 [end_date_ymd] => 2025-04-03 20:54:05 [RateCDR] => 1 ) [2025-04-03 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:54:05' and `end` < '2025-04-03 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:54:18] Production.INFO: count ==2066 [2025-04-03 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:54:05 - End Time 2025-04-03 20:54:05 [2025-04-03 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828079', 'tblTempUsageDetail_20' ) start [2025-04-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828079', 'tblTempUsageDetail_20' ) end [2025-04-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828079', 'tblTempVendorCDR_20' ) start [2025-04-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828079', 'tblTempVendorCDR_20' ) end [2025-04-03 20:54:19] Production.INFO: ProcessCDR(1,14828079,1,1,2) [2025-04-03 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828079', 'tblTempUsageDetail_20' ) start [2025-04-03 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828079', 'tblTempUsageDetail_20' ) end [2025-04-03 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:54:24] Production.INFO: ==31116== Releasing lock... [2025-04-03 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:55:04 [end_date_ymd] => 2025-04-03 20:55:04 [RateCDR] => 1 ) [2025-04-03 20: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-03 17:55:04' and `end` < '2025-04-03 20: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-03 20:55:18] Production.INFO: count ==2059 [2025-04-03 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 17:55:04 - End Time 2025-04-03 20:55:04 [2025-04-03 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828084', 'tblTempUsageDetail_20' ) start [2025-04-03 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828084', 'tblTempUsageDetail_20' ) end [2025-04-03 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828084', 'tblTempVendorCDR_20' ) start [2025-04-03 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828084', 'tblTempVendorCDR_20' ) end [2025-04-03 20:55:18] Production.INFO: ProcessCDR(1,14828084,1,1,2) [2025-04-03 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828084', 'tblTempUsageDetail_20' ) start [2025-04-03 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828084', 'tblTempUsageDetail_20' ) end [2025-04-03 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:55:23] Production.INFO: ==31185== Releasing lock... [2025-04-03 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:56:05 [end_date_ymd] => 2025-04-03 20:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:56:05' and `end` < '2025-04-03 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-03 20:56:18] Production.INFO: count ==2051 [2025-04-03 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:56:05 - End Time 2025-04-03 20:56:05 [2025-04-03 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828089', 'tblTempUsageDetail_20' ) start [2025-04-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828089', 'tblTempUsageDetail_20' ) end [2025-04-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828089', 'tblTempVendorCDR_20' ) start [2025-04-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828089', 'tblTempVendorCDR_20' ) end [2025-04-03 20:56:19] Production.INFO: ProcessCDR(1,14828089,1,1,2) [2025-04-03 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828089', 'tblTempUsageDetail_20' ) start [2025-04-03 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828089', 'tblTempUsageDetail_20' ) end [2025-04-03 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:56:22] Production.INFO: ==31261== Releasing lock... [2025-04-03 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:56:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:57:06 [end_date_ymd] => 2025-04-03 20:57:06 [RateCDR] => 1 ) [2025-04-03 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:57:06' and `end` < '2025-04-03 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:57:19] Production.INFO: count ==2057 [2025-04-03 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:57:06 - End Time 2025-04-03 20:57:06 [2025-04-03 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828094', 'tblTempUsageDetail_20' ) start [2025-04-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828094', 'tblTempUsageDetail_20' ) end [2025-04-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828094', 'tblTempVendorCDR_20' ) start [2025-04-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828094', 'tblTempVendorCDR_20' ) end [2025-04-03 20:57:19] Production.INFO: ProcessCDR(1,14828094,1,1,2) [2025-04-03 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828094', 'tblTempUsageDetail_20' ) start [2025-04-03 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828094', 'tblTempUsageDetail_20' ) end [2025-04-03 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:57:23] Production.INFO: ==31331== Releasing lock... [2025-04-03 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:57:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:58:05 [end_date_ymd] => 2025-04-03 20:58:05 [RateCDR] => 1 ) [2025-04-03 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 17:58:05' and `end` < '2025-04-03 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 20:58:18] Production.INFO: count ==2057 [2025-04-03 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:58:05 - End Time 2025-04-03 20:58:05 [2025-04-03 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828099', 'tblTempUsageDetail_20' ) start [2025-04-03 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828099', 'tblTempUsageDetail_20' ) end [2025-04-03 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828099', 'tblTempVendorCDR_20' ) start [2025-04-03 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828099', 'tblTempVendorCDR_20' ) end [2025-04-03 20:58:19] Production.INFO: ProcessCDR(1,14828099,1,1,2) [2025-04-03 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828099', 'tblTempUsageDetail_20' ) start [2025-04-03 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828099', 'tblTempUsageDetail_20' ) end [2025-04-03 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:58:23] Production.INFO: ==31404== Releasing lock... [2025-04-03 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 17:59:05 [end_date_ymd] => 2025-04-03 20:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 17:59:05' and `end` < '2025-04-03 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-03 20:59:18] Production.INFO: count ==2065 [2025-04-03 20:59:19] Production.ERROR: pbx CDR StartTime 2025-04-03 17:59:05 - End Time 2025-04-03 20:59:05 [2025-04-03 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828104', 'tblTempUsageDetail_20' ) start [2025-04-03 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828104', 'tblTempUsageDetail_20' ) end [2025-04-03 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828104', 'tblTempVendorCDR_20' ) start [2025-04-03 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828104', 'tblTempVendorCDR_20' ) end [2025-04-03 20:59:19] Production.INFO: ProcessCDR(1,14828104,1,1,2) [2025-04-03 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828104', 'tblTempUsageDetail_20' ) start [2025-04-03 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828104', 'tblTempUsageDetail_20' ) end [2025-04-03 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 20:59:23] Production.INFO: ==31476== Releasing lock... [2025-04-03 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 20:59:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:00:05 [end_date_ymd] => 2025-04-03 21:00:05 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:00:05' and `end` < '2025-04-03 21: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-03 21:00:18] Production.INFO: count ==2059 [2025-04-03 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:00:05 - End Time 2025-04-03 21:00:05 [2025-04-03 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828109', 'tblTempUsageDetail_20' ) start [2025-04-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828109', 'tblTempUsageDetail_20' ) end [2025-04-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828109', 'tblTempVendorCDR_20' ) start [2025-04-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828109', 'tblTempVendorCDR_20' ) end [2025-04-03 21:00:19] Production.INFO: ProcessCDR(1,14828109,1,1,2) [2025-04-03 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828109', 'tblTempUsageDetail_20' ) start [2025-04-03 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828109', 'tblTempUsageDetail_20' ) end [2025-04-03 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:00:23] Production.INFO: ==31549== Releasing lock... [2025-04-03 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:00:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-03 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:01:06 [end_date_ymd] => 2025-04-03 21:01:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:01:06' and `end` < '2025-04-03 21: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-03 21:01:19] Production.INFO: count ==2016 [2025-04-03 21:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:01:06 - End Time 2025-04-03 21:01:06 [2025-04-03 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828115', 'tblTempUsageDetail_20' ) start [2025-04-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828115', 'tblTempUsageDetail_20' ) end [2025-04-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828115', 'tblTempVendorCDR_20' ) start [2025-04-03 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828115', 'tblTempVendorCDR_20' ) end [2025-04-03 21:01:19] Production.INFO: ProcessCDR(1,14828115,1,1,2) [2025-04-03 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828115', 'tblTempUsageDetail_20' ) start [2025-04-03 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828115', 'tblTempUsageDetail_20' ) end [2025-04-03 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:01:23] Production.INFO: ==31635== Releasing lock... [2025-04-03 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:01:23] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:02:06 [end_date_ymd] => 2025-04-03 21:02:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:02:06' and `end` < '2025-04-03 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-03 21:02:19] Production.INFO: count ==2017 [2025-04-03 21:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:02:06 - End Time 2025-04-03 21:02:06 [2025-04-03 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828120', 'tblTempUsageDetail_20' ) start [2025-04-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828120', 'tblTempUsageDetail_20' ) end [2025-04-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828120', 'tblTempVendorCDR_20' ) start [2025-04-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828120', 'tblTempVendorCDR_20' ) end [2025-04-03 21:02:19] Production.INFO: ProcessCDR(1,14828120,1,1,2) [2025-04-03 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828120', 'tblTempUsageDetail_20' ) start [2025-04-03 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828120', 'tblTempUsageDetail_20' ) end [2025-04-03 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:02:23] Production.INFO: ==31710== Releasing lock... [2025-04-03 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:02:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:03:05 [end_date_ymd] => 2025-04-03 21:03:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:03:05' and `end` < '2025-04-03 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-03 21:03:18] Production.INFO: count ==2024 [2025-04-03 21:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:03:05 - End Time 2025-04-03 21:03:05 [2025-04-03 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828125', 'tblTempUsageDetail_20' ) start [2025-04-03 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828125', 'tblTempUsageDetail_20' ) end [2025-04-03 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828125', 'tblTempVendorCDR_20' ) start [2025-04-03 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828125', 'tblTempVendorCDR_20' ) end [2025-04-03 21:03:19] Production.INFO: ProcessCDR(1,14828125,1,1,2) [2025-04-03 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828125', 'tblTempUsageDetail_20' ) start [2025-04-03 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828125', 'tblTempUsageDetail_20' ) end [2025-04-03 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:03:24] Production.INFO: ==31783== Releasing lock... [2025-04-03 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:03:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:04:05 [end_date_ymd] => 2025-04-03 21:04:05 [RateCDR] => 1 ) [2025-04-03 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:04:05' and `end` < '2025-04-03 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:04:18] Production.INFO: count ==2008 [2025-04-03 21:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:04:05 - End Time 2025-04-03 21:04:05 [2025-04-03 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828130', 'tblTempUsageDetail_20' ) start [2025-04-03 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828130', 'tblTempUsageDetail_20' ) end [2025-04-03 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828130', 'tblTempVendorCDR_20' ) start [2025-04-03 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828130', 'tblTempVendorCDR_20' ) end [2025-04-03 21:04:19] Production.INFO: ProcessCDR(1,14828130,1,1,2) [2025-04-03 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828130', 'tblTempUsageDetail_20' ) start [2025-04-03 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828130', 'tblTempUsageDetail_20' ) end [2025-04-03 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:04:22] Production.INFO: ==31858== Releasing lock... [2025-04-03 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:04:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:05:05 [end_date_ymd] => 2025-04-03 21:05:05 [RateCDR] => 1 ) [2025-04-03 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:05:05' and `end` < '2025-04-03 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:05:18] Production.INFO: count ==2002 [2025-04-03 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:05:05 - End Time 2025-04-03 21:05:05 [2025-04-03 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828135', 'tblTempUsageDetail_20' ) start [2025-04-03 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828135', 'tblTempUsageDetail_20' ) end [2025-04-03 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828135', 'tblTempVendorCDR_20' ) start [2025-04-03 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828135', 'tblTempVendorCDR_20' ) end [2025-04-03 21:05:19] Production.INFO: ProcessCDR(1,14828135,1,1,2) [2025-04-03 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828135', 'tblTempUsageDetail_20' ) start [2025-04-03 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828135', 'tblTempUsageDetail_20' ) end [2025-04-03 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:05:22] Production.INFO: ==31931== Releasing lock... [2025-04-03 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:05:22] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:06:05 [end_date_ymd] => 2025-04-03 21:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:06:05' and `end` < '2025-04-03 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-03 21:06:18] Production.INFO: count ==1999 [2025-04-03 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:06:05 - End Time 2025-04-03 21:06:05 [2025-04-03 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828140', 'tblTempUsageDetail_20' ) start [2025-04-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828140', 'tblTempUsageDetail_20' ) end [2025-04-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828140', 'tblTempVendorCDR_20' ) start [2025-04-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828140', 'tblTempVendorCDR_20' ) end [2025-04-03 21:06:19] Production.INFO: ProcessCDR(1,14828140,1,1,2) [2025-04-03 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828140', 'tblTempUsageDetail_20' ) start [2025-04-03 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828140', 'tblTempUsageDetail_20' ) end [2025-04-03 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:06:22] Production.INFO: ==32037== Releasing lock... [2025-04-03 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:06:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-03 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:07:06 [end_date_ymd] => 2025-04-03 21:07:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:07:06' and `end` < '2025-04-03 21: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-03 21:07:18] Production.INFO: count ==1994 [2025-04-03 21:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:07:06 - End Time 2025-04-03 21:07:06 [2025-04-03 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828145', 'tblTempUsageDetail_20' ) start [2025-04-03 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828145', 'tblTempUsageDetail_20' ) end [2025-04-03 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828145', 'tblTempVendorCDR_20' ) start [2025-04-03 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828145', 'tblTempVendorCDR_20' ) end [2025-04-03 21:07:19] Production.INFO: ProcessCDR(1,14828145,1,1,2) [2025-04-03 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828145', 'tblTempUsageDetail_20' ) start [2025-04-03 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828145', 'tblTempUsageDetail_20' ) end [2025-04-03 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:07:22] Production.INFO: ==32112== Releasing lock... [2025-04-03 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:07:22] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:08:05 [end_date_ymd] => 2025-04-03 21:08:05 [RateCDR] => 1 ) [2025-04-03 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:08:05' and `end` < '2025-04-03 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:08:18] Production.INFO: count ==1993 [2025-04-03 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:08:05 - End Time 2025-04-03 21:08:05 [2025-04-03 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828150', 'tblTempUsageDetail_20' ) start [2025-04-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828150', 'tblTempUsageDetail_20' ) end [2025-04-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828150', 'tblTempVendorCDR_20' ) start [2025-04-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828150', 'tblTempVendorCDR_20' ) end [2025-04-03 21:08:19] Production.INFO: ProcessCDR(1,14828150,1,1,2) [2025-04-03 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828150', 'tblTempUsageDetail_20' ) start [2025-04-03 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828150', 'tblTempUsageDetail_20' ) end [2025-04-03 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:08:23] Production.INFO: ==32185== Releasing lock... [2025-04-03 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:08:23] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:09:05 [end_date_ymd] => 2025-04-03 21:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:09:05' and `end` < '2025-04-03 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-03 21:09:18] Production.INFO: count ==1982 [2025-04-03 21:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:09:05 - End Time 2025-04-03 21:09:05 [2025-04-03 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828155', 'tblTempUsageDetail_20' ) start [2025-04-03 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828155', 'tblTempUsageDetail_20' ) end [2025-04-03 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828155', 'tblTempVendorCDR_20' ) start [2025-04-03 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828155', 'tblTempVendorCDR_20' ) end [2025-04-03 21:09:19] Production.INFO: ProcessCDR(1,14828155,1,1,2) [2025-04-03 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828155', 'tblTempUsageDetail_20' ) start [2025-04-03 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828155', 'tblTempUsageDetail_20' ) end [2025-04-03 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:09:22] Production.INFO: ==32298== Releasing lock... [2025-04-03 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:10:06 [end_date_ymd] => 2025-04-03 21:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:10:06' and `end` < '2025-04-03 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-03 21:10:19] Production.INFO: count ==1974 [2025-04-03 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:10:06 - End Time 2025-04-03 21:10:06 [2025-04-03 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828161', 'tblTempUsageDetail_20' ) start [2025-04-03 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828161', 'tblTempUsageDetail_20' ) end [2025-04-03 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828161', 'tblTempVendorCDR_20' ) start [2025-04-03 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828161', 'tblTempVendorCDR_20' ) end [2025-04-03 21:10:20] Production.INFO: ProcessCDR(1,14828161,1,1,2) [2025-04-03 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828161', 'tblTempUsageDetail_20' ) start [2025-04-03 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828161', 'tblTempUsageDetail_20' ) end [2025-04-03 21:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:10:25] Production.INFO: ==32375== Releasing lock... [2025-04-03 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:10:25] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:11:05 [end_date_ymd] => 2025-04-03 21:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:11:05' and `end` < '2025-04-03 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-03 21:11:18] Production.INFO: count ==1978 [2025-04-03 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:11:05 - End Time 2025-04-03 21:11:05 [2025-04-03 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828166', 'tblTempUsageDetail_20' ) start [2025-04-03 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828166', 'tblTempUsageDetail_20' ) end [2025-04-03 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828166', 'tblTempVendorCDR_20' ) start [2025-04-03 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828166', 'tblTempVendorCDR_20' ) end [2025-04-03 21:11:19] Production.INFO: ProcessCDR(1,14828166,1,1,2) [2025-04-03 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828166', 'tblTempUsageDetail_20' ) start [2025-04-03 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828166', 'tblTempUsageDetail_20' ) end [2025-04-03 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:11:24] Production.INFO: ==32453== Releasing lock... [2025-04-03 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:11:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:12:06 [end_date_ymd] => 2025-04-03 21:12:06 [RateCDR] => 1 ) [2025-04-03 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:12:06' and `end` < '2025-04-03 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:12:19] Production.INFO: count ==1973 [2025-04-03 21:12:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:12:06 - End Time 2025-04-03 21:12:06 [2025-04-03 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828171', 'tblTempUsageDetail_20' ) start [2025-04-03 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828171', 'tblTempUsageDetail_20' ) end [2025-04-03 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828171', 'tblTempVendorCDR_20' ) start [2025-04-03 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828171', 'tblTempVendorCDR_20' ) end [2025-04-03 21:12:20] Production.INFO: ProcessCDR(1,14828171,1,1,2) [2025-04-03 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828171', 'tblTempUsageDetail_20' ) start [2025-04-03 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828171', 'tblTempUsageDetail_20' ) end [2025-04-03 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:12:24] Production.INFO: ==32541== Releasing lock... [2025-04-03 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:12:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:13:06 [end_date_ymd] => 2025-04-03 21:13:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:13:06' and `end` < '2025-04-03 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-03 21:13:19] Production.INFO: count ==1959 [2025-04-03 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:13:06 - End Time 2025-04-03 21:13:06 [2025-04-03 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828176', 'tblTempUsageDetail_20' ) start [2025-04-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828176', 'tblTempUsageDetail_20' ) end [2025-04-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828176', 'tblTempVendorCDR_20' ) start [2025-04-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828176', 'tblTempVendorCDR_20' ) end [2025-04-03 21:13:19] Production.INFO: ProcessCDR(1,14828176,1,1,2) [2025-04-03 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828176', 'tblTempUsageDetail_20' ) start [2025-04-03 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828176', 'tblTempUsageDetail_20' ) end [2025-04-03 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:13:23] Production.INFO: ==32665== Releasing lock... [2025-04-03 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:13:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:14:05 [end_date_ymd] => 2025-04-03 21:14:05 [RateCDR] => 1 ) [2025-04-03 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:14:05' and `end` < '2025-04-03 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:14:18] Production.INFO: count ==1948 [2025-04-03 21:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:14:05 - End Time 2025-04-03 21:14:05 [2025-04-03 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828181', 'tblTempUsageDetail_20' ) start [2025-04-03 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828181', 'tblTempUsageDetail_20' ) end [2025-04-03 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828181', 'tblTempVendorCDR_20' ) start [2025-04-03 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828181', 'tblTempVendorCDR_20' ) end [2025-04-03 21:14:19] Production.INFO: ProcessCDR(1,14828181,1,1,2) [2025-04-03 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828181', 'tblTempUsageDetail_20' ) start [2025-04-03 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828181', 'tblTempUsageDetail_20' ) end [2025-04-03 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:14:22] Production.INFO: ==329== Releasing lock... [2025-04-03 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:14:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:15:06 [end_date_ymd] => 2025-04-03 21:15:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:15:06' and `end` < '2025-04-03 21: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-03 21:15:18] Production.INFO: count ==1947 [2025-04-03 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:15:06 - End Time 2025-04-03 21:15:06 [2025-04-03 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828186', 'tblTempUsageDetail_20' ) start [2025-04-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828186', 'tblTempUsageDetail_20' ) end [2025-04-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828186', 'tblTempVendorCDR_20' ) start [2025-04-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828186', 'tblTempVendorCDR_20' ) end [2025-04-03 21:15:19] Production.INFO: ProcessCDR(1,14828186,1,1,2) [2025-04-03 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828186', 'tblTempUsageDetail_20' ) start [2025-04-03 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828186', 'tblTempUsageDetail_20' ) end [2025-04-03 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:15:24] Production.INFO: ==467== Releasing lock... [2025-04-03 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:15:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:16:05 [end_date_ymd] => 2025-04-03 21:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:16:05' and `end` < '2025-04-03 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-03 21:16:18] Production.INFO: count ==1945 [2025-04-03 21:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:16:05 - End Time 2025-04-03 21:16:05 [2025-04-03 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828191', 'tblTempUsageDetail_20' ) start [2025-04-03 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828191', 'tblTempUsageDetail_20' ) end [2025-04-03 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828191', 'tblTempVendorCDR_20' ) start [2025-04-03 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828191', 'tblTempVendorCDR_20' ) end [2025-04-03 21:16:19] Production.INFO: ProcessCDR(1,14828191,1,1,2) [2025-04-03 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828191', 'tblTempUsageDetail_20' ) start [2025-04-03 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828191', 'tblTempUsageDetail_20' ) end [2025-04-03 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:16:24] Production.INFO: ==598== Releasing lock... [2025-04-03 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:16:24] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:17:05 [end_date_ymd] => 2025-04-03 21:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:17:05' and `end` < '2025-04-03 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-03 21:17:19] Production.INFO: count ==1943 [2025-04-03 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:17:05 - End Time 2025-04-03 21:17:05 [2025-04-03 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828196', 'tblTempUsageDetail_20' ) start [2025-04-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828196', 'tblTempUsageDetail_20' ) end [2025-04-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828196', 'tblTempVendorCDR_20' ) start [2025-04-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828196', 'tblTempVendorCDR_20' ) end [2025-04-03 21:17:19] Production.INFO: ProcessCDR(1,14828196,1,1,2) [2025-04-03 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828196', 'tblTempUsageDetail_20' ) start [2025-04-03 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828196', 'tblTempUsageDetail_20' ) end [2025-04-03 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:17:23] Production.INFO: ==763== Releasing lock... [2025-04-03 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:18:06 [end_date_ymd] => 2025-04-03 21:18:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:18:06' and `end` < '2025-04-03 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-03 21:18:19] Production.INFO: count ==1957 [2025-04-03 21:18:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:18:06 - End Time 2025-04-03 21:18:06 [2025-04-03 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828201', 'tblTempUsageDetail_20' ) start [2025-04-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828201', 'tblTempUsageDetail_20' ) end [2025-04-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828201', 'tblTempVendorCDR_20' ) start [2025-04-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828201', 'tblTempVendorCDR_20' ) end [2025-04-03 21:18:20] Production.INFO: ProcessCDR(1,14828201,1,1,2) [2025-04-03 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828201', 'tblTempUsageDetail_20' ) start [2025-04-03 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828201', 'tblTempUsageDetail_20' ) end [2025-04-03 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:18:23] Production.INFO: ==898== Releasing lock... [2025-04-03 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:18:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:19:05 [end_date_ymd] => 2025-04-03 21:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:19:05' and `end` < '2025-04-03 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-03 21:19:18] Production.INFO: count ==1959 [2025-04-03 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:19:05 - End Time 2025-04-03 21:19:05 [2025-04-03 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828206', 'tblTempUsageDetail_20' ) start [2025-04-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828206', 'tblTempUsageDetail_20' ) end [2025-04-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828206', 'tblTempVendorCDR_20' ) start [2025-04-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828206', 'tblTempVendorCDR_20' ) end [2025-04-03 21:19:18] Production.INFO: ProcessCDR(1,14828206,1,1,2) [2025-04-03 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828206', 'tblTempUsageDetail_20' ) start [2025-04-03 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828206', 'tblTempUsageDetail_20' ) end [2025-04-03 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:19:22] Production.INFO: ==1018== Releasing lock... [2025-04-03 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:19:22] Production.INFO: 43 MB #Memory Used# [2025-04-03 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:20:07 [end_date_ymd] => 2025-04-03 21:20:07 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:20:07' and `end` < '2025-04-03 21: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-03 21:20:19] Production.INFO: count ==1945 [2025-04-03 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:20:07 - End Time 2025-04-03 21:20:07 [2025-04-03 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828212', 'tblTempUsageDetail_20' ) start [2025-04-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828212', 'tblTempUsageDetail_20' ) end [2025-04-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828212', 'tblTempVendorCDR_20' ) start [2025-04-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828212', 'tblTempVendorCDR_20' ) end [2025-04-03 21:20:20] Production.INFO: ProcessCDR(1,14828212,1,1,2) [2025-04-03 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828212', 'tblTempUsageDetail_20' ) start [2025-04-03 21:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828212', 'tblTempUsageDetail_20' ) end [2025-04-03 21:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:20:25] Production.INFO: ==1155== Releasing lock... [2025-04-03 21:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:20:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:21:05 [end_date_ymd] => 2025-04-03 21:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:21:05' and `end` < '2025-04-03 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-03 21:21:18] Production.INFO: count ==1887 [2025-04-03 21:21:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:21:05 - End Time 2025-04-03 21:21:05 [2025-04-03 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828217', 'tblTempUsageDetail_20' ) start [2025-04-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828217', 'tblTempUsageDetail_20' ) end [2025-04-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828217', 'tblTempVendorCDR_20' ) start [2025-04-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828217', 'tblTempVendorCDR_20' ) end [2025-04-03 21:21:19] Production.INFO: ProcessCDR(1,14828217,1,1,2) [2025-04-03 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828217', 'tblTempUsageDetail_20' ) start [2025-04-03 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828217', 'tblTempUsageDetail_20' ) end [2025-04-03 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:21:22] Production.INFO: ==1296== Releasing lock... [2025-04-03 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:21:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:22:05 [end_date_ymd] => 2025-04-03 21:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:22:05' and `end` < '2025-04-03 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-03 21:22:18] Production.INFO: count ==1878 [2025-04-03 21:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:22:05 - End Time 2025-04-03 21:22:05 [2025-04-03 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828222', 'tblTempUsageDetail_20' ) start [2025-04-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828222', 'tblTempUsageDetail_20' ) end [2025-04-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828222', 'tblTempVendorCDR_20' ) start [2025-04-03 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828222', 'tblTempVendorCDR_20' ) end [2025-04-03 21:22:19] Production.INFO: ProcessCDR(1,14828222,1,1,2) [2025-04-03 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828222', 'tblTempUsageDetail_20' ) start [2025-04-03 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828222', 'tblTempUsageDetail_20' ) end [2025-04-03 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:22:22] Production.INFO: ==1408== Releasing lock... [2025-04-03 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:22:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:23:05 [end_date_ymd] => 2025-04-03 21:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:23:05' and `end` < '2025-04-03 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-03 21:23:18] Production.INFO: count ==1875 [2025-04-03 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:23:05 - End Time 2025-04-03 21:23:05 [2025-04-03 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828227', 'tblTempUsageDetail_20' ) start [2025-04-03 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828227', 'tblTempUsageDetail_20' ) end [2025-04-03 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828227', 'tblTempVendorCDR_20' ) start [2025-04-03 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828227', 'tblTempVendorCDR_20' ) end [2025-04-03 21:23:19] Production.INFO: ProcessCDR(1,14828227,1,1,2) [2025-04-03 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828227', 'tblTempUsageDetail_20' ) start [2025-04-03 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828227', 'tblTempUsageDetail_20' ) end [2025-04-03 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:23:23] Production.INFO: ==1484== Releasing lock... [2025-04-03 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:23:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:24:06 [end_date_ymd] => 2025-04-03 21:24:06 [RateCDR] => 1 ) [2025-04-03 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:24:06' and `end` < '2025-04-03 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:24:19] Production.INFO: count ==1874 [2025-04-03 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:24:06 - End Time 2025-04-03 21:24:06 [2025-04-03 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828232', 'tblTempUsageDetail_20' ) start [2025-04-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828232', 'tblTempUsageDetail_20' ) end [2025-04-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828232', 'tblTempVendorCDR_20' ) start [2025-04-03 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828232', 'tblTempVendorCDR_20' ) end [2025-04-03 21:24:19] Production.INFO: ProcessCDR(1,14828232,1,1,2) [2025-04-03 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828232', 'tblTempUsageDetail_20' ) start [2025-04-03 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828232', 'tblTempUsageDetail_20' ) end [2025-04-03 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:24:23] Production.INFO: ==1634== Releasing lock... [2025-04-03 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:24:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:25:05 [end_date_ymd] => 2025-04-03 21:25:05 [RateCDR] => 1 ) [2025-04-03 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:25:05' and `end` < '2025-04-03 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:25:18] Production.INFO: count ==1871 [2025-04-03 21:25:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:25:05 - End Time 2025-04-03 21:25:05 [2025-04-03 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828237', 'tblTempUsageDetail_20' ) start [2025-04-03 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828237', 'tblTempUsageDetail_20' ) end [2025-04-03 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828237', 'tblTempVendorCDR_20' ) start [2025-04-03 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828237', 'tblTempVendorCDR_20' ) end [2025-04-03 21:25:19] Production.INFO: ProcessCDR(1,14828237,1,1,2) [2025-04-03 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828237', 'tblTempUsageDetail_20' ) start [2025-04-03 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828237', 'tblTempUsageDetail_20' ) end [2025-04-03 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:25:23] Production.INFO: ==1768== Releasing lock... [2025-04-03 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:25:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:26:05 [end_date_ymd] => 2025-04-03 21:26:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:26:05' and `end` < '2025-04-03 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-03 21:26:18] Production.INFO: count ==1874 [2025-04-03 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:26:05 - End Time 2025-04-03 21:26:05 [2025-04-03 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828242', 'tblTempUsageDetail_20' ) start [2025-04-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828242', 'tblTempUsageDetail_20' ) end [2025-04-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828242', 'tblTempVendorCDR_20' ) start [2025-04-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828242', 'tblTempVendorCDR_20' ) end [2025-04-03 21:26:19] Production.INFO: ProcessCDR(1,14828242,1,1,2) [2025-04-03 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828242', 'tblTempUsageDetail_20' ) start [2025-04-03 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828242', 'tblTempUsageDetail_20' ) end [2025-04-03 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:26:23] Production.INFO: ==2051== Releasing lock... [2025-04-03 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:26:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:27:05 [end_date_ymd] => 2025-04-03 21:27:05 [RateCDR] => 1 ) [2025-04-03 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:27:05' and `end` < '2025-04-03 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:27:18] Production.INFO: count ==1886 [2025-04-03 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:27:05 - End Time 2025-04-03 21:27:05 [2025-04-03 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828247', 'tblTempUsageDetail_20' ) start [2025-04-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828247', 'tblTempUsageDetail_20' ) end [2025-04-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828247', 'tblTempVendorCDR_20' ) start [2025-04-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828247', 'tblTempVendorCDR_20' ) end [2025-04-03 21:27:18] Production.INFO: ProcessCDR(1,14828247,1,1,2) [2025-04-03 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828247', 'tblTempUsageDetail_20' ) start [2025-04-03 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828247', 'tblTempUsageDetail_20' ) end [2025-04-03 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:27:22] Production.INFO: ==2242== Releasing lock... [2025-04-03 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:27:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:28:05 [end_date_ymd] => 2025-04-03 21:28:05 [RateCDR] => 1 ) [2025-04-03 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:28:05' and `end` < '2025-04-03 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:28:18] Production.INFO: count ==1892 [2025-04-03 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:28:05 - End Time 2025-04-03 21:28:05 [2025-04-03 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828252', 'tblTempUsageDetail_20' ) start [2025-04-03 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828252', 'tblTempUsageDetail_20' ) end [2025-04-03 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828252', 'tblTempVendorCDR_20' ) start [2025-04-03 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828252', 'tblTempVendorCDR_20' ) end [2025-04-03 21:28:19] Production.INFO: ProcessCDR(1,14828252,1,1,2) [2025-04-03 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828252', 'tblTempUsageDetail_20' ) start [2025-04-03 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828252', 'tblTempUsageDetail_20' ) end [2025-04-03 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:28:22] Production.INFO: ==2325== Releasing lock... [2025-04-03 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:28:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:29:06 [end_date_ymd] => 2025-04-03 21:29:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:29:06' and `end` < '2025-04-03 21: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-03 21:29:19] Production.INFO: count ==1881 [2025-04-03 21:29:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:29:06 - End Time 2025-04-03 21:29:06 [2025-04-03 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828257', 'tblTempUsageDetail_20' ) start [2025-04-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828257', 'tblTempUsageDetail_20' ) end [2025-04-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828257', 'tblTempVendorCDR_20' ) start [2025-04-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828257', 'tblTempVendorCDR_20' ) end [2025-04-03 21:29:19] Production.INFO: ProcessCDR(1,14828257,1,1,2) [2025-04-03 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828257', 'tblTempUsageDetail_20' ) start [2025-04-03 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828257', 'tblTempUsageDetail_20' ) end [2025-04-03 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:29:23] Production.INFO: ==2398== Releasing lock... [2025-04-03 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:29:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:30:06 [end_date_ymd] => 2025-04-03 21:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:30:06' and `end` < '2025-04-03 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-03 21:30:19] Production.INFO: count ==1889 [2025-04-03 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:30:06 - End Time 2025-04-03 21:30:06 [2025-04-03 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828263', 'tblTempUsageDetail_20' ) start [2025-04-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828263', 'tblTempUsageDetail_20' ) end [2025-04-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828263', 'tblTempVendorCDR_20' ) start [2025-04-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828263', 'tblTempVendorCDR_20' ) end [2025-04-03 21:30:19] Production.INFO: ProcessCDR(1,14828263,1,1,2) [2025-04-03 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828263', 'tblTempUsageDetail_20' ) start [2025-04-03 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828263', 'tblTempUsageDetail_20' ) end [2025-04-03 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:30:24] Production.INFO: ==2479== Releasing lock... [2025-04-03 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:30:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:31:05 [end_date_ymd] => 2025-04-03 21:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:31:05' and `end` < '2025-04-03 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-03 21:31:18] Production.INFO: count ==1895 [2025-04-03 21:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:31:05 - End Time 2025-04-03 21:31:05 [2025-04-03 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828268', 'tblTempUsageDetail_20' ) start [2025-04-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828268', 'tblTempUsageDetail_20' ) end [2025-04-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828268', 'tblTempVendorCDR_20' ) start [2025-04-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828268', 'tblTempVendorCDR_20' ) end [2025-04-03 21:31:19] Production.INFO: ProcessCDR(1,14828268,1,1,2) [2025-04-03 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828268', 'tblTempUsageDetail_20' ) start [2025-04-03 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828268', 'tblTempUsageDetail_20' ) end [2025-04-03 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:31:23] Production.INFO: ==2556== Releasing lock... [2025-04-03 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:31:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:32:06 [end_date_ymd] => 2025-04-03 21:32:06 [RateCDR] => 1 ) [2025-04-03 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:32:06' and `end` < '2025-04-03 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:32:19] Production.INFO: count ==1903 [2025-04-03 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:32:06 - End Time 2025-04-03 21:32:06 [2025-04-03 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828273', 'tblTempUsageDetail_20' ) start [2025-04-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828273', 'tblTempUsageDetail_20' ) end [2025-04-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828273', 'tblTempVendorCDR_20' ) start [2025-04-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828273', 'tblTempVendorCDR_20' ) end [2025-04-03 21:32:19] Production.INFO: ProcessCDR(1,14828273,1,1,2) [2025-04-03 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828273', 'tblTempUsageDetail_20' ) start [2025-04-03 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828273', 'tblTempUsageDetail_20' ) end [2025-04-03 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:32:23] Production.INFO: ==2631== Releasing lock... [2025-04-03 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:32:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:33:06 [end_date_ymd] => 2025-04-03 21:33:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:33:06' and `end` < '2025-04-03 21: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-03 21:33:19] Production.INFO: count ==1917 [2025-04-03 21:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:33:06 - End Time 2025-04-03 21:33:06 [2025-04-03 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828278', 'tblTempUsageDetail_20' ) start [2025-04-03 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828278', 'tblTempUsageDetail_20' ) end [2025-04-03 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828278', 'tblTempVendorCDR_20' ) start [2025-04-03 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828278', 'tblTempVendorCDR_20' ) end [2025-04-03 21:33:19] Production.INFO: ProcessCDR(1,14828278,1,1,2) [2025-04-03 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828278', 'tblTempUsageDetail_20' ) start [2025-04-03 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828278', 'tblTempUsageDetail_20' ) end [2025-04-03 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:33:23] Production.INFO: ==2709== Releasing lock... [2025-04-03 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:33:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:34:05 [end_date_ymd] => 2025-04-03 21:34:05 [RateCDR] => 1 ) [2025-04-03 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:34:05' and `end` < '2025-04-03 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:34:18] Production.INFO: count ==1950 [2025-04-03 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:34:05 - End Time 2025-04-03 21:34:05 [2025-04-03 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828283', 'tblTempUsageDetail_20' ) start [2025-04-03 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828283', 'tblTempUsageDetail_20' ) end [2025-04-03 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828283', 'tblTempVendorCDR_20' ) start [2025-04-03 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828283', 'tblTempVendorCDR_20' ) end [2025-04-03 21:34:19] Production.INFO: ProcessCDR(1,14828283,1,1,2) [2025-04-03 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828283', 'tblTempUsageDetail_20' ) start [2025-04-03 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828283', 'tblTempUsageDetail_20' ) end [2025-04-03 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:34:22] Production.INFO: ==2781== Releasing lock... [2025-04-03 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:34:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-03 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:35:06 [end_date_ymd] => 2025-04-03 21:35:06 [RateCDR] => 1 ) [2025-04-03 21:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:35:06' and `end` < '2025-04-03 21:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:35:19] Production.INFO: count ==1944 [2025-04-03 21:35:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:35:06 - End Time 2025-04-03 21:35:06 [2025-04-03 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828288', 'tblTempUsageDetail_20' ) start [2025-04-03 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828288', 'tblTempUsageDetail_20' ) end [2025-04-03 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828288', 'tblTempVendorCDR_20' ) start [2025-04-03 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828288', 'tblTempVendorCDR_20' ) end [2025-04-03 21:35:20] Production.INFO: ProcessCDR(1,14828288,1,1,2) [2025-04-03 21:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828288', 'tblTempUsageDetail_20' ) start [2025-04-03 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828288', 'tblTempUsageDetail_20' ) end [2025-04-03 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:35:23] Production.INFO: ==2862== Releasing lock... [2025-04-03 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:35:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:36:05 [end_date_ymd] => 2025-04-03 21:36:05 [RateCDR] => 1 ) [2025-04-03 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:36:05' and `end` < '2025-04-03 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:36:18] Production.INFO: count ==1941 [2025-04-03 21:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:36:05 - End Time 2025-04-03 21:36:05 [2025-04-03 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828293', 'tblTempUsageDetail_20' ) start [2025-04-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828293', 'tblTempUsageDetail_20' ) end [2025-04-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828293', 'tblTempVendorCDR_20' ) start [2025-04-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828293', 'tblTempVendorCDR_20' ) end [2025-04-03 21:36:19] Production.INFO: ProcessCDR(1,14828293,1,1,2) [2025-04-03 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828293', 'tblTempUsageDetail_20' ) start [2025-04-03 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828293', 'tblTempUsageDetail_20' ) end [2025-04-03 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:36:22] Production.INFO: ==2941== Releasing lock... [2025-04-03 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:36:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:37:05 [end_date_ymd] => 2025-04-03 21:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:37:05' and `end` < '2025-04-03 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-03 21:37:18] Production.INFO: count ==1929 [2025-04-03 21:37:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:37:05 - End Time 2025-04-03 21:37:05 [2025-04-03 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828298', 'tblTempUsageDetail_20' ) start [2025-04-03 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828298', 'tblTempUsageDetail_20' ) end [2025-04-03 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828298', 'tblTempVendorCDR_20' ) start [2025-04-03 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828298', 'tblTempVendorCDR_20' ) end [2025-04-03 21:37:19] Production.INFO: ProcessCDR(1,14828298,1,1,2) [2025-04-03 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828298', 'tblTempUsageDetail_20' ) start [2025-04-03 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828298', 'tblTempUsageDetail_20' ) end [2025-04-03 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:37:22] Production.INFO: ==3022== Releasing lock... [2025-04-03 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:37:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:38:05 [end_date_ymd] => 2025-04-03 21:38:05 [RateCDR] => 1 ) [2025-04-03 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:38:05' and `end` < '2025-04-03 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:38:18] Production.INFO: count ==1927 [2025-04-03 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:38:05 - End Time 2025-04-03 21:38:05 [2025-04-03 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828303', 'tblTempUsageDetail_20' ) start [2025-04-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828303', 'tblTempUsageDetail_20' ) end [2025-04-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828303', 'tblTempVendorCDR_20' ) start [2025-04-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828303', 'tblTempVendorCDR_20' ) end [2025-04-03 21:38:19] Production.INFO: ProcessCDR(1,14828303,1,1,2) [2025-04-03 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828303', 'tblTempUsageDetail_20' ) start [2025-04-03 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828303', 'tblTempUsageDetail_20' ) end [2025-04-03 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:38:24] Production.INFO: ==3100== Releasing lock... [2025-04-03 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:38:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:39:06 [end_date_ymd] => 2025-04-03 21:39:06 [RateCDR] => 1 ) [2025-04-03 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:39:06' and `end` < '2025-04-03 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:39:19] Production.INFO: count ==1927 [2025-04-03 21:39:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:39:06 - End Time 2025-04-03 21:39:06 [2025-04-03 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828308', 'tblTempUsageDetail_20' ) start [2025-04-03 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828308', 'tblTempUsageDetail_20' ) end [2025-04-03 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828308', 'tblTempVendorCDR_20' ) start [2025-04-03 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828308', 'tblTempVendorCDR_20' ) end [2025-04-03 21:39:20] Production.INFO: ProcessCDR(1,14828308,1,1,2) [2025-04-03 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828308', 'tblTempUsageDetail_20' ) start [2025-04-03 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828308', 'tblTempUsageDetail_20' ) end [2025-04-03 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:39:23] Production.INFO: ==3181== Releasing lock... [2025-04-03 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:39:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-03 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:40:07 [end_date_ymd] => 2025-04-03 21:40:07 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:40:07' and `end` < '2025-04-03 21: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-03 21:40:20] Production.INFO: count ==1919 [2025-04-03 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:40:07 - End Time 2025-04-03 21:40:07 [2025-04-03 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828314', 'tblTempUsageDetail_20' ) start [2025-04-03 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828314', 'tblTempUsageDetail_20' ) end [2025-04-03 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828314', 'tblTempVendorCDR_20' ) start [2025-04-03 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828314', 'tblTempVendorCDR_20' ) end [2025-04-03 21:40:20] Production.INFO: ProcessCDR(1,14828314,1,1,2) [2025-04-03 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828314', 'tblTempUsageDetail_20' ) start [2025-04-03 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828314', 'tblTempUsageDetail_20' ) end [2025-04-03 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:40:24] Production.INFO: ==3300== Releasing lock... [2025-04-03 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:40:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-03 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:41:06 [end_date_ymd] => 2025-04-03 21:41:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:41:06' and `end` < '2025-04-03 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-03 21:41:18] Production.INFO: count ==1865 [2025-04-03 21:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:41:06 - End Time 2025-04-03 21:41:06 [2025-04-03 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828319', 'tblTempUsageDetail_20' ) start [2025-04-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828319', 'tblTempUsageDetail_20' ) end [2025-04-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828319', 'tblTempVendorCDR_20' ) start [2025-04-03 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828319', 'tblTempVendorCDR_20' ) end [2025-04-03 21:41:19] Production.INFO: ProcessCDR(1,14828319,1,1,2) [2025-04-03 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828319', 'tblTempUsageDetail_20' ) start [2025-04-03 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828319', 'tblTempUsageDetail_20' ) end [2025-04-03 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:41:23] Production.INFO: ==3380== Releasing lock... [2025-04-03 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:41:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:42:06 [end_date_ymd] => 2025-04-03 21:42:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:42:06' and `end` < '2025-04-03 21: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-03 21:42:18] Production.INFO: count ==1866 [2025-04-03 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:42:06 - End Time 2025-04-03 21:42:06 [2025-04-03 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828324', 'tblTempUsageDetail_20' ) start [2025-04-03 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828324', 'tblTempUsageDetail_20' ) end [2025-04-03 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828324', 'tblTempVendorCDR_20' ) start [2025-04-03 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828324', 'tblTempVendorCDR_20' ) end [2025-04-03 21:42:19] Production.INFO: ProcessCDR(1,14828324,1,1,2) [2025-04-03 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828324', 'tblTempUsageDetail_20' ) start [2025-04-03 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828324', 'tblTempUsageDetail_20' ) end [2025-04-03 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:42:23] Production.INFO: ==3454== Releasing lock... [2025-04-03 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:42:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:43:06 [end_date_ymd] => 2025-04-03 21:43:06 [RateCDR] => 1 ) [2025-04-03 21: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-03 18:43:06' and `end` < '2025-04-03 21: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-03 21:43:19] Production.INFO: count ==1865 [2025-04-03 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:43:06 - End Time 2025-04-03 21:43:06 [2025-04-03 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828329', 'tblTempUsageDetail_20' ) start [2025-04-03 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828329', 'tblTempUsageDetail_20' ) end [2025-04-03 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828329', 'tblTempVendorCDR_20' ) start [2025-04-03 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828329', 'tblTempVendorCDR_20' ) end [2025-04-03 21:43:19] Production.INFO: ProcessCDR(1,14828329,1,1,2) [2025-04-03 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828329', 'tblTempUsageDetail_20' ) start [2025-04-03 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828329', 'tblTempUsageDetail_20' ) end [2025-04-03 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:43:23] Production.INFO: ==3543== Releasing lock... [2025-04-03 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:43:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:44:05 [end_date_ymd] => 2025-04-03 21:44:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:44:05' and `end` < '2025-04-03 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-03 21:44:18] Production.INFO: count ==1865 [2025-04-03 21:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:44:05 - End Time 2025-04-03 21:44:05 [2025-04-03 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828334', 'tblTempUsageDetail_20' ) start [2025-04-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828334', 'tblTempUsageDetail_20' ) end [2025-04-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828334', 'tblTempVendorCDR_20' ) start [2025-04-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828334', 'tblTempVendorCDR_20' ) end [2025-04-03 21:44:19] Production.INFO: ProcessCDR(1,14828334,1,1,2) [2025-04-03 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828334', 'tblTempUsageDetail_20' ) start [2025-04-03 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828334', 'tblTempUsageDetail_20' ) end [2025-04-03 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:44:22] Production.INFO: ==3621== Releasing lock... [2025-04-03 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:44:22] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:45:05 [end_date_ymd] => 2025-04-03 21:45:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:45:05' and `end` < '2025-04-03 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-03 21:45:18] Production.INFO: count ==1875 [2025-04-03 21:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:45:05 - End Time 2025-04-03 21:45:05 [2025-04-03 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828339', 'tblTempUsageDetail_20' ) start [2025-04-03 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828339', 'tblTempUsageDetail_20' ) end [2025-04-03 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828339', 'tblTempVendorCDR_20' ) start [2025-04-03 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828339', 'tblTempVendorCDR_20' ) end [2025-04-03 21:45:19] Production.INFO: ProcessCDR(1,14828339,1,1,2) [2025-04-03 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828339', 'tblTempUsageDetail_20' ) start [2025-04-03 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828339', 'tblTempUsageDetail_20' ) end [2025-04-03 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:45:24] Production.INFO: ==3702== Releasing lock... [2025-04-03 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:45:24] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:46:05 [end_date_ymd] => 2025-04-03 21:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:46:05' and `end` < '2025-04-03 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-03 21:46:18] Production.INFO: count ==1872 [2025-04-03 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:46:05 - End Time 2025-04-03 21:46:05 [2025-04-03 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828344', 'tblTempUsageDetail_20' ) start [2025-04-03 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828344', 'tblTempUsageDetail_20' ) end [2025-04-03 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828344', 'tblTempVendorCDR_20' ) start [2025-04-03 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828344', 'tblTempVendorCDR_20' ) end [2025-04-03 21:46:19] Production.INFO: ProcessCDR(1,14828344,1,1,2) [2025-04-03 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828344', 'tblTempUsageDetail_20' ) start [2025-04-03 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828344', 'tblTempUsageDetail_20' ) end [2025-04-03 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:46:22] Production.INFO: ==3778== Releasing lock... [2025-04-03 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:46:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-03 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:47:06 [end_date_ymd] => 2025-04-03 21:47:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:47:06' and `end` < '2025-04-03 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-03 21:47:19] Production.INFO: count ==1859 [2025-04-03 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:47:06 - End Time 2025-04-03 21:47:06 [2025-04-03 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828349', 'tblTempUsageDetail_20' ) start [2025-04-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828349', 'tblTempUsageDetail_20' ) end [2025-04-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828349', 'tblTempVendorCDR_20' ) start [2025-04-03 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828349', 'tblTempVendorCDR_20' ) end [2025-04-03 21:47:19] Production.INFO: ProcessCDR(1,14828349,1,1,2) [2025-04-03 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828349', 'tblTempUsageDetail_20' ) start [2025-04-03 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828349', 'tblTempUsageDetail_20' ) end [2025-04-03 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:47:23] Production.INFO: ==3854== Releasing lock... [2025-04-03 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:47:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:48:05 [end_date_ymd] => 2025-04-03 21:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:48:05' and `end` < '2025-04-03 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-03 21:48:18] Production.INFO: count ==1854 [2025-04-03 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:48:05 - End Time 2025-04-03 21:48:05 [2025-04-03 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828354', 'tblTempUsageDetail_20' ) start [2025-04-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828354', 'tblTempUsageDetail_20' ) end [2025-04-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828354', 'tblTempVendorCDR_20' ) start [2025-04-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828354', 'tblTempVendorCDR_20' ) end [2025-04-03 21:48:19] Production.INFO: ProcessCDR(1,14828354,1,1,2) [2025-04-03 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828354', 'tblTempUsageDetail_20' ) start [2025-04-03 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828354', 'tblTempUsageDetail_20' ) end [2025-04-03 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:48:24] Production.INFO: ==3933== Releasing lock... [2025-04-03 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:48:24] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:49:06 [end_date_ymd] => 2025-04-03 21:49:06 [RateCDR] => 1 ) [2025-04-03 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:49:06' and `end` < '2025-04-03 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:49:19] Production.INFO: count ==1849 [2025-04-03 21:49:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:49:06 - End Time 2025-04-03 21:49:06 [2025-04-03 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828359', 'tblTempUsageDetail_20' ) start [2025-04-03 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828359', 'tblTempUsageDetail_20' ) end [2025-04-03 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828359', 'tblTempVendorCDR_20' ) start [2025-04-03 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828359', 'tblTempVendorCDR_20' ) end [2025-04-03 21:49:20] Production.INFO: ProcessCDR(1,14828359,1,1,2) [2025-04-03 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828359', 'tblTempUsageDetail_20' ) start [2025-04-03 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828359', 'tblTempUsageDetail_20' ) end [2025-04-03 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:49:23] Production.INFO: ==4013== Releasing lock... [2025-04-03 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:49:23] Production.INFO: 42 MB #Memory Used# [2025-04-03 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:50:06 [end_date_ymd] => 2025-04-03 21:50:06 [RateCDR] => 1 ) [2025-04-03 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:50:06' and `end` < '2025-04-03 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:50:19] Production.INFO: count ==1844 [2025-04-03 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:50:06 - End Time 2025-04-03 21:50:06 [2025-04-03 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828365', 'tblTempUsageDetail_20' ) start [2025-04-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828365', 'tblTempUsageDetail_20' ) end [2025-04-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828365', 'tblTempVendorCDR_20' ) start [2025-04-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828365', 'tblTempVendorCDR_20' ) end [2025-04-03 21:50:19] Production.INFO: ProcessCDR(1,14828365,1,1,2) [2025-04-03 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828365', 'tblTempUsageDetail_20' ) start [2025-04-03 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828365', 'tblTempUsageDetail_20' ) end [2025-04-03 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:50:23] Production.INFO: ==4092== Releasing lock... [2025-04-03 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-03 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:51:06 [end_date_ymd] => 2025-04-03 21:51:06 [RateCDR] => 1 ) [2025-04-03 21:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:51:06' and `end` < '2025-04-03 21:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:51:19] Production.INFO: count ==1794 [2025-04-03 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:51:06 - End Time 2025-04-03 21:51:06 [2025-04-03 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828370', 'tblTempUsageDetail_20' ) start [2025-04-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828370', 'tblTempUsageDetail_20' ) end [2025-04-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828370', 'tblTempVendorCDR_20' ) start [2025-04-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828370', 'tblTempVendorCDR_20' ) end [2025-04-03 21:51:19] Production.INFO: ProcessCDR(1,14828370,1,1,2) [2025-04-03 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828370', 'tblTempUsageDetail_20' ) start [2025-04-03 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828370', 'tblTempUsageDetail_20' ) end [2025-04-03 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:51:23] Production.INFO: ==4172== Releasing lock... [2025-04-03 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:51:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-03 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:52:05 [end_date_ymd] => 2025-04-03 21:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:52:05' and `end` < '2025-04-03 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-03 21:52:18] Production.INFO: count ==1797 [2025-04-03 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:52:05 - End Time 2025-04-03 21:52:05 [2025-04-03 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828375', 'tblTempUsageDetail_20' ) start [2025-04-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828375', 'tblTempUsageDetail_20' ) end [2025-04-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828375', 'tblTempVendorCDR_20' ) start [2025-04-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828375', 'tblTempVendorCDR_20' ) end [2025-04-03 21:52:19] Production.INFO: ProcessCDR(1,14828375,1,1,2) [2025-04-03 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828375', 'tblTempUsageDetail_20' ) start [2025-04-03 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828375', 'tblTempUsageDetail_20' ) end [2025-04-03 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:52:22] Production.INFO: ==4249== Releasing lock... [2025-04-03 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:53:06 [end_date_ymd] => 2025-04-03 21:53:06 [RateCDR] => 1 ) [2025-04-03 21:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 18:53:06' and `end` < '2025-04-03 21:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 21:53:18] Production.INFO: count ==1796 [2025-04-03 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:53:06 - End Time 2025-04-03 21:53:06 [2025-04-03 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828380', 'tblTempUsageDetail_20' ) start [2025-04-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828380', 'tblTempUsageDetail_20' ) end [2025-04-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828380', 'tblTempVendorCDR_20' ) start [2025-04-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828380', 'tblTempVendorCDR_20' ) end [2025-04-03 21:53:19] Production.INFO: ProcessCDR(1,14828380,1,1,2) [2025-04-03 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828380', 'tblTempUsageDetail_20' ) start [2025-04-03 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828380', 'tblTempUsageDetail_20' ) end [2025-04-03 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:53:23] Production.INFO: ==4328== Releasing lock... [2025-04-03 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:54:05 [end_date_ymd] => 2025-04-03 21:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:54:05' and `end` < '2025-04-03 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-03 21:54:18] Production.INFO: count ==1807 [2025-04-03 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:54:05 - End Time 2025-04-03 21:54:05 [2025-04-03 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828385', 'tblTempUsageDetail_20' ) start [2025-04-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828385', 'tblTempUsageDetail_20' ) end [2025-04-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828385', 'tblTempVendorCDR_20' ) start [2025-04-03 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828385', 'tblTempVendorCDR_20' ) end [2025-04-03 21:54:18] Production.INFO: ProcessCDR(1,14828385,1,1,2) [2025-04-03 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828385', 'tblTempUsageDetail_20' ) start [2025-04-03 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828385', 'tblTempUsageDetail_20' ) end [2025-04-03 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:54:22] Production.INFO: ==4404== Releasing lock... [2025-04-03 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:54:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-03 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:55:05 [end_date_ymd] => 2025-04-03 21:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:55:05' and `end` < '2025-04-03 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-03 21:55:18] Production.INFO: count ==1792 [2025-04-03 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-03 18:55:05 - End Time 2025-04-03 21:55:05 [2025-04-03 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828390', 'tblTempUsageDetail_20' ) start [2025-04-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828390', 'tblTempUsageDetail_20' ) end [2025-04-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828390', 'tblTempVendorCDR_20' ) start [2025-04-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828390', 'tblTempVendorCDR_20' ) end [2025-04-03 21:55:18] Production.INFO: ProcessCDR(1,14828390,1,1,2) [2025-04-03 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828390', 'tblTempUsageDetail_20' ) start [2025-04-03 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828390', 'tblTempUsageDetail_20' ) end [2025-04-03 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:55:23] Production.INFO: ==4517== Releasing lock... [2025-04-03 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:55:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:56:06 [end_date_ymd] => 2025-04-03 21:56:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:56:06' and `end` < '2025-04-03 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-03 21:56:19] Production.INFO: count ==1791 [2025-04-03 21:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:56:06 - End Time 2025-04-03 21:56:06 [2025-04-03 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828395', 'tblTempUsageDetail_20' ) start [2025-04-03 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828395', 'tblTempUsageDetail_20' ) end [2025-04-03 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828395', 'tblTempVendorCDR_20' ) start [2025-04-03 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828395', 'tblTempVendorCDR_20' ) end [2025-04-03 21:56:19] Production.INFO: ProcessCDR(1,14828395,1,1,2) [2025-04-03 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828395', 'tblTempUsageDetail_20' ) start [2025-04-03 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828395', 'tblTempUsageDetail_20' ) end [2025-04-03 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:56:23] Production.INFO: ==4610== Releasing lock... [2025-04-03 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:56:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-03 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:57:05 [end_date_ymd] => 2025-04-03 21:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:57:05' and `end` < '2025-04-03 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-03 21:57:18] Production.INFO: count ==1800 [2025-04-03 21:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:57:05 - End Time 2025-04-03 21:57:05 [2025-04-03 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828400', 'tblTempUsageDetail_20' ) start [2025-04-03 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828400', 'tblTempUsageDetail_20' ) end [2025-04-03 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828400', 'tblTempVendorCDR_20' ) start [2025-04-03 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828400', 'tblTempVendorCDR_20' ) end [2025-04-03 21:57:19] Production.INFO: ProcessCDR(1,14828400,1,1,2) [2025-04-03 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828400', 'tblTempUsageDetail_20' ) start [2025-04-03 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828400', 'tblTempUsageDetail_20' ) end [2025-04-03 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:57:23] Production.INFO: ==4691== Releasing lock... [2025-04-03 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:57:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:58:06 [end_date_ymd] => 2025-04-03 21:58:06 [RateCDR] => 1 ) [2025-04-03 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-03 18:58:06' and `end` < '2025-04-03 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-03 21:58:19] Production.INFO: count ==1784 [2025-04-03 21:58:20] Production.ERROR: pbx CDR StartTime 2025-04-03 18:58:06 - End Time 2025-04-03 21:58:06 [2025-04-03 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828405', 'tblTempUsageDetail_20' ) start [2025-04-03 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828405', 'tblTempUsageDetail_20' ) end [2025-04-03 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828405', 'tblTempVendorCDR_20' ) start [2025-04-03 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828405', 'tblTempVendorCDR_20' ) end [2025-04-03 21:58:20] Production.INFO: ProcessCDR(1,14828405,1,1,2) [2025-04-03 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828405', 'tblTempUsageDetail_20' ) start [2025-04-03 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828405', 'tblTempUsageDetail_20' ) end [2025-04-03 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:58:23] Production.INFO: ==4772== Releasing lock... [2025-04-03 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:58:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 18:59:05 [end_date_ymd] => 2025-04-03 21:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 18:59:05' and `end` < '2025-04-03 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-03 21:59:18] Production.INFO: count ==1780 [2025-04-03 21:59:19] Production.ERROR: pbx CDR StartTime 2025-04-03 18:59:05 - End Time 2025-04-03 21:59:05 [2025-04-03 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828410', 'tblTempUsageDetail_20' ) start [2025-04-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828410', 'tblTempUsageDetail_20' ) end [2025-04-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828410', 'tblTempVendorCDR_20' ) start [2025-04-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828410', 'tblTempVendorCDR_20' ) end [2025-04-03 21:59:19] Production.INFO: ProcessCDR(1,14828410,1,1,2) [2025-04-03 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828410', 'tblTempUsageDetail_20' ) start [2025-04-03 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828410', 'tblTempUsageDetail_20' ) end [2025-04-03 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 21:59:22] Production.INFO: ==4847== Releasing lock... [2025-04-03 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 21:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:00:07 [end_date_ymd] => 2025-04-03 22:00:07 [RateCDR] => 1 ) [2025-04-03 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:00:07' and `end` < '2025-04-03 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:00:20] Production.INFO: count ==1770 [2025-04-03 22:00:21] Production.ERROR: pbx CDR StartTime 2025-04-03 19:00:07 - End Time 2025-04-03 22:00:07 [2025-04-03 22:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828416', 'tblTempUsageDetail_20' ) start [2025-04-03 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828416', 'tblTempUsageDetail_20' ) end [2025-04-03 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828416', 'tblTempVendorCDR_20' ) start [2025-04-03 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828416', 'tblTempVendorCDR_20' ) end [2025-04-03 22:00:21] Production.INFO: ProcessCDR(1,14828416,1,1,2) [2025-04-03 22:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828416', 'tblTempUsageDetail_20' ) start [2025-04-03 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828416', 'tblTempUsageDetail_20' ) end [2025-04-03 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:00:24] Production.INFO: ==4930== Releasing lock... [2025-04-03 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:00:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-03 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:01:05 [end_date_ymd] => 2025-04-03 22:01:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:01:05' and `end` < '2025-04-03 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-03 22:01:18] Production.INFO: count ==1734 [2025-04-03 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:01:05 - End Time 2025-04-03 22:01:05 [2025-04-03 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828421', 'tblTempUsageDetail_20' ) start [2025-04-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828421', 'tblTempUsageDetail_20' ) end [2025-04-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828421', 'tblTempVendorCDR_20' ) start [2025-04-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828421', 'tblTempVendorCDR_20' ) end [2025-04-03 22:01:19] Production.INFO: ProcessCDR(1,14828421,1,1,2) [2025-04-03 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828421', 'tblTempUsageDetail_20' ) start [2025-04-03 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828421', 'tblTempUsageDetail_20' ) end [2025-04-03 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:01:24] Production.INFO: ==5019== Releasing lock... [2025-04-03 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:01:24] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:02:05 [end_date_ymd] => 2025-04-03 22:02:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:02:05' and `end` < '2025-04-03 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-03 22:02:18] Production.INFO: count ==1736 [2025-04-03 22:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:02:05 - End Time 2025-04-03 22:02:05 [2025-04-03 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828426', 'tblTempUsageDetail_20' ) start [2025-04-03 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828426', 'tblTempUsageDetail_20' ) end [2025-04-03 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828426', 'tblTempVendorCDR_20' ) start [2025-04-03 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828426', 'tblTempVendorCDR_20' ) end [2025-04-03 22:02:19] Production.INFO: ProcessCDR(1,14828426,1,1,2) [2025-04-03 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828426', 'tblTempUsageDetail_20' ) start [2025-04-03 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828426', 'tblTempUsageDetail_20' ) end [2025-04-03 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:02:23] Production.INFO: ==5097== Releasing lock... [2025-04-03 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:02:23] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:03:06 [end_date_ymd] => 2025-04-03 22:03:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:03:06' and `end` < '2025-04-03 22: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-03 22:03:18] Production.INFO: count ==1718 [2025-04-03 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:03:06 - End Time 2025-04-03 22:03:06 [2025-04-03 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828431', 'tblTempUsageDetail_20' ) start [2025-04-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828431', 'tblTempUsageDetail_20' ) end [2025-04-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828431', 'tblTempVendorCDR_20' ) start [2025-04-03 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828431', 'tblTempVendorCDR_20' ) end [2025-04-03 22:03:19] Production.INFO: ProcessCDR(1,14828431,1,1,2) [2025-04-03 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828431', 'tblTempUsageDetail_20' ) start [2025-04-03 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828431', 'tblTempUsageDetail_20' ) end [2025-04-03 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:03:23] Production.INFO: ==5171== Releasing lock... [2025-04-03 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:03:23] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:04:06 [end_date_ymd] => 2025-04-03 22:04:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:04:06' and `end` < '2025-04-03 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-03 22:04:19] Production.INFO: count ==1725 [2025-04-03 22:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:04:06 - End Time 2025-04-03 22:04:06 [2025-04-03 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828436', 'tblTempUsageDetail_20' ) start [2025-04-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828436', 'tblTempUsageDetail_20' ) end [2025-04-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828436', 'tblTempVendorCDR_20' ) start [2025-04-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828436', 'tblTempVendorCDR_20' ) end [2025-04-03 22:04:19] Production.INFO: ProcessCDR(1,14828436,1,1,2) [2025-04-03 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828436', 'tblTempUsageDetail_20' ) start [2025-04-03 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828436', 'tblTempUsageDetail_20' ) end [2025-04-03 22:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:04:25] Production.INFO: ==5256== Releasing lock... [2025-04-03 22:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:04:25] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:05:06 [end_date_ymd] => 2025-04-03 22:05:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:05:06' and `end` < '2025-04-03 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-03 22:05:19] Production.INFO: count ==1726 [2025-04-03 22:05:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:05:06 - End Time 2025-04-03 22:05:06 [2025-04-03 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828441', 'tblTempUsageDetail_20' ) start [2025-04-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828441', 'tblTempUsageDetail_20' ) end [2025-04-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828441', 'tblTempVendorCDR_20' ) start [2025-04-03 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828441', 'tblTempVendorCDR_20' ) end [2025-04-03 22:05:19] Production.INFO: ProcessCDR(1,14828441,1,1,2) [2025-04-03 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828441', 'tblTempUsageDetail_20' ) start [2025-04-03 22:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828441', 'tblTempUsageDetail_20' ) end [2025-04-03 22:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:05:25] Production.INFO: ==5331== Releasing lock... [2025-04-03 22:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:05:25] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:06:05 [end_date_ymd] => 2025-04-03 22:06:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:06:05' and `end` < '2025-04-03 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-03 22:06:18] Production.INFO: count ==1713 [2025-04-03 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:06:05 - End Time 2025-04-03 22:06:05 [2025-04-03 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828446', 'tblTempUsageDetail_20' ) start [2025-04-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828446', 'tblTempUsageDetail_20' ) end [2025-04-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828446', 'tblTempVendorCDR_20' ) start [2025-04-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828446', 'tblTempVendorCDR_20' ) end [2025-04-03 22:06:19] Production.INFO: ProcessCDR(1,14828446,1,1,2) [2025-04-03 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828446', 'tblTempUsageDetail_20' ) start [2025-04-03 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828446', 'tblTempUsageDetail_20' ) end [2025-04-03 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:06:22] Production.INFO: ==5408== Releasing lock... [2025-04-03 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:06:22] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:07:06 [end_date_ymd] => 2025-04-03 22:07:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:07:06' and `end` < '2025-04-03 22: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-03 22:07:19] Production.INFO: count ==1710 [2025-04-03 22:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:07:06 - End Time 2025-04-03 22:07:06 [2025-04-03 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828451', 'tblTempUsageDetail_20' ) start [2025-04-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828451', 'tblTempUsageDetail_20' ) end [2025-04-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828451', 'tblTempVendorCDR_20' ) start [2025-04-03 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828451', 'tblTempVendorCDR_20' ) end [2025-04-03 22:07:19] Production.INFO: ProcessCDR(1,14828451,1,1,2) [2025-04-03 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828451', 'tblTempUsageDetail_20' ) start [2025-04-03 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828451', 'tblTempUsageDetail_20' ) end [2025-04-03 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:07:23] Production.INFO: ==5485== Releasing lock... [2025-04-03 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:07:23] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:08:06 [end_date_ymd] => 2025-04-03 22:08:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:08:06' and `end` < '2025-04-03 22: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-03 22:08:19] Production.INFO: count ==1702 [2025-04-03 22:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:08:06 - End Time 2025-04-03 22:08:06 [2025-04-03 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828456', 'tblTempUsageDetail_20' ) start [2025-04-03 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828456', 'tblTempUsageDetail_20' ) end [2025-04-03 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828456', 'tblTempVendorCDR_20' ) start [2025-04-03 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828456', 'tblTempVendorCDR_20' ) end [2025-04-03 22:08:19] Production.INFO: ProcessCDR(1,14828456,1,1,2) [2025-04-03 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828456', 'tblTempUsageDetail_20' ) start [2025-04-03 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828456', 'tblTempUsageDetail_20' ) end [2025-04-03 22:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:08:24] Production.INFO: ==5564== Releasing lock... [2025-04-03 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:08:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:09:05 [end_date_ymd] => 2025-04-03 22:09:05 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:09:05' and `end` < '2025-04-03 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-03 22:09:18] Production.INFO: count ==1687 [2025-04-03 22:09:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:09:05 - End Time 2025-04-03 22:09:05 [2025-04-03 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828461', 'tblTempUsageDetail_20' ) start [2025-04-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828461', 'tblTempUsageDetail_20' ) end [2025-04-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828461', 'tblTempVendorCDR_20' ) start [2025-04-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828461', 'tblTempVendorCDR_20' ) end [2025-04-03 22:09:19] Production.INFO: ProcessCDR(1,14828461,1,1,2) [2025-04-03 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828461', 'tblTempUsageDetail_20' ) start [2025-04-03 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828461', 'tblTempUsageDetail_20' ) end [2025-04-03 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:09:23] Production.INFO: ==5646== Releasing lock... [2025-04-03 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:09:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:10:06 [end_date_ymd] => 2025-04-03 22:10:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:10:06' and `end` < '2025-04-03 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-03 22:10:20] Production.INFO: count ==1680 [2025-04-03 22:10:21] Production.ERROR: pbx CDR StartTime 2025-04-03 19:10:06 - End Time 2025-04-03 22:10:06 [2025-04-03 22:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828467', 'tblTempUsageDetail_20' ) start [2025-04-03 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828467', 'tblTempUsageDetail_20' ) end [2025-04-03 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828467', 'tblTempVendorCDR_20' ) start [2025-04-03 22:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828467', 'tblTempVendorCDR_20' ) end [2025-04-03 22:10:21] Production.INFO: ProcessCDR(1,14828467,1,1,2) [2025-04-03 22:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828467', 'tblTempUsageDetail_20' ) start [2025-04-03 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828467', 'tblTempUsageDetail_20' ) end [2025-04-03 22:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:10:25] Production.INFO: ==5808== Releasing lock... [2025-04-03 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:10:25] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:11:06 [end_date_ymd] => 2025-04-03 22:11:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:11:06' and `end` < '2025-04-03 22: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-03 22:11:19] Production.INFO: count ==1684 [2025-04-03 22:11:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:11:06 - End Time 2025-04-03 22:11:06 [2025-04-03 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828472', 'tblTempUsageDetail_20' ) start [2025-04-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828472', 'tblTempUsageDetail_20' ) end [2025-04-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828472', 'tblTempVendorCDR_20' ) start [2025-04-03 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828472', 'tblTempVendorCDR_20' ) end [2025-04-03 22:11:19] Production.INFO: ProcessCDR(1,14828472,1,1,2) [2025-04-03 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828472', 'tblTempUsageDetail_20' ) start [2025-04-03 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828472', 'tblTempUsageDetail_20' ) end [2025-04-03 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:11:24] Production.INFO: ==6084== Releasing lock... [2025-04-03 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:11:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-03 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:12:06 [end_date_ymd] => 2025-04-03 22:12:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:12:06' and `end` < '2025-04-03 22: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-03 22:12:19] Production.INFO: count ==1677 [2025-04-03 22:12:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:12:06 - End Time 2025-04-03 22:12:06 [2025-04-03 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828477', 'tblTempUsageDetail_20' ) start [2025-04-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828477', 'tblTempUsageDetail_20' ) end [2025-04-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828477', 'tblTempVendorCDR_20' ) start [2025-04-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828477', 'tblTempVendorCDR_20' ) end [2025-04-03 22:12:19] Production.INFO: ProcessCDR(1,14828477,1,1,2) [2025-04-03 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828477', 'tblTempUsageDetail_20' ) start [2025-04-03 22:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828477', 'tblTempUsageDetail_20' ) end [2025-04-03 22:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:12:25] Production.INFO: ==6168== Releasing lock... [2025-04-03 22:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:12:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:13:05 [end_date_ymd] => 2025-04-03 22:13:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:13:05' and `end` < '2025-04-03 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-03 22:13:18] Production.INFO: count ==1685 [2025-04-03 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:13:05 - End Time 2025-04-03 22:13:05 [2025-04-03 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828482', 'tblTempUsageDetail_20' ) start [2025-04-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828482', 'tblTempUsageDetail_20' ) end [2025-04-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828482', 'tblTempVendorCDR_20' ) start [2025-04-03 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828482', 'tblTempVendorCDR_20' ) end [2025-04-03 22:13:18] Production.INFO: ProcessCDR(1,14828482,1,1,2) [2025-04-03 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828482', 'tblTempUsageDetail_20' ) start [2025-04-03 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828482', 'tblTempUsageDetail_20' ) end [2025-04-03 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:13:22] Production.INFO: ==6251== Releasing lock... [2025-04-03 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:14:06 [end_date_ymd] => 2025-04-03 22:14:06 [RateCDR] => 1 ) [2025-04-03 22:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:14:06' and `end` < '2025-04-03 22:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:14:18] Production.INFO: count ==1685 [2025-04-03 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:14:06 - End Time 2025-04-03 22:14:06 [2025-04-03 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828487', 'tblTempUsageDetail_20' ) start [2025-04-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828487', 'tblTempUsageDetail_20' ) end [2025-04-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828487', 'tblTempVendorCDR_20' ) start [2025-04-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828487', 'tblTempVendorCDR_20' ) end [2025-04-03 22:14:19] Production.INFO: ProcessCDR(1,14828487,1,1,2) [2025-04-03 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828487', 'tblTempUsageDetail_20' ) start [2025-04-03 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828487', 'tblTempUsageDetail_20' ) end [2025-04-03 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:14:23] Production.INFO: ==6327== Releasing lock... [2025-04-03 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:14:23] Production.INFO: 41 MB #Memory Used# [2025-04-03 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:15:05 [end_date_ymd] => 2025-04-03 22:15:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:15:05' and `end` < '2025-04-03 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-03 22:15:18] Production.INFO: count ==1695 [2025-04-03 22:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:15:05 - End Time 2025-04-03 22:15:05 [2025-04-03 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828492', 'tblTempUsageDetail_20' ) start [2025-04-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828492', 'tblTempUsageDetail_20' ) end [2025-04-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828492', 'tblTempVendorCDR_20' ) start [2025-04-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828492', 'tblTempVendorCDR_20' ) end [2025-04-03 22:15:19] Production.INFO: ProcessCDR(1,14828492,1,1,2) [2025-04-03 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828492', 'tblTempUsageDetail_20' ) start [2025-04-03 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828492', 'tblTempUsageDetail_20' ) end [2025-04-03 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:15:22] Production.INFO: ==6408== Releasing lock... [2025-04-03 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-03 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:16:05 [end_date_ymd] => 2025-04-03 22:16:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:16:05' and `end` < '2025-04-03 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-03 22:16:18] Production.INFO: count ==1688 [2025-04-03 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:16:05 - End Time 2025-04-03 22:16:05 [2025-04-03 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828497', 'tblTempUsageDetail_20' ) start [2025-04-03 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828497', 'tblTempUsageDetail_20' ) end [2025-04-03 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828497', 'tblTempVendorCDR_20' ) start [2025-04-03 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828497', 'tblTempVendorCDR_20' ) end [2025-04-03 22:16:19] Production.INFO: ProcessCDR(1,14828497,1,1,2) [2025-04-03 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828497', 'tblTempUsageDetail_20' ) start [2025-04-03 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828497', 'tblTempUsageDetail_20' ) end [2025-04-03 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:16:22] Production.INFO: ==6485== Releasing lock... [2025-04-03 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:16:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:17:05 [end_date_ymd] => 2025-04-03 22:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:17:05' and `end` < '2025-04-03 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-03 22:17:18] Production.INFO: count ==1669 [2025-04-03 22:17:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:17:05 - End Time 2025-04-03 22:17:05 [2025-04-03 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828502', 'tblTempUsageDetail_20' ) start [2025-04-03 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828502', 'tblTempUsageDetail_20' ) end [2025-04-03 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828502', 'tblTempVendorCDR_20' ) start [2025-04-03 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828502', 'tblTempVendorCDR_20' ) end [2025-04-03 22:17:19] Production.INFO: ProcessCDR(1,14828502,1,1,2) [2025-04-03 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828502', 'tblTempUsageDetail_20' ) start [2025-04-03 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828502', 'tblTempUsageDetail_20' ) end [2025-04-03 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:17:23] Production.INFO: ==6565== Releasing lock... [2025-04-03 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:17:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-03 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:18:05 [end_date_ymd] => 2025-04-03 22:18:05 [RateCDR] => 1 ) [2025-04-03 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:18:05' and `end` < '2025-04-03 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:18:18] Production.INFO: count ==1665 [2025-04-03 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:18:05 - End Time 2025-04-03 22:18:05 [2025-04-03 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828507', 'tblTempUsageDetail_20' ) start [2025-04-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828507', 'tblTempUsageDetail_20' ) end [2025-04-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828507', 'tblTempVendorCDR_20' ) start [2025-04-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828507', 'tblTempVendorCDR_20' ) end [2025-04-03 22:18:19] Production.INFO: ProcessCDR(1,14828507,1,1,2) [2025-04-03 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828507', 'tblTempUsageDetail_20' ) start [2025-04-03 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828507', 'tblTempUsageDetail_20' ) end [2025-04-03 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:18:24] Production.INFO: ==6642== Releasing lock... [2025-04-03 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:18:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:19:05 [end_date_ymd] => 2025-04-03 22:19:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:19:05' and `end` < '2025-04-03 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-03 22:19:17] Production.INFO: count ==1668 [2025-04-03 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:19:05 - End Time 2025-04-03 22:19:05 [2025-04-03 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828512', 'tblTempUsageDetail_20' ) start [2025-04-03 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828512', 'tblTempUsageDetail_20' ) end [2025-04-03 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828512', 'tblTempVendorCDR_20' ) start [2025-04-03 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828512', 'tblTempVendorCDR_20' ) end [2025-04-03 22:19:18] Production.INFO: ProcessCDR(1,14828512,1,1,2) [2025-04-03 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828512', 'tblTempUsageDetail_20' ) start [2025-04-03 22:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828512', 'tblTempUsageDetail_20' ) end [2025-04-03 22:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:19:24] Production.INFO: ==6724== Releasing lock... [2025-04-03 22:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:19:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-03 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:20:06 [end_date_ymd] => 2025-04-03 22:20:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:20:06' and `end` < '2025-04-03 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-03 22:20:19] Production.INFO: count ==1663 [2025-04-03 22:20:20] Production.ERROR: pbx CDR StartTime 2025-04-03 19:20:06 - End Time 2025-04-03 22:20:06 [2025-04-03 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828517', 'tblTempUsageDetail_20' ) start [2025-04-03 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828517', 'tblTempUsageDetail_20' ) end [2025-04-03 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828517', 'tblTempVendorCDR_20' ) start [2025-04-03 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828517', 'tblTempVendorCDR_20' ) end [2025-04-03 22:20:20] Production.INFO: ProcessCDR(1,14828517,1,1,2) [2025-04-03 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828517', 'tblTempUsageDetail_20' ) start [2025-04-03 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828517', 'tblTempUsageDetail_20' ) end [2025-04-03 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:20:24] Production.INFO: ==6804== Releasing lock... [2025-04-03 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:20:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-03 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:21:05 [end_date_ymd] => 2025-04-03 22:21:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:21:05' and `end` < '2025-04-03 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-03 22:21:18] Production.INFO: count ==1634 [2025-04-03 22:21:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:21:05 - End Time 2025-04-03 22:21:05 [2025-04-03 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828523', 'tblTempUsageDetail_20' ) start [2025-04-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828523', 'tblTempUsageDetail_20' ) end [2025-04-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828523', 'tblTempVendorCDR_20' ) start [2025-04-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828523', 'tblTempVendorCDR_20' ) end [2025-04-03 22:21:19] Production.INFO: ProcessCDR(1,14828523,1,1,2) [2025-04-03 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828523', 'tblTempUsageDetail_20' ) start [2025-04-03 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828523', 'tblTempUsageDetail_20' ) end [2025-04-03 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:21:22] Production.INFO: ==6887== Releasing lock... [2025-04-03 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:21:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:22:06 [end_date_ymd] => 2025-04-03 22:22:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:22:06' and `end` < '2025-04-03 22: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-03 22:22:19] Production.INFO: count ==1634 [2025-04-03 22:22:20] Production.ERROR: pbx CDR StartTime 2025-04-03 19:22:06 - End Time 2025-04-03 22:22:06 [2025-04-03 22:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828528', 'tblTempUsageDetail_20' ) start [2025-04-03 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828528', 'tblTempUsageDetail_20' ) end [2025-04-03 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828528', 'tblTempVendorCDR_20' ) start [2025-04-03 22:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828528', 'tblTempVendorCDR_20' ) end [2025-04-03 22:22:20] Production.INFO: ProcessCDR(1,14828528,1,1,2) [2025-04-03 22:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828528', 'tblTempUsageDetail_20' ) start [2025-04-03 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828528', 'tblTempUsageDetail_20' ) end [2025-04-03 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:22:23] Production.INFO: ==6967== Releasing lock... [2025-04-03 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:22:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:23:05 [end_date_ymd] => 2025-04-03 22:23:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:23:05' and `end` < '2025-04-03 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-03 22:23:17] Production.INFO: count ==1638 [2025-04-03 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:23:05 - End Time 2025-04-03 22:23:05 [2025-04-03 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828533', 'tblTempUsageDetail_20' ) start [2025-04-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828533', 'tblTempUsageDetail_20' ) end [2025-04-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828533', 'tblTempVendorCDR_20' ) start [2025-04-03 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828533', 'tblTempVendorCDR_20' ) end [2025-04-03 22:23:18] Production.INFO: ProcessCDR(1,14828533,1,1,2) [2025-04-03 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828533', 'tblTempUsageDetail_20' ) start [2025-04-03 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828533', 'tblTempUsageDetail_20' ) end [2025-04-03 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:23:21] Production.INFO: ==7053== Releasing lock... [2025-04-03 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:23:21] Production.INFO: 40 MB #Memory Used# [2025-04-03 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:24:05 [end_date_ymd] => 2025-04-03 22:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:24:05' and `end` < '2025-04-03 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-03 22:24:18] Production.INFO: count ==1631 [2025-04-03 22:24:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:24:05 - End Time 2025-04-03 22:24:05 [2025-04-03 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828538', 'tblTempUsageDetail_20' ) start [2025-04-03 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828538', 'tblTempUsageDetail_20' ) end [2025-04-03 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828538', 'tblTempVendorCDR_20' ) start [2025-04-03 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828538', 'tblTempVendorCDR_20' ) end [2025-04-03 22:24:19] Production.INFO: ProcessCDR(1,14828538,1,1,2) [2025-04-03 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828538', 'tblTempUsageDetail_20' ) start [2025-04-03 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828538', 'tblTempUsageDetail_20' ) end [2025-04-03 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:24:22] Production.INFO: ==7133== Releasing lock... [2025-04-03 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:24:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:25:05 [end_date_ymd] => 2025-04-03 22:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:25:05' and `end` < '2025-04-03 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-03 22:25:18] Production.INFO: count ==1633 [2025-04-03 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:25:05 - End Time 2025-04-03 22:25:05 [2025-04-03 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828543', 'tblTempUsageDetail_20' ) start [2025-04-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828543', 'tblTempUsageDetail_20' ) end [2025-04-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828543', 'tblTempVendorCDR_20' ) start [2025-04-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828543', 'tblTempVendorCDR_20' ) end [2025-04-03 22:25:18] Production.INFO: ProcessCDR(1,14828543,1,1,2) [2025-04-03 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828543', 'tblTempUsageDetail_20' ) start [2025-04-03 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828543', 'tblTempUsageDetail_20' ) end [2025-04-03 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:25:24] Production.INFO: ==7213== Releasing lock... [2025-04-03 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:25:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:26:06 [end_date_ymd] => 2025-04-03 22:26:06 [RateCDR] => 1 ) [2025-04-03 22:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:26:06' and `end` < '2025-04-03 22:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:26:18] Production.INFO: count ==1634 [2025-04-03 22:26:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:26:06 - End Time 2025-04-03 22:26:06 [2025-04-03 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828548', 'tblTempUsageDetail_20' ) start [2025-04-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828548', 'tblTempUsageDetail_20' ) end [2025-04-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828548', 'tblTempVendorCDR_20' ) start [2025-04-03 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828548', 'tblTempVendorCDR_20' ) end [2025-04-03 22:26:19] Production.INFO: ProcessCDR(1,14828548,1,1,2) [2025-04-03 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828548', 'tblTempUsageDetail_20' ) start [2025-04-03 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828548', 'tblTempUsageDetail_20' ) end [2025-04-03 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:26:22] Production.INFO: ==7339== Releasing lock... [2025-04-03 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:27:05 [end_date_ymd] => 2025-04-03 22:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:27:05' and `end` < '2025-04-03 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-03 22:27:18] Production.INFO: count ==1632 [2025-04-03 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:27:05 - End Time 2025-04-03 22:27:05 [2025-04-03 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828553', 'tblTempUsageDetail_20' ) start [2025-04-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828553', 'tblTempUsageDetail_20' ) end [2025-04-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828553', 'tblTempVendorCDR_20' ) start [2025-04-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828553', 'tblTempVendorCDR_20' ) end [2025-04-03 22:27:18] Production.INFO: ProcessCDR(1,14828553,1,1,2) [2025-04-03 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828553', 'tblTempUsageDetail_20' ) start [2025-04-03 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828553', 'tblTempUsageDetail_20' ) end [2025-04-03 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:27:21] Production.INFO: ==7417== Releasing lock... [2025-04-03 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:27:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:28:05 [end_date_ymd] => 2025-04-03 22:28:05 [RateCDR] => 1 ) [2025-04-03 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:28:05' and `end` < '2025-04-03 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:28:18] Production.INFO: count ==1632 [2025-04-03 22:28:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:28:05 - End Time 2025-04-03 22:28:05 [2025-04-03 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828558', 'tblTempUsageDetail_20' ) start [2025-04-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828558', 'tblTempUsageDetail_20' ) end [2025-04-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828558', 'tblTempVendorCDR_20' ) start [2025-04-03 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828558', 'tblTempVendorCDR_20' ) end [2025-04-03 22:28:19] Production.INFO: ProcessCDR(1,14828558,1,1,2) [2025-04-03 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828558', 'tblTempUsageDetail_20' ) start [2025-04-03 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828558', 'tblTempUsageDetail_20' ) end [2025-04-03 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:28:22] Production.INFO: ==7505== Releasing lock... [2025-04-03 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:28:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:29:05 [end_date_ymd] => 2025-04-03 22:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:29:05' and `end` < '2025-04-03 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-03 22:29:18] Production.INFO: count ==1636 [2025-04-03 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:29:05 - End Time 2025-04-03 22:29:05 [2025-04-03 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828563', 'tblTempUsageDetail_20' ) start [2025-04-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828563', 'tblTempUsageDetail_20' ) end [2025-04-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828563', 'tblTempVendorCDR_20' ) start [2025-04-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828563', 'tblTempVendorCDR_20' ) end [2025-04-03 22:29:19] Production.INFO: ProcessCDR(1,14828563,1,1,2) [2025-04-03 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828563', 'tblTempUsageDetail_20' ) start [2025-04-03 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828563', 'tblTempUsageDetail_20' ) end [2025-04-03 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:29:23] Production.INFO: ==7585== Releasing lock... [2025-04-03 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:30:06 [end_date_ymd] => 2025-04-03 22:30:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:30:06' and `end` < '2025-04-03 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-03 22:30:19] Production.INFO: count ==1633 [2025-04-03 22:30:20] Production.ERROR: pbx CDR StartTime 2025-04-03 19:30:06 - End Time 2025-04-03 22:30:06 [2025-04-03 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828569', 'tblTempUsageDetail_20' ) start [2025-04-03 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828569', 'tblTempUsageDetail_20' ) end [2025-04-03 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828569', 'tblTempVendorCDR_20' ) start [2025-04-03 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828569', 'tblTempVendorCDR_20' ) end [2025-04-03 22:30:20] Production.INFO: ProcessCDR(1,14828569,1,1,2) [2025-04-03 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828569', 'tblTempUsageDetail_20' ) start [2025-04-03 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828569', 'tblTempUsageDetail_20' ) end [2025-04-03 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:30:25] Production.INFO: ==7675== Releasing lock... [2025-04-03 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:30:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-03 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:31:05 [end_date_ymd] => 2025-04-03 22:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:31:05' and `end` < '2025-04-03 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-03 22:31:18] Production.INFO: count ==1562 [2025-04-03 22:31:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:31:05 - End Time 2025-04-03 22:31:05 [2025-04-03 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828574', 'tblTempUsageDetail_20' ) start [2025-04-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828574', 'tblTempUsageDetail_20' ) end [2025-04-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828574', 'tblTempVendorCDR_20' ) start [2025-04-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828574', 'tblTempVendorCDR_20' ) end [2025-04-03 22:31:19] Production.INFO: ProcessCDR(1,14828574,1,1,2) [2025-04-03 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828574', 'tblTempUsageDetail_20' ) start [2025-04-03 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828574', 'tblTempUsageDetail_20' ) end [2025-04-03 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:31:22] Production.INFO: ==7757== Releasing lock... [2025-04-03 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-03 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:32:06 [end_date_ymd] => 2025-04-03 22:32:06 [RateCDR] => 1 ) [2025-04-03 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:32:06' and `end` < '2025-04-03 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:32:19] Production.INFO: count ==1559 [2025-04-03 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:32:06 - End Time 2025-04-03 22:32:06 [2025-04-03 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828579', 'tblTempUsageDetail_20' ) start [2025-04-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828579', 'tblTempUsageDetail_20' ) end [2025-04-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828579', 'tblTempVendorCDR_20' ) start [2025-04-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828579', 'tblTempVendorCDR_20' ) end [2025-04-03 22:32:19] Production.INFO: ProcessCDR(1,14828579,1,1,2) [2025-04-03 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828579', 'tblTempUsageDetail_20' ) start [2025-04-03 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828579', 'tblTempUsageDetail_20' ) end [2025-04-03 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:32:23] Production.INFO: ==7839== Releasing lock... [2025-04-03 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:32:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-03 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:33:05 [end_date_ymd] => 2025-04-03 22:33:05 [RateCDR] => 1 ) [2025-04-03 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:33:05' and `end` < '2025-04-03 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:33:18] Production.INFO: count ==1550 [2025-04-03 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:33:05 - End Time 2025-04-03 22:33:05 [2025-04-03 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828584', 'tblTempUsageDetail_20' ) start [2025-04-03 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828584', 'tblTempUsageDetail_20' ) end [2025-04-03 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828584', 'tblTempVendorCDR_20' ) start [2025-04-03 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828584', 'tblTempVendorCDR_20' ) end [2025-04-03 22:33:19] Production.INFO: ProcessCDR(1,14828584,1,1,2) [2025-04-03 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828584', 'tblTempUsageDetail_20' ) start [2025-04-03 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828584', 'tblTempUsageDetail_20' ) end [2025-04-03 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:33:22] Production.INFO: ==7915== Releasing lock... [2025-04-03 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:33:22] Production.INFO: 40 MB #Memory Used# [2025-04-03 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:34:05 [end_date_ymd] => 2025-04-03 22:34:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:34:05' and `end` < '2025-04-03 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-03 22:34:18] Production.INFO: count ==1552 [2025-04-03 22:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:34:05 - End Time 2025-04-03 22:34:05 [2025-04-03 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828589', 'tblTempUsageDetail_20' ) start [2025-04-03 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828589', 'tblTempUsageDetail_20' ) end [2025-04-03 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828589', 'tblTempVendorCDR_20' ) start [2025-04-03 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828589', 'tblTempVendorCDR_20' ) end [2025-04-03 22:34:19] Production.INFO: ProcessCDR(1,14828589,1,1,2) [2025-04-03 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828589', 'tblTempUsageDetail_20' ) start [2025-04-03 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828589', 'tblTempUsageDetail_20' ) end [2025-04-03 22:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:34:24] Production.INFO: ==7997== Releasing lock... [2025-04-03 22:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:34:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:35:05 [end_date_ymd] => 2025-04-03 22:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:35:05' and `end` < '2025-04-03 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-03 22:35:18] Production.INFO: count ==1551 [2025-04-03 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:35:05 - End Time 2025-04-03 22:35:05 [2025-04-03 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828594', 'tblTempUsageDetail_20' ) start [2025-04-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828594', 'tblTempUsageDetail_20' ) end [2025-04-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828594', 'tblTempVendorCDR_20' ) start [2025-04-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828594', 'tblTempVendorCDR_20' ) end [2025-04-03 22:35:18] Production.INFO: ProcessCDR(1,14828594,1,1,2) [2025-04-03 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828594', 'tblTempUsageDetail_20' ) start [2025-04-03 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828594', 'tblTempUsageDetail_20' ) end [2025-04-03 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:35:23] Production.INFO: ==8071== Releasing lock... [2025-04-03 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:35:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:36:05 [end_date_ymd] => 2025-04-03 22:36:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:36:05' and `end` < '2025-04-03 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-03 22:36:18] Production.INFO: count ==1554 [2025-04-03 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:36:05 - End Time 2025-04-03 22:36:05 [2025-04-03 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828599', 'tblTempUsageDetail_20' ) start [2025-04-03 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828599', 'tblTempUsageDetail_20' ) end [2025-04-03 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828599', 'tblTempVendorCDR_20' ) start [2025-04-03 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828599', 'tblTempVendorCDR_20' ) end [2025-04-03 22:36:19] Production.INFO: ProcessCDR(1,14828599,1,1,2) [2025-04-03 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828599', 'tblTempUsageDetail_20' ) start [2025-04-03 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828599', 'tblTempUsageDetail_20' ) end [2025-04-03 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:36:22] Production.INFO: ==8155== Releasing lock... [2025-04-03 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:36:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:37:05 [end_date_ymd] => 2025-04-03 22:37:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:37:05' and `end` < '2025-04-03 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-03 22:37:17] Production.INFO: count ==1552 [2025-04-03 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:37:05 - End Time 2025-04-03 22:37:05 [2025-04-03 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828604', 'tblTempUsageDetail_20' ) start [2025-04-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828604', 'tblTempUsageDetail_20' ) end [2025-04-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828604', 'tblTempVendorCDR_20' ) start [2025-04-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828604', 'tblTempVendorCDR_20' ) end [2025-04-03 22:37:18] Production.INFO: ProcessCDR(1,14828604,1,1,2) [2025-04-03 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828604', 'tblTempUsageDetail_20' ) start [2025-04-03 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828604', 'tblTempUsageDetail_20' ) end [2025-04-03 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:37:21] Production.INFO: ==8229== Releasing lock... [2025-04-03 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:37:21] Production.INFO: 40 MB #Memory Used# [2025-04-03 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:38:06 [end_date_ymd] => 2025-04-03 22:38:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:38:06' and `end` < '2025-04-03 22: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-03 22:38:19] Production.INFO: count ==1552 [2025-04-03 22:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:38:06 - End Time 2025-04-03 22:38:06 [2025-04-03 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828609', 'tblTempUsageDetail_20' ) start [2025-04-03 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828609', 'tblTempUsageDetail_20' ) end [2025-04-03 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828609', 'tblTempVendorCDR_20' ) start [2025-04-03 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828609', 'tblTempVendorCDR_20' ) end [2025-04-03 22:38:19] Production.INFO: ProcessCDR(1,14828609,1,1,2) [2025-04-03 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828609', 'tblTempUsageDetail_20' ) start [2025-04-03 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828609', 'tblTempUsageDetail_20' ) end [2025-04-03 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:38:23] Production.INFO: ==8313== Releasing lock... [2025-04-03 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:38:23] Production.INFO: 40 MB #Memory Used# [2025-04-03 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:39:06 [end_date_ymd] => 2025-04-03 22:39:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:39:06' and `end` < '2025-04-03 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-03 22:39:19] Production.INFO: count ==1551 [2025-04-03 22:39:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:39:06 - End Time 2025-04-03 22:39:06 [2025-04-03 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828614', 'tblTempUsageDetail_20' ) start [2025-04-03 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828614', 'tblTempUsageDetail_20' ) end [2025-04-03 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828614', 'tblTempVendorCDR_20' ) start [2025-04-03 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828614', 'tblTempVendorCDR_20' ) end [2025-04-03 22:39:19] Production.INFO: ProcessCDR(1,14828614,1,1,2) [2025-04-03 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828614', 'tblTempUsageDetail_20' ) start [2025-04-03 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828614', 'tblTempUsageDetail_20' ) end [2025-04-03 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:39:23] Production.INFO: ==8386== Releasing lock... [2025-04-03 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:39:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:40:06 [end_date_ymd] => 2025-04-03 22:40:06 [RateCDR] => 1 ) [2025-04-03 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:40:06' and `end` < '2025-04-03 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:40:19] Production.INFO: count ==1543 [2025-04-03 22:40:20] Production.ERROR: pbx CDR StartTime 2025-04-03 19:40:06 - End Time 2025-04-03 22:40:06 [2025-04-03 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828620', 'tblTempUsageDetail_20' ) start [2025-04-03 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828620', 'tblTempUsageDetail_20' ) end [2025-04-03 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828620', 'tblTempVendorCDR_20' ) start [2025-04-03 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828620', 'tblTempVendorCDR_20' ) end [2025-04-03 22:40:20] Production.INFO: ProcessCDR(1,14828620,1,1,2) [2025-04-03 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828620', 'tblTempUsageDetail_20' ) start [2025-04-03 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828620', 'tblTempUsageDetail_20' ) end [2025-04-03 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:40:23] Production.INFO: ==8471== Releasing lock... [2025-04-03 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:41:06 [end_date_ymd] => 2025-04-03 22:41:06 [RateCDR] => 1 ) [2025-04-03 22:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:41:06' and `end` < '2025-04-03 22:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:41:18] Production.INFO: count ==1520 [2025-04-03 22:41:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:41:06 - End Time 2025-04-03 22:41:06 [2025-04-03 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828624', 'tblTempUsageDetail_20' ) start [2025-04-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828624', 'tblTempUsageDetail_20' ) end [2025-04-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828624', 'tblTempVendorCDR_20' ) start [2025-04-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828624', 'tblTempVendorCDR_20' ) end [2025-04-03 22:41:19] Production.INFO: ProcessCDR(1,14828624,1,1,2) [2025-04-03 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828624', 'tblTempUsageDetail_20' ) start [2025-04-03 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828624', 'tblTempUsageDetail_20' ) end [2025-04-03 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:41:23] Production.INFO: ==8550== Releasing lock... [2025-04-03 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:41:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:42:05 [end_date_ymd] => 2025-04-03 22:42:05 [RateCDR] => 1 ) [2025-04-03 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:42:05' and `end` < '2025-04-03 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:42:18] Production.INFO: count ==1513 [2025-04-03 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:42:05 - End Time 2025-04-03 22:42:05 [2025-04-03 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828630', 'tblTempUsageDetail_20' ) start [2025-04-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828630', 'tblTempUsageDetail_20' ) end [2025-04-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828630', 'tblTempVendorCDR_20' ) start [2025-04-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828630', 'tblTempVendorCDR_20' ) end [2025-04-03 22:42:18] Production.INFO: ProcessCDR(1,14828630,1,1,2) [2025-04-03 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828630', 'tblTempUsageDetail_20' ) start [2025-04-03 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828630', 'tblTempUsageDetail_20' ) end [2025-04-03 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:42:22] Production.INFO: ==8672== Releasing lock... [2025-04-03 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:42:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:43:06 [end_date_ymd] => 2025-04-03 22:43:06 [RateCDR] => 1 ) [2025-04-03 22:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:43:06' and `end` < '2025-04-03 22: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-03 22:43:19] Production.INFO: count ==1500 [2025-04-03 22:43:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:43:06 - End Time 2025-04-03 22:43:06 [2025-04-03 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828635', 'tblTempUsageDetail_20' ) start [2025-04-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828635', 'tblTempUsageDetail_20' ) end [2025-04-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828635', 'tblTempVendorCDR_20' ) start [2025-04-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828635', 'tblTempVendorCDR_20' ) end [2025-04-03 22:43:19] Production.INFO: ProcessCDR(1,14828635,1,1,2) [2025-04-03 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828635', 'tblTempUsageDetail_20' ) start [2025-04-03 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828635', 'tblTempUsageDetail_20' ) end [2025-04-03 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:43:23] Production.INFO: ==8751== Releasing lock... [2025-04-03 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:43:23] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:44:06 [end_date_ymd] => 2025-04-03 22:44:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:44:06' and `end` < '2025-04-03 22: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-03 22:44:18] Production.INFO: count ==1482 [2025-04-03 22:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:44:06 - End Time 2025-04-03 22:44:06 [2025-04-03 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828640', 'tblTempUsageDetail_20' ) start [2025-04-03 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828640', 'tblTempUsageDetail_20' ) end [2025-04-03 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828640', 'tblTempVendorCDR_20' ) start [2025-04-03 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828640', 'tblTempVendorCDR_20' ) end [2025-04-03 22:44:19] Production.INFO: ProcessCDR(1,14828640,1,1,2) [2025-04-03 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828640', 'tblTempUsageDetail_20' ) start [2025-04-03 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828640', 'tblTempUsageDetail_20' ) end [2025-04-03 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:44:22] Production.INFO: ==8829== Releasing lock... [2025-04-03 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:44:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:45:05 [end_date_ymd] => 2025-04-03 22:45:05 [RateCDR] => 1 ) [2025-04-03 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:45:05' and `end` < '2025-04-03 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:45:18] Production.INFO: count ==1477 [2025-04-03 22:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:45:05 - End Time 2025-04-03 22:45:05 [2025-04-03 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828645', 'tblTempUsageDetail_20' ) start [2025-04-03 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828645', 'tblTempUsageDetail_20' ) end [2025-04-03 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828645', 'tblTempVendorCDR_20' ) start [2025-04-03 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828645', 'tblTempVendorCDR_20' ) end [2025-04-03 22:45:19] Production.INFO: ProcessCDR(1,14828645,1,1,2) [2025-04-03 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828645', 'tblTempUsageDetail_20' ) start [2025-04-03 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828645', 'tblTempUsageDetail_20' ) end [2025-04-03 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:45:22] Production.INFO: ==8904== Releasing lock... [2025-04-03 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:45:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:46:05 [end_date_ymd] => 2025-04-03 22:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:46:05' and `end` < '2025-04-03 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-03 22:46:18] Production.INFO: count ==1472 [2025-04-03 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:46:05 - End Time 2025-04-03 22:46:05 [2025-04-03 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828650', 'tblTempUsageDetail_20' ) start [2025-04-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828650', 'tblTempUsageDetail_20' ) end [2025-04-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828650', 'tblTempVendorCDR_20' ) start [2025-04-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828650', 'tblTempVendorCDR_20' ) end [2025-04-03 22:46:18] Production.INFO: ProcessCDR(1,14828650,1,1,2) [2025-04-03 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828650', 'tblTempUsageDetail_20' ) start [2025-04-03 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828650', 'tblTempUsageDetail_20' ) end [2025-04-03 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:46:22] Production.INFO: ==8984== Releasing lock... [2025-04-03 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:47:05 [end_date_ymd] => 2025-04-03 22:47:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:47:05' and `end` < '2025-04-03 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-03 22:47:18] Production.INFO: count ==1470 [2025-04-03 22:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:47:05 - End Time 2025-04-03 22:47:05 [2025-04-03 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828655', 'tblTempUsageDetail_20' ) start [2025-04-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828655', 'tblTempUsageDetail_20' ) end [2025-04-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828655', 'tblTempVendorCDR_20' ) start [2025-04-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828655', 'tblTempVendorCDR_20' ) end [2025-04-03 22:47:19] Production.INFO: ProcessCDR(1,14828655,1,1,2) [2025-04-03 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828655', 'tblTempUsageDetail_20' ) start [2025-04-03 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828655', 'tblTempUsageDetail_20' ) end [2025-04-03 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:47:22] Production.INFO: ==9063== Releasing lock... [2025-04-03 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:47:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:48:05 [end_date_ymd] => 2025-04-03 22:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:48:05' and `end` < '2025-04-03 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-03 22:48:18] Production.INFO: count ==1465 [2025-04-03 22:48:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:48:05 - End Time 2025-04-03 22:48:05 [2025-04-03 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828660', 'tblTempUsageDetail_20' ) start [2025-04-03 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828660', 'tblTempUsageDetail_20' ) end [2025-04-03 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828660', 'tblTempVendorCDR_20' ) start [2025-04-03 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828660', 'tblTempVendorCDR_20' ) end [2025-04-03 22:48:19] Production.INFO: ProcessCDR(1,14828660,1,1,2) [2025-04-03 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828660', 'tblTempUsageDetail_20' ) start [2025-04-03 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828660', 'tblTempUsageDetail_20' ) end [2025-04-03 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:48:22] Production.INFO: ==9137== Releasing lock... [2025-04-03 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:48:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:49:06 [end_date_ymd] => 2025-04-03 22:49:06 [RateCDR] => 1 ) [2025-04-03 22:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:49:06' and `end` < '2025-04-03 22:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:49:19] Production.INFO: count ==1459 [2025-04-03 22:49:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:49:06 - End Time 2025-04-03 22:49:06 [2025-04-03 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828665', 'tblTempUsageDetail_20' ) start [2025-04-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828665', 'tblTempUsageDetail_20' ) end [2025-04-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828665', 'tblTempVendorCDR_20' ) start [2025-04-03 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828665', 'tblTempVendorCDR_20' ) end [2025-04-03 22:49:19] Production.INFO: ProcessCDR(1,14828665,1,1,2) [2025-04-03 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828665', 'tblTempUsageDetail_20' ) start [2025-04-03 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828665', 'tblTempUsageDetail_20' ) end [2025-04-03 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:49:23] Production.INFO: ==9219== Releasing lock... [2025-04-03 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:49:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-03 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:50:06 [end_date_ymd] => 2025-04-03 22:50:06 [RateCDR] => 1 ) [2025-04-03 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-03 19:50:06' and `end` < '2025-04-03 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-03 22:50:19] Production.INFO: count ==1458 [2025-04-03 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:50:06 - End Time 2025-04-03 22:50:06 [2025-04-03 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828671', 'tblTempUsageDetail_20' ) start [2025-04-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828671', 'tblTempUsageDetail_20' ) end [2025-04-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828671', 'tblTempVendorCDR_20' ) start [2025-04-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828671', 'tblTempVendorCDR_20' ) end [2025-04-03 22:50:19] Production.INFO: ProcessCDR(1,14828671,1,1,2) [2025-04-03 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828671', 'tblTempUsageDetail_20' ) start [2025-04-03 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828671', 'tblTempUsageDetail_20' ) end [2025-04-03 22:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:50:25] Production.INFO: ==9294== Releasing lock... [2025-04-03 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:50:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-03 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:51:05 [end_date_ymd] => 2025-04-03 22:51:05 [RateCDR] => 1 ) [2025-04-03 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:51:05' and `end` < '2025-04-03 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:51:18] Production.INFO: count ==1428 [2025-04-03 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:51:05 - End Time 2025-04-03 22:51:05 [2025-04-03 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828676', 'tblTempUsageDetail_20' ) start [2025-04-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828676', 'tblTempUsageDetail_20' ) end [2025-04-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828676', 'tblTempVendorCDR_20' ) start [2025-04-03 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828676', 'tblTempVendorCDR_20' ) end [2025-04-03 22:51:19] Production.INFO: ProcessCDR(1,14828676,1,1,2) [2025-04-03 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828676', 'tblTempUsageDetail_20' ) start [2025-04-03 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828676', 'tblTempUsageDetail_20' ) end [2025-04-03 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:51:22] Production.INFO: ==9377== Releasing lock... [2025-04-03 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:51:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:52:05 [end_date_ymd] => 2025-04-03 22:52:05 [RateCDR] => 1 ) [2025-04-03 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:52:05' and `end` < '2025-04-03 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:52:17] Production.INFO: count ==1426 [2025-04-03 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:52:05 - End Time 2025-04-03 22:52:05 [2025-04-03 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828681', 'tblTempUsageDetail_20' ) start [2025-04-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828681', 'tblTempUsageDetail_20' ) end [2025-04-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828681', 'tblTempVendorCDR_20' ) start [2025-04-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828681', 'tblTempVendorCDR_20' ) end [2025-04-03 22:52:18] Production.INFO: ProcessCDR(1,14828681,1,1,2) [2025-04-03 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828681', 'tblTempUsageDetail_20' ) start [2025-04-03 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828681', 'tblTempUsageDetail_20' ) end [2025-04-03 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:52:21] Production.INFO: ==9449== Releasing lock... [2025-04-03 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:52:21] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:53:06 [end_date_ymd] => 2025-04-03 22:53:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:53:06' and `end` < '2025-04-03 22: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-03 22:53:18] Production.INFO: count ==1422 [2025-04-03 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:53:06 - End Time 2025-04-03 22:53:06 [2025-04-03 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828686', 'tblTempUsageDetail_20' ) start [2025-04-03 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828686', 'tblTempUsageDetail_20' ) end [2025-04-03 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828686', 'tblTempVendorCDR_20' ) start [2025-04-03 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828686', 'tblTempVendorCDR_20' ) end [2025-04-03 22:53:19] Production.INFO: ProcessCDR(1,14828686,1,1,2) [2025-04-03 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828686', 'tblTempUsageDetail_20' ) start [2025-04-03 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828686', 'tblTempUsageDetail_20' ) end [2025-04-03 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:53:22] Production.INFO: ==9530== Releasing lock... [2025-04-03 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:53:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:54:05 [end_date_ymd] => 2025-04-03 22:54:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:54:05' and `end` < '2025-04-03 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-03 22:54:18] Production.INFO: count ==1416 [2025-04-03 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:54:05 - End Time 2025-04-03 22:54:05 [2025-04-03 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828691', 'tblTempUsageDetail_20' ) start [2025-04-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828691', 'tblTempUsageDetail_20' ) end [2025-04-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828691', 'tblTempVendorCDR_20' ) start [2025-04-03 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828691', 'tblTempVendorCDR_20' ) end [2025-04-03 22:54:18] Production.INFO: ProcessCDR(1,14828691,1,1,2) [2025-04-03 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828691', 'tblTempUsageDetail_20' ) start [2025-04-03 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828691', 'tblTempUsageDetail_20' ) end [2025-04-03 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:54:22] Production.INFO: ==9603== Releasing lock... [2025-04-03 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:54:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:55:06 [end_date_ymd] => 2025-04-03 22:55:06 [RateCDR] => 1 ) [2025-04-03 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:55:06' and `end` < '2025-04-03 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:55:18] Production.INFO: count ==1420 [2025-04-03 22:55:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:55:06 - End Time 2025-04-03 22:55:06 [2025-04-03 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828696', 'tblTempUsageDetail_20' ) start [2025-04-03 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828696', 'tblTempUsageDetail_20' ) end [2025-04-03 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828696', 'tblTempVendorCDR_20' ) start [2025-04-03 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828696', 'tblTempVendorCDR_20' ) end [2025-04-03 22:55:19] Production.INFO: ProcessCDR(1,14828696,1,1,2) [2025-04-03 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828696', 'tblTempUsageDetail_20' ) start [2025-04-03 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828696', 'tblTempUsageDetail_20' ) end [2025-04-03 22:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:55:24] Production.INFO: ==9682== Releasing lock... [2025-04-03 22:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:55:24] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:56:05 [end_date_ymd] => 2025-04-03 22:56:05 [RateCDR] => 1 ) [2025-04-03 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:56:05' and `end` < '2025-04-03 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:56:18] Production.INFO: count ==1422 [2025-04-03 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:56:05 - End Time 2025-04-03 22:56:05 [2025-04-03 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828701', 'tblTempUsageDetail_20' ) start [2025-04-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828701', 'tblTempUsageDetail_20' ) end [2025-04-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828701', 'tblTempVendorCDR_20' ) start [2025-04-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828701', 'tblTempVendorCDR_20' ) end [2025-04-03 22:56:19] Production.INFO: ProcessCDR(1,14828701,1,1,2) [2025-04-03 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828701', 'tblTempUsageDetail_20' ) start [2025-04-03 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828701', 'tblTempUsageDetail_20' ) end [2025-04-03 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:56:22] Production.INFO: ==9758== Releasing lock... [2025-04-03 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:56:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:57:06 [end_date_ymd] => 2025-04-03 22:57:06 [RateCDR] => 1 ) [2025-04-03 22: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-03 19:57:06' and `end` < '2025-04-03 22: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-03 22:57:19] Production.INFO: count ==1420 [2025-04-03 22:57:19] Production.ERROR: pbx CDR StartTime 2025-04-03 19:57:06 - End Time 2025-04-03 22:57:06 [2025-04-03 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828706', 'tblTempUsageDetail_20' ) start [2025-04-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828706', 'tblTempUsageDetail_20' ) end [2025-04-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828706', 'tblTempVendorCDR_20' ) start [2025-04-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828706', 'tblTempVendorCDR_20' ) end [2025-04-03 22:57:19] Production.INFO: ProcessCDR(1,14828706,1,1,2) [2025-04-03 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828706', 'tblTempUsageDetail_20' ) start [2025-04-03 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828706', 'tblTempUsageDetail_20' ) end [2025-04-03 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:57:22] Production.INFO: ==9878== Releasing lock... [2025-04-03 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:58:05 [end_date_ymd] => 2025-04-03 22:58:05 [RateCDR] => 1 ) [2025-04-03 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-03 19:58:05' and `end` < '2025-04-03 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-03 22:58:18] Production.INFO: count ==1416 [2025-04-03 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:58:05 - End Time 2025-04-03 22:58:05 [2025-04-03 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828711', 'tblTempUsageDetail_20' ) start [2025-04-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828711', 'tblTempUsageDetail_20' ) end [2025-04-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828711', 'tblTempVendorCDR_20' ) start [2025-04-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828711', 'tblTempVendorCDR_20' ) end [2025-04-03 22:58:18] Production.INFO: ProcessCDR(1,14828711,1,1,2) [2025-04-03 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828711', 'tblTempUsageDetail_20' ) start [2025-04-03 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828711', 'tblTempUsageDetail_20' ) end [2025-04-03 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:58:21] Production.INFO: ==9961== Releasing lock... [2025-04-03 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:58:21] Production.INFO: 39 MB #Memory Used# [2025-04-03 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 19:59:05 [end_date_ymd] => 2025-04-03 22:59:05 [RateCDR] => 1 ) [2025-04-03 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 19:59:05' and `end` < '2025-04-03 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 22:59:18] Production.INFO: count ==1413 [2025-04-03 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 19:59:05 - End Time 2025-04-03 22:59:05 [2025-04-03 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828716', 'tblTempUsageDetail_20' ) start [2025-04-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828716', 'tblTempUsageDetail_20' ) end [2025-04-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828716', 'tblTempVendorCDR_20' ) start [2025-04-03 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828716', 'tblTempVendorCDR_20' ) end [2025-04-03 22:59:18] Production.INFO: ProcessCDR(1,14828716,1,1,2) [2025-04-03 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828716', 'tblTempUsageDetail_20' ) start [2025-04-03 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828716', 'tblTempUsageDetail_20' ) end [2025-04-03 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 22:59:23] Production.INFO: ==10061== Releasing lock... [2025-04-03 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 22:59:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:00:07 [end_date_ymd] => 2025-04-03 23:00:07 [RateCDR] => 1 ) [2025-04-03 23:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:00:07' and `end` < '2025-04-03 23:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:00:20] Production.INFO: count ==1405 [2025-04-03 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-03 20:00:07 - End Time 2025-04-03 23:00:07 [2025-04-03 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828722', 'tblTempUsageDetail_20' ) start [2025-04-03 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828722', 'tblTempUsageDetail_20' ) end [2025-04-03 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828722', 'tblTempVendorCDR_20' ) start [2025-04-03 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828722', 'tblTempVendorCDR_20' ) end [2025-04-03 23:00:20] Production.INFO: ProcessCDR(1,14828722,1,1,2) [2025-04-03 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828722', 'tblTempUsageDetail_20' ) start [2025-04-03 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828722', 'tblTempUsageDetail_20' ) end [2025-04-03 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:00:23] Production.INFO: ==10153== Releasing lock... [2025-04-03 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:01:05 [end_date_ymd] => 2025-04-03 23:01:05 [RateCDR] => 1 ) [2025-04-03 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:01:05' and `end` < '2025-04-03 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:01:18] Production.INFO: count ==1389 [2025-04-03 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:01:05 - End Time 2025-04-03 23:01:05 [2025-04-03 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828727', 'tblTempUsageDetail_20' ) start [2025-04-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828727', 'tblTempUsageDetail_20' ) end [2025-04-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828727', 'tblTempVendorCDR_20' ) start [2025-04-03 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828727', 'tblTempVendorCDR_20' ) end [2025-04-03 23:01:18] Production.INFO: ProcessCDR(1,14828727,1,1,2) [2025-04-03 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828727', 'tblTempUsageDetail_20' ) start [2025-04-03 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828727', 'tblTempUsageDetail_20' ) end [2025-04-03 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:01:22] Production.INFO: ==10351== Releasing lock... [2025-04-03 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:02:05 [end_date_ymd] => 2025-04-03 23:02:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:02:05' and `end` < '2025-04-03 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-03 23:02:18] Production.INFO: count ==1387 [2025-04-03 23:02:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:02:05 - End Time 2025-04-03 23:02:05 [2025-04-03 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828732', 'tblTempUsageDetail_20' ) start [2025-04-03 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828732', 'tblTempUsageDetail_20' ) end [2025-04-03 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828732', 'tblTempVendorCDR_20' ) start [2025-04-03 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828732', 'tblTempVendorCDR_20' ) end [2025-04-03 23:02:19] Production.INFO: ProcessCDR(1,14828732,1,1,2) [2025-04-03 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828732', 'tblTempUsageDetail_20' ) start [2025-04-03 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828732', 'tblTempUsageDetail_20' ) end [2025-04-03 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:02:22] Production.INFO: ==10439== Releasing lock... [2025-04-03 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:03:05 [end_date_ymd] => 2025-04-03 23:03:05 [RateCDR] => 1 ) [2025-04-03 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:03:05' and `end` < '2025-04-03 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:03:18] Production.INFO: count ==1383 [2025-04-03 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:03:05 - End Time 2025-04-03 23:03:05 [2025-04-03 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828737', 'tblTempUsageDetail_20' ) start [2025-04-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828737', 'tblTempUsageDetail_20' ) end [2025-04-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828737', 'tblTempVendorCDR_20' ) start [2025-04-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828737', 'tblTempVendorCDR_20' ) end [2025-04-03 23:03:18] Production.INFO: ProcessCDR(1,14828737,1,1,2) [2025-04-03 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828737', 'tblTempUsageDetail_20' ) start [2025-04-03 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828737', 'tblTempUsageDetail_20' ) end [2025-04-03 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:03:22] Production.INFO: ==10540== Releasing lock... [2025-04-03 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:03:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:04:06 [end_date_ymd] => 2025-04-03 23:04:06 [RateCDR] => 1 ) [2025-04-03 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:04:06' and `end` < '2025-04-03 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:04:18] Production.INFO: count ==1376 [2025-04-03 23:04:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:04:06 - End Time 2025-04-03 23:04:06 [2025-04-03 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828742', 'tblTempUsageDetail_20' ) start [2025-04-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828742', 'tblTempUsageDetail_20' ) end [2025-04-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828742', 'tblTempVendorCDR_20' ) start [2025-04-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828742', 'tblTempVendorCDR_20' ) end [2025-04-03 23:04:19] Production.INFO: ProcessCDR(1,14828742,1,1,2) [2025-04-03 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828742', 'tblTempUsageDetail_20' ) start [2025-04-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828742', 'tblTempUsageDetail_20' ) end [2025-04-03 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:04:22] Production.INFO: ==10640== Releasing lock... [2025-04-03 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:05:05 [end_date_ymd] => 2025-04-03 23:05:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:05:05' and `end` < '2025-04-03 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-03 23:05:18] Production.INFO: count ==1374 [2025-04-03 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:05:05 - End Time 2025-04-03 23:05:05 [2025-04-03 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828747', 'tblTempUsageDetail_20' ) start [2025-04-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828747', 'tblTempUsageDetail_20' ) end [2025-04-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828747', 'tblTempVendorCDR_20' ) start [2025-04-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828747', 'tblTempVendorCDR_20' ) end [2025-04-03 23:05:18] Production.INFO: ProcessCDR(1,14828747,1,1,2) [2025-04-03 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828747', 'tblTempUsageDetail_20' ) start [2025-04-03 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828747', 'tblTempUsageDetail_20' ) end [2025-04-03 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:05:23] Production.INFO: ==10808== Releasing lock... [2025-04-03 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:06:06 [end_date_ymd] => 2025-04-03 23:06:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:06:06' and `end` < '2025-04-03 23: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-03 23:06:19] Production.INFO: count ==1376 [2025-04-03 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:06:06 - End Time 2025-04-03 23:06:06 [2025-04-03 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828752', 'tblTempUsageDetail_20' ) start [2025-04-03 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828752', 'tblTempUsageDetail_20' ) end [2025-04-03 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828752', 'tblTempVendorCDR_20' ) start [2025-04-03 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828752', 'tblTempVendorCDR_20' ) end [2025-04-03 23:06:19] Production.INFO: ProcessCDR(1,14828752,1,1,2) [2025-04-03 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828752', 'tblTempUsageDetail_20' ) start [2025-04-03 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828752', 'tblTempUsageDetail_20' ) end [2025-04-03 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:06:23] Production.INFO: ==10902== Releasing lock... [2025-04-03 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:07:06 [end_date_ymd] => 2025-04-03 23:07:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:07:06' and `end` < '2025-04-03 23: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-03 23:07:19] Production.INFO: count ==1376 [2025-04-03 23:07:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:07:06 - End Time 2025-04-03 23:07:06 [2025-04-03 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828757', 'tblTempUsageDetail_20' ) start [2025-04-03 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828757', 'tblTempUsageDetail_20' ) end [2025-04-03 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828757', 'tblTempVendorCDR_20' ) start [2025-04-03 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828757', 'tblTempVendorCDR_20' ) end [2025-04-03 23:07:19] Production.INFO: ProcessCDR(1,14828757,1,1,2) [2025-04-03 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828757', 'tblTempUsageDetail_20' ) start [2025-04-03 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828757', 'tblTempUsageDetail_20' ) end [2025-04-03 23:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:07:24] Production.INFO: ==10982== Releasing lock... [2025-04-03 23:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:07:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:08:05 [end_date_ymd] => 2025-04-03 23:08:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:08:05' and `end` < '2025-04-03 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-03 23:08:18] Production.INFO: count ==1374 [2025-04-03 23:08:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:08:05 - End Time 2025-04-03 23:08:05 [2025-04-03 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828762', 'tblTempUsageDetail_20' ) start [2025-04-03 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828762', 'tblTempUsageDetail_20' ) end [2025-04-03 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828762', 'tblTempVendorCDR_20' ) start [2025-04-03 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828762', 'tblTempVendorCDR_20' ) end [2025-04-03 23:08:19] Production.INFO: ProcessCDR(1,14828762,1,1,2) [2025-04-03 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828762', 'tblTempUsageDetail_20' ) start [2025-04-03 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828762', 'tblTempUsageDetail_20' ) end [2025-04-03 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:08:22] Production.INFO: ==11155== Releasing lock... [2025-04-03 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:08:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:09:05 [end_date_ymd] => 2025-04-03 23:09:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:09:05' and `end` < '2025-04-03 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-03 23:09:18] Production.INFO: count ==1383 [2025-04-03 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:09:05 - End Time 2025-04-03 23:09:05 [2025-04-03 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828767', 'tblTempUsageDetail_20' ) start [2025-04-03 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828767', 'tblTempUsageDetail_20' ) end [2025-04-03 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828767', 'tblTempVendorCDR_20' ) start [2025-04-03 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828767', 'tblTempVendorCDR_20' ) end [2025-04-03 23:09:18] Production.INFO: ProcessCDR(1,14828767,1,1,2) [2025-04-03 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828767', 'tblTempUsageDetail_20' ) start [2025-04-03 23:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828767', 'tblTempUsageDetail_20' ) end [2025-04-03 23:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:09:24] Production.INFO: ==11244== Releasing lock... [2025-04-03 23:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:10:06 [end_date_ymd] => 2025-04-03 23:10:06 [RateCDR] => 1 ) [2025-04-03 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:10:06' and `end` < '2025-04-03 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:10:19] Production.INFO: count ==1383 [2025-04-03 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:10:06 - End Time 2025-04-03 23:10:06 [2025-04-03 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828772', 'tblTempUsageDetail_20' ) start [2025-04-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828772', 'tblTempUsageDetail_20' ) end [2025-04-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828772', 'tblTempVendorCDR_20' ) start [2025-04-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828772', 'tblTempVendorCDR_20' ) end [2025-04-03 23:10:19] Production.INFO: ProcessCDR(1,14828772,1,1,2) [2025-04-03 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828772', 'tblTempUsageDetail_20' ) start [2025-04-03 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828772', 'tblTempUsageDetail_20' ) end [2025-04-03 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:10:23] Production.INFO: ==11339== Releasing lock... [2025-04-03 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:10:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:11:05 [end_date_ymd] => 2025-04-03 23:11:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:11:05' and `end` < '2025-04-03 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-03 23:11:18] Production.INFO: count ==1393 [2025-04-03 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:11:05 - End Time 2025-04-03 23:11:05 [2025-04-03 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828778', 'tblTempUsageDetail_20' ) start [2025-04-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828778', 'tblTempUsageDetail_20' ) end [2025-04-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828778', 'tblTempVendorCDR_20' ) start [2025-04-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828778', 'tblTempVendorCDR_20' ) end [2025-04-03 23:11:18] Production.INFO: ProcessCDR(1,14828778,1,1,2) [2025-04-03 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828778', 'tblTempUsageDetail_20' ) start [2025-04-03 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828778', 'tblTempUsageDetail_20' ) end [2025-04-03 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:11:23] Production.INFO: ==11428== Releasing lock... [2025-04-03 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:11:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:12:05 [end_date_ymd] => 2025-04-03 23:12:05 [RateCDR] => 1 ) [2025-04-03 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:12:05' and `end` < '2025-04-03 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:12:18] Production.INFO: count ==1393 [2025-04-03 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:12:05 - End Time 2025-04-03 23:12:05 [2025-04-03 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828783', 'tblTempUsageDetail_20' ) start [2025-04-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828783', 'tblTempUsageDetail_20' ) end [2025-04-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828783', 'tblTempVendorCDR_20' ) start [2025-04-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828783', 'tblTempVendorCDR_20' ) end [2025-04-03 23:12:18] Production.INFO: ProcessCDR(1,14828783,1,1,2) [2025-04-03 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828783', 'tblTempUsageDetail_20' ) start [2025-04-03 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828783', 'tblTempUsageDetail_20' ) end [2025-04-03 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:12:22] Production.INFO: ==11605== Releasing lock... [2025-04-03 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:12:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:13:04 [end_date_ymd] => 2025-04-03 23:13:04 [RateCDR] => 1 ) [2025-04-03 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:13:04' and `end` < '2025-04-03 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:13:17] Production.INFO: count ==1385 [2025-04-03 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:13:04 - End Time 2025-04-03 23:13:04 [2025-04-03 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828788', 'tblTempUsageDetail_20' ) start [2025-04-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828788', 'tblTempUsageDetail_20' ) end [2025-04-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828788', 'tblTempVendorCDR_20' ) start [2025-04-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828788', 'tblTempVendorCDR_20' ) end [2025-04-03 23:13:18] Production.INFO: ProcessCDR(1,14828788,1,1,2) [2025-04-03 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828788', 'tblTempUsageDetail_20' ) start [2025-04-03 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828788', 'tblTempUsageDetail_20' ) end [2025-04-03 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:13:23] Production.INFO: ==11741== Releasing lock... [2025-04-03 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:14:05 [end_date_ymd] => 2025-04-03 23:14:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:14:05' and `end` < '2025-04-03 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-03 23:14:18] Production.INFO: count ==1382 [2025-04-03 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:14:05 - End Time 2025-04-03 23:14:05 [2025-04-03 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828793', 'tblTempUsageDetail_20' ) start [2025-04-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828793', 'tblTempUsageDetail_20' ) end [2025-04-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828793', 'tblTempVendorCDR_20' ) start [2025-04-03 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828793', 'tblTempVendorCDR_20' ) end [2025-04-03 23:14:18] Production.INFO: ProcessCDR(1,14828793,1,1,2) [2025-04-03 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828793', 'tblTempUsageDetail_20' ) start [2025-04-03 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828793', 'tblTempUsageDetail_20' ) end [2025-04-03 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:14:22] Production.INFO: ==11829== Releasing lock... [2025-04-03 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:14:22] Production.INFO: 39 MB #Memory Used# [2025-04-03 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:15:06 [end_date_ymd] => 2025-04-03 23:15:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:15:06' and `end` < '2025-04-03 23: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-03 23:15:18] Production.INFO: count ==1383 [2025-04-03 23:15:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:15:06 - End Time 2025-04-03 23:15:06 [2025-04-03 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828798', 'tblTempUsageDetail_20' ) start [2025-04-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828798', 'tblTempUsageDetail_20' ) end [2025-04-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828798', 'tblTempVendorCDR_20' ) start [2025-04-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828798', 'tblTempVendorCDR_20' ) end [2025-04-03 23:15:19] Production.INFO: ProcessCDR(1,14828798,1,1,2) [2025-04-03 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828798', 'tblTempUsageDetail_20' ) start [2025-04-03 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828798', 'tblTempUsageDetail_20' ) end [2025-04-03 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:15:22] Production.INFO: ==11996== Releasing lock... [2025-04-03 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:15:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:16:06 [end_date_ymd] => 2025-04-03 23:16:06 [RateCDR] => 1 ) [2025-04-03 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:16:06' and `end` < '2025-04-03 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:16:19] Production.INFO: count ==1389 [2025-04-03 23:16:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:16:06 - End Time 2025-04-03 23:16:06 [2025-04-03 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828803', 'tblTempUsageDetail_20' ) start [2025-04-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828803', 'tblTempUsageDetail_20' ) end [2025-04-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828803', 'tblTempVendorCDR_20' ) start [2025-04-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828803', 'tblTempVendorCDR_20' ) end [2025-04-03 23:16:19] Production.INFO: ProcessCDR(1,14828803,1,1,2) [2025-04-03 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828803', 'tblTempUsageDetail_20' ) start [2025-04-03 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828803', 'tblTempUsageDetail_20' ) end [2025-04-03 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:16:22] Production.INFO: ==12093== Releasing lock... [2025-04-03 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:16:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:17:05 [end_date_ymd] => 2025-04-03 23:17:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:17:05' and `end` < '2025-04-03 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-03 23:17:18] Production.INFO: count ==1374 [2025-04-03 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:17:05 - End Time 2025-04-03 23:17:05 [2025-04-03 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828808', 'tblTempUsageDetail_20' ) start [2025-04-03 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828808', 'tblTempUsageDetail_20' ) end [2025-04-03 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828808', 'tblTempVendorCDR_20' ) start [2025-04-03 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828808', 'tblTempVendorCDR_20' ) end [2025-04-03 23:17:18] Production.INFO: ProcessCDR(1,14828808,1,1,2) [2025-04-03 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828808', 'tblTempUsageDetail_20' ) start [2025-04-03 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828808', 'tblTempUsageDetail_20' ) end [2025-04-03 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:17:21] Production.INFO: ==12183== Releasing lock... [2025-04-03 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:17:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:18:05 [end_date_ymd] => 2025-04-03 23:18:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:18:05' and `end` < '2025-04-03 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-03 23:18:18] Production.INFO: count ==1379 [2025-04-03 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:18:05 - End Time 2025-04-03 23:18:05 [2025-04-03 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828813', 'tblTempUsageDetail_20' ) start [2025-04-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828813', 'tblTempUsageDetail_20' ) end [2025-04-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828813', 'tblTempVendorCDR_20' ) start [2025-04-03 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828813', 'tblTempVendorCDR_20' ) end [2025-04-03 23:18:18] Production.INFO: ProcessCDR(1,14828813,1,1,2) [2025-04-03 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828813', 'tblTempUsageDetail_20' ) start [2025-04-03 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828813', 'tblTempUsageDetail_20' ) end [2025-04-03 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:18:22] Production.INFO: ==12272== Releasing lock... [2025-04-03 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:19:04 [end_date_ymd] => 2025-04-03 23:19:04 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:19:04' and `end` < '2025-04-03 23: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-03 23:19:17] Production.INFO: count ==1379 [2025-04-03 23:19:17] Production.ERROR: pbx CDR StartTime 2025-04-03 20:19:04 - End Time 2025-04-03 23:19:04 [2025-04-03 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828818', 'tblTempUsageDetail_20' ) start [2025-04-03 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828818', 'tblTempUsageDetail_20' ) end [2025-04-03 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828818', 'tblTempVendorCDR_20' ) start [2025-04-03 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828818', 'tblTempVendorCDR_20' ) end [2025-04-03 23:19:17] Production.INFO: ProcessCDR(1,14828818,1,1,2) [2025-04-03 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828818', 'tblTempUsageDetail_20' ) start [2025-04-03 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828818', 'tblTempUsageDetail_20' ) end [2025-04-03 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:19:21] Production.INFO: ==12360== Releasing lock... [2025-04-03 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:19:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:20:06 [end_date_ymd] => 2025-04-03 23:20:06 [RateCDR] => 1 ) [2025-04-03 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:20:06' and `end` < '2025-04-03 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:20:19] Production.INFO: count ==1391 [2025-04-03 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:20:06 - End Time 2025-04-03 23:20:06 [2025-04-03 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828824', 'tblTempUsageDetail_20' ) start [2025-04-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828824', 'tblTempUsageDetail_20' ) end [2025-04-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828824', 'tblTempVendorCDR_20' ) start [2025-04-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828824', 'tblTempVendorCDR_20' ) end [2025-04-03 23:20:19] Production.INFO: ProcessCDR(1,14828824,1,1,2) [2025-04-03 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828824', 'tblTempUsageDetail_20' ) start [2025-04-03 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828824', 'tblTempUsageDetail_20' ) end [2025-04-03 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:20:24] Production.INFO: ==12453== Releasing lock... [2025-04-03 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:21:06 [end_date_ymd] => 2025-04-03 23:21:06 [RateCDR] => 1 ) [2025-04-03 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-03 20:21:06' and `end` < '2025-04-03 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-03 23:21:18] Production.INFO: count ==1369 [2025-04-03 23:21:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:21:06 - End Time 2025-04-03 23:21:06 [2025-04-03 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828829', 'tblTempUsageDetail_20' ) start [2025-04-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828829', 'tblTempUsageDetail_20' ) end [2025-04-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828829', 'tblTempVendorCDR_20' ) start [2025-04-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828829', 'tblTempVendorCDR_20' ) end [2025-04-03 23:21:19] Production.INFO: ProcessCDR(1,14828829,1,1,2) [2025-04-03 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828829', 'tblTempUsageDetail_20' ) start [2025-04-03 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828829', 'tblTempUsageDetail_20' ) end [2025-04-03 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:21:22] Production.INFO: ==12551== Releasing lock... [2025-04-03 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:22:05 [end_date_ymd] => 2025-04-03 23:22:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:22:05' and `end` < '2025-04-03 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-03 23:22:18] Production.INFO: count ==1372 [2025-04-03 23:22:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:22:05 - End Time 2025-04-03 23:22:05 [2025-04-03 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828834', 'tblTempUsageDetail_20' ) start [2025-04-03 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828834', 'tblTempUsageDetail_20' ) end [2025-04-03 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828834', 'tblTempVendorCDR_20' ) start [2025-04-03 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828834', 'tblTempVendorCDR_20' ) end [2025-04-03 23:22:19] Production.INFO: ProcessCDR(1,14828834,1,1,2) [2025-04-03 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828834', 'tblTempUsageDetail_20' ) start [2025-04-03 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828834', 'tblTempUsageDetail_20' ) end [2025-04-03 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:22:23] Production.INFO: ==12634== Releasing lock... [2025-04-03 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:22:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:23:06 [end_date_ymd] => 2025-04-03 23:23:06 [RateCDR] => 1 ) [2025-04-03 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-03 20:23:06' and `end` < '2025-04-03 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-03 23:23:19] Production.INFO: count ==1372 [2025-04-03 23:23:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:23:06 - End Time 2025-04-03 23:23:06 [2025-04-03 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828839', 'tblTempUsageDetail_20' ) start [2025-04-03 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828839', 'tblTempUsageDetail_20' ) end [2025-04-03 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828839', 'tblTempVendorCDR_20' ) start [2025-04-03 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828839', 'tblTempVendorCDR_20' ) end [2025-04-03 23:23:19] Production.INFO: ProcessCDR(1,14828839,1,1,2) [2025-04-03 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828839', 'tblTempUsageDetail_20' ) start [2025-04-03 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828839', 'tblTempUsageDetail_20' ) end [2025-04-03 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:23:22] Production.INFO: ==12730== Releasing lock... [2025-04-03 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:23:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:24:05 [end_date_ymd] => 2025-04-03 23:24:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:24:05' and `end` < '2025-04-03 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-03 23:24:18] Production.INFO: count ==1379 [2025-04-03 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:24:05 - End Time 2025-04-03 23:24:05 [2025-04-03 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828844', 'tblTempUsageDetail_20' ) start [2025-04-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828844', 'tblTempUsageDetail_20' ) end [2025-04-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828844', 'tblTempVendorCDR_20' ) start [2025-04-03 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828844', 'tblTempVendorCDR_20' ) end [2025-04-03 23:24:18] Production.INFO: ProcessCDR(1,14828844,1,1,2) [2025-04-03 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828844', 'tblTempUsageDetail_20' ) start [2025-04-03 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828844', 'tblTempUsageDetail_20' ) end [2025-04-03 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:24:22] Production.INFO: ==12807== Releasing lock... [2025-04-03 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:25:05 [end_date_ymd] => 2025-04-03 23:25:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:25:05' and `end` < '2025-04-03 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-03 23:25:18] Production.INFO: count ==1371 [2025-04-03 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:25:05 - End Time 2025-04-03 23:25:05 [2025-04-03 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828849', 'tblTempUsageDetail_20' ) start [2025-04-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828849', 'tblTempUsageDetail_20' ) end [2025-04-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828849', 'tblTempVendorCDR_20' ) start [2025-04-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828849', 'tblTempVendorCDR_20' ) end [2025-04-03 23:25:18] Production.INFO: ProcessCDR(1,14828849,1,1,2) [2025-04-03 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828849', 'tblTempUsageDetail_20' ) start [2025-04-03 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828849', 'tblTempUsageDetail_20' ) end [2025-04-03 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:25:22] Production.INFO: ==12887== Releasing lock... [2025-04-03 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:25:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:26:04 [end_date_ymd] => 2025-04-03 23:26:04 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:26:04' and `end` < '2025-04-03 23: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-03 23:26:17] Production.INFO: count ==1363 [2025-04-03 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:26:04 - End Time 2025-04-03 23:26:04 [2025-04-03 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828854', 'tblTempUsageDetail_20' ) start [2025-04-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828854', 'tblTempUsageDetail_20' ) end [2025-04-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828854', 'tblTempVendorCDR_20' ) start [2025-04-03 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828854', 'tblTempVendorCDR_20' ) end [2025-04-03 23:26:18] Production.INFO: ProcessCDR(1,14828854,1,1,2) [2025-04-03 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828854', 'tblTempUsageDetail_20' ) start [2025-04-03 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828854', 'tblTempUsageDetail_20' ) end [2025-04-03 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:26:23] Production.INFO: ==12964== Releasing lock... [2025-04-03 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:27:05 [end_date_ymd] => 2025-04-03 23:27:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:27:05' and `end` < '2025-04-03 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-03 23:27:18] Production.INFO: count ==1343 [2025-04-03 23:27:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:27:05 - End Time 2025-04-03 23:27:05 [2025-04-03 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828859', 'tblTempUsageDetail_20' ) start [2025-04-03 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828859', 'tblTempUsageDetail_20' ) end [2025-04-03 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828859', 'tblTempVendorCDR_20' ) start [2025-04-03 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828859', 'tblTempVendorCDR_20' ) end [2025-04-03 23:27:19] Production.INFO: ProcessCDR(1,14828859,1,1,2) [2025-04-03 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828859', 'tblTempUsageDetail_20' ) start [2025-04-03 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828859', 'tblTempUsageDetail_20' ) end [2025-04-03 23:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:27:24] Production.INFO: ==13045== Releasing lock... [2025-04-03 23:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:28:05 [end_date_ymd] => 2025-04-03 23:28:05 [RateCDR] => 1 ) [2025-04-03 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:28:05' and `end` < '2025-04-03 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:28:18] Production.INFO: count ==1336 [2025-04-03 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:28:05 - End Time 2025-04-03 23:28:05 [2025-04-03 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828864', 'tblTempUsageDetail_20' ) start [2025-04-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828864', 'tblTempUsageDetail_20' ) end [2025-04-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828864', 'tblTempVendorCDR_20' ) start [2025-04-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828864', 'tblTempVendorCDR_20' ) end [2025-04-03 23:28:18] Production.INFO: ProcessCDR(1,14828864,1,1,2) [2025-04-03 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828864', 'tblTempUsageDetail_20' ) start [2025-04-03 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828864', 'tblTempUsageDetail_20' ) end [2025-04-03 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:28:21] Production.INFO: ==13161== Releasing lock... [2025-04-03 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:28:21] Production.INFO: 38.25 MB #Memory Used# [2025-04-03 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:29:05 [end_date_ymd] => 2025-04-03 23:29:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:29:05' and `end` < '2025-04-03 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-03 23:29:18] Production.INFO: count ==1332 [2025-04-03 23:29:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:29:05 - End Time 2025-04-03 23:29:05 [2025-04-03 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828869', 'tblTempUsageDetail_20' ) start [2025-04-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828869', 'tblTempUsageDetail_20' ) end [2025-04-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828869', 'tblTempVendorCDR_20' ) start [2025-04-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828869', 'tblTempVendorCDR_20' ) end [2025-04-03 23:29:19] Production.INFO: ProcessCDR(1,14828869,1,1,2) [2025-04-03 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828869', 'tblTempUsageDetail_20' ) start [2025-04-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828869', 'tblTempUsageDetail_20' ) end [2025-04-03 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:29:22] Production.INFO: ==13236== Releasing lock... [2025-04-03 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:29:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-03 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:30:06 [end_date_ymd] => 2025-04-03 23:30:06 [RateCDR] => 1 ) [2025-04-03 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:30:06' and `end` < '2025-04-03 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:30:19] Production.INFO: count ==1331 [2025-04-03 23:30:20] Production.ERROR: pbx CDR StartTime 2025-04-03 20:30:06 - End Time 2025-04-03 23:30:06 [2025-04-03 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828875', 'tblTempUsageDetail_20' ) start [2025-04-03 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828875', 'tblTempUsageDetail_20' ) end [2025-04-03 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828875', 'tblTempVendorCDR_20' ) start [2025-04-03 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828875', 'tblTempVendorCDR_20' ) end [2025-04-03 23:30:20] Production.INFO: ProcessCDR(1,14828875,1,1,2) [2025-04-03 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828875', 'tblTempUsageDetail_20' ) start [2025-04-03 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828875', 'tblTempUsageDetail_20' ) end [2025-04-03 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:30:23] Production.INFO: ==13316== Releasing lock... [2025-04-03 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-03 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:31:05 [end_date_ymd] => 2025-04-03 23:31:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:31:05' and `end` < '2025-04-03 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-03 23:31:18] Production.INFO: count ==1253 [2025-04-03 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:31:05 - End Time 2025-04-03 23:31:05 [2025-04-03 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828880', 'tblTempUsageDetail_20' ) start [2025-04-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828880', 'tblTempUsageDetail_20' ) end [2025-04-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828880', 'tblTempVendorCDR_20' ) start [2025-04-03 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828880', 'tblTempVendorCDR_20' ) end [2025-04-03 23:31:18] Production.INFO: ProcessCDR(1,14828880,1,1,2) [2025-04-03 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828880', 'tblTempUsageDetail_20' ) start [2025-04-03 23:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828880', 'tblTempUsageDetail_20' ) end [2025-04-03 23:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:31:24] Production.INFO: ==13394== Releasing lock... [2025-04-03 23:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:31:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-03 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:32:06 [end_date_ymd] => 2025-04-03 23:32:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:32:06' and `end` < '2025-04-03 23: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-03 23:32:19] Production.INFO: count ==1250 [2025-04-03 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:32:06 - End Time 2025-04-03 23:32:06 [2025-04-03 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828885', 'tblTempUsageDetail_20' ) start [2025-04-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828885', 'tblTempUsageDetail_20' ) end [2025-04-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828885', 'tblTempVendorCDR_20' ) start [2025-04-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828885', 'tblTempVendorCDR_20' ) end [2025-04-03 23:32:19] Production.INFO: ProcessCDR(1,14828885,1,1,2) [2025-04-03 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828885', 'tblTempUsageDetail_20' ) start [2025-04-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828885', 'tblTempUsageDetail_20' ) end [2025-04-03 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:32:23] Production.INFO: ==13468== Releasing lock... [2025-04-03 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:32:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-03 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:33:05 [end_date_ymd] => 2025-04-03 23:33:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:33:05' and `end` < '2025-04-03 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-03 23:33:18] Production.INFO: count ==1230 [2025-04-03 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:33:05 - End Time 2025-04-03 23:33:05 [2025-04-03 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828890', 'tblTempUsageDetail_20' ) start [2025-04-03 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828890', 'tblTempUsageDetail_20' ) end [2025-04-03 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828890', 'tblTempVendorCDR_20' ) start [2025-04-03 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828890', 'tblTempVendorCDR_20' ) end [2025-04-03 23:33:18] Production.INFO: ProcessCDR(1,14828890,1,1,2) [2025-04-03 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828890', 'tblTempUsageDetail_20' ) start [2025-04-03 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828890', 'tblTempUsageDetail_20' ) end [2025-04-03 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:33:22] Production.INFO: ==13547== Releasing lock... [2025-04-03 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:34:06 [end_date_ymd] => 2025-04-03 23:34:06 [RateCDR] => 1 ) [2025-04-03 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:34:06' and `end` < '2025-04-03 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:34:18] Production.INFO: count ==1219 [2025-04-03 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:34:06 - End Time 2025-04-03 23:34:06 [2025-04-03 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828895', 'tblTempUsageDetail_20' ) start [2025-04-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828895', 'tblTempUsageDetail_20' ) end [2025-04-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828895', 'tblTempVendorCDR_20' ) start [2025-04-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828895', 'tblTempVendorCDR_20' ) end [2025-04-03 23:34:19] Production.INFO: ProcessCDR(1,14828895,1,1,2) [2025-04-03 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828895', 'tblTempUsageDetail_20' ) start [2025-04-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828895', 'tblTempUsageDetail_20' ) end [2025-04-03 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:34:22] Production.INFO: ==13624== Releasing lock... [2025-04-03 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:34:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-03 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:35:05 [end_date_ymd] => 2025-04-03 23:35:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:35:05' and `end` < '2025-04-03 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-03 23:35:18] Production.INFO: count ==1218 [2025-04-03 23:35:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:35:05 - End Time 2025-04-03 23:35:05 [2025-04-03 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828900', 'tblTempUsageDetail_20' ) start [2025-04-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828900', 'tblTempUsageDetail_20' ) end [2025-04-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828900', 'tblTempVendorCDR_20' ) start [2025-04-03 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828900', 'tblTempVendorCDR_20' ) end [2025-04-03 23:35:18] Production.INFO: ProcessCDR(1,14828900,1,1,2) [2025-04-03 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828900', 'tblTempUsageDetail_20' ) start [2025-04-03 23:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828900', 'tblTempUsageDetail_20' ) end [2025-04-03 23:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:35:23] Production.INFO: ==13702== Releasing lock... [2025-04-03 23:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:35:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-03 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:36:06 [end_date_ymd] => 2025-04-03 23:36:06 [RateCDR] => 1 ) [2025-04-03 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-03 20:36:06' and `end` < '2025-04-03 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-03 23:36:19] Production.INFO: count ==1215 [2025-04-03 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:36:06 - End Time 2025-04-03 23:36:06 [2025-04-03 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828905', 'tblTempUsageDetail_20' ) start [2025-04-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828905', 'tblTempUsageDetail_20' ) end [2025-04-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828905', 'tblTempVendorCDR_20' ) start [2025-04-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828905', 'tblTempVendorCDR_20' ) end [2025-04-03 23:36:19] Production.INFO: ProcessCDR(1,14828905,1,1,2) [2025-04-03 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828905', 'tblTempUsageDetail_20' ) start [2025-04-03 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828905', 'tblTempUsageDetail_20' ) end [2025-04-03 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:36:22] Production.INFO: ==13777== Releasing lock... [2025-04-03 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:37:05 [end_date_ymd] => 2025-04-03 23:37:05 [RateCDR] => 1 ) [2025-04-03 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:37:05' and `end` < '2025-04-03 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:37:18] Production.INFO: count ==1210 [2025-04-03 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:37:05 - End Time 2025-04-03 23:37:05 [2025-04-03 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828910', 'tblTempUsageDetail_20' ) start [2025-04-03 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828910', 'tblTempUsageDetail_20' ) end [2025-04-03 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828910', 'tblTempVendorCDR_20' ) start [2025-04-03 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828910', 'tblTempVendorCDR_20' ) end [2025-04-03 23:37:18] Production.INFO: ProcessCDR(1,14828910,1,1,2) [2025-04-03 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828910', 'tblTempUsageDetail_20' ) start [2025-04-03 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828910', 'tblTempUsageDetail_20' ) end [2025-04-03 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:37:22] Production.INFO: ==13850== Releasing lock... [2025-04-03 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:37:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:38:05 [end_date_ymd] => 2025-04-03 23:38:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:38:05' and `end` < '2025-04-03 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-03 23:38:18] Production.INFO: count ==1190 [2025-04-03 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:38:05 - End Time 2025-04-03 23:38:05 [2025-04-03 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828915', 'tblTempUsageDetail_20' ) start [2025-04-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828915', 'tblTempUsageDetail_20' ) end [2025-04-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828915', 'tblTempVendorCDR_20' ) start [2025-04-03 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828915', 'tblTempVendorCDR_20' ) end [2025-04-03 23:38:19] Production.INFO: ProcessCDR(1,14828915,1,1,2) [2025-04-03 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828915', 'tblTempUsageDetail_20' ) start [2025-04-03 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828915', 'tblTempUsageDetail_20' ) end [2025-04-03 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:38:22] Production.INFO: ==13923== Releasing lock... [2025-04-03 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:39:05 [end_date_ymd] => 2025-04-03 23:39:05 [RateCDR] => 1 ) [2025-04-03 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:39:05' and `end` < '2025-04-03 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:39:18] Production.INFO: count ==1184 [2025-04-03 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:39:05 - End Time 2025-04-03 23:39:05 [2025-04-03 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828920', 'tblTempUsageDetail_20' ) start [2025-04-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828920', 'tblTempUsageDetail_20' ) end [2025-04-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828920', 'tblTempVendorCDR_20' ) start [2025-04-03 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828920', 'tblTempVendorCDR_20' ) end [2025-04-03 23:39:18] Production.INFO: ProcessCDR(1,14828920,1,1,2) [2025-04-03 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828920', 'tblTempUsageDetail_20' ) start [2025-04-03 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828920', 'tblTempUsageDetail_20' ) end [2025-04-03 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:39:23] Production.INFO: ==13998== Releasing lock... [2025-04-03 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:39:23] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:40:06 [end_date_ymd] => 2025-04-03 23:40:06 [RateCDR] => 1 ) [2025-04-03 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-03 20:40:06' and `end` < '2025-04-03 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-03 23:40:19] Production.INFO: count ==1172 [2025-04-03 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:40:06 - End Time 2025-04-03 23:40:06 [2025-04-03 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828926', 'tblTempUsageDetail_20' ) start [2025-04-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828926', 'tblTempUsageDetail_20' ) end [2025-04-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828926', 'tblTempVendorCDR_20' ) start [2025-04-03 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828926', 'tblTempVendorCDR_20' ) end [2025-04-03 23:40:19] Production.INFO: ProcessCDR(1,14828926,1,1,2) [2025-04-03 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828926', 'tblTempUsageDetail_20' ) start [2025-04-03 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828926', 'tblTempUsageDetail_20' ) end [2025-04-03 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:40:23] Production.INFO: ==14079== Releasing lock... [2025-04-03 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:41:05 [end_date_ymd] => 2025-04-03 23:41:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:41:05' and `end` < '2025-04-03 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-03 23:41:18] Production.INFO: count ==1125 [2025-04-03 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:41:05 - End Time 2025-04-03 23:41:05 [2025-04-03 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828931', 'tblTempUsageDetail_20' ) start [2025-04-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828931', 'tblTempUsageDetail_20' ) end [2025-04-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828931', 'tblTempVendorCDR_20' ) start [2025-04-03 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828931', 'tblTempVendorCDR_20' ) end [2025-04-03 23:41:18] Production.INFO: ProcessCDR(1,14828931,1,1,2) [2025-04-03 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828931', 'tblTempUsageDetail_20' ) start [2025-04-03 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828931', 'tblTempUsageDetail_20' ) end [2025-04-03 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:41:22] Production.INFO: ==14154== Releasing lock... [2025-04-03 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:42:06 [end_date_ymd] => 2025-04-03 23:42:06 [RateCDR] => 1 ) [2025-04-03 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:42:06' and `end` < '2025-04-03 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:42:18] Production.INFO: count ==1139 [2025-04-03 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:42:06 - End Time 2025-04-03 23:42:06 [2025-04-03 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828936', 'tblTempUsageDetail_20' ) start [2025-04-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828936', 'tblTempUsageDetail_20' ) end [2025-04-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828936', 'tblTempVendorCDR_20' ) start [2025-04-03 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828936', 'tblTempVendorCDR_20' ) end [2025-04-03 23:42:19] Production.INFO: ProcessCDR(1,14828936,1,1,2) [2025-04-03 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828936', 'tblTempUsageDetail_20' ) start [2025-04-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828936', 'tblTempUsageDetail_20' ) end [2025-04-03 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:42:22] Production.INFO: ==14232== Releasing lock... [2025-04-03 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:43:05 [end_date_ymd] => 2025-04-03 23:43:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:43:05' and `end` < '2025-04-03 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-03 23:43:18] Production.INFO: count ==1138 [2025-04-03 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:43:05 - End Time 2025-04-03 23:43:05 [2025-04-03 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828941', 'tblTempUsageDetail_20' ) start [2025-04-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828941', 'tblTempUsageDetail_20' ) end [2025-04-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828941', 'tblTempVendorCDR_20' ) start [2025-04-03 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828941', 'tblTempVendorCDR_20' ) end [2025-04-03 23:43:18] Production.INFO: ProcessCDR(1,14828941,1,1,2) [2025-04-03 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828941', 'tblTempUsageDetail_20' ) start [2025-04-03 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828941', 'tblTempUsageDetail_20' ) end [2025-04-03 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:43:21] Production.INFO: ==14328== Releasing lock... [2025-04-03 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:43:21] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:44:05 [end_date_ymd] => 2025-04-03 23:44:05 [RateCDR] => 1 ) [2025-04-03 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:44:05' and `end` < '2025-04-03 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:44:18] Production.INFO: count ==1140 [2025-04-03 23:44:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:44:05 - End Time 2025-04-03 23:44:05 [2025-04-03 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828946', 'tblTempUsageDetail_20' ) start [2025-04-03 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828946', 'tblTempUsageDetail_20' ) end [2025-04-03 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828946', 'tblTempVendorCDR_20' ) start [2025-04-03 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828946', 'tblTempVendorCDR_20' ) end [2025-04-03 23:44:19] Production.INFO: ProcessCDR(1,14828946,1,1,2) [2025-04-03 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828946', 'tblTempUsageDetail_20' ) start [2025-04-03 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828946', 'tblTempUsageDetail_20' ) end [2025-04-03 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:44:22] Production.INFO: ==14415== Releasing lock... [2025-04-03 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:44:22] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:45:06 [end_date_ymd] => 2025-04-03 23:45:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:45:06' and `end` < '2025-04-03 23: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-03 23:45:18] Production.INFO: count ==1144 [2025-04-03 23:45:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:45:06 - End Time 2025-04-03 23:45:06 [2025-04-03 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828951', 'tblTempUsageDetail_20' ) start [2025-04-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828951', 'tblTempUsageDetail_20' ) end [2025-04-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828951', 'tblTempVendorCDR_20' ) start [2025-04-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828951', 'tblTempVendorCDR_20' ) end [2025-04-03 23:45:19] Production.INFO: ProcessCDR(1,14828951,1,1,2) [2025-04-03 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828951', 'tblTempUsageDetail_20' ) start [2025-04-03 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828951', 'tblTempUsageDetail_20' ) end [2025-04-03 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:45:22] Production.INFO: ==14488== Releasing lock... [2025-04-03 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:46:05 [end_date_ymd] => 2025-04-03 23:46:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:46:05' and `end` < '2025-04-03 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-03 23:46:18] Production.INFO: count ==1140 [2025-04-03 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:46:05 - End Time 2025-04-03 23:46:05 [2025-04-03 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828956', 'tblTempUsageDetail_20' ) start [2025-04-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828956', 'tblTempUsageDetail_20' ) end [2025-04-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828956', 'tblTempVendorCDR_20' ) start [2025-04-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828956', 'tblTempVendorCDR_20' ) end [2025-04-03 23:46:18] Production.INFO: ProcessCDR(1,14828956,1,1,2) [2025-04-03 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828956', 'tblTempUsageDetail_20' ) start [2025-04-03 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828956', 'tblTempUsageDetail_20' ) end [2025-04-03 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:46:22] Production.INFO: ==14563== Releasing lock... [2025-04-03 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:46:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:47:06 [end_date_ymd] => 2025-04-03 23:47:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:47:06' and `end` < '2025-04-03 23: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-03 23:47:19] Production.INFO: count ==1140 [2025-04-03 23:47:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:47:06 - End Time 2025-04-03 23:47:06 [2025-04-03 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828961', 'tblTempUsageDetail_20' ) start [2025-04-03 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828961', 'tblTempUsageDetail_20' ) end [2025-04-03 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828961', 'tblTempVendorCDR_20' ) start [2025-04-03 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828961', 'tblTempVendorCDR_20' ) end [2025-04-03 23:47:19] Production.INFO: ProcessCDR(1,14828961,1,1,2) [2025-04-03 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828961', 'tblTempUsageDetail_20' ) start [2025-04-03 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828961', 'tblTempUsageDetail_20' ) end [2025-04-03 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:47:22] Production.INFO: ==14636== Releasing lock... [2025-04-03 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:47:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:48:05 [end_date_ymd] => 2025-04-03 23:48:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:48:05' and `end` < '2025-04-03 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-03 23:48:18] Production.INFO: count ==1144 [2025-04-03 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:48:05 - End Time 2025-04-03 23:48:05 [2025-04-03 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828966', 'tblTempUsageDetail_20' ) start [2025-04-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828966', 'tblTempUsageDetail_20' ) end [2025-04-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828966', 'tblTempVendorCDR_20' ) start [2025-04-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828966', 'tblTempVendorCDR_20' ) end [2025-04-03 23:48:18] Production.INFO: ProcessCDR(1,14828966,1,1,2) [2025-04-03 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828966', 'tblTempUsageDetail_20' ) start [2025-04-03 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828966', 'tblTempUsageDetail_20' ) end [2025-04-03 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:48:22] Production.INFO: ==14705== Releasing lock... [2025-04-03 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-03 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:49:05 [end_date_ymd] => 2025-04-03 23:49:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:49:05' and `end` < '2025-04-03 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-03 23:49:18] Production.INFO: count ==1144 [2025-04-03 23:49:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:49:05 - End Time 2025-04-03 23:49:05 [2025-04-03 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828971', 'tblTempUsageDetail_20' ) start [2025-04-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828971', 'tblTempUsageDetail_20' ) end [2025-04-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828971', 'tblTempVendorCDR_20' ) start [2025-04-03 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828971', 'tblTempVendorCDR_20' ) end [2025-04-03 23:49:19] Production.INFO: ProcessCDR(1,14828971,1,1,2) [2025-04-03 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828971', 'tblTempUsageDetail_20' ) start [2025-04-03 23:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828971', 'tblTempUsageDetail_20' ) end [2025-04-03 23:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:49:24] Production.INFO: ==14779== Releasing lock... [2025-04-03 23:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:49:24] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:50:06 [end_date_ymd] => 2025-04-03 23:50:06 [RateCDR] => 1 ) [2025-04-03 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:50:06' and `end` < '2025-04-03 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:50:18] Production.INFO: count ==1134 [2025-04-03 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:50:06 - End Time 2025-04-03 23:50:06 [2025-04-03 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828976', 'tblTempUsageDetail_20' ) start [2025-04-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828976', 'tblTempUsageDetail_20' ) end [2025-04-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828976', 'tblTempVendorCDR_20' ) start [2025-04-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828976', 'tblTempVendorCDR_20' ) end [2025-04-03 23:50:19] Production.INFO: ProcessCDR(1,14828976,1,1,2) [2025-04-03 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828976', 'tblTempUsageDetail_20' ) start [2025-04-03 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828976', 'tblTempUsageDetail_20' ) end [2025-04-03 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:50:22] Production.INFO: ==14857== Releasing lock... [2025-04-03 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:50:22] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:51:06 [end_date_ymd] => 2025-04-03 23:51:06 [RateCDR] => 1 ) [2025-04-03 23: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-03 20:51:06' and `end` < '2025-04-03 23: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-03 23:51:19] Production.INFO: count ==1114 [2025-04-03 23:51:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:51:06 - End Time 2025-04-03 23:51:06 [2025-04-03 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828982', 'tblTempUsageDetail_20' ) start [2025-04-03 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828982', 'tblTempUsageDetail_20' ) end [2025-04-03 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828982', 'tblTempVendorCDR_20' ) start [2025-04-03 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828982', 'tblTempVendorCDR_20' ) end [2025-04-03 23:51:19] Production.INFO: ProcessCDR(1,14828982,1,1,2) [2025-04-03 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828982', 'tblTempUsageDetail_20' ) start [2025-04-03 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828982', 'tblTempUsageDetail_20' ) end [2025-04-03 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:51:22] Production.INFO: ==14929== Releasing lock... [2025-04-03 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:51:22] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:52:05 [end_date_ymd] => 2025-04-03 23:52:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:52:05' and `end` < '2025-04-03 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-03 23:52:18] Production.INFO: count ==1111 [2025-04-03 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:52:05 - End Time 2025-04-03 23:52:05 [2025-04-03 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828987', 'tblTempUsageDetail_20' ) start [2025-04-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828987', 'tblTempUsageDetail_20' ) end [2025-04-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828987', 'tblTempVendorCDR_20' ) start [2025-04-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828987', 'tblTempVendorCDR_20' ) end [2025-04-03 23:52:18] Production.INFO: ProcessCDR(1,14828987,1,1,2) [2025-04-03 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828987', 'tblTempUsageDetail_20' ) start [2025-04-03 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828987', 'tblTempUsageDetail_20' ) end [2025-04-03 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:52:22] Production.INFO: ==15006== Releasing lock... [2025-04-03 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-03 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:53:05 [end_date_ymd] => 2025-04-03 23:53:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:53:05' and `end` < '2025-04-03 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-03 23:53:18] Production.INFO: count ==1096 [2025-04-03 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:53:05 - End Time 2025-04-03 23:53:05 [2025-04-03 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828992', 'tblTempUsageDetail_20' ) start [2025-04-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828992', 'tblTempUsageDetail_20' ) end [2025-04-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828992', 'tblTempVendorCDR_20' ) start [2025-04-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828992', 'tblTempVendorCDR_20' ) end [2025-04-03 23:53:18] Production.INFO: ProcessCDR(1,14828992,1,1,2) [2025-04-03 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828992', 'tblTempUsageDetail_20' ) start [2025-04-03 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828992', 'tblTempUsageDetail_20' ) end [2025-04-03 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:53:22] Production.INFO: ==15078== Releasing lock... [2025-04-03 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:53:22] Production.INFO: 37 MB #Memory Used# [2025-04-03 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:54:05 [end_date_ymd] => 2025-04-03 23:54:05 [RateCDR] => 1 ) [2025-04-03 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:54:05' and `end` < '2025-04-03 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:54:18] Production.INFO: count ==1097 [2025-04-03 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:54:05 - End Time 2025-04-03 23:54:05 [2025-04-03 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828997', 'tblTempUsageDetail_20' ) start [2025-04-03 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14828997', 'tblTempUsageDetail_20' ) end [2025-04-03 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828997', 'tblTempVendorCDR_20' ) start [2025-04-03 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14828997', 'tblTempVendorCDR_20' ) end [2025-04-03 23:54:18] Production.INFO: ProcessCDR(1,14828997,1,1,2) [2025-04-03 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14828997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14828997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14828997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14828997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828997', 'tblTempUsageDetail_20' ) start [2025-04-03 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14828997', 'tblTempUsageDetail_20' ) end [2025-04-03 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:54:23] Production.INFO: ==15149== Releasing lock... [2025-04-03 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-03 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:55:05 [end_date_ymd] => 2025-04-03 23:55:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:55:05' and `end` < '2025-04-03 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-03 23:55:18] Production.INFO: count ==1088 [2025-04-03 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:55:05 - End Time 2025-04-03 23:55:05 [2025-04-03 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829002', 'tblTempUsageDetail_20' ) start [2025-04-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829002', 'tblTempUsageDetail_20' ) end [2025-04-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829002', 'tblTempVendorCDR_20' ) start [2025-04-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829002', 'tblTempVendorCDR_20' ) end [2025-04-03 23:55:19] Production.INFO: ProcessCDR(1,14829002,1,1,2) [2025-04-03 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829002', 'tblTempUsageDetail_20' ) start [2025-04-03 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829002', 'tblTempUsageDetail_20' ) end [2025-04-03 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:55:22] Production.INFO: ==15223== Releasing lock... [2025-04-03 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:55:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-03 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:56:05 [end_date_ymd] => 2025-04-03 23:56:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:56:05' and `end` < '2025-04-03 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-03 23:56:18] Production.INFO: count ==1079 [2025-04-03 23:56:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:56:05 - End Time 2025-04-03 23:56:05 [2025-04-03 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829007', 'tblTempUsageDetail_20' ) start [2025-04-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829007', 'tblTempUsageDetail_20' ) end [2025-04-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829007', 'tblTempVendorCDR_20' ) start [2025-04-03 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829007', 'tblTempVendorCDR_20' ) end [2025-04-03 23:56:19] Production.INFO: ProcessCDR(1,14829007,1,1,2) [2025-04-03 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829007', 'tblTempUsageDetail_20' ) start [2025-04-03 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829007', 'tblTempUsageDetail_20' ) end [2025-04-03 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:56:22] Production.INFO: ==15299== Releasing lock... [2025-04-03 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-03 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:57:05 [end_date_ymd] => 2025-04-03 23:57:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:57:05' and `end` < '2025-04-03 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-03 23:57:17] Production.INFO: count ==1064 [2025-04-03 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:57:05 - End Time 2025-04-03 23:57:05 [2025-04-03 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829012', 'tblTempUsageDetail_20' ) start [2025-04-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829012', 'tblTempUsageDetail_20' ) end [2025-04-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829012', 'tblTempVendorCDR_20' ) start [2025-04-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829012', 'tblTempVendorCDR_20' ) end [2025-04-03 23:57:18] Production.INFO: ProcessCDR(1,14829012,1,1,2) [2025-04-03 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829012', 'tblTempUsageDetail_20' ) start [2025-04-03 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829012', 'tblTempUsageDetail_20' ) end [2025-04-03 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:57:23] Production.INFO: ==15372== Releasing lock... [2025-04-03 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-03 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:58:06 [end_date_ymd] => 2025-04-03 23:58:06 [RateCDR] => 1 ) [2025-04-03 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-03 20:58:06' and `end` < '2025-04-03 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-03 23:58:18] Production.INFO: count ==1063 [2025-04-03 23:58:19] Production.ERROR: pbx CDR StartTime 2025-04-03 20:58:06 - End Time 2025-04-03 23:58:06 [2025-04-03 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829017', 'tblTempUsageDetail_20' ) start [2025-04-03 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829017', 'tblTempUsageDetail_20' ) end [2025-04-03 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829017', 'tblTempVendorCDR_20' ) start [2025-04-03 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829017', 'tblTempVendorCDR_20' ) end [2025-04-03 23:58:19] Production.INFO: ProcessCDR(1,14829017,1,1,2) [2025-04-03 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829017', 'tblTempUsageDetail_20' ) start [2025-04-03 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829017', 'tblTempUsageDetail_20' ) end [2025-04-03 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:58:22] Production.INFO: ==15449== Releasing lock... [2025-04-03 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-03 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-03 20:59:05 [end_date_ymd] => 2025-04-03 23:59:05 [RateCDR] => 1 ) [2025-04-03 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-03 20:59:05' and `end` < '2025-04-03 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-03 23:59:18] Production.INFO: count ==1053 [2025-04-03 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-03 20:59:05 - End Time 2025-04-03 23:59:05 [2025-04-03 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829022', 'tblTempUsageDetail_20' ) start [2025-04-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14829022', 'tblTempUsageDetail_20' ) end [2025-04-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829022', 'tblTempVendorCDR_20' ) start [2025-04-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14829022', 'tblTempVendorCDR_20' ) end [2025-04-03 23:59:18] Production.INFO: ProcessCDR(1,14829022,1,1,2) [2025-04-03 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14829022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14829022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-03 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14829022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14829022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-03 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829022', 'tblTempUsageDetail_20' ) start [2025-04-03 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14829022', 'tblTempUsageDetail_20' ) end [2025-04-03 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-03 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-03 23:59:22] Production.INFO: ==15557== Releasing lock... [2025-04-03 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-03 23:59:22] Production.INFO: 36 MB #Memory Used#